aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Galante <[email protected]>2018-02-10 21:21:42 -0300
committerXhmikosR <[email protected]>2018-02-11 02:21:42 +0200
commit49954d5e6c35097511092d3356aef124bc1a2dfd (patch)
treed1d36ba26bc570ae58ebadf3dcbeff8808a4a3ad
parent54a43a72479ccfbf7f5cd2568ca6d56ea7be5531 (diff)
downloadbootstrap-49954d5e6c35097511092d3356aef124bc1a2dfd.tar.xz
bootstrap-49954d5e6c35097511092d3356aef124bc1a2dfd.zip
Create a variable for label margin bottom (#25561)
-rw-r--r--scss/_reboot.scss2
-rw-r--r--scss/_variables.scss2
2 files changed, 3 insertions, 1 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss
index c79fa4740..3e00b7fab 100644
--- a/scss/_reboot.scss
+++ b/scss/_reboot.scss
@@ -309,7 +309,7 @@ th {
label {
// Allow labels to use `margin` for spacing.
display: inline-block;
- margin-bottom: .5rem;
+ margin-bottom: $label-margin-bottom;
}
// Remove the default `border-radius` that macOS Chrome adds.
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 9825b0808..6cfe01cdc 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -383,6 +383,8 @@ $btn-transition: color .15s ease-in-out, background-color .15s ease
// Forms
+$label-margin-bottom: .5rem !default;
+
$input-padding-y: $input-btn-padding-y !default;
$input-padding-x: $input-btn-padding-x !default;
$input-line-height: $input-btn-line-height !default;