Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2019-10-25 12:37:52 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-11-02 11:02:07 +0300
commitf55566e36b35ecedd8f40f1fce2fcb1caf902946 (patch)
treebaad502a4771fca49ab98325610e835751356269 /scss
parent7ecfa6a343c84324bab9306710cc93f77b86b22d (diff)
Add configurable button text wrapping (#29554)
Diffstat (limited to 'scss')
-rw-r--r--scss/_buttons.scss1
-rw-r--r--scss/_variables.scss1
2 files changed, 2 insertions, 0 deletions
diff --git a/scss/_buttons.scss b/scss/_buttons.scss
index 48b21e2268..e87d3393a1 100644
--- a/scss/_buttons.scss
+++ b/scss/_buttons.scss
@@ -10,6 +10,7 @@
font-weight: $btn-font-weight;
color: $body-color;
text-align: center;
+ white-space: $btn-white-space;
vertical-align: middle;
cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
user-select: none;
diff --git a/scss/_variables.scss b/scss/_variables.scss
index eabe960df8..cc4e0ad5e4 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -419,6 +419,7 @@ $btn-padding-x: $input-btn-padding-x !default;
$btn-font-family: $input-btn-font-family !default;
$btn-font-size: $input-btn-font-size !default;
$btn-line-height: $input-btn-line-height !default;
+$btn-white-space: null !default; // Set to `nowrap` to prevent text wrapping
$btn-padding-y-sm: $input-btn-padding-y-sm !default;
$btn-padding-x-sm: $input-btn-padding-x-sm !default;