Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new rounded sizes classes #28011

Merged
merged 12 commits into from
Jan 13, 2019
12 changes: 12 additions & 0 deletions scss/utilities/_borders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,38 @@
// Border-radius
//

.rounded-sm {
border-radius: $border-radius-sm !important;
}

.rounded {
border-radius: $border-radius !important;
}

.rounded-top {
border-top-left-radius: $border-radius !important;
border-top-right-radius: $border-radius !important;
}

.rounded-right {
border-top-right-radius: $border-radius !important;
border-bottom-right-radius: $border-radius !important;
}

.rounded-bottom {
border-bottom-right-radius: $border-radius !important;
border-bottom-left-radius: $border-radius !important;
}

.rounded-left {
border-top-left-radius: $border-radius !important;
border-bottom-left-radius: $border-radius !important;
}

.rounded-lg {
border-radius: $border-radius-lg !important;
}

.rounded-circle {
border-radius: 50% !important;
}
Expand Down
14 changes: 14 additions & 0 deletions site/docs/4.2/utilities/borders.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,17 @@ Add classes to an element to easily round its corners.
<img src="..." alt="..." class="rounded-pill">
<img src="..." alt="..." class="rounded-0">
{% endhighlight %}

## Sizes

Use `.rounded-lg` or `.rounded-sm` for larger or smaller border-radius.

<div class="bd-example bd-example-images">
{%- include icons/placeholder.svg width="75" height="75" class="rounded-sm" title="Example small rounded image" -%}
{%- include icons/placeholder.svg width="75" height="75" class="rounded-lg" title="Example large rounded image" -%}
</div>

{% highlight html %}
<img src="..." alt="..." class="rounded-sm">
<img src="..." alt="..." class="rounded-lg">
{% endhighlight %}