From 3cdcdc9a787bc584d65e6f6650a7d18c81216bf2 Mon Sep 17 00:00:00 2001 From: Daniel Schuba Date: Mon, 2 Oct 2017 11:13:34 +0200 Subject: [PATCH] Option to change font-weight of buttons --- scss/components/_button.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scss/components/_button.scss b/scss/components/_button.scss index eed8bdd3f..7c9fc0533 100644 --- a/scss/components/_button.scss +++ b/scss/components/_button.scss @@ -10,6 +10,10 @@ /// @type Font $button-font-family: inherit !default; +/// Font weight for button elements. +/// @type Font-Weight +$button-font-weight: inherit !default; + /// Padding inside buttons. /// @type List $button-padding: 0.85em 1em !default; @@ -91,6 +95,9 @@ $button-responsive-expanded: false !default; vertical-align: middle; margin: $button-margin; font-family: $button-font-family; + @if ($button-font-weight != inherit && $button-font-weight != $global-weight-normal) { + font-weight: $button-font-weight; + } @if (type-of($button-padding) == 'map') { @each $size, $padding in $button-padding { -- 2.47.2