mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 02:24:19 +02:00
only apply border radius mixins if rounded corners are enabled; alternate fix to #17426
This commit is contained in:
@@ -1,21 +1,29 @@
|
|||||||
// Single side border-radius
|
// Single side border-radius
|
||||||
|
|
||||||
@mixin border-top-radius($radius) {
|
@mixin border-top-radius($radius) {
|
||||||
|
@if $enable-rounded {
|
||||||
border-top-right-radius: $radius;
|
border-top-right-radius: $radius;
|
||||||
border-top-left-radius: $radius;
|
border-top-left-radius: $radius;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin border-right-radius($radius) {
|
@mixin border-right-radius($radius) {
|
||||||
|
@if $enable-rounded {
|
||||||
border-bottom-right-radius: $radius;
|
border-bottom-right-radius: $radius;
|
||||||
border-top-right-radius: $radius;
|
border-top-right-radius: $radius;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin border-bottom-radius($radius) {
|
@mixin border-bottom-radius($radius) {
|
||||||
|
@if $enable-rounded {
|
||||||
border-bottom-right-radius: $radius;
|
border-bottom-right-radius: $radius;
|
||||||
border-bottom-left-radius: $radius;
|
border-bottom-left-radius: $radius;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin border-left-radius($radius) {
|
@mixin border-left-radius($radius) {
|
||||||
|
@if $enable-rounded {
|
||||||
border-bottom-left-radius: $radius;
|
border-bottom-left-radius: $radius;
|
||||||
border-top-left-radius: $radius;
|
border-top-left-radius: $radius;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user