mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -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
@@ -3,6 +3,8 @@ $hero-body-padding-small: 1.5rem !default
|
||||
$hero-body-padding-medium: 9rem 1.5rem !default
|
||||
$hero-body-padding-large: 18rem 1.5rem !default
|
||||
|
||||
$hero-colors: $colors !default
|
||||
|
||||
// Main container
|
||||
.hero
|
||||
align-items: stretch
|
||||
@@ -15,7 +17,7 @@ $hero-body-padding-large: 18rem 1.5rem !default
|
||||
ul
|
||||
border-bottom: none
|
||||
// Colors
|
||||
@each $name, $pair in $colors
|
||||
@each $name, $pair in $hero-colors
|
||||
$color: nth($pair, 1)
|
||||
$color-invert: nth($pair, 2)
|
||||
&.is-#{$name}
|
||||
|
||||
Reference in New Issue
Block a user