mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 09:24:24 +04:00
77 lines
1.7 KiB
SCSS
77 lines
1.7 KiB
SCSS
@mixin subheader($include-color: true, $include-line-height: true) {
|
|
font-size: $h5-font-size;
|
|
font-weight: var(--#{$prefix}font-weight-medium);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
|
|
@if $include-line-height {
|
|
line-height: $h5-line-height;
|
|
}
|
|
|
|
@if ($include-color) {
|
|
color: var(--#{$prefix}secondary);
|
|
}
|
|
}
|
|
|
|
@mixin scrollbar {
|
|
#{if(&, "&", "*")} {
|
|
scrollbar-color: color-transparent(var(--#{$prefix}scrollbar-color, var(--#{$prefix}body-color)), 0.2) transparent;
|
|
}
|
|
|
|
#{if(&, "&", "*")}::-webkit-scrollbar {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
@include transition(background $transition-time);
|
|
}
|
|
|
|
#{if(&, "&", "*")}::-webkit-scrollbar-thumb {
|
|
border-radius: 1rem;
|
|
border: 5px solid transparent;
|
|
box-shadow: inset 0 0 0 1rem color-transparent(var(--#{$prefix}scrollbar-color, var(--#{$prefix}body-color)), 0.2);
|
|
}
|
|
|
|
#{if(&, "&", "*")}::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
#{if(&, "&", "*")}:hover::-webkit-scrollbar-thumb {
|
|
box-shadow: inset 0 0 0 1rem color-transparent(var(--#{$prefix}scrollbar-color, var(--#{$prefix}body-color)), 0.4);
|
|
}
|
|
|
|
#{if(&, "&", "*")}::-webkit-scrollbar-corner {
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
@mixin autodark-image {
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
|
|
//
|
|
// Elements list
|
|
//
|
|
@mixin elements-list($gap: 0.5rem) {
|
|
--#{$prefix}list-gap: #{$gap};
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--#{$prefix}list-gap);
|
|
}
|
|
|
|
@mixin focus-ring($show-border: false) {
|
|
outline: 0;
|
|
box-shadow: 0 0 $focus-ring-blur $focus-ring-width rgba(var(--#{$prefix}primary-rgb), 0.25);
|
|
|
|
@if ($show-border) {
|
|
border-color: rgba(var(--#{$prefix}primary-rgb), 0.25);
|
|
}
|
|
}
|
|
|
|
//
|
|
// Print styles
|
|
//
|
|
@mixin media-print {
|
|
@media print {
|
|
@content;
|
|
}
|
|
}
|