diff options
| author | Mauricio Hernan Cabrera <[email protected]> | 2020-09-09 05:28:52 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-09 11:28:52 +0300 |
| commit | 6455c2e8aa024442a9b31c4a7cc5200b76c3d38a (patch) | |
| tree | e7e16914b146769d7d2ac6bbe1c689bac35635aa /scss | |
| parent | 2a249557f15786bed0b5a137f964abb091e2e6e1 (diff) | |
| download | bootstrap-6455c2e8aa024442a9b31c4a7cc5200b76c3d38a.tar.xz bootstrap-6455c2e8aa024442a9b31c4a7cc5200b76c3d38a.zip | |
Add border width utility (#31484)
Co-authored-by: XhmikosR <[email protected]>
Co-authored-by: Martijn Cuppens <[email protected]>
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_utilities.scss | 5 | ||||
| -rw-r--r-- | scss/_variables.scss | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/scss/_utilities.scss b/scss/_utilities.scss index 7c818685a..69615ec4e 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -79,6 +79,11 @@ $utilities: map-merge( class: border, values: map-merge($theme-colors, ("white": $white)) ), + "border-width": ( + property: border-width, + class: border, + values: $border-widths + ), // Sizing utilities "width": ( property: width, diff --git a/scss/_variables.scss b/scss/_variables.scss index 8ac8b143b..dee45b750 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -338,6 +338,14 @@ $border-color: $gray-300 !default; $border-radius: .25rem !default; $border-radius-sm: .2rem !default; $border-radius-lg: .3rem !default; +$border-widths: ( + 0: 0, + 1: 1px, + 2: 2px, + 3: 3px, + 4: 4px, + 5: 5px +) !default; $rounded-pill: 50rem !default; |
