File includes mixins which help to keep consistent border radiuses.
- Mixin border-radius (bootstrap 4.0.0)
- Mixin border-top-radius (bootstrap 4.0.0)
- Mixin border-right-radius (bootstrap 4.0.0)
- Mixin border-bottom-radius (bootstrap 4.0.0)
- Mixin border-left-radius (bootstrap 4.0.0)
Default variables declared in file to be used in mixins.
$border-radius: 5px !default;
$enable-rounded: true !default;
Mixin which uses variable $enable-rounded
. If it's true - borders will be rounded. Otherwise - it won't do anything.
$radius
- defines properties of wanted border radius (default$border-radius
)
Assign border radius with 10px
value
.exampleBorderClass {
@include border-radius (10px);
}
Mixin which uses variable $enable-rounded
. If it's true - top border will be rounded. Otherwise - it won't do
anything.
$radius
- defines properties wanted properties for top border radius (required)
Assign top border radius with 3px
value
.exampleTopBorderClass {
@include border-top-radius (3px);
}
Mixin which uses variable $enable-rounded
. If it's true - right borders will be rounded. Otherwise - it won't do
anything.
$radius
- defines wanted properties for right border radius
Assign right border radius with 12px
value
.exampleRightBorderClass {
@include border-right-radius (12px);
}
Mixin which uses variable $enable-rounded
. If it's true - bottom borders will be rounded. Otherwise - it won't do
anything.
$radius
- defines wanted properties for bottom border radius
Assign bottom border radius with 30px
value
.exampleBottomBorderClass {
@include border-bottom-radius (30px);
}
Mixin which uses variable $enable-rounded
. If it's true - left borders will be rounded. Otherwise - it won't do
anything.
$radius
- defines wanted properties for left border radius
Assign left border radius with default value (5px
)
.exampleLeftBorderClass {
@include border-left-radius ();
}