diff --git a/app/css/main.css b/app/css/main.css index 6576654b..a4b6c68a 100644 --- a/app/css/main.css +++ b/app/css/main.css @@ -2125,3 +2125,24 @@ body { width: 350px; margin-top: 15px; overflow: hidden; } + +[dir="rtl"] nav > img, [dir="rtl"] nav > h1 { + float: right !important; } + +[dir="rtl"] nav > ul { + float: left !important; } + +[dir="rtl"] nav li.nav { + margin-left: 55px; + margin-right: 0; } + [dir="rtl"] nav li.nav:last-child { + margin-left: 30px; + margin-right: 0; } + +[dir="rtl"] nav.margin-circles, [dir="rtl"] .lang-toggle { + left: auto; + right: 30px; } + +[dir="rtl"] #address-form .borough-select:after { + left: 20px; + right: auto; } diff --git a/app/js/app/app.lang-toggle.js b/app/js/app/app.lang-toggle.js index bd420c1a..2b99c644 100644 --- a/app/js/app/app.lang-toggle.js +++ b/app/js/app/app.lang-toggle.js @@ -37,6 +37,11 @@ app.language = (function(w,d,$) { } else { html = template(data.languages.en); } + /* + if (['ar', 'fa', 'he'].indexOf(lang) > -1) { + d.querySelector('#wrapper').dir = 'rtl'; + } + */ d.querySelector('#wrapper').innerHTML = html; initLangButtons(); }) diff --git a/app/js/app/templates.js b/app/js/app/templates.js index 2ec3b351..7e4276b8 100644 --- a/app/js/app/templates.js +++ b/app/js/app/templates.js @@ -130,7 +130,7 @@ this["app"]["templates"]["main"] = Handlebars.template({"compiler":[7,">= 4.0.0" + alias2(alias1(((stack1 = (depth0 != null ? depth0.slide02 : depth0)) != null ? stack1.h1 : stack1), depth0)) + "\n
" + alias2(alias1(((stack1 = (depth0 != null ? depth0.slide02 : depth0)) != null ? stack1.privacy : stack1), depth0)) - + "
\n\n