piecss 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/sass/piecss/_behavior.css +432 -1
  3. data/sass/piecss/_behavior.css.map +2 -2
  4. data/sass/piecss/_behavior.scss +10 -0
  5. data/sass/piecss/_utilities.scss +1 -1
  6. data/sass/piecss/behavior/base/_base.scss +3 -568
  7. data/sass/piecss/behavior/base/_collection.scss +861 -0
  8. data/sass/piecss/behavior/base/_settings.scss +38 -367
  9. data/sass/piecss/behavior/button/_button.scss +1 -1
  10. data/sass/piecss/behavior/form/_form.scss +1 -1
  11. data/sass/piecss/settings/_breakpoint.css +70 -0
  12. data/sass/piecss/settings/_colour.css +2 -0
  13. data/sass/piecss/settings/_colour.css.map +7 -0
  14. data/sass/piecss/settings/_colour.scss +2 -4
  15. data/sass/piecss/settings/_constants.css +2 -0
  16. data/sass/piecss/settings/_constants.css.map +7 -0
  17. data/sass/piecss/settings/_fallback.css +2 -0
  18. data/sass/piecss/settings/_fallback.css.map +7 -0
  19. data/sass/piecss/settings/_font.css +2 -0
  20. data/sass/piecss/settings/_font.css.map +7 -0
  21. data/sass/piecss/settings/_layout.css +60 -0
  22. data/sass/piecss/settings/_miscellaneous.css +2 -0
  23. data/sass/piecss/settings/_miscellaneous.css.map +7 -0
  24. data/sass/piecss/settings/_rhythm.css +2 -0
  25. data/sass/piecss/settings/_rhythm.css.map +7 -0
  26. data/sass/piecss/settings/_typography.css +2 -0
  27. data/sass/piecss/settings/_typography.css.map +7 -0
  28. data/sass/piecss/settings/_unit.css +2 -0
  29. data/sass/piecss/settings/_unit.css.map +7 -0
  30. data/sass/piecss/settings/_unit.scss +1 -1
  31. data/sass/piecss/utilities/_breakpoint.css +2 -0
  32. data/sass/piecss/utilities/_breakpoint.css.map +7 -0
  33. data/sass/piecss/utilities/_cache.css +2 -0
  34. data/sass/piecss/utilities/_cache.css.map +7 -0
  35. data/sass/piecss/utilities/_collection.scss +192 -0
  36. data/sass/piecss/utilities/_colour.css +2 -0
  37. data/sass/piecss/utilities/_colour.css.map +7 -0
  38. data/sass/piecss/utilities/_element.css +2 -0
  39. data/sass/piecss/utilities/_element.css.map +7 -0
  40. data/sass/piecss/utilities/_image.css +2 -0
  41. data/sass/piecss/utilities/_image.css.map +7 -0
  42. data/sass/piecss/utilities/_layout.css +2 -0
  43. data/sass/piecss/utilities/_layout.css.map +7 -0
  44. data/sass/piecss/utilities/_list.css +2 -0
  45. data/sass/piecss/utilities/_list.css.map +7 -0
  46. data/sass/piecss/utilities/_miscellaneous.css +2 -0
  47. data/sass/piecss/utilities/_miscellaneous.css.map +7 -0
  48. data/sass/piecss/utilities/_rhythm.css +2 -0
  49. data/sass/piecss/utilities/_rhythm.css.map +7 -0
  50. data/sass/piecss/utilities/_side.css +2 -0
  51. data/sass/piecss/utilities/_side.css.map +7 -0
  52. data/sass/piecss/utilities/_string.css +2 -0
  53. data/sass/piecss/utilities/_string.css.map +7 -0
  54. data/sass/piecss/utilities/_svg.css +2 -0
  55. data/sass/piecss/utilities/_svg.css.map +7 -0
  56. data/sass/piecss/utilities/_typography.css +2 -0
  57. data/sass/piecss/utilities/_typography.css.map +7 -0
  58. data/sass/piecss/utilities/_typography.scss +16 -16
  59. data/sass/piecss/utilities/_unit.css +2 -0
  60. data/sass/piecss/utilities/_unit.css.map +7 -0
  61. data/sass/piecss/utilities/_unit.scss +10 -7
  62. data/templates/project/examples.html +370 -218
  63. metadata +49 -3
  64. data/sass/piecss/behavior/base/_normalize.scss +0 -463
  65. data/sass/piecss/utilities/_element.scss +0 -180
