yannstatic/_sass/common/classes/_pseudo.scss

34 lines
392 B
SCSS
Raw Normal View History

2024-10-31 20:18:37 +01:00
@mixin plain() {
&,
&:link,
&:visited {
@content;
}
}
@mixin hover() {
.root[data-is-touch="false"] &:hover {
@content;
}
}
@mixin active() {
.root[data-is-touch] &.active,
.root[data-is-touch] &:active {
@content;
}
}
@mixin focus() {
.root[data-is-touch] &.focus {
@content;
}
}
@mixin disabled() {
&.disabled,
&:disabled {
@content;
}
}