piecss 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/sass/piecss/_behavior.css +432 -1
- data/sass/piecss/_behavior.css.map +2 -2
- data/sass/piecss/_behavior.scss +10 -0
- data/sass/piecss/_utilities.scss +1 -1
- data/sass/piecss/behavior/base/_base.scss +3 -568
- data/sass/piecss/behavior/base/_collection.scss +861 -0
- data/sass/piecss/behavior/base/_settings.scss +38 -367
- data/sass/piecss/behavior/button/_button.scss +1 -1
- data/sass/piecss/behavior/form/_form.scss +1 -1
- data/sass/piecss/settings/_breakpoint.css +70 -0
- data/sass/piecss/settings/_colour.css +2 -0
- data/sass/piecss/settings/_colour.css.map +7 -0
- data/sass/piecss/settings/_colour.scss +2 -4
- data/sass/piecss/settings/_constants.css +2 -0
- data/sass/piecss/settings/_constants.css.map +7 -0
- data/sass/piecss/settings/_fallback.css +2 -0
- data/sass/piecss/settings/_fallback.css.map +7 -0
- data/sass/piecss/settings/_font.css +2 -0
- data/sass/piecss/settings/_font.css.map +7 -0
- data/sass/piecss/settings/_layout.css +60 -0
- data/sass/piecss/settings/_miscellaneous.css +2 -0
- data/sass/piecss/settings/_miscellaneous.css.map +7 -0
- data/sass/piecss/settings/_rhythm.css +2 -0
- data/sass/piecss/settings/_rhythm.css.map +7 -0
- data/sass/piecss/settings/_typography.css +2 -0
- data/sass/piecss/settings/_typography.css.map +7 -0
- data/sass/piecss/settings/_unit.css +2 -0
- data/sass/piecss/settings/_unit.css.map +7 -0
- data/sass/piecss/settings/_unit.scss +1 -1
- data/sass/piecss/utilities/_breakpoint.css +2 -0
- data/sass/piecss/utilities/_breakpoint.css.map +7 -0
- data/sass/piecss/utilities/_cache.css +2 -0
- data/sass/piecss/utilities/_cache.css.map +7 -0
- data/sass/piecss/utilities/_collection.scss +192 -0
- data/sass/piecss/utilities/_colour.css +2 -0
- data/sass/piecss/utilities/_colour.css.map +7 -0
- data/sass/piecss/utilities/_element.css +2 -0
- data/sass/piecss/utilities/_element.css.map +7 -0
- data/sass/piecss/utilities/_image.css +2 -0
- data/sass/piecss/utilities/_image.css.map +7 -0
- data/sass/piecss/utilities/_layout.css +2 -0
- data/sass/piecss/utilities/_layout.css.map +7 -0
- data/sass/piecss/utilities/_list.css +2 -0
- data/sass/piecss/utilities/_list.css.map +7 -0
- data/sass/piecss/utilities/_miscellaneous.css +2 -0
- data/sass/piecss/utilities/_miscellaneous.css.map +7 -0
- data/sass/piecss/utilities/_rhythm.css +2 -0
- data/sass/piecss/utilities/_rhythm.css.map +7 -0
- data/sass/piecss/utilities/_side.css +2 -0
- data/sass/piecss/utilities/_side.css.map +7 -0
- data/sass/piecss/utilities/_string.css +2 -0
- data/sass/piecss/utilities/_string.css.map +7 -0
- data/sass/piecss/utilities/_svg.css +2 -0
- data/sass/piecss/utilities/_svg.css.map +7 -0
- data/sass/piecss/utilities/_typography.css +2 -0
- data/sass/piecss/utilities/_typography.css.map +7 -0
- data/sass/piecss/utilities/_typography.scss +16 -16
- data/sass/piecss/utilities/_unit.css +2 -0
- data/sass/piecss/utilities/_unit.css.map +7 -0
- data/sass/piecss/utilities/_unit.scss +10 -7
- data/templates/project/examples.html +370 -218
- metadata +49 -3
- data/sass/piecss/behavior/base/_normalize.scss +0 -463
- data/sass/piecss/utilities/_element.scss +0 -180
@@ -0,0 +1,861 @@
|
|
1
|
+
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
|
2
|
+
|
3
|
+
/* Document
|
4
|
+
========================================================================== */
|
5
|
+
|
6
|
+
/**
|
7
|
+
* 1. Change the default font family in all browsers (opinionated).
|
8
|
+
* 2. Correct the line height in all browsers.
|
9
|
+
* 3. Prevent adjustments of font size after orientation changes in
|
10
|
+
* IE on Windows Phone and in iOS.
|
11
|
+
*/
|
12
|
+
|
13
|
+
$base-collection: add-properties(
|
14
|
+
$base-collection,
|
15
|
+
"html",
|
16
|
+
(
|
17
|
+
font-family: get-font-family($default-font) /* 1 */,
|
18
|
+
line-height: to-unit($default-line-height, $line-height-unit), /* 2 */
|
19
|
+
-ms-text-size-adjust: 100%, /* 3 */
|
20
|
+
-webkit-text-size-adjust: 100% /* 3 */
|
21
|
+
)
|
22
|
+
);
|
23
|
+
@if get-font-style($default-font) != normal {
|
24
|
+
$base-collection: add-properties(
|
25
|
+
$base-collection,
|
26
|
+
"html",
|
27
|
+
(
|
28
|
+
font-style: get-font-style($default-font) /* 1 */
|
29
|
+
)
|
30
|
+
);
|
31
|
+
}
|
32
|
+
@if get-font-variant($default-font) != normal {
|
33
|
+
$base-collection: add-properties(
|
34
|
+
$base-collection,
|
35
|
+
"html",
|
36
|
+
(
|
37
|
+
font-variant: get-font-variant($default-font) /* 1 */
|
38
|
+
)
|
39
|
+
);
|
40
|
+
}
|
41
|
+
@if get-font-weight($default-font) != normal {
|
42
|
+
$base-collection: add-properties(
|
43
|
+
$base-collection,
|
44
|
+
"html",
|
45
|
+
(
|
46
|
+
font-weight: get-font-weight($default-font) /* 1 */
|
47
|
+
)
|
48
|
+
);
|
49
|
+
}
|
50
|
+
@if $default-font-size != $base-font-size {
|
51
|
+
$base-collection: add-properties(
|
52
|
+
$base-collection,
|
53
|
+
"html",
|
54
|
+
(
|
55
|
+
font-size: to-unit($default-font-size, $unit) /* 4 */
|
56
|
+
)
|
57
|
+
);
|
58
|
+
}
|
59
|
+
|
60
|
+
/* Sections
|
61
|
+
========================================================================== */
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Remove the margin in all browsers (opinionated).
|
65
|
+
*/
|
66
|
+
|
67
|
+
$base-collection: add-properties(
|
68
|
+
$base-collection,
|
69
|
+
"body",
|
70
|
+
(
|
71
|
+
margin: 0
|
72
|
+
)
|
73
|
+
);
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Add the correct display in IE 9-.
|
77
|
+
*/
|
78
|
+
|
79
|
+
$base-collection: add-properties(
|
80
|
+
$base-collection,
|
81
|
+
"article, aside, footer, header, nav, section, figcaption, figure, main, details, /* 1 */ menu",
|
82
|
+
(
|
83
|
+
display: block
|
84
|
+
)
|
85
|
+
);
|
86
|
+
|
87
|
+
/**
|
88
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
89
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
90
|
+
*/
|
91
|
+
|
92
|
+
$base-collection: add-properties(
|
93
|
+
$base-collection,
|
94
|
+
"h1",
|
95
|
+
(
|
96
|
+
font-size: 2em,
|
97
|
+
margin: .67em 0
|
98
|
+
)
|
99
|
+
);
|
100
|
+
|
101
|
+
|
102
|
+
/* Grouping content
|
103
|
+
========================================================================== */
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Add the correct display in IE 9-.
|
107
|
+
* 1. Add the correct display in IE.
|
108
|
+
*/
|
109
|
+
|
110
|
+
$base-collection: add-properties(
|
111
|
+
$base-collection,
|
112
|
+
"article, aside, footer, header, nav, section, figcaption, figure, main, details, /* 1 */ menu",
|
113
|
+
(
|
114
|
+
display: block
|
115
|
+
)
|
116
|
+
);
|
117
|
+
|
118
|
+
|
119
|
+
/**
|
120
|
+
* Add the correct margin in IE 8.
|
121
|
+
*/
|
122
|
+
|
123
|
+
$base-collection: add-properties(
|
124
|
+
$base-collection,
|
125
|
+
"figure",
|
126
|
+
(
|
127
|
+
margin: 1em 40px
|
128
|
+
)
|
129
|
+
);
|
130
|
+
|
131
|
+
/**
|
132
|
+
* 1. Add the correct box sizing in Firefox.
|
133
|
+
* 2. Show the overflow in Edge and IE.
|
134
|
+
*/
|
135
|
+
|
136
|
+
$base-collection: add-properties(
|
137
|
+
$base-collection,
|
138
|
+
"hr",
|
139
|
+
(
|
140
|
+
box-sizing: content-box, /* 1 */
|
141
|
+
height: 0, /* 1 */
|
142
|
+
overflow: visible /* 2 */
|
143
|
+
)
|
144
|
+
);
|
145
|
+
|
146
|
+
/**
|
147
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
148
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
149
|
+
*/
|
150
|
+
|
151
|
+
$base-collection: add-properties(
|
152
|
+
$base-collection,
|
153
|
+
"code, kbd, samp, pre",
|
154
|
+
(
|
155
|
+
font-family: "#{$monospace-family}, monospace" /* 1 */,
|
156
|
+
font-size: 1em /* 2 */
|
157
|
+
)
|
158
|
+
);
|
159
|
+
|
160
|
+
/* Text-level semantics
|
161
|
+
========================================================================== */
|
162
|
+
|
163
|
+
/**
|
164
|
+
* 1. Remove the gray background on active links in IE 10.
|
165
|
+
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
166
|
+
*/
|
167
|
+
|
168
|
+
$base-collection: add-properties(
|
169
|
+
$base-collection,
|
170
|
+
"a",
|
171
|
+
(
|
172
|
+
background-color: transparent, /* 1 */
|
173
|
+
-webkit-text-decoration-skip: objects /* 2 */
|
174
|
+
)
|
175
|
+
);
|
176
|
+
|
177
|
+
/**
|
178
|
+
* Remove the outline on focused links when they are also active or hovered
|
179
|
+
* in all browsers (opinionated).
|
180
|
+
*/
|
181
|
+
|
182
|
+
$base-collection: add-properties(
|
183
|
+
$base-collection,
|
184
|
+
"a:active, a:hover",
|
185
|
+
(
|
186
|
+
outline-width: 0
|
187
|
+
)
|
188
|
+
);
|
189
|
+
|
190
|
+
/**
|
191
|
+
* 1. Remove the bottom border in Firefox 39-.
|
192
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
193
|
+
*/
|
194
|
+
|
195
|
+
$base-collection: add-properties(
|
196
|
+
$base-collection,
|
197
|
+
"abbr[title]",
|
198
|
+
(
|
199
|
+
border-bottom: none, /* 1 */
|
200
|
+
text-decoration: underline /* 2 */
|
201
|
+
)
|
202
|
+
);
|
203
|
+
$base-collection: add-properties(
|
204
|
+
$base-collection,
|
205
|
+
"abbr[title]",
|
206
|
+
(
|
207
|
+
text-decoration: dotted /* 2 */
|
208
|
+
),
|
209
|
+
true
|
210
|
+
);
|
211
|
+
|
212
|
+
|
213
|
+
/**
|
214
|
+
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
215
|
+
*/
|
216
|
+
|
217
|
+
$base-collection: add-properties(
|
218
|
+
$base-collection,
|
219
|
+
"b, strong",
|
220
|
+
(
|
221
|
+
font-weight: inherit
|
222
|
+
)
|
223
|
+
);
|
224
|
+
|
225
|
+
/**
|
226
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
227
|
+
*/
|
228
|
+
|
229
|
+
$base-collection: add-properties(
|
230
|
+
$base-collection,
|
231
|
+
"b, strong",
|
232
|
+
(
|
233
|
+
font-weight: bolder
|
234
|
+
),
|
235
|
+
true
|
236
|
+
);
|
237
|
+
|
238
|
+
/**
|
239
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
240
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
241
|
+
*/
|
242
|
+
|
243
|
+
$base-collection: add-properties(
|
244
|
+
$base-collection,
|
245
|
+
"code, kbd, samp, pre",
|
246
|
+
(
|
247
|
+
font-family: "#{$monospace-family}, monospace" /* 1 */,
|
248
|
+
font-size: 1em /* 2 */
|
249
|
+
)
|
250
|
+
);
|
251
|
+
|
252
|
+
/**
|
253
|
+
* Add the correct font style in Android 4.3-.
|
254
|
+
*/
|
255
|
+
|
256
|
+
$base-collection: add-properties(
|
257
|
+
$base-collection,
|
258
|
+
"dfn",
|
259
|
+
(
|
260
|
+
font-style: italic
|
261
|
+
)
|
262
|
+
);
|
263
|
+
|
264
|
+
/**
|
265
|
+
* Add the correct background and color in IE 9-.
|
266
|
+
*/
|
267
|
+
|
268
|
+
$base-collection: add-properties(
|
269
|
+
$base-collection,
|
270
|
+
"mark",
|
271
|
+
(
|
272
|
+
background: $yellow,
|
273
|
+
color: $color-body
|
274
|
+
)
|
275
|
+
);
|
276
|
+
|
277
|
+
/**
|
278
|
+
* Add the correct font size in all browsers.
|
279
|
+
*/
|
280
|
+
|
281
|
+
$base-collection: add-properties(
|
282
|
+
$base-collection,
|
283
|
+
"small",
|
284
|
+
(
|
285
|
+
font-size: 80%
|
286
|
+
)
|
287
|
+
);
|
288
|
+
|
289
|
+
/**
|
290
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
291
|
+
* all browsers.
|
292
|
+
*/
|
293
|
+
|
294
|
+
$base-collection: add-properties(
|
295
|
+
$base-collection,
|
296
|
+
"sub, sup",
|
297
|
+
(
|
298
|
+
font-size: 75%,
|
299
|
+
line-height: 0,
|
300
|
+
position: relative,
|
301
|
+
vertical-align: baseline
|
302
|
+
)
|
303
|
+
);
|
304
|
+
|
305
|
+
$base-collection: add-properties(
|
306
|
+
$base-collection,
|
307
|
+
"sub",
|
308
|
+
(
|
309
|
+
bottom: -.25em
|
310
|
+
)
|
311
|
+
);
|
312
|
+
|
313
|
+
$base-collection: add-properties(
|
314
|
+
$base-collection,
|
315
|
+
"sup",
|
316
|
+
(
|
317
|
+
top: -.5em
|
318
|
+
)
|
319
|
+
);
|
320
|
+
|
321
|
+
/* Embedded content
|
322
|
+
========================================================================== */
|
323
|
+
|
324
|
+
/**
|
325
|
+
* Add the correct display in IE 9-.
|
326
|
+
*/
|
327
|
+
|
328
|
+
$base-collection: add-properties(
|
329
|
+
$base-collection,
|
330
|
+
"audio, video",
|
331
|
+
(
|
332
|
+
display: inline-block
|
333
|
+
)
|
334
|
+
);
|
335
|
+
|
336
|
+
/**
|
337
|
+
* Add the correct display in iOS 4-7.
|
338
|
+
*/
|
339
|
+
|
340
|
+
$base-collection: add-properties(
|
341
|
+
$base-collection,
|
342
|
+
"audio:not([controls])",
|
343
|
+
(
|
344
|
+
display: none,
|
345
|
+
height: 0
|
346
|
+
)
|
347
|
+
);
|
348
|
+
|
349
|
+
/**
|
350
|
+
* Remove the border on images inside links in IE 10-.
|
351
|
+
*/
|
352
|
+
|
353
|
+
$base-collection: add-properties(
|
354
|
+
$base-collection,
|
355
|
+
"img",
|
356
|
+
(
|
357
|
+
border-style: none
|
358
|
+
)
|
359
|
+
);
|
360
|
+
|
361
|
+
/**
|
362
|
+
* Hide the overflow in IE.
|
363
|
+
*/
|
364
|
+
|
365
|
+
$base-collection: add-properties(
|
366
|
+
$base-collection,
|
367
|
+
"svg:not(:root)",
|
368
|
+
(
|
369
|
+
overflow: hidden
|
370
|
+
)
|
371
|
+
);
|
372
|
+
|
373
|
+
/* Forms
|
374
|
+
========================================================================== */
|
375
|
+
|
376
|
+
/**
|
377
|
+
* 1. Change the font styles in all browsers (opinionated).
|
378
|
+
* 2. Remove the margin in Firefox and Safari.
|
379
|
+
*/
|
380
|
+
|
381
|
+
$base-collection: add-properties(
|
382
|
+
$base-collection,
|
383
|
+
"button, input, optgroup, select, textarea",
|
384
|
+
(
|
385
|
+
font-family: get-font-family($default-font), /* 1 */
|
386
|
+
font-size: 100%, /* 1 */
|
387
|
+
line-height: to-unit($default-line-height, $line-height-unit), /* 1 */
|
388
|
+
margin: 0 /* 2 */
|
389
|
+
)
|
390
|
+
);
|
391
|
+
|
392
|
+
/**
|
393
|
+
* Show the overflow in IE.
|
394
|
+
* 1. Show the overflow in Edge.
|
395
|
+
*/
|
396
|
+
|
397
|
+
$base-collection: add-properties(
|
398
|
+
$base-collection,
|
399
|
+
"button, input",
|
400
|
+
(
|
401
|
+
overflow: visible
|
402
|
+
)
|
403
|
+
);
|
404
|
+
|
405
|
+
/**
|
406
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
407
|
+
* 1. Remove the inheritance of text transform on select element in Firefox.
|
408
|
+
*/
|
409
|
+
|
410
|
+
$base-collection: add-properties(
|
411
|
+
$base-collection,
|
412
|
+
"button, select /* 1 */",
|
413
|
+
(
|
414
|
+
text-transform: none
|
415
|
+
)
|
416
|
+
);
|
417
|
+
|
418
|
+
|
419
|
+
/**
|
420
|
+
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
421
|
+
* controls in Android 4.
|
422
|
+
* 2. Correct the inability to style clickable types in iOS and Safari.
|
423
|
+
*/
|
424
|
+
|
425
|
+
$base-collection: add-properties(
|
426
|
+
$base-collection,
|
427
|
+
"button, html [type=\"button\"], /* 1 */ [type=\"reset\"], [type=\"submit\"]",
|
428
|
+
(
|
429
|
+
-webkit-appearance: button /* 2 */
|
430
|
+
)
|
431
|
+
);
|
432
|
+
|
433
|
+
|
434
|
+
/**
|
435
|
+
* Remove the inner border and padding in Firefox.
|
436
|
+
*/
|
437
|
+
|
438
|
+
$base-collection: add-properties(
|
439
|
+
$base-collection,
|
440
|
+
'button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner',
|
441
|
+
(
|
442
|
+
border-style: none,
|
443
|
+
padding: 0
|
444
|
+
)
|
445
|
+
);
|
446
|
+
|
447
|
+
/**
|
448
|
+
* Restore the focus styles unset by the previous rule.
|
449
|
+
*/
|
450
|
+
|
451
|
+
$base-collection: add-properties(
|
452
|
+
$base-collection,
|
453
|
+
'button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring',
|
454
|
+
(
|
455
|
+
outline: 1px dotted ButtonText
|
456
|
+
)
|
457
|
+
);
|
458
|
+
|
459
|
+
/**
|
460
|
+
* Change the border, margin, and padding in all browsers (opinionated).
|
461
|
+
*/
|
462
|
+
|
463
|
+
$base-collection: add-properties(
|
464
|
+
$base-collection,
|
465
|
+
"fieldset",
|
466
|
+
(
|
467
|
+
border: 1px solid $silver,
|
468
|
+
margin: 0 2px,
|
469
|
+
padding: .35em .625em .75em
|
470
|
+
)
|
471
|
+
);
|
472
|
+
|
473
|
+
/**
|
474
|
+
* 1. Correct the text wrapping in Edge and IE.
|
475
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
476
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
477
|
+
* `fieldset` elements in all browsers.
|
478
|
+
*/
|
479
|
+
|
480
|
+
$base-collection: add-properties(
|
481
|
+
$base-collection,
|
482
|
+
"legend",
|
483
|
+
(
|
484
|
+
box-sizing: border-box, /* 1 */
|
485
|
+
color: inherit, /* 2 */
|
486
|
+
display: table, /* 1 */
|
487
|
+
max-width: 100%, /* 1 */
|
488
|
+
padding: 0, /* 3 */
|
489
|
+
white-space: normal /* 1 */
|
490
|
+
)
|
491
|
+
);
|
492
|
+
|
493
|
+
/**
|
494
|
+
* 1. Add the correct display in IE 9-.
|
495
|
+
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
496
|
+
*/
|
497
|
+
|
498
|
+
$base-collection: add-properties(
|
499
|
+
$base-collection,
|
500
|
+
"progress",
|
501
|
+
(
|
502
|
+
display: inline-block, /* 1 */
|
503
|
+
vertical-align: baseline, /* 2 */
|
504
|
+
)
|
505
|
+
);
|
506
|
+
|
507
|
+
/**
|
508
|
+
* Remove the default vertical scrollbar in IE.
|
509
|
+
*/
|
510
|
+
|
511
|
+
$base-collection: add-properties(
|
512
|
+
$base-collection,
|
513
|
+
"textarea",
|
514
|
+
(
|
515
|
+
overflow: auto
|
516
|
+
)
|
517
|
+
);
|
518
|
+
|
519
|
+
/**
|
520
|
+
* 1. Add the correct box sizing in IE 10-.
|
521
|
+
* 2. Remove the padding in IE 10-.
|
522
|
+
*/
|
523
|
+
|
524
|
+
$base-collection: add-properties(
|
525
|
+
$base-collection,
|
526
|
+
'[type="checkbox"], [type="radio"]',
|
527
|
+
(
|
528
|
+
box-sizing: border-box, /* 1 */
|
529
|
+
padding: 0 /* 2 */
|
530
|
+
)
|
531
|
+
);
|
532
|
+
|
533
|
+
/**
|
534
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
535
|
+
*/
|
536
|
+
|
537
|
+
$base-collection: add-properties(
|
538
|
+
$base-collection,
|
539
|
+
'[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button',
|
540
|
+
(
|
541
|
+
height: auto
|
542
|
+
)
|
543
|
+
);
|
544
|
+
|
545
|
+
|
546
|
+
/**
|
547
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
548
|
+
* 2. Correct the outline style in Safari.
|
549
|
+
*/
|
550
|
+
|
551
|
+
$base-collection: add-properties(
|
552
|
+
$base-collection,
|
553
|
+
'[type="search"]',
|
554
|
+
(
|
555
|
+
-webkit-appearance: textfield, /* 1 */
|
556
|
+
outline-offset: -2px /* 2 */
|
557
|
+
)
|
558
|
+
);
|
559
|
+
|
560
|
+
|
561
|
+
/**
|
562
|
+
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
|
563
|
+
*/
|
564
|
+
|
565
|
+
$base-collection: add-properties(
|
566
|
+
$base-collection,
|
567
|
+
'[type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration',
|
568
|
+
(
|
569
|
+
-webkit-appearance: none
|
570
|
+
)
|
571
|
+
);
|
572
|
+
|
573
|
+
/**
|
574
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
575
|
+
* 2. Change font properties to `inherit` in Safari.
|
576
|
+
*/
|
577
|
+
|
578
|
+
$base-collection: add-properties(
|
579
|
+
$base-collection,
|
580
|
+
"::-webkit-file-upload-button",
|
581
|
+
(
|
582
|
+
-webkit-appearance: button, /* 1 */
|
583
|
+
font: inherit /* 2 */
|
584
|
+
)
|
585
|
+
);
|
586
|
+
|
587
|
+
|
588
|
+
/* Interactive
|
589
|
+
========================================================================== */
|
590
|
+
|
591
|
+
/*
|
592
|
+
* Add the correct display in IE 9-.
|
593
|
+
* 1. Add the correct display in Edge, IE, and Firefox.
|
594
|
+
*/
|
595
|
+
|
596
|
+
$base-collection: add-properties(
|
597
|
+
$base-collection,
|
598
|
+
"article, aside, footer, header, nav, section, figcaption, figure, main, details, /* 1 */ menu",
|
599
|
+
(
|
600
|
+
display: block
|
601
|
+
)
|
602
|
+
);
|
603
|
+
|
604
|
+
/*
|
605
|
+
* Add the correct display in all browsers.
|
606
|
+
*/
|
607
|
+
|
608
|
+
$base-collection: add-properties(
|
609
|
+
$base-collection,
|
610
|
+
"summary",
|
611
|
+
(
|
612
|
+
display: list-item
|
613
|
+
)
|
614
|
+
);
|
615
|
+
|
616
|
+
/* Scripting
|
617
|
+
========================================================================== */
|
618
|
+
|
619
|
+
/**
|
620
|
+
* Add the correct display in IE 9-.
|
621
|
+
*/
|
622
|
+
|
623
|
+
$base-collection: add-properties(
|
624
|
+
$base-collection,
|
625
|
+
"canvas",
|
626
|
+
(
|
627
|
+
display: inline-block
|
628
|
+
)
|
629
|
+
);
|
630
|
+
|
631
|
+
/**
|
632
|
+
* Add the correct display in IE.
|
633
|
+
*/
|
634
|
+
|
635
|
+
$base-collection: add-properties(
|
636
|
+
$base-collection,
|
637
|
+
"template",
|
638
|
+
(
|
639
|
+
display: none
|
640
|
+
)
|
641
|
+
);
|
642
|
+
|
643
|
+
/* Hidden
|
644
|
+
========================================================================== */
|
645
|
+
|
646
|
+
/**
|
647
|
+
* Add the correct display in IE 10-.
|
648
|
+
*/
|
649
|
+
|
650
|
+
$base-collection: add-properties(
|
651
|
+
$base-collection,
|
652
|
+
"[hidden]",
|
653
|
+
(
|
654
|
+
display: none
|
655
|
+
)
|
656
|
+
);
|
657
|
+
|
658
|
+
/* Tables
|
659
|
+
========================================================================== */
|
660
|
+
|
661
|
+
/*
|
662
|
+
* Remove most spacing between table cells.
|
663
|
+
*/
|
664
|
+
|
665
|
+
$base-collection: add-properties(
|
666
|
+
$base-collection,
|
667
|
+
"table",
|
668
|
+
(
|
669
|
+
border-collapse: collapse,
|
670
|
+
border-spacing: 0
|
671
|
+
)
|
672
|
+
);
|
673
|
+
|
674
|
+
$base-collection: add-properties(
|
675
|
+
$base-collection,
|
676
|
+
"td, th",
|
677
|
+
(
|
678
|
+
padding: 0
|
679
|
+
)
|
680
|
+
);
|
681
|
+
|
682
|
+
/* More Piecss base styles
|
683
|
+
========================================================================== */
|
684
|
+
|
685
|
+
/*
|
686
|
+
* Set consistent quote types.
|
687
|
+
*/
|
688
|
+
|
689
|
+
$base-collection: add-properties(
|
690
|
+
$base-collection,
|
691
|
+
"q",
|
692
|
+
(
|
693
|
+
quotes: "\201C" "\201D" "\2018" "\2019"
|
694
|
+
)
|
695
|
+
);
|
696
|
+
|
697
|
+
/*
|
698
|
+
* Apply a bottom margin of one line-height to any element in this comma
|
699
|
+
* separated list.
|
700
|
+
*/
|
701
|
+
|
702
|
+
@if length($single-direction-elements)>0 {
|
703
|
+
$base-collection: add-properties(
|
704
|
+
$base-collection,
|
705
|
+
"#{implode($single-direction-elements, ", ")}",
|
706
|
+
(
|
707
|
+
margin: 0 0 $default-line-height
|
708
|
+
)
|
709
|
+
);
|
710
|
+
}
|
711
|
+
|
712
|
+
/**
|
713
|
+
* Reset margin.
|
714
|
+
*/
|
715
|
+
|
716
|
+
@if length($reset-margin)>0 {
|
717
|
+
$base-collection: add-properties(
|
718
|
+
$base-collection,
|
719
|
+
"#{implode($reset-margin, ", ")}",
|
720
|
+
(
|
721
|
+
margin: 0
|
722
|
+
)
|
723
|
+
);
|
724
|
+
}
|
725
|
+
|
726
|
+
/**
|
727
|
+
* Reset box-model
|
728
|
+
*/
|
729
|
+
|
730
|
+
@if length($reset-box-model)>0 {
|
731
|
+
$base-collection: add-properties(
|
732
|
+
$base-collection,
|
733
|
+
"#{implode($reset-box-model, ", ")}",
|
734
|
+
(
|
735
|
+
box-sizing: border-box
|
736
|
+
)
|
737
|
+
);
|
738
|
+
}
|
739
|
+
|
740
|
+
/*
|
741
|
+
* Full typographic reset.
|
742
|
+
*/
|
743
|
+
|
744
|
+
@if length($reset-font)>0 {
|
745
|
+
$base-collection: add-properties(
|
746
|
+
$base-collection,
|
747
|
+
"#{implode($reset-font, ", ")}",
|
748
|
+
(
|
749
|
+
font-style: inherit,
|
750
|
+
font-variant: inherit,
|
751
|
+
font-weight: inherit,
|
752
|
+
font-size: 1em,
|
753
|
+
line-height: 100%,
|
754
|
+
font-family: get-font-family($default-font)
|
755
|
+
)
|
756
|
+
);
|
757
|
+
}
|
758
|
+
|
759
|
+
/*
|
760
|
+
* Reset font-weights.
|
761
|
+
*/
|
762
|
+
|
763
|
+
@if length($reset-font-weight-to-bold)>0 {
|
764
|
+
$base-collection: add-properties(
|
765
|
+
$base-collection,
|
766
|
+
"#{$reset-font-weight-to-bold}",
|
767
|
+
(
|
768
|
+
font-weight: bold
|
769
|
+
)
|
770
|
+
);
|
771
|
+
}
|
772
|
+
|
773
|
+
@if length($reset-font-weight-to-italic)>0 {
|
774
|
+
$base-collection: add-properties(
|
775
|
+
$base-collection,
|
776
|
+
"#{implode($reset-font-weight-to-italic, ", ")}",
|
777
|
+
(
|
778
|
+
font-weight: italic
|
779
|
+
)
|
780
|
+
);
|
781
|
+
|
782
|
+
}
|
783
|
+
|
784
|
+
@if length($reset-font-weight-to-regular)>0 {
|
785
|
+
$base-collection: add-properties(
|
786
|
+
$base-collection,
|
787
|
+
"#{implode($reset-font-weight-to-regular, ", ")}",
|
788
|
+
(
|
789
|
+
font-weight: regular
|
790
|
+
)
|
791
|
+
);
|
792
|
+
}
|
793
|
+
|
794
|
+
/*
|
795
|
+
* Set anchor colours.
|
796
|
+
*/
|
797
|
+
|
798
|
+
$base-collection: add-properties(
|
799
|
+
$base-collection,
|
800
|
+
"a",
|
801
|
+
(
|
802
|
+
color: $color-anchor
|
803
|
+
)
|
804
|
+
);
|
805
|
+
$base-collection: add-properties(
|
806
|
+
$base-collection,
|
807
|
+
"a:visited",
|
808
|
+
(
|
809
|
+
color: $color-anchor--visited
|
810
|
+
)
|
811
|
+
);
|
812
|
+
$base-collection: add-properties(
|
813
|
+
$base-collection,
|
814
|
+
"a:active",
|
815
|
+
(
|
816
|
+
color: $color-anchor--active
|
817
|
+
)
|
818
|
+
);
|
819
|
+
$base-collection: add-properties(
|
820
|
+
$base-collection,
|
821
|
+
"a:hover",
|
822
|
+
(
|
823
|
+
color: $color-anchor--hover
|
824
|
+
)
|
825
|
+
);
|
826
|
+
|
827
|
+
/**
|
828
|
+
* Override the fieldset settings above wit more 'Piecss' like behaviour.
|
829
|
+
*/
|
830
|
+
|
831
|
+
$base-collection: add-properties(
|
832
|
+
$base-collection,
|
833
|
+
"fieldset",
|
834
|
+
(
|
835
|
+
border: 1px solid $silver,
|
836
|
+
margin: 0 rhythm(.5),
|
837
|
+
padding: rhythm(.5) rhythm(1)
|
838
|
+
)
|
839
|
+
);
|
840
|
+
|
841
|
+
/**
|
842
|
+
* Override the fieldset settings above wit more 'Piecss' like behaviour.
|
843
|
+
*/
|
844
|
+
|
845
|
+
$base-collection: add-properties(
|
846
|
+
$base-collection,
|
847
|
+
"h1",
|
848
|
+
(
|
849
|
+
font-size: to-unit(32px),
|
850
|
+
margin: rhythm(1) 0,
|
851
|
+
)
|
852
|
+
);
|
853
|
+
@if to-unit(line-height(32px, 1.2), $line-height-unit, 32px) != to-unit($default-line-height, $line-height-unit) {
|
854
|
+
$base-collection: add-properties(
|
855
|
+
$base-collection,
|
856
|
+
"h1",
|
857
|
+
(
|
858
|
+
line-height: to-unit(line-height(32px, 1.2), $line-height-unit, 32px)
|
859
|
+
)
|
860
|
+
);
|
861
|
+
}
|