mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
only apply border radius mixins if rounded corners are enabled; alternate fix to #17426
This commit is contained in:
parent
3af4560c67
commit
1a6aad4548
1 changed files with 16 additions and 8 deletions
|
@ -1,21 +1,29 @@
|
||||||
// Single side border-radius
|
// Single side border-radius
|
||||||
|
|
||||||
@mixin border-top-radius($radius) {
|
@mixin border-top-radius($radius) {
|
||||||
border-top-right-radius: $radius;
|
@if $enable-rounded {
|
||||||
border-top-left-radius: $radius;
|
border-top-right-radius: $radius;
|
||||||
|
border-top-left-radius: $radius;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin border-right-radius($radius) {
|
@mixin border-right-radius($radius) {
|
||||||
border-bottom-right-radius: $radius;
|
@if $enable-rounded {
|
||||||
border-top-right-radius: $radius;
|
border-bottom-right-radius: $radius;
|
||||||
|
border-top-right-radius: $radius;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin border-bottom-radius($radius) {
|
@mixin border-bottom-radius($radius) {
|
||||||
border-bottom-right-radius: $radius;
|
@if $enable-rounded {
|
||||||
border-bottom-left-radius: $radius;
|
border-bottom-right-radius: $radius;
|
||||||
|
border-bottom-left-radius: $radius;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin border-left-radius($radius) {
|
@mixin border-left-radius($radius) {
|
||||||
border-bottom-left-radius: $radius;
|
@if $enable-rounded {
|
||||||
border-top-left-radius: $radius;
|
border-bottom-left-radius: $radius;
|
||||||
|
border-top-left-radius: $radius;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue