-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathlist-item.common.scss
More file actions
74 lines (57 loc) · 1.63 KB
/
list-item.common.scss
File metadata and controls
74 lines (57 loc) · 1.63 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
@use 'styles/utilities' as *;
@use '../../light/themes' as *;
$theme: $material;
:host {
border-radius: var-get($theme, 'item-border-radius');
color: var-get($theme, 'item-text-color');
background: var-get($theme, 'item-background');
border-bottom: var-get($theme, 'border-width') solid var-get($theme, 'border-color');
}
:host(:last-of-type) {
border-bottom: none;
}
[part='title'] {
color: var-get($theme, 'item-title-color');
}
[part='subtitle'] {
color: var-get($theme, 'item-subtitle-color');
}
[part='start'] {
color: var-get($theme, 'item-thumbnail-color');
}
[part='end'] {
color: var-get($theme, 'item-action-color');
}
:host(:hover),
:host(:focus-within) {
background: var-get($theme, 'item-background-hover');
color: var-get($theme, 'item-text-color-hover');
[part='title'] {
color: var-get($theme, 'item-title-color-hover');
}
[part='subtitle'] {
color: var-get($theme, 'item-subtitle-color-hover');
}
[part='start'] {
color: var-get($theme, 'item-thumbnail-color-hover');
}
[part='end'] {
color: var-get($theme, 'item-action-color-hover');
}
}
:host(:active) {
color: var-get($theme, 'item-text-color-active');
background: var-get($theme, 'item-background-active');
[part='title'] {
color: var-get($theme, 'item-title-color-active');
}
[part='subtitle'] {
color: var-get($theme, 'item-subtitle-color-active');
}
[part='start'] {
color: var-get($theme, 'item-thumbnail-color-active');
}
[part='end'] {
color: var-get($theme, 'item-action-color-active');
}
}