@1024pix/pix-ui 26.0.4 → 26.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.circleci/config.yml +1 -0
- package/.stylelintrc.json +27 -0
- package/CHANGELOG.md +16 -0
- package/addon/components/pix-button.hbs +6 -0
- package/addon/styles/_a11y.scss +8 -8
- package/addon/styles/_pix-banner.scss +1 -1
- package/addon/styles/_pix-block.scss +2 -2
- package/addon/styles/_pix-button.scss +43 -33
- package/addon/styles/_pix-collapsible.scss +1 -1
- package/addon/styles/_pix-filterable-and-searchable-select.scss +2 -2
- package/addon/styles/_pix-modal.scss +3 -3
- package/addon/styles/_pix-multi-select.scss +2 -2
- package/addon/styles/_pix-select.scss +2 -2
- package/addon/styles/_pix-tooltip.scss +2 -2
- package/addon/styles/normalize-reset/_normalize.scss +185 -185
- package/addon/styles/normalize-reset/_reset.scss +13 -13
- package/addon/styles/pix-design-tokens/_breakpoints.scss +1 -1
- package/addon/styles/pix-design-tokens/_colors.scss +169 -169
- package/addon/styles/pix-design-tokens/_form.scss +6 -6
- package/app/stories/pix-button.stories.js +33 -0
- package/app/stories/pix-button.stories.mdx +10 -0
- package/package.json +10 -4
|
@@ -8,342 +8,342 @@
|
|
|
8
8
|
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
html {
|
|
12
|
+
line-height: 1.15; /* 1 */
|
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
/* Sections
|
|
17
17
|
========================================================================== */
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
20
|
* Remove the margin in all browsers.
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
body {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
28
|
* Render the `main` element consistently in IE.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
main {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
36
|
* Correct the font size and margin on `h1` elements within `section` and
|
|
37
37
|
* `article` contexts in Chrome, Firefox, and Safari.
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
h1 {
|
|
41
|
+
font-size: 2em;
|
|
42
|
+
margin: 0.67em 0;
|
|
43
|
+
}
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
/* Grouping content
|
|
46
46
|
========================================================================== */
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
/**
|
|
49
49
|
* 1. Add the correct box sizing in Firefox.
|
|
50
50
|
* 2. Show the overflow in Edge and IE.
|
|
51
51
|
*/
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
hr {
|
|
54
|
+
box-sizing: content-box; /* 1 */
|
|
55
|
+
height: 0; /* 1 */
|
|
56
|
+
overflow: visible; /* 2 */
|
|
57
|
+
}
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
/**
|
|
60
60
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
61
61
|
* 2. Correct the odd `em` font sizing in all browsers.
|
|
62
62
|
*/
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
pre {
|
|
65
|
+
font-family: monospace, monospace; /* 1 */
|
|
66
|
+
font-size: 1em; /* 2 */
|
|
67
|
+
}
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
/* Text-level semantics
|
|
70
70
|
========================================================================== */
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
/**
|
|
73
73
|
* Remove the gray background on active links in IE 10.
|
|
74
74
|
*/
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
a {
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
}
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
/**
|
|
81
81
|
* 1. Remove the bottom border in Chrome 57-
|
|
82
82
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
83
83
|
*/
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
abbr[title] {
|
|
86
|
+
border-bottom: none; /* 1 */
|
|
87
|
+
text-decoration: underline; /* 2 */
|
|
88
|
+
text-decoration: underline dotted; /* 2 */
|
|
89
|
+
}
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
/**
|
|
92
92
|
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
93
93
|
*/
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
b,
|
|
96
|
+
strong {
|
|
97
|
+
font-weight: bolder;
|
|
98
|
+
}
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
/**
|
|
101
101
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
102
102
|
* 2. Correct the odd `em` font sizing in all browsers.
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
code,
|
|
106
|
+
kbd,
|
|
107
|
+
samp {
|
|
108
|
+
font-family: monospace, monospace; /* 1 */
|
|
109
|
+
font-size: 1em; /* 2 */
|
|
110
|
+
}
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
/**
|
|
113
113
|
* Add the correct font size in all browsers.
|
|
114
114
|
*/
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
small {
|
|
117
|
+
font-size: 80%;
|
|
118
|
+
}
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
/**
|
|
121
121
|
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
122
122
|
* all browsers.
|
|
123
123
|
*/
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
sub,
|
|
126
|
+
sup {
|
|
127
|
+
font-size: 75%;
|
|
128
|
+
line-height: 0;
|
|
129
|
+
position: relative;
|
|
130
|
+
vertical-align: baseline;
|
|
131
|
+
}
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
sub {
|
|
134
|
+
bottom: -0.25em;
|
|
135
|
+
}
|
|
136
136
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
sup {
|
|
138
|
+
top: -0.5em;
|
|
139
|
+
}
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
/* Embedded content
|
|
142
142
|
========================================================================== */
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
/**
|
|
145
145
|
* Remove the border on images inside links in IE 10.
|
|
146
146
|
*/
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
img {
|
|
149
|
+
border-style: none;
|
|
150
|
+
}
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
/* Forms
|
|
153
153
|
========================================================================== */
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
/**
|
|
156
156
|
* 1. Change the font styles in all browsers.
|
|
157
157
|
* 2. Remove the margin in Firefox and Safari.
|
|
158
158
|
*/
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
160
|
+
button,
|
|
161
|
+
input,
|
|
162
|
+
optgroup,
|
|
163
|
+
select,
|
|
164
|
+
textarea {
|
|
165
|
+
font-family: inherit; /* 1 */
|
|
166
|
+
font-size: 100%; /* 1 */
|
|
167
|
+
line-height: 1.15; /* 1 */
|
|
168
|
+
margin: 0; /* 2 */
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
172
|
* Show the overflow in IE.
|
|
173
173
|
* 1. Show the overflow in Edge.
|
|
174
174
|
*/
|
|
175
175
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
button,
|
|
177
|
+
input { /* 1 */
|
|
178
|
+
overflow: visible;
|
|
179
|
+
}
|
|
180
180
|
|
|
181
|
-
|
|
181
|
+
/**
|
|
182
182
|
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
183
183
|
* 1. Remove the inheritance of text transform in Firefox.
|
|
184
184
|
*/
|
|
185
185
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
186
|
+
button,
|
|
187
|
+
select { /* 1 */
|
|
188
|
+
text-transform: none;
|
|
189
|
+
}
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
/**
|
|
192
192
|
* Correct the inability to style clickable types in iOS and Safari.
|
|
193
193
|
*/
|
|
194
194
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
195
|
+
button,
|
|
196
|
+
[type="button"],
|
|
197
|
+
[type="reset"],
|
|
198
|
+
[type="submit"] {
|
|
199
|
+
-webkit-appearance: button;
|
|
200
|
+
}
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
/**
|
|
203
203
|
* Remove the inner border and padding in Firefox.
|
|
204
204
|
*/
|
|
205
205
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
206
|
+
button::-moz-focus-inner,
|
|
207
|
+
[type="button"]::-moz-focus-inner,
|
|
208
|
+
[type="reset"]::-moz-focus-inner,
|
|
209
|
+
[type="submit"]::-moz-focus-inner {
|
|
210
|
+
border-style: none;
|
|
211
|
+
padding: 0;
|
|
212
|
+
}
|
|
213
213
|
|
|
214
|
-
|
|
214
|
+
/**
|
|
215
215
|
* Restore the focus styles unset by the previous rule.
|
|
216
216
|
*/
|
|
217
217
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
218
|
+
button:-moz-focusring,
|
|
219
|
+
[type="button"]:-moz-focusring,
|
|
220
|
+
[type="reset"]:-moz-focusring,
|
|
221
|
+
[type="submit"]:-moz-focusring {
|
|
222
|
+
outline: 1px dotted ButtonText;
|
|
223
|
+
}
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
/**
|
|
226
226
|
* Correct the padding in Firefox.
|
|
227
227
|
*/
|
|
228
228
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
229
|
+
fieldset {
|
|
230
|
+
padding: 0.35em 0.75em 0.625em;
|
|
231
|
+
}
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
/**
|
|
234
234
|
* 1. Correct the text wrapping in Edge and IE.
|
|
235
235
|
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
236
236
|
* 3. Remove the padding so developers are not caught out when they zero out
|
|
237
237
|
* `fieldset` elements in all browsers.
|
|
238
238
|
*/
|
|
239
239
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
240
|
+
legend {
|
|
241
|
+
box-sizing: border-box; /* 1 */
|
|
242
|
+
color: inherit; /* 2 */
|
|
243
|
+
display: table; /* 1 */
|
|
244
|
+
max-width: 100%; /* 1 */
|
|
245
|
+
padding: 0; /* 3 */
|
|
246
|
+
white-space: normal; /* 1 */
|
|
247
|
+
}
|
|
248
248
|
|
|
249
|
-
|
|
249
|
+
/**
|
|
250
250
|
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
251
251
|
*/
|
|
252
252
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
progress {
|
|
254
|
+
vertical-align: baseline;
|
|
255
|
+
}
|
|
256
256
|
|
|
257
|
-
|
|
257
|
+
/**
|
|
258
258
|
* Remove the default vertical scrollbar in IE 10+.
|
|
259
259
|
*/
|
|
260
260
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
textarea {
|
|
262
|
+
overflow: auto;
|
|
263
|
+
}
|
|
264
264
|
|
|
265
|
-
|
|
265
|
+
/**
|
|
266
266
|
* 1. Add the correct box sizing in IE 10.
|
|
267
267
|
* 2. Remove the padding in IE 10.
|
|
268
268
|
*/
|
|
269
269
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
270
|
+
[type="checkbox"],
|
|
271
|
+
[type="radio"] {
|
|
272
|
+
box-sizing: border-box; /* 1 */
|
|
273
|
+
padding: 0; /* 2 */
|
|
274
|
+
}
|
|
275
275
|
|
|
276
|
-
|
|
276
|
+
/**
|
|
277
277
|
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
278
278
|
*/
|
|
279
279
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
280
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
281
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
282
|
+
height: auto;
|
|
283
|
+
}
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
/**
|
|
286
286
|
* 1. Correct the odd appearance in Chrome and Safari.
|
|
287
287
|
* 2. Correct the outline style in Safari.
|
|
288
288
|
*/
|
|
289
289
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
290
|
+
[type="search"] {
|
|
291
|
+
-webkit-appearance: textfield; /* 1 */
|
|
292
|
+
outline-offset: -2px; /* 2 */
|
|
293
|
+
}
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
/**
|
|
296
296
|
* Remove the inner padding in Chrome and Safari on macOS.
|
|
297
297
|
*/
|
|
298
298
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
299
|
+
[type="search"]::-webkit-search-decoration {
|
|
300
|
+
-webkit-appearance: none;
|
|
301
|
+
}
|
|
302
302
|
|
|
303
|
-
|
|
303
|
+
/**
|
|
304
304
|
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
305
305
|
* 2. Change font properties to `inherit` in Safari.
|
|
306
306
|
*/
|
|
307
307
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
308
|
+
::-webkit-file-upload-button {
|
|
309
|
+
-webkit-appearance: button; /* 1 */
|
|
310
|
+
font: inherit; /* 2 */
|
|
311
|
+
}
|
|
312
312
|
|
|
313
|
-
|
|
313
|
+
/* Interactive
|
|
314
314
|
========================================================================== */
|
|
315
315
|
|
|
316
|
-
|
|
316
|
+
/*
|
|
317
317
|
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
318
318
|
*/
|
|
319
319
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
320
|
+
details {
|
|
321
|
+
display: block;
|
|
322
|
+
}
|
|
323
323
|
|
|
324
|
-
|
|
324
|
+
/*
|
|
325
325
|
* Add the correct display in all browsers.
|
|
326
326
|
*/
|
|
327
327
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
328
|
+
summary {
|
|
329
|
+
display: list-item;
|
|
330
|
+
}
|
|
331
331
|
|
|
332
|
-
|
|
332
|
+
/* Misc
|
|
333
333
|
========================================================================== */
|
|
334
334
|
|
|
335
|
-
|
|
335
|
+
/**
|
|
336
336
|
* Add the correct display in IE 10+.
|
|
337
337
|
*/
|
|
338
338
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
339
|
+
template {
|
|
340
|
+
display: none;
|
|
341
|
+
}
|
|
342
342
|
|
|
343
|
-
|
|
343
|
+
/**
|
|
344
344
|
* Add the correct display in IE 10.
|
|
345
345
|
*/
|
|
346
346
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
347
|
+
[hidden] {
|
|
348
|
+
display: none;
|
|
349
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/****** Elad Shechter's RESET *******/
|
|
2
2
|
/*** box sizing border-box for all elements ***/
|
|
3
3
|
html {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
font-size: 16px;
|
|
5
|
+
}
|
|
6
6
|
body {
|
|
7
|
-
|
|
7
|
+
font-family: $font-roboto;
|
|
8
8
|
}
|
|
9
9
|
*,
|
|
10
10
|
*::before,
|
|
11
|
-
*::after{box-sizing:border-box;}
|
|
12
|
-
a{text-decoration:none; color:inherit; cursor:pointer;}
|
|
13
|
-
button{background-color:transparent; color:inherit; border-width:0; padding:0; cursor:pointer;}
|
|
14
|
-
figure{margin:0;}
|
|
15
|
-
input::-moz-focus-inner {border:0; padding:0; margin:0;}
|
|
16
|
-
ul, ol, dd{margin:0; padding:0; list-style:none;}
|
|
17
|
-
h1, h2, h3, h4, h5, h6{margin:0; font-size:inherit; font-weight:inherit;}
|
|
18
|
-
p{margin:0;}
|
|
19
|
-
cite {font-style:normal;}
|
|
20
|
-
fieldset{border-width:0; padding:0; margin:0;}
|
|
11
|
+
*::after{box-sizing: border-box;}
|
|
12
|
+
a{text-decoration: none; color: inherit; cursor: pointer;}
|
|
13
|
+
button{background-color: transparent; color: inherit; border-width: 0; padding: 0; cursor: pointer;}
|
|
14
|
+
figure{margin: 0;}
|
|
15
|
+
input::-moz-focus-inner {border: 0; padding: 0; margin: 0;}
|
|
16
|
+
ul, ol, dd{margin: 0; padding: 0; list-style: none;}
|
|
17
|
+
h1, h2, h3, h4, h5, h6{margin: 0; font-size: inherit; font-weight: inherit;}
|
|
18
|
+
p{margin: 0;}
|
|
19
|
+
cite {font-style: normal;}
|
|
20
|
+
fieldset{border-width: 0; padding: 0; margin: 0;}
|