]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add text color classes
authorGuillaume Morin <gmorin.pro@gmail.com>
Mon, 27 Mar 2017 07:49:27 +0000 (09:49 +0200)
committerJeremy Thomas <bbxdesign@gmail.com>
Mon, 27 Mar 2017 10:39:36 +0000 (11:39 +0100)
sass/base/helpers.sass

index c71eafd8e3654aac11fa6d2b9b1c5c6c94c7b186..e04c02208e792a547a2ea8aeac89435f96a772a1 100644 (file)
@@ -59,6 +59,15 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
 .has-text-right
   text-align: right
 
+@each $name, $pair in $colors
+  $color: nth($pair, 1)
+  .has-text-#{$name}
+    color: $color
+  a.has-text-#{$name}
+    &:hover,
+    &:focus
+      color: darken($color, 10%)
+
 // Visibility
 
 .is-hidden