mirror of
https://github.com/jgthms/bulma
synced 2026-03-22 21:14:30 -07:00
Allow each component to have its own colors and default to the global set
This commit is contained in:
committed by
Jeremy Thomas
parent
7a3efb04aa
commit
da369e134c
@@ -11,6 +11,8 @@ $file-name-border-style: solid !default
|
||||
$file-name-border-width: 1px 1px 1px 0 !default
|
||||
$file-name-max-width: 16em !default
|
||||
|
||||
$file-colors: $form-colors !default
|
||||
|
||||
.file
|
||||
@extend %unselectable
|
||||
align-items: stretch
|
||||
@@ -18,7 +20,7 @@ $file-name-max-width: 16em !default
|
||||
justify-content: flex-start
|
||||
position: relative
|
||||
// Colors
|
||||
@each $name, $pair in $colors
|
||||
@each $name, $pair in $file-colors
|
||||
$color: nth($pair, 1)
|
||||
$color-invert: nth($pair, 2)
|
||||
&.is-#{$name}
|
||||
|
||||
Reference in New Issue
Block a user