From: Jeremy Thomas Date: Sun, 28 Oct 2018 23:55:59 +0000 (+0000) Subject: Fix font family helpers X-Git-Tag: 0.7.3~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f47b90a3fb5752500a3506263c0932bb7419b85;p=thirdparty%2Fbulma.git Fix font family helpers --- diff --git a/docs/_includes/elements/new-tag.html b/docs/_includes/elements/new-tag.html index 0c69b8255..b4d395b0c 100644 --- a/docs/_includes/elements/new-tag.html +++ b/docs/_includes/elements/new-tag.html @@ -1,4 +1,12 @@ +{% assign current_version_value = site.data.meta.version | remove: "." | plus: 0 %} +{% assign tag_version_value = include.version | remove: "." | plus: 0 %} +
- New! - {{ include.version }} + {% if tag_version_value > current_version_value %} + Coming soon! + {{ include.version }} + {% else %} + New! + {{ include.version }} + {% endif %}
\ No newline at end of file diff --git a/docs/documentation/modifiers/typography-helpers.html b/docs/documentation/modifiers/typography-helpers.html index e29985ed8..04fc5a7fe 100644 --- a/docs/documentation/modifiers/typography-helpers.html +++ b/docs/documentation/modifiers/typography-helpers.html @@ -415,45 +415,34 @@ breadcrumb: {% include elements/anchor.html name="Font family" %} +{% include elements/new-tag.html version="0.7.3" %} +

- You can change the font family with the use of one of 5 font family - helpers: + You can change the font family with the use of one of 3 font family helpers:

+{% assign font_families = "sans-serif,monospace,primary,secondary,code" | split: ',' %} + - - - - + + + + - - - - - - - - - - - - - - - - - - - - + {% for family in font_families %} + + + + + {% endfor %}
- Class - - Family -
+ Class + + Family +
is-family-primaryChanges font family to $family-primary
is-family-secondaryChanges font family to $family-secondary
is-family-sans-serifChanges font family to $family-sans-serif
is-family-monospaceChanges font family to $family-monospace
is-family-codeChanges font family to $family-code
is-family-{{ family }}Sets font family to $family-{{ family }}