fix rtl js/css

This commit is contained in:
Plailect 2017-05-12 16:27:10 -04:00
parent d5412b0bfc
commit 36bee674f5
3 changed files with 23 additions and 12 deletions

View file

@ -254,10 +254,6 @@
} }
} }
.links-menu {
right: 3rem !important;
}
.hidden-links { .hidden-links {
position: absolute; position: absolute;
top: 100%; top: 100%;
@ -284,7 +280,7 @@
content: ""; content: "";
position: absolute; position: absolute;
top: -11px; top: -11px;
right: 10px; right: 14px;
width: 0; width: 0;
border-style: solid; border-style: solid;
border-width: 0 10px 10px; border-width: 0 10px 10px;
@ -297,7 +293,7 @@
content: ""; content: "";
position: absolute; position: absolute;
top: -10px; top: -10px;
right: 10px; right: 14px;
width: 0; width: 0;
border-style: solid; border-style: solid;
border-width: 0 10px 10px; border-width: 0 10px 10px;
@ -315,6 +311,10 @@
} }
} }
} }
.links-menu {
right: 3rem;
}
} }

View file

@ -98,7 +98,18 @@ $(document).ready(function(){
}); });
if((window.location.href.indexOf("/he_IL/") > -1) || (window.location.href.indexOf("/ar_SA/") > -1)) { if((window.location.href.indexOf("/he_IL/") > -1) || (window.location.href.indexOf("/ar_SA/") > -1)) {
//$(".page__inner-wrap").css("direction", "rtl"); $(".nav-selector").css("left", "3rem");
$(".lang-selector").css("left", "0");
$(".links-menu").css("right", "auto");
$(".lang-menu").css("right", "auto");
$(".links-menu").css("left", "3rem");
$(".lang-menu").css("left", "0");
$('.greedy-nav').prepend('<style>.hidden-links:before{right:auto !important;}</style>');
$('.greedy-nav').prepend('<style>.hidden-links:after{right:auto !important;}</style>');
$('.greedy-nav').prepend('<style>.hidden-links:before{left:14px !important;}</style>');
$('.greedy-nav').prepend('<style>.hidden-links:after{left:14px !important;}</style>');
$(".masthead__menu-item--lg").css("padding-right", "inherit");
$(".masthead__menu-item--lg").css("padding-left", "2em");
document.body.style.direction = "rtl"; document.body.style.direction = "rtl";
} }

10
assets/js/main.min.js vendored

File diff suppressed because one or more lines are too long