-
Notifications
You must be signed in to change notification settings - Fork 0
/
button.css
189 lines (146 loc) · 4.15 KB
/
button.css
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
.button {
/* Reset <a /> */
text-decoration: none;
/* Reset <button /> */
font-size: inherit;
font-family: inherit;
line-height: inherit;
cursor: pointer;
/* For icons */
display: inline-grid;
grid-auto-flow: column;
grid-column-gap: calc(12 * var(--font-size-basis));
align-items: center;
border-width: 1px;
border-style: solid;
background-color: var(--color-white);
color: var(--color-benthos-blue);
border-color: var(--color-ultramarine-blue);
text-align: center;
/* .button--large */
/* .body-1 */
font-size: var(--font-size-18);
line-height: var(--line-height-1);
font-weight: var(--font-weight-bold);
padding: calc(16 * var(--font-size-basis)) calc(40 * var(--font-size-basis));
--button-height: calc(56 * var(--font-size-basis));
border-radius: calc(var(--button-height) / 2);
transition-property: color, background-color, border-color;
transition-duration: var(--transition-duration), var(--transition-duration), var(--transition-duration);
}
/* SHIM: Reset <summary /> elements */
.button::-webkit-details-marker {
display: none;
}
.button:hover,
.button:active,
.button:focus {
background-color: var(--color-benthos-blue);
border-color: transparent;
color: var(--color-white);
}
.button--round {
border-radius: 50%;
border-color: var(--color-littoral-blue);
color: var(--color-ultramarine-blue);
/* .button--round.button--large */
padding: calc(12 * var(--font-size-basis));
}
.button--round.button--large {
/* Default */
}
.button--round.button--small {
padding: calc(7 * var(--font-size-basis));
}
.button--round:hover,
.button--round:active,
.button--round:focus {
background-color: var(--color-sea-salt-gray);
color: var(--color-ultramarine-blue);
}
.button__label {
grid-column: 2 / 3;
grid-row: 2 / 3;
align-self: center;
}
.button__icon {
grid-row: 1 / -1;
grid-column: -3 / -1;
align-self: stretch;
justify-self: stretch;
display: flex;
justify-content: center;
align-items: center;
background: var(--color-littoral-blue);
color: var(--color-benthos-blue);
border-width: 0 0 0 1px;
border-style: solid;
color: var(--color-benthos-blue);
border-color: var(--color-ultramarine-blue);
transition-property: color, background-color, border-color;
transition-duration: var(--transition-duration), var(--transition-duration), var(--transition-duration);
}
:hover > .button__icon,
:active > .button__icon,
:focus > .button__icon {
background-color: inherit;
color: inherit;
}
.button--primary {
background-color: var(--color-benthos-blue);
border-color: transparent;
color: var(--color-white);
}
.button--tertiary {
background-color: var(--color-ultramarine-blue);
border-color: transparent;
color: var(--color-white);
}
.button--tertiary:hover,
.button--tertiary:active,
.button--tertiary:focus {
background-color: var(--color-benthos-blue);
border-color: transparent;
color: var(--color-white);
}
.button--primary:hover,
.button--primary:active,
.button--primary:focus {
background-color: var(--color-ultramarine-blue);
border-color: transparent;
color: var(--color-white);
}
.button--large {
/* Default */
}
.button--medium {
/* .body-3 */
font-size: var(--font-size-16);
line-height: var(--line-height-base);
font-weight: var(--font-weight-bold);
padding: calc(14 * var(--font-size-basis)) calc(23 * var(--font-size-basis));
--button-height: calc(48 * var(--font-size-basis));
/* padding: calc((14/16) * 1em) calc((23/16) * 1em);
--button-height:calc((48/16) * 1em); */
}
.button--small {
/* .body-5 */
font-size: var(--font-size-14);
line-height: var(--line-height-base-17);
font-weight: var(--font-weight-bold);
padding: calc(8 * var(--font-size-basis)) calc(14 * var(--font-size-basis));
--button-height: calc(35 * var(--font-size-basis));
/* padding: calc((8/14) * 1em) 1em;
--button-height:calc((35/14) * 1em); */
}
.button--compound {
padding: 0;
grid-template-columns: 0.25em auto 0 1.375em;
grid-column-gap: 1.375em;
grid-template-rows: 0.75em auto 0.75em;
overflow: hidden;
}
.filter-list-button--active {
background-color: var(--color-littoral-blue);
color: var(--color-ultramarine-blue);
}