mirror of
https://github.com/tabler/tabler.git
synced 2026-07-27 05:24:38 +04:00
63 lines
1.0 KiB
SCSS
63 lines
1.0 KiB
SCSS
@mixin subheader($include-color: true) {
|
|
font-size: $h6-font-size;
|
|
font-weight: $font-weight-bold;
|
|
text-transform: uppercase;
|
|
letter-spacing: .04em;
|
|
|
|
@if ($include-color) {
|
|
color: $text-muted;
|
|
}
|
|
}
|
|
|
|
@mixin scrollbar($is-dark: false) {
|
|
&::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
transition: .3s background;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
border-radius: 5px;
|
|
|
|
@if ($is-dark) {
|
|
background: transparent;
|
|
} @else {
|
|
background: $gray-400;
|
|
}
|
|
}
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
background: transparent;
|
|
}
|
|
|
|
&:hover::-webkit-scrollbar-thumb {
|
|
background: $gray-500;
|
|
|
|
@if ($is-dark) {
|
|
background: mix(#fff, $dark, 20%);
|
|
} @else {
|
|
background: $gray-500;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@mixin autodark-image {
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
|
|
@mixin dark-mode {
|
|
@if $enable-dark-mode {
|
|
@media not print {
|
|
.theme-dark & {
|
|
@content
|
|
}
|
|
}
|
|
|
|
@media not print and (prefers-color-scheme: dark) {
|
|
.theme-dark-auto & {
|
|
@content
|
|
}
|
|
}
|
|
}
|
|
} |