-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
styles.ts
122 lines (99 loc) · 2.95 KB
/
styles.ts
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import { css } from 'lit'
export default css`
button {
border: none;
border-radius: var(--wui-border-radius-3xl);
}
button[data-variant='main'] {
background-color: var(--wui-color-accent-100);
color: var(--wui-color-inverse-100);
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
}
button[data-variant='accent'] {
background-color: var(--wui-color-accent-glass-010);
color: var(--wui-color-accent-100);
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
}
button[data-variant='gray'] {
background-color: transparent;
color: var(--wui-color-fg-200);
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
}
button[data-variant='shade'] {
background-color: transparent;
color: var(--wui-color-accent-100);
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
}
button[data-size='sm'] {
height: 32px;
padding: 0 var(--wui-spacing-s);
}
button[data-size='md'] {
height: 40px;
padding: 0 var(--wui-spacing-l);
}
button[data-size='sm'] > wui-image {
width: 16px;
height: 16px;
}
button[data-size='md'] > wui-image {
width: 24px;
height: 24px;
}
button[data-size='sm'] > wui-icon {
width: 12px;
height: 12px;
}
button[data-size='md'] > wui-icon {
width: 14px;
height: 14px;
}
wui-image {
border-radius: var(--wui-border-radius-3xl);
overflow: hidden;
}
button.disabled > wui-icon,
button.disabled > wui-image {
filter: grayscale(1);
}
button[data-variant='main'] > wui-image {
box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
}
button[data-variant='shade'] > wui-image,
button[data-variant='gray'] > wui-image {
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
}
@media (hover: hover) and (pointer: fine) {
button[data-variant='main']:focus-visible {
background-color: var(--wui-color-accent-090);
}
button[data-variant='main']:hover:enabled {
background-color: var(--wui-color-accent-090);
}
button[data-variant='main']:active:enabled {
background-color: var(--wui-color-accent-080);
}
button[data-variant='accent']:hover:enabled {
background-color: var(--wui-color-accent-glass-015);
}
button[data-variant='accent']:active:enabled {
background-color: var(--wui-color-accent-glass-020);
}
button[data-variant='shade']:focus-visible,
button[data-variant='gray']:focus-visible,
button[data-variant='shade']:hover,
button[data-variant='gray']:hover {
background-color: var(--wui-color-gray-glass-002);
}
button[data-variant='gray']:active,
button[data-variant='shade']:active {
background-color: var(--wui-color-gray-glass-005);
}
}
button.disabled {
color: var(--wui-color-gray-glass-020);
background-color: var(--wui-color-gray-glass-002);
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
pointer-events: none;
}
`