]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Addition of Sass Color Map to Customize Page (#1394)
authorKeith Stolte <kstolte@yellowdogsoftware.com>
Thu, 2 Nov 2017 09:51:52 +0000 (05:51 -0400)
committerJeremy Thomas <bbxdesign@gmail.com>
Thu, 2 Nov 2017 09:51:52 +0000 (09:51 +0000)
* Addition of Sass Color Map to Customize Page

Added verbiage to Customization page to demonstrate how to add new colors to the color map.
Using this methodology allows for the dev to use `<i class="fa fa-github has-text-github"></i>` or use `is-github` in a class for a background.

* Change map-merge of $color to only merge once, Sass Complience

- Changed map-merge of $color to import from another map rather than adding each line individually.
- Made it Sass Compliant
Updating based on  #1394 comments from @jgthms

docs/documentation/overview/customize.html

index bd955d68598b3b3237262db931c282fc26ea6adb..351a2a32d233b7b6f2712f9f909acc497f86bc2d 100644 (file)
@@ -27,7 +27,22 @@ $danger: $orange
 // Use the new serif family
 $family-primary: $family-serif
 
-// 4. Import the rest of Bulma
+// 4. Setup your Custom Colors
+$linkedin: #0077B5
+$linkedin-invert: findColorInvert($linkedin)
+$twitter: #1DA1F2
+$twitter-invert: findColorInvert($twitter)
+$github: #222222
+$github-invert: findColorInvert($github)
+// Add new color variables to the color map.
+$addColors: (
+  "twitter":($twitter, $twitter-invert), 
+  "linkedin": ($linkedin, $linkedin-invert),
+  "github": ($github, $github-invert)
+)
+$colors: map-merge($colors, $addColors)
+
+// 5. Import the rest of Bulma
 @import "../bulma"
 {% endcapture %}