aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authordevhoussam <[email protected]>2021-05-03 22:11:11 +0000
committerMark Otto <[email protected]>2021-10-05 15:49:35 -0700
commitc331a150cdc2834f08bcf458cdb1b104cc510b67 (patch)
tree8956dbd6f94ae25d273d496e64840ed30b6d88a5 /scss
parent2596c9703462f327e20e0464cff26c5ed1f091da (diff)
downloadbootstrap-c331a150cdc2834f08bcf458cdb1b104cc510b67.tar.xz
bootstrap-c331a150cdc2834f08bcf458cdb1b104cc510b67.zip
Add Sass variables for hr background-color and border
Co-Authored-By: Houssam Hammouda <[email protected]>
Diffstat (limited to 'scss')
-rw-r--r--scss/_reboot.scss4
-rw-r--r--scss/_variables.scss2
2 files changed, 4 insertions, 2 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss
index 79fedc6ca..65b98f44b 100644
--- a/scss/_reboot.scss
+++ b/scss/_reboot.scss
@@ -69,8 +69,8 @@ body {
hr {
margin: $hr-margin-y 0;
color: $hr-color; // 1
- background-color: currentColor;
- border: 0;
+ background-color: $hr-bg-color;
+ border: $hr-border-width;
opacity: $hr-opacity;
}
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 79c1498f6..244a15c21 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -661,6 +661,8 @@ $blockquote-footer-font-size: $small-font-size !default;
$hr-margin-y: $spacer !default;
$hr-color: inherit !default;
+$hr-bg-color: currentColor !default;
+$hr-border-width: 0 !default;
$hr-height: $border-width !default;
$hr-opacity: .25 !default;