]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
refactor: use more specific `border` rules
authorEduardo Sanz García <esanzgar@gmail.com>
Thu, 14 Feb 2019 18:00:25 +0000 (18:00 +0000)
committerEduardo Sanz García <esanzgar@gmail.com>
Thu, 14 Feb 2019 18:00:25 +0000 (18:00 +0000)
The problem with `border` shorthand property is that any omitted
sub-values will be set to their initial value. In this case color is
omitted.

It is better to be more specific.

scss/util/_mixins.scss

index c256dc6001871ffb304a6daaa1db149fcd7500a6..18e3f4a490284540e7c9129aa4d9981f83fa5ef8 100644 (file)
@@ -44,7 +44,8 @@
   width: 0;
   height: 0;
 
-  border: inset $triangle-size;
+  border-style: inset;
+  border-width: $triangle-size;
 
   content: '';