@@ -1,572 +1,7 @@
1
1
  // Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
2
2
 
3
+ // @import "normalize";
3
4
  @import "settings";
5
+ @import "collection";
4
6
 
5
- /*
6
- * A large part of the behavior below is based on Normalize by Nicholas Gallager.
7
- * The difference is that the property values are based on the project settings.
8
- * The resulting code is a preset rather than a reset.
9
- * Therefor properties do not need to be set again with actual values.
10
- *
11
- * For more information on Normalize, please visit git.io/normalize
12
- */
13
-
14
-
15
- /*
16
- * 1. Apply a natural box layout model to all elements
17
- * 2. Remove margins from all elements
18
- * 3. Experimentally align all elements to bottom
19
- */
20
-
21
- *,
22
- *:before,
23
- *:after {
24
- @if $reset-box-model {
25
- box-sizing: border-box; /* 1 */
26
- margin: 0; /* 2 */
27
- vertical-align: bottom;
28
- }
29
- }
30
-
31
-
32
- /*
33
- * 1. Set base font (family, size, line-height) for conversions to rem and/or em.
34
- * 2. Set default font family to sans-serif.
35
- * 3. Prevent iOS text size adjust after orientation change, without disabling
36
- * user zoom.
37
- * 4. Set background color.
38
- * 5. Set body color.
39
- */
40
-
41
- html {
42
-
43
- $font-style: extract-type-style($default-font);
44
- $font-variant: extract-type-variant($default-font);
45
- $font-weight: extract-type-weight($default-font);
46
- $font-family: extract-type-family($default-font);
47
-
48
- $font-size: to-unit($default-font-size, 1%, $base-font-size);
49
- $line-height: to-unit($default-line-height, $line-height-unit);
50
-
51
- font: #{$font-style} #{$font-variant} #{$font-weight} #{$font-size}/#{$line-height} #{$font-family}; /* 1, 2 */
52
- color: $color-body; /* 5 */
53
-
54
- text-size-adjust: 100%; /* 3 */
55
- width: 100%; /* 3 */
56
-
57
- background: $color-background; /* 4 */
58
- }
59
-
60
- /*
61
- * Remove default margin.
62
- */
63
-
64
- #{implode($reset-margin ", ")} {
65
- margin: 0;
66
- }
67
-
68
- /* HTML5 display definitions
69
- ========================================================================== */
70
-
71
- /*
72
- * Correct `block` display not defined for any HTML5 element in IE 8/9.
73
- * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
74
- * Correct `block` display not defined for `main` in IE 11.
75
- */
76
-
77
- article,
78
- aside,
79
- details,
80
- figcaption,
81
- figure,
82
- footer,
83
- header,
84
- hgroup,
85
- main,
86
- nav,
87
- section,
88
- summary {
89
- @if $normalize-block-display {
90
- display: block;
91
- }
92
- }
93
-
94
- /*
95
- * 1. Correct `inline-block` display not defined in IE 8/9.
96
- * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
97
- */
98
-
99
- audio,
100
- canvas,
101
- progress,
102
- video {
103
- display: inline-block; /* 1 */
104
- vertical-align: baseline; /* 2 */
105
- }
106
-
107
- /*
108
- * Prevent modern browsers from displaying `audio` without controls.
109
- * Remove excess height in iOS 5 devices.
110
- */
111
-
112
- audio:not([controls]) {
113
- display: none;
114
- height: 0;
115
- }
116
-
117
- /*
118
- * Address `[hidden]` styling not present in IE 8/9/10.
119
- * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
120
- */
121
-
122
- [hidden],
123
- template {
124
- display: none;
125
- }
126
-
127
- /* Links
128
- ========================================================================== */
129
-
130
- /*
131
- * 1. Remove the gray background color from active links in IE 10.
132
- * 2. Set default anchor colour.
133
- */
134
-
135
- a {
136
- @if $normalize-anchor {
137
- background: transparent; /* 1 */
138
- }
139
- color: $color-anchor; /* 2 */
140
- &:visited {
141
- color: $color-anchor--visited; /* 2 */
142
- }
143
- &:active {
144
- color: $color-anchor--active; /* 2 */
145
- }
146
- &:hover {
147
- color: $color-anchor--hover; /* 2 */
148
- }
149
- }
150
-
151
- /*
152
- * Improve readability when focused and also mouse hovered in all browsers.
153
- */
154
-
155
- a:active,
156
- a:hover {
157
- @if $normalize-anchor {
158
- outline: 0;
159
- }
160
- }
161
-
162
- /* Text-level semantics
163
- ========================================================================== */
164
-
165
- /*
166
- * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
167
- */
168
-
169
- abbr[title] {
170
- @if $normalize-abbr {
171
- border-bottom: 1px dotted;
172
- }
173
- }
174
-
175
- /*
176
- * Address variable `h1` font-size and margin within `section` and `article`
177
- * contexts in Firefox 4+, Safari, and Chrome.
178
- */
179
-
180
- h1 {
181
- @if $normalize-h1 and index($reset-font, "h1")==0 {
182
- font-size: $h1-font-size;
183
- line-height: $h1-line-height;
184
- }
185
- }
186
-
187
- /*
188
- * Reset or normalize font-weights.
189
- */
190
-
191
- @if length($reset-font-weight-to-bold)>0 {
192
- #{implode($reset-font-weight-to-bold, ", ")} {
193
- font-weight: bold;
194
- }
195
- }
196
-
197
- @if length($reset-font-weight-to-italic)>0 {
198
- #{implode($reset-font-weight-to-italic, ", ")} {
199
- font-weight: italic;
200
- }
201
- }
202
-
203
- @if length($reset-font-weight-to-regular)>0 {
204
- #{implode($reset-font-weight-to-regular, ", ")} {
205
- font-weight: regular;
206
- }
207
- }
208
-
209
- /*
210
- * Full typographic reset
211
- */
212
-
213
- @if length($reset-font)>0 {
214
- #{implode($reset-font ", ")} {
215
- font: inherit;
216
- }
217
- }
218
-
219
- /*
220
- * Address styling not present in IE 8/9.
221
- */
222
-
223
- mark {
224
- @if $normalize-mark {
225
- background: $mark-background;
226
- color: $mark-color;
227
- }
228
- }
229
-
230
- /*
231
- * Address inconsistent and variable font size in all browsers.
232
- */
233
-
234
- small {
235
- @if $normalize-small {
236
- font-size: $small-font-size;
237
- }
238
- }
239
-
240
- /*
241
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
242
- */
243
-
244
- sub,
245
- sup {
246
- @if $normalize-sup-sub {
247
- font-size: $sup-sub-font-size;
248
- line-height: 0;
249
- position: relative;
250
- vertical-align: baseline;
251
- }
252
- }
253
-
254
- sup {
255
- @if $normalize-sup-sub {
256
- top: $sup-offset-top;
257
- }
258
- }
259
-
260
- sub {
261
- @if $normalize-sup-sub {
262
- bottom: $sub-offset-bottom;
263
- }
264
- }
265
-
266
- /* Embedded content
267
- ========================================================================== */
268
-
269
- /*
270
- * Remove border when inside `a` element in IE 8/9/10.
271
- */
272
-
273
- img {
274
- @if $normalize-img-border {
275
- border: 0;
276
- }
277
- }
278
-
279
- /*
280
- * Correct overflow not hidden in IE 9/10/11.
281
- */
282
-
283
- svg:not(:root) {
284
- @if $normalize-svg {
285
- overflow: hidden;
286
- }
287
- }
288
-
289
- /* Grouping content
290
- ========================================================================== */
291
-
292
- /*
293
- * Address margin not present in IE 8/9 and Safari.
294
- */
295
-
296
- figure {
297
- @if $normalize-figure-margin {
298
- margin: $figure-margin;
299
- }
300
- }
301
-
302
- /*
303
- * Address differences between Firefox and other browsers.
304
- */
305
-
306
- hr {
307
- @if $normalize-horizontal-rule {
308
- box-sizing: content-box;
309
- height: 0;
310
- }
311
- }
312
-
313
- /*
314
- * Contain overflow in all browsers.
315
- */
316
-
317
- pre {
318
- white-space: pre-wrap;
319
- @if $normalize-pre-overflow {
320
- overflow: auto;
321
- }
322
- }
323
-
324
- /*
325
- * Address odd `em`-unit font size rendering in all browsers.
326
- */
327
-
328
- code,
329
- kbd,
330
- pre,
331
- samp {
332
- @if $reset-monospace-elements {
333
- font-family: $monospace-elements-font-family;
334
- }
335
- @if $normalize-monospace-elements {
336
- font-size: $monospace-elements-font-size;
337
- }
338
- }
339
-
340
-
341
- /* Forms
342
- ========================================================================== */
343
-
344
- /*
345
- * Known limitation: by default, Chrome and Safari on OS X allow very limited
346
- * styling of `select`, unless a `border` property is set.
347
- */
348
-
349
- /*
350
- * 1. Correct color not being inherited.
351
- * Known issue: affects color of disabled elements.
352
- */
353
-
354
- button,
355
- input,
356
- optgroup,
357
- select,
358
- textarea {
359
- @if $normalize-form-elements {
360
- color: inherit; /* 1 */
361
- }
362
- }
363
-
364
- /*
365
- * Address `overflow` set to `hidden` in IE 8/9/10/11.
366
- */
367
-
368
- button {
369
- @if $normalize-form-elements {
370
- overflow: visible;
371
- }
372
- }
373
-
374
- /*
375
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
376
- * All other form control elements do not inherit `text-transform` values.
377
- * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
378
- * Correct `select` style inheritance in Firefox.
379
- */
380
-
381
- button,
382
- select {
383
- @if $normalize-form-elements {
384
- text-transform: none;
385
- }
386
- }
387
-
388
- /*
389
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
390
- * and `video` controls.
391
- * 2. Correct inability to style clickable `input` types in iOS.
392
- * 3. Improve usability and consistency of cursor style between image-type
393
- * `input` and others.
394
- */
395
-
396
- button,
397
- html input[type="button"], /* 1 */
398
- input[type="reset"],
399
- input[type="submit"] {
400
- @if $normalize-form-elements {
401
- appearance: button; /* 2 */
402
- cursor: pointer; /* 3 */
403
- }
404
- }
405
-
406
- /*
407
- * Re-set default cursor for disabled elements.
408
- */
409
-
410
- button[disabled],
411
- html input[disabled] {
412
- @if $normalize-form-elements {
413
- cursor: default;
414
- }
415
- }
416
-
417
- /*
418
- * Remove inner padding and border in Firefox 4+.
419
- */
420
-
421
- button::-moz-focus-inner,
422
- input::-moz-focus-inner {
423
- @if $normalize-form-elements {
424
- border: 0;
425
- padding: 0;
426
- }
427
- }
428
-
429
- /*
430
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
431
- * the UA stylesheet.
432
- */
433
-
434
- input {
435
- @if $normalize-form-elements {
436
- line-height: normal;
437
- }
438
- }
439
-
440
- /*
441
- * It's recommended that you don't attempt to style these elements.
442
- * Firefox's implementation doesn't respect box-sizing, padding, or width.
443
- *
444
- * 1. Address box sizing set to `content-box` in IE 8/9/10.
445
- * 2. Remove excess padding in IE 8/9/10.
446
- * 3. Counter reset bottom alignment in box-model reset.
447
- */
448
-
449
- input[type="checkbox"],
450
- input[type="radio"] {
451
- @if $normalize-form-elements {
452
- box-sizing: border-box; /* 1 */
453
- padding: 0; /* 2 */
454
- vertical-align: baseline; /* 3 */
455
- }
456
- }
457
-
458
- /*
459
- * Fix the cursor style for Chrome's increment/decrement buttons. For certain
460
- * `font-size` values of the `input`, it causes the cursor style of the
461
- * decrement button to change from `default` to `text`.
462
- */
463
-
464
- input[type="number"]::-webkit-inner-spin-button,
465
- input[type="number"]::-webkit-outer-spin-button {
466
- @if $normalize-form-elements {
467
- height: auto;
468
- }
469
- }
470
-
471
- /*
472
- * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
473
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
474
- * (include `-moz` to future-proof).
475
- */
476
-
477
- input[type="search"] {
478
- @if $normalize-form-elements {
479
- appearance: textfield; /* 1 */
480
- }
481
- }
482
-
483
- /*
484
- * Remove inner padding and search cancel button in Safari and Chrome on OS X.
485
- * Safari (but not Chrome) clips the cancel button when the search input has
486
- * padding (and `textfield` appearance).
487
- */
488
-
489
- input[type="search"]::-webkit-search-cancel-button,
490
- input[type="search"]::-webkit-search-decoration {
491
- @if $normalize-form-elements {
492
- appearance: none;
493
- }
494
- }
495
-
496
- /*
497
- * Define consistent border, margin, and padding.
498
- */
499
-
500
- fieldset {
501
- @if $normalize-fieldset {
502
- border: $fieldset-border;
503
- margin: $fieldset-margin;
504
- padding: $fieldset-padding;
505
- }
506
- }
507
-
508
- /*
509
- * 1. Correct `color` not being inherited in IE 8/9/10/11.
510
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
511
- */
512
-
513
- legend {
514
- @if $normalize-legend {
515
- border: 0; /* 1 */
516
- padding: 0; /* 2 */
517
- }
518
- }
519
-
520
- /*
521
- * Remove default vertical scrollbar in IE 8/9/10/11.
522
- */
523
-
524
- textarea {
525
- @if $normalize-textarea {
526
- overflow: auto;
527
- }
528
- }
529
-
530
-
531
- /* Tables
532
- ========================================================================== */
533
-
534
- /*
535
- * Remove most spacing between table cells.
536
- */
537
-
538
- table {
539
- @if $reset-table {
540
- border-collapse: collapse;
541
- border-spacing: 0;
542
- }
543
- }
544
-
545
- td,
546
- th {
547
- @if $reset-table {
548
- padding: 0;
549
- }
550
- }
551
-
552
- /*
553
- * Set consistent quote types.
554
- */
555
-
556
- q {
557
- @if $normalize-quote-quotes
558
- {
559
- quotes: "\201C" "\201D" "\2018" "\2019";
560
- }
561
- }
562
-
563
- /*
564
- * Apply a bottom margin of one line-height to any element in this comma
565
- * separated list.
566
- */
567
-
568
- @if length($single-direction-elements)>0 {
569
- #{implode($single-direction-elements, ", ")} {
570
- margin: 0 0 $default-line-height;
571
- }
572
- }
7
+ @include get-selectors($base-collection);