Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
fix up new nav RTL (bug 1230875, 1231274)
Browse files Browse the repository at this point in the history
  • Loading branch information
spasovski committed Dec 16, 2015
1 parent 921461a commit dc317a4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
36 changes: 25 additions & 11 deletions src/media/css/header--global.styl
Expand Up @@ -22,7 +22,12 @@ search-sprite() {
}
&.searching {
.header--search-content {
transform: translate(8px, 0);
+ltr() {
transform: translate(8px, 0);
}
+rtl() {
transform: translate(-8px, 0);
}
}
> *:not(.header--search-form) {
opacity: 0;
Expand Down Expand Up @@ -70,29 +75,38 @@ search-sprite() {
flex-grow: 1;
height: $symbol-height;
margin: 0 5px 0 15px;

+rtl() {
margin: 0 15px 0 5px;
}
}

.header--search-content {
display: flex;
justify-content: space-between;
min-width: 300px;
margin-left: - $symbol-height - 10;
position: relative;
transform: translate(calc(100% - 34px), 0);
transition: transform 200ms ease;

+ltr() {
margin-left: - $symbol-height - 10;
transform: translate(calc(100% - 34px), 0);
}
+rtl() {
margin-right: - $symbol-height - 10;
transform: translate(calc(-100% + 34px), 0);
}
> * {
align-self: center;
}

label {
color: $greyscale-dark-grey;
display: none;
font-size: 18px;
left: 48px;
position: absolute;
top: 11px;
z-index: 1;
color: $greyscale-dark-grey;
display: none;
font-size: 18px;
left: 48px;
position: absolute;
top: 11px;
z-index: 1;

&.search-empty {
display: block;
Expand Down
7 changes: 6 additions & 1 deletion src/media/css/nav--global.styl
Expand Up @@ -225,11 +225,16 @@ desktop-link-active() {
height: 40px;
opacity: 0;
position: fixed;
right: 20px;
transition: 200ms opacity ease;
width: 40px;
z-index: 110;

+ltr() {
right: 20px;
}
+rtl() {
left: 20px;
}
&.overlay-close-visible {
opacity: 1;
}
Expand Down

0 comments on commit dc317a4

Please sign in to comment.