mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 20:37:59 +01:00
60 lines
1.5 KiB
CSS
60 lines
1.5 KiB
CSS
@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;
|
|
}
|
|
}
|
|
|
|
@define-mixin even-odd-type $classname, $type {
|
|
.$(classname):nth-child(odd).$(type),
|
|
.$(classname):nth-child(odd) .$(type) {
|
|
background: var(--$(type)-color);
|
|
}
|
|
.$(classname):nth-child(even).$(type),
|
|
.$(classname):nth-child(even) .$(type) {
|
|
background: var(--$(type)-dark-color);
|
|
}
|
|
.$(classname):nth-child(even) .$(classname):nth-child(odd).$(type),
|
|
.$(classname):nth-child(even) .$(classname):nth-child(odd) .$(type) {
|
|
background: var(--$(type)-color);
|
|
}
|
|
}
|
|
|
|
@define-mixin even-odd $classname {
|
|
.$(classname):nth-child(odd) {
|
|
background: var(--secondary-dark-color);
|
|
}
|
|
.$(classname):nth-child(even) {
|
|
background: var(--secondary-muted-color);
|
|
}
|
|
|
|
@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;
|
|
}
|
|
|
|
@define-mixin animated-transition {
|
|
transition:
|
|
color var(--transition-animation-duration) ease,
|
|
background var(--transition-animation-duration) ease;
|
|
}
|