1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-16 10:31:41 +04:00
Files
tabler/core/scss/_bootstrap-override.scss
T

78 lines
2.1 KiB
SCSS

@use 'sass:color';
@mixin caret($direction: down) {
$selector: 'after';
@if $direction == 'left' {
$selector: 'before';
}
&:#{$selector} {
content: '';
display: inline-block;
vertical-align: $caret-vertical-align;
width: $caret-width;
height: $caret-width;
border-bottom: 1px var(--#{$prefix}border-style);
border-inline-start: 1px var(--#{$prefix}border-style);
margin-inline-end: 0.1em;
@if $direction != 'left' {
margin-inline-start: $caret-spacing;
} @else {
margin-inline-end: $caret-spacing;
}
@if $direction == down {
transform: rotate(-45deg);
} @else if $direction == up {
transform: rotate(135deg);
} @else if $direction == end {
transform: rotate(-135deg);
} @else {
transform: rotate(45deg);
}
}
@if $direction == 'left' {
&:after {
content: none;
}
}
}
@mixin alert-variant($background: null, $border: null, $color: null) {
// Override bootstrap core
}
@mixin button-variant($background: null, $border: null, $color: null, $hover-background: null, $hover-border: null, $hover-color: null, $active-background: null, $active-border: null, $active-color: null, $disabled-background: null, $disabled-border: null, $disabled-color: null) {
// Override bootstrap core
}
@mixin button-outline-variant($color: null, $color-hover: null, $active-background: null, $active-border: null, $active-color: null) {
// Override bootstrap core
}
//
// TODO: remove when https://github.com/twbs/bootstrap/pull/37425/ will be released
//
@function opaque($background, $foreground) {
@return color.mix(rgba($foreground, 1), $background, color.alpha($foreground) * 100%);
}
@mixin border-radius($radius: $border-radius, $fallback-border-radius: false) {
@if $enable-rounded {
border-radius: valid-radius($radius);
@if $radius != 0 {
@supports (corner-shape: squircle) {
corner-shape: squircle;
border-radius: calc(#{$radius} * 2.5) !important;
}
}
}
@else if $fallback-border-radius !=false {
border-radius: $fallback-border-radius;
}
}