yannstatic/_sass/common/classes/_pseudo.scss
2024-10-31 20:18:37 +01:00

34 lines
392 B
SCSS

@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;
}
}