1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-08-31 20:21:49 +02:00

fix rtl js/css

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

View File

@@ -98,7 +98,18 @@ $(document).ready(function(){
});
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";
}