summaryrefslogtreecommitdiff
path: root/_sass/common/classes/_pseudo.scss
blob: 53310a9c9ab330efbab0e71a94ac39448254feb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@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;
  }
}