]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
vertically center left-right dropdown arrows 9090/head
authormaks feltrin <pine3ree@gmail.com>
Sun, 7 Aug 2016 01:14:45 +0000 (03:14 +0200)
committerGitHub <noreply@github.com>
Sun, 7 Aug 2016 01:14:45 +0000 (03:14 +0200)
height is 10px (2*5px = 2xtriangle-border). To center vertically top: 50%, margin-top: height/2 => triangle border size 5px

scss/components/_dropdown-menu.scss

index 0ce9c1f533b3727be3feb80aa983d670b8fa19d1..376c28111a4902a579a2c018e5040809edf189f3 100644 (file)
@@ -34,7 +34,7 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
 @mixin left-right-arrows {
   > a::after {
     #{$global-right}: 14px;
-    margin-top: -3px;
+    margin-top: -5px;
   }
 
   &.opens-left > a::after {