Skip to content

Commit 6a9b9af

Browse files
julien-deramondmdo
authored andcommitted
New Sass variable to change vertical rule width
1 parent 8c13516 commit 6a9b9af

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

scss/_variables.scss

+4
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,10 @@ $hr-border-color: null !default; // Allows for inherited colors
705705
$hr-border-width: var(--#{$prefix}border-width) !default;
706706
$hr-opacity: .25 !default;
707707

708+
// scss-docs-start vr-variables
709+
$vr-border-width: var(--#{$prefix}border-width) !default;
710+
// scss-docs-end vr-variables
711+
708712
$legend-margin-bottom: .5rem !default;
709713
$legend-font-size: 1.5rem !default;
710714
$legend-font-weight: null !default;

scss/helpers/_vr.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.vr {
22
display: inline-block;
33
align-self: stretch;
4-
width: 1px;
4+
width: $vr-border-width;
55
min-height: 1em;
66
background-color: currentcolor;
77
opacity: $hr-opacity;

site/content/docs/5.3/helpers/vertical-rule.md

+8
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,11 @@ They can also be used in [stacks]({{< docsref "/helpers/stacks" >}}):
4343
<div class="p-2">Third item</div>
4444
</div>
4545
{{< /example >}}
46+
47+
## CSS
48+
49+
### Sass variables
50+
51+
Customize the vertical rule Sass variable to change its width.
52+
53+
{{< scss-docs name="vr-variables" file="scss/_variables.scss" >}}

0 commit comments

Comments
 (0)