Skip to content

Commit

Permalink
Merge pull request #90 from joomla/development-backgrounds-rtl
Browse files Browse the repository at this point in the history
Change direction of background gradient for rtl and fix back-to-top button position for rtl
  • Loading branch information
richard67 authored Sep 17, 2020
2 parents bed520c + e195ebf commit 47b44d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions templates/cassiopeia/scss/blocks/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
align-self: flex-end;
height: 40px;
padding: $cassiopeia-grid-gutter/2;
margin-left: auto;
color: var(--cassiopeia-color-primary);
background: $white;
border-radius: $border-radius;

@include margin("left", auto);
}
}
10 changes: 10 additions & 0 deletions templates/cassiopeia/scss/template-rtl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ dd {
}

.container-header {
background-image: $cassiopeia-header-grad-rtl;

.container-nav .container-search:only-child {
margin-right: auto;
margin-left: 0;
Expand Down Expand Up @@ -114,3 +116,11 @@ dd {
.btn-group > .btn-group:not(:first-child) {
@include border-right-radius(0);
}

.footer {
background-image: $cassiopeia-header-grad-rtl;
.back-top {
margin-right: auto;
margin-left: 0;
}
}
1 change: 1 addition & 0 deletions templates/cassiopeia/scss/tools/variables/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ $cassiopeia-border-color: hsl(210, 14%, 89%) !default;
$cassiopeia-box-shadow: 1px 1px 4px hsla(0, 0%, 0%, .1) !default;
$cassiopeia-block-header-bg: hsl(0, 0%, 96%) !default;
$cassiopeia-header-grad: linear-gradient(135deg, var(--cassiopeia-color-primary) 0%, var(--cassiopeia-color-hover) 100%);
$cassiopeia-header-grad-rtl: linear-gradient(135deg, var(--cassiopeia-color-hover) 0%, var(--cassiopeia-color-primary) 100%);

// Standard
$standard-color-primary: hsl(220, 67%, 20%);
Expand Down

0 comments on commit 47b44d3

Please sign in to comment.