]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Corrected submenu adjustment 7851/head
authorBrett Mason <brettsmason@users.noreply.github.com>
Tue, 12 Jan 2016 14:04:29 +0000 (14:04 +0000)
committerBrett Mason <brettsmason@users.noreply.github.com>
Tue, 12 Jan 2016 14:04:29 +0000 (14:04 +0000)
Corrects submenu margin-top adjustment to target only nested submenus.

scss/components/_dropdown-menu.scss

index 7cbdee062219c78211603ec81fa58708b9c0b8ba..64917dfb90c1f800bc98b4a64a38574dd4fc1a65 100644 (file)
@@ -100,7 +100,9 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
       border: $dropdownmenu-border;
 
       @if (type-of($dropdownmenu-border-width) == 'number') {
-        margin-top: (-$dropdownmenu-border-width);
+        & .submenu {
+          margin-top: (-$dropdownmenu-border-width);
+        }
       }
 
       > li {