]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix focus state/simplify select triangles
authorthiggins <thiggins@thiggins.dev.insightsquared.com>
Wed, 9 Dec 2015 16:09:19 +0000 (16:09 +0000)
committerthiggins <thiggins@thiggins.dev.insightsquared.com>
Wed, 9 Dec 2015 16:09:19 +0000 (16:09 +0000)
scss/forms/_text.scss
scss/util/_mixins.scss

index ac0ced6bea75a66ac80d212b6b3e3924814d93de..8c74b6a8ab4312fa99db922552f3f93dbabe2803 100644 (file)
@@ -87,7 +87,7 @@ $input-radius: $global-radius !default;
   // Focus state
   &:focus {
     border: $input-border-focus;
-    background: $input-background-focus;
+    background-color: $input-background-focus;
     outline: none;
     box-shadow: $input-shadow-focus;
 
index cf209cd74b4be322c166018ce7cf92e7b792b53e..a8cb9a84c317097df8d43616cdb99b5805638d0a 100644 (file)
 ///
 /// @param {Color} $color [$black] - Color to use for the triangle.
 @mixin background-triangle($color: $black) {
-  $rgb: 'rgb(#{red($color)}, #{green($color)}, #{blue($color)})';
-
-  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="32" height="24" viewBox="0 0 32 24"><polygon points="0,0 32,0 16,24" style="fill: #{$rgb}"></polygon></svg>');
+  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="32" height="24" viewBox="0 0 32 24"><polygon points="0,0 32,0 16,24" fill="#{$color}"></polygon></svg>');
 
   @media screen and (min-width:0\0) {
     @if lightness($color) < 50% {