]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fixed the dropdown menu's alignment in RTL mode
authorAbdullah Salem <abdullahsalem@outlook.com>
Tue, 19 Jan 2016 20:38:04 +0000 (23:38 +0300)
committerAbdullah Salem <abdullahsalem@outlook.com>
Tue, 19 Jan 2016 20:38:04 +0000 (23:38 +0300)
scss/components/_dropdown-menu.scss

index 6e4eb6330d417284c1ed8bf776a627293b1b2417..a4d6da793d21ef60922dd5cb39aac605b0261603 100644 (file)
@@ -99,7 +99,7 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
       display: none;
       position: absolute;
       top: 0;
-      left: 100%;
+      #{$global-left}: 100%;
       min-width: $dropdownmenu-min-width;
       z-index: 1;
       background: $dropdownmenu-background;
@@ -117,8 +117,8 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
 
       &.first-sub {
         top: 100%;
-        left: 0;
-        right: auto;
+        #{$global-left}: 0;
+        #{$global-right}: auto;
       }
 
       // [TODO] Cut back specificity