forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon-classes.css
More file actions
89 lines (76 loc) · 2.79 KB
/
Copy pathcommon-classes.css
File metadata and controls
89 lines (76 loc) · 2.79 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.example-surface {
background: var(--mat-sys-surface);
color: var(--mat-sys-on-surface);
}
.example-stateful {
background-color: color-mix(in srgb, var(--mat-sys-surface) 10%, transparent);
}
[aria-disabled='true'] .example-stateful,
.example-stateful[aria-disabled='true'] {
color: color-mix(in srgb, var(--mat-sys-on-surface) 70%, transparent);
}
.example-stateful:focus,
[aria-activedescendant]:focus-within .example-stateful[data-active='true'] {
background: color-mix(
in srgb,
var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%),
transparent
);
}
.example-stateful:hover {
background: color-mix(
in srgb,
var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%),
transparent
);
}
.example-stateful:focus[aria-disabled='true'],
.example-stateful:hover[aria-disabled='true'],
[aria-disabled='true'] .example-stateful:focus,
[aria-disabled='true'] .example-stateful:hover {
background: var(--mat-sys-surface);
}
.example-selectable {
color: var(--mat-sys-on-surface);
outline: transparent solid 2px;
}
.example-selectable[aria-selected='true'],
.example-selectable[aria-checked='true'],
.example-selectable[aria-current],
[aria-activedescendant]:focus-within .example-selectable[aria-selected='true'],
[aria-activedescendant]:focus-within .example-selectable[aria-checked='true'],
[aria-activedescendant]:focus-within .example-selectable[aria-current] {
background: color-mix(
in srgb,
var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%),
transparent
);
color: var(--mat-sys-primary);
}
.example-selectable:focus-within {
outline: var(--mat-sys-primary) solid 2px;
border-radius: var(--mat-sys-corner-extra-small);
}
.example-listbox[aria-disabled='true']:focus-within,
.example-listbox[aria-activedescendant]:focus-within {
outline: var(--mat-sys-primary) solid 1px;
}
[aria-disabled='true'] .example-selectable:focus-within,
[aria-activedescendant] .example-selectable:focus-within {
outline-color: transparent;
}
[aria-disabled='true'] .example-selectable[aria-selected='true'],
.example-selectable[aria-disabled='true'][aria-selected='true'],
[aria-disabled='true'] .example-selectable[aria-checked='true'],
.example-selectable[aria-disabled='true'][aria-checked='true'],
[aria-disabled='true'] .example-selectable[aria-current],
.example-selectable[aria-disabled='true'][aria-current] {
color: color-mix(in srgb, var(--mat-sys-on-surface) 70%, transparent);
background: color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent);
}
.example-selectable[aria-selected='true'] .example-icon {
color: var(--mat-sys-primary);
}
[aria-disabled='true'] .example-selectable[aria-selected='true'] .example-icon {
color: color-mix(in srgb, var(--mat-sys-on-surface) 70%, transparent);
}