]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Added comments for color auto logic
authorharry <harmanmanchanda182@gmail.com>
Tue, 17 Jan 2017 17:41:18 +0000 (23:11 +0530)
committerharry <harmanmanchanda182@gmail.com>
Tue, 17 Jan 2017 17:41:18 +0000 (23:11 +0530)
scss/components/_button.scss

index 6b9b903542fd61c4488ea81798a5ec135d6c8279..69f5d4a42e296b084b819c2061321499896d0bf5 100644 (file)
@@ -169,7 +169,8 @@ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !defau
 
   &, &:hover, &:focus {
     background-color: $background;
-  
+    
+    // If color is set to `auto`, the function `color-pick-contrast` automatically generates a color based on the background color 
     @if $color == auto {
       $color: color-pick-contrast($background, ($button-color, $button-color-alt));
     }