2024-06-11 01:01:02 +02:00
|
|
|
@define-mixin if-widescreen {
|
|
|
|
@media (min-width: calc($min-widescreen-width + 1px)) {
|
|
|
|
@mixin-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-30 12:16:09 +02:00
|
|
|
@define-mixin if-desktop {
|
|
|
|
@media (min-width: calc($min-desktop-width + 1px)) {
|
|
|
|
@mixin-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@define-mixin if-tablet {
|
|
|
|
@media (max-width: $min-desktop-width) and (min-width: calc($max-phone-width + 1px)) {
|
|
|
|
@mixin-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@define-mixin if-phone {
|
|
|
|
@media (max-width: $max-phone-width) {
|
|
|
|
@mixin-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@define-mixin if-mobile {
|
|
|
|
@media (max-width: $min-desktop-width) {
|
|
|
|
@mixin-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-30 20:38:28 +02:00
|
|
|
@define-mixin even-odd-type $classname, $type {
|
|
|
|
.$(classname):nth-child(odd).$(type),
|
|
|
|
.$(classname):nth-child(odd) .$(type) {
|
2024-04-30 12:16:09 +02:00
|
|
|
background: var(--$(type)-color);
|
|
|
|
}
|
2024-04-30 20:38:28 +02:00
|
|
|
.$(classname):nth-child(even).$(type),
|
|
|
|
.$(classname):nth-child(even) .$(type) {
|
2024-04-30 12:16:09 +02:00
|
|
|
background: var(--$(type)-dark-color);
|
|
|
|
}
|
2024-04-30 20:38:28 +02:00
|
|
|
.$(classname):nth-child(even) .$(classname):nth-child(odd).$(type),
|
|
|
|
.$(classname):nth-child(even) .$(classname):nth-child(odd) .$(type) {
|
2024-04-30 12:16:09 +02:00
|
|
|
background: var(--$(type)-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-30 20:38:28 +02:00
|
|
|
@define-mixin even-odd $classname {
|
|
|
|
.$(classname):nth-child(odd) {
|
2024-04-30 12:16:09 +02:00
|
|
|
background: var(--secondary-dark-color);
|
|
|
|
}
|
2024-04-30 20:38:28 +02:00
|
|
|
.$(classname):nth-child(even) {
|
2024-05-20 22:30:41 +02:00
|
|
|
background: var(--secondary-muted-color);
|
2024-04-30 12:16:09 +02:00
|
|
|
}
|
|
|
|
|
2024-04-30 20:38:28 +02:00
|
|
|
@mixin even-odd-type $classname, primary;
|
|
|
|
@mixin even-odd-type $classname, success;
|
|
|
|
@mixin even-odd-type $classname, warning;
|
|
|
|
@mixin even-odd-type $classname, danger;
|
|
|
|
@mixin even-odd-type $classname, information;
|
|
|
|
@mixin even-odd-type $classname, special;
|
2024-04-30 12:16:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@define-mixin animated-transition {
|
2024-05-20 22:30:41 +02:00
|
|
|
transition:
|
|
|
|
color var(--transition-animation-duration) ease,
|
|
|
|
background var(--transition-animation-duration) ease;
|
2024-04-30 12:16:09 +02:00
|
|
|
}
|
2024-07-02 20:09:30 +02:00
|
|
|
|
|
|
|
@define-mixin no-bottom-border-radius {
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@define-mixin no-top-border-radius {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@define-mixin first-last-child-border-radius $classname {
|
|
|
|
.$(classname) > *:first-child {
|
|
|
|
@mixin no-top-border-radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
$(classname) > *:last-child {
|
|
|
|
@mixin no-bottom-border-radius;
|
|
|
|
}
|
|
|
|
}
|