cycat-project-website/_sass/bootstrap/mixins/_border-radius.scss

64 lines
1.3 KiB
SCSS
Raw Normal View History

2020-08-23 12:01:06 +02:00
// stylelint-disable property-blacklist
2018-12-09 08:21:01 +01:00
// Single side border-radius
2020-08-23 12:01:06 +02:00
@mixin border-radius($radius: $border-radius, $fallback-border-radius: false) {
2018-12-09 08:21:01 +01:00
@if $enable-rounded {
border-radius: $radius;
}
2020-08-23 12:01:06 +02:00
@else if $fallback-border-radius != false {
border-radius: $fallback-border-radius;
}
2018-12-09 08:21:01 +01:00
}
@mixin border-top-radius($radius) {
@if $enable-rounded {
border-top-left-radius: $radius;
border-top-right-radius: $radius;
}
}
@mixin border-right-radius($radius) {
@if $enable-rounded {
border-top-right-radius: $radius;
border-bottom-right-radius: $radius;
}
}
@mixin border-bottom-radius($radius) {
@if $enable-rounded {
border-bottom-right-radius: $radius;
border-bottom-left-radius: $radius;
}
}
@mixin border-left-radius($radius) {
@if $enable-rounded {
border-top-left-radius: $radius;
border-bottom-left-radius: $radius;
}
}
2020-08-23 12:01:06 +02:00
@mixin border-top-left-radius($radius) {
@if $enable-rounded {
border-top-left-radius: $radius;
}
}
@mixin border-top-right-radius($radius) {
@if $enable-rounded {
border-top-right-radius: $radius;
}
}
@mixin border-bottom-right-radius($radius) {
@if $enable-rounded {
border-bottom-right-radius: $radius;
}
}
@mixin border-bottom-left-radius($radius) {
@if $enable-rounded {
border-bottom-left-radius: $radius;
}
}