]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Fix #349
authorJeremy Thomas <bbxdesign@gmail.com>
Fri, 17 May 2019 13:02:12 +0000 (14:02 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Fri, 17 May 2019 13:02:12 +0000 (14:02 +0100)
CHANGELOG.md
sass/elements/button.sass
sass/elements/title.sass

index 8b1eefeff072de6cd9e11fbd46de1f2397d21a28..afbd19a18cb06e6e47a4d516fcfff7f3cf7f3a1b 100644 (file)
@@ -4,6 +4,14 @@
 
 ### New features
 
+You can now specify a different `font-family` for the `.title`, `.subtitle` and `.button` by using the variables `$title-family`, `$subtitle-family` and `$button-family` respectively.
+
+Simply set a value when importing Bulma:
+
+```scss
+$title-family: "Georgia", serif;
+```
+
 * #2375 Add `.is-relative` helper
 * #2321 Make `.navbar` focus behave like hover for the navigation
 * #2290 Fix #1186 -> Reset the offset on columns
index 1f34141c3871dee72e3c86202d7069eab85fdf5d..f92f158b16e3487227514556f191383e84c41617 100644 (file)
@@ -1,5 +1,6 @@
 $button-color: $grey-darker !default
 $button-background-color: $white !default
+$button-family: false !default
 
 $button-border-color: $grey-lighter !default
 $button-border-width: $control-border-width !default
@@ -50,6 +51,8 @@ $button-static-border-color: $grey-lighter !default
   border-width: $button-border-width
   color: $button-color
   cursor: pointer
+  @if $button-family
+    font-family: $button-family
   justify-content: center
   padding-bottom: $button-padding-vertical
   padding-left: $button-padding-horizontal
index febe2fc50a4af5659085fc2c98c253a2f4cdc7fe..a3db142588f94e8c32b27f9ed6e47155e506eea9 100644 (file)
@@ -1,4 +1,5 @@
 $title-color: $grey-darker !default
+$title-family: false !default
 $title-size: $size-3 !default
 $title-weight: $weight-semibold !default
 $title-line-height: 1.125 !default
@@ -8,6 +9,7 @@ $title-sub-size: 0.75em !default
 $title-sup-size: 0.75em !default
 
 $subtitle-color: $grey-dark !default
+$subtitle-family: false !default
 $subtitle-size: $size-5 !default
 $subtitle-weight: $weight-normal !default
 $subtitle-line-height: 1.25 !default
@@ -31,6 +33,8 @@ $subtitle-negative-margin: -1.25rem !default
 
 .title
   color: $title-color
+  @if $title-family
+    font-family: $title-family
   font-size: $title-size
   font-weight: $title-weight
   line-height: $title-line-height
@@ -49,6 +53,8 @@ $subtitle-negative-margin: -1.25rem !default
 
 .subtitle
   color: $subtitle-color
+  @if $subtitle-family
+    font-family: $subtitle-family
   font-size: $subtitle-size
   font-weight: $subtitle-weight
   line-height: $subtitle-line-height