]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add no JavaScript fallback to dropdown menu to prevent FOUC
authorGeoff Kimball <geoff@zurb.com>
Wed, 25 Nov 2015 00:00:07 +0000 (16:00 -0800)
committerGeoff Kimball <geoff@zurb.com>
Wed, 25 Nov 2015 00:00:07 +0000 (16:00 -0800)
scss/components/_dropdown-menu.scss

index 4efe430e602c23af3b14050fce1b0a736886bdbc..dedd922be9206c884841b61a318285a478c8a9ae 100644 (file)
@@ -68,6 +68,10 @@ $dropdownmenu-border: 1px solid $medium-gray !default;
       }
     }
 
+    .no-js & ul {
+      display: none;
+    }
+
     .submenu {
       display: none;
       position: absolute;