mirror of
https://github.com/jgthms/bulma
synced 2026-03-21 20:54:30 -07:00
Fix default sample code in customize.html (#1431)
Actually, the default code will result in an unexepected behavior: the `$color` map is defined in `derived-variables.sass` before setting the custom colors. IMHO the lists and maps should be defined in a dedicated sass file to avoid confusion in customisation.
This commit is contained in:
committed by
Jeremy Thomas
parent
e5e57460e4
commit
fb1ce8eeff
@@ -9,7 +9,6 @@ doc-subtab: customize
|
|||||||
// 1. Import the initial variables
|
// 1. Import the initial variables
|
||||||
@import "../sass/utilities/initial-variables"
|
@import "../sass/utilities/initial-variables"
|
||||||
@import "../sass/utilities/functions"
|
@import "../sass/utilities/functions"
|
||||||
@import "../sass/utilities/derived-variables.sass"
|
|
||||||
|
|
||||||
// 2. Set your own initial variables
|
// 2. Set your own initial variables
|
||||||
// Update blue
|
// Update blue
|
||||||
@@ -36,7 +35,9 @@ $twitter: #1DA1F2
|
|||||||
$twitter-invert: findColorInvert($twitter)
|
$twitter-invert: findColorInvert($twitter)
|
||||||
$github: #222222
|
$github: #222222
|
||||||
$github-invert: findColorInvert($github)
|
$github-invert: findColorInvert($github)
|
||||||
// Add new color variables to the color map.
|
|
||||||
|
// 5. Add new color variables to the color map.
|
||||||
|
@import "../sass/utilities/derived-variables.sass"
|
||||||
$addColors: (
|
$addColors: (
|
||||||
"twitter":($twitter, $twitter-invert),
|
"twitter":($twitter, $twitter-invert),
|
||||||
"linkedin": ($linkedin, $linkedin-invert),
|
"linkedin": ($linkedin, $linkedin-invert),
|
||||||
@@ -44,7 +45,7 @@ $addColors: (
|
|||||||
)
|
)
|
||||||
$colors: map-merge($colors, $addColors)
|
$colors: map-merge($colors, $addColors)
|
||||||
|
|
||||||
// 5. Import the rest of Bulma
|
// 6. Import the rest of Bulma
|
||||||
@import "../bulma"
|
@import "../bulma"
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user