[www-doc] [PATCH] Restore RTL in main menu

Christoph Miebach christoph.miebach at web.de
Thu Jan 14 14:11:14 CET 2016


---
 www.videolan.org/style/style.scss | 45 +++++++++++++++++++++++++--------------
 1 file changed, 29 insertions(+), 16 deletions(-)

diff --git a/www.videolan.org/style/style.scss b/www.videolan.org/style/style.scss
index c91c2cd..41a97f5 100644
--- a/www.videolan.org/style/style.scss
+++ b/www.videolan.org/style/style.scss
@@ -595,16 +595,6 @@ html[dir="rtl"] .projectLeft {
 
 /* LTR vs. RTL */
 
-.ltrFloatLeft
-{
-    float: left;
-}
-
-html[dir="rtl"] .ltrFloatLeft
-{
-    float: right;
-}
-
 .ltrFloatRight
 {
     float: right;
@@ -684,12 +674,6 @@ html[dir="rtl"] #nav .link:hover ul li a
     float: left;
 }
 
-html[dir="rtl"] #nav ul li a
-{
-    padding-left:   0px;
-    padding-right: 10px;
-}
-
 html[dir="rtl"] #bodyInner
 {
     text-align: right;
@@ -776,6 +760,35 @@ html[dir="rtl"] a.extraInfoLink[style]
     float: right;
 }
 
+
+/* Fixing RTL in the menu for the new design */
+html[dir="rtl"] #nav .navbar-header
+{
+    float: right;
+}
+
+html[dir="rtl"] #nav ul
+{
+    float: right;
+
+    left: inherit;
+    right: 0;
+}
+
+html[dir="rtl"] #nav ul.pull-right
+{
+    float: left!important;
+}
+
+/*
+Sorting the li items RTL
+*/
+html[dir="rtl"] #main-navbar li
+{
+    float: right;
+}
+
+
 /* ========================== Bootstrap backward compatibility ========================= */
 img, .normalButton {
   -webkit-box-sizing: content-box;
-- 
1.9.1




More information about the www-doc mailing list