Skip to content

Commit

Permalink
feat(borders): add .border-sm utility
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Apr 8, 2020
1 parent 10d075f commit df95392
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scss/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ $utilities: map-merge(
)
)
),
"border-width": (
property: border-width,
class: border,
values: (
"sm": $border-width / 2
)
),
// Sizing utilities
"width": (
property: width,
Expand Down
10 changes: 10 additions & 0 deletions site/content/docs/4.3/utilities/borders.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,13 @@ Add classes to an element to easily round its corners.
{{< placeholder width="75" height="75" class="rounded-circle" title="Example rounded image" >}}
{{< placeholder width="150" height="75" class="rounded-pill" title="Rounded pill image" >}}
{{< /example >}}

<!-- Boosted mod -->
## Border-width

Switch to `1px` wide border by using `border-width` utility.

{{< example class="bd-example-border-utils" >}}
<span class="border border-sm"></span>
{{< /example >}}
<!-- End mod -->

0 comments on commit df95392

Please sign in to comment.