piecss 0.4.0 → 0.5.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.
@@ -2,14 +2,17 @@
2
2
 
3
3
 
4
4
  ///
5
- /// The default font for your project. It is set in a $font-type list, Piecss has a collection of pre-defined font-types that can be augmented.
6
- /// A font-type is a comma separated list of font-type, font-variant, font-weight and font-family.
5
+ /// The default font for your project. It is set in a $font-type list, Piecss
6
+ /// has a collection of pre-defined font-types that can be augmented.
7
+ /// A font-type is a comma separated list of font-type, font-variant,
8
+ /// font-weight and font-family.
7
9
  ///
8
- /// @todo the comma separated list will be changed to a space separated list, and a Map (both will apply)
10
+ /// @todo the comma separated list will be changed to a space separated list,
11
+ /// and a Map (both will apply)
9
12
  ///
10
13
  /// @since 0.1
11
14
  ///
12
- /// @type {Number}
15
+ /// @type {Number} (normal normal 400 sans-serif)
13
16
  ///
14
17
 
15
18
  $default-font: $sans-serif-regular !default;
@@ -19,7 +22,7 @@ $default-font: $sans-serif-regular !default;
19
22
  ///
20
23
  /// @since 0.1
21
24
  ///
22
- /// @type {Color}
25
+ /// @type {Color} (#fff)
23
26
  ///
24
27
 
25
28
  $color-background: $white !default;
@@ -29,17 +32,17 @@ $color-background: $white !default;
29
32
  ///
30
33
  /// @since 0.1
31
34
  ///
32
- /// @type {Color}
35
+ /// @type {Color} (#000)
33
36
  ///
34
37
 
35
- $color-body: $darkslategray !default;
38
+ $color-body: $black !default;
36
39
 
37
40
  ///
38
41
  /// The primary color for UI elements.
39
42
  ///
40
43
  /// @since 0.1
41
44
  ///
42
- /// @type {Color}
45
+ /// @type {Color} (#ff8c00)
43
46
  ///
44
47
 
45
48
  $color-primary: $orange !default;
@@ -49,7 +52,7 @@ $color-primary: $orange !default;
49
52
  ///
50
53
  /// @since 0.1
51
54
  ///
52
- /// @type {Color}
55
+ /// @type {Color} (#fa8072)
53
56
  ///
54
57
 
55
58
  $color-secondary: $salmon !default;
@@ -62,7 +65,7 @@ $color-secondary: $salmon !default;
62
65
  /// @example
63
66
  /// mix($color-shadow, $color-primary, 20%);
64
67
  ///
65
- /// @type {Color}
68
+ /// @type {Color} (#000)
66
69
  ///
67
70
 
68
71
  $color-shadow: $black !default;
@@ -75,27 +78,27 @@ $color-shadow: $black !default;
75
78
  /// @example
76
79
  /// mix($color-highlight, $color-primary, 20%);
77
80
  ///
78
- /// @type {Color}
81
+ /// @type {Color} (#fff)
79
82
  ///
80
83
 
81
- $color-highlight: $black !default;
84
+ $color-highlight: $white !default;
82
85
 
83
86
  ///
84
87
  /// The default color for anchors.
85
88
  ///
86
89
  /// @since 0.1
87
90
  ///
88
- /// @type {Color}
91
+ /// @type {Color} (#fa8072)
89
92
  ///
90
93
 
91
- $color-anchor: $blue !default;
94
+ $color-anchor: $salmon !default;
92
95
 
93
96
  ///
94
97
  /// The default color for anchor hover state.
95
98
  ///
96
99
  /// @since 0.1
97
100
  ///
98
- /// @type {Color}
101
+ /// @type {Color} (#f7270f)
99
102
  ///
100
103
 
101
104
  $color-anchor--hover: darken($color-anchor, 20%) !default;
@@ -105,7 +108,7 @@ $color-anchor--hover: darken($color-anchor, 20%) !default;
105
108
  ///
106
109
  /// @since 0.1
107
110
  ///
108
- /// @type {Color}
111
+ /// @type {Color} (#fdc3bc)
109
112
  ///
110
113
 
111
114
  $color-anchor--active: lighten($color-anchor, 15%) !default;
@@ -115,7 +118,7 @@ $color-anchor--active: lighten($color-anchor, 15%) !default;
115
118
  ///
116
119
  /// @since 0.1
117
120
  ///
118
- /// @type {Color}
121
+ /// @type {Color} (#cc1b07)
119
122
  ///
120
123
 
121
124
  $color-anchor--visited: darken($color-anchor, 30%) !default;
@@ -125,21 +128,426 @@ $color-anchor--visited: darken($color-anchor, 30%) !default;
125
128
  ///
126
129
  /// @since 0.1
127
130
  ///
128
- /// @type {Bool}
131
+ /// @type {Bool} (true)
129
132
  ///
130
133
 
131
- $base-quote-quotes: true !default;
134
+ $normalize-quote-quotes: true !default;
132
135
 
133
136
  ///
134
- /// Based on an idea by [@csswizardry](https://twitter.com/csswizardry): apply a bottom margin of one rhythm height to any element in this comma separated list.
137
+ /// 1. Apply a natural box layout model to all elements
138
+ /// 2. Experimentally align all elements to bottom
135
139
  ///
136
- /// @since 0.1
140
+ /// @since 0.5
141
+ ///
142
+ /// @type {Bool} (true)
143
+ ///
144
+
145
+ $reset-box-model: true !default;
146
+
147
+ ///
148
+ /// When true:
149
+ /// * Corrects `block` display not defined for any HTML5 element in IE 8/9.
150
+ /// * Corrects `block` display not defined for `details` or `summary` in IE
151
+ /// 10/11 and Firefox.
152
+ /// * Corrects `block` display not defined for `main` in IE 11.
153
+ ///
154
+ /// @since 0.5
155
+ ///
156
+ /// @type {Bool} (true)
157
+ ///
158
+
159
+ $normalize-block-display: true !default;
160
+
161
+ ///
162
+ /// When true, address margin not present in IE 8/9 and Safari.
163
+ ///
164
+ /// @since 0.5
165
+ ///
166
+ /// @type {Bool} (true)
167
+ ///
168
+
169
+ $normalize-figure-margin: true !default;
170
+
171
+ ///
172
+ /// When $normalize-figure-margin equals true, this margin is applied to the
173
+ /// figure element.
174
+ ///
175
+ /// @since 0.5
176
+ ///
177
+ /// @type {List} (1em 40px)
178
+ ///
179
+
180
+ $figure-margin: gutter() rhythm(5) !default;
181
+
182
+ ///
183
+ /// When true, address differences between Firefox and other browsers.
184
+ ///
185
+ /// @since 0.5
186
+ ///
187
+ /// @type {Bool} (true)
188
+ ///
189
+
190
+ $normalize-horizontal-rule: true !default;
191
+
192
+ ///
193
+ /// When true, removes most spacing between table cells.
194
+ ///
195
+ /// @since 0.5
196
+ ///
197
+ /// @type {Bool} (true)
198
+ ///
199
+
200
+ $reset-table: true !default;
201
+
202
+ ///
203
+ /// When true, removes default vertical scrollbar in IE 8/9/10/11.
204
+ ///
205
+ /// @since 0.5
206
+ ///
207
+ /// @type {Bool} (true)
208
+ ///
209
+
210
+ $normalize-textarea: true !default;
211
+
212
+ ///
213
+ /// Prevent `sub` and `sup` affecting `line-height` in all browsers.
214
+ ///
215
+ /// @since 0.5
216
+ ///
217
+ /// @type {Bool} (true)
218
+ ///
219
+
220
+ $normalize-sup-sub: true !default;
221
+
222
+ ///
223
+ /// When $normalize-sup-sub equals true, sup top offset is set to this value.
224
+ ///
225
+ /// @since 0.5
226
+ ///
227
+ /// @type {Number} (-.5em)
228
+ ///
229
+
230
+ $sup-offset-top: -.5em !default;
231
+
232
+ ///
233
+ /// When $normalize-sup-sub equals true, sub bottom offset is set to this value.
234
+ ///
235
+ /// @since 0.5
236
+ ///
237
+ /// @type {Number} (-.25em)
238
+ ///
239
+
240
+ $sub-offset-bottom: -.25em !default;
241
+
242
+ ///
243
+ /// When $normalize-sup-sub equals true, sup and sub font-size is set to this
244
+ /// value.
245
+ ///
246
+ /// @since 0.5
247
+ ///
248
+ /// @type {Number} (75%)
249
+ ///
250
+
251
+ $sup-sub-font-size: 75% !default;
252
+
253
+ ///
254
+ /// When true, removes border when inside `a` element in IE 8/9/10.
255
+ ///
256
+ /// @since 0.5
257
+ ///
258
+ /// @type {Bool} (true)
259
+ ///
260
+
261
+ $normalize-img-border: true !important;
262
+
263
+ ///
264
+ /// When true, corrects overflow not hidden in IE 9/10/11.
265
+ ///
266
+ /// @since 0.5
267
+ ///
268
+ /// @type {Bool} (true)
269
+ ///
270
+
271
+ $normalize-svg: true !important;
272
+
273
+ ///
274
+ /// When true, contains overflow of pre in all browsers.
275
+ ///
276
+ /// @since 0.5
277
+ ///
278
+ /// @type {Bool} (true)
279
+ ///
280
+
281
+ $normalize-pre-overflow: true !important;
282
+
283
+ ///
284
+ /// When true, addresses odd `em`-unit font size rendering in all browsers.
285
+ ///
286
+ /// @since 0.5
287
+ ///
288
+ /// @type {Bool} (true)
289
+ ///
290
+
291
+ $normalize-monospace-elements: true !important;
292
+
293
+ ///
294
+ /// When $normalize-monospace-elements equals true, font-size is set to this
295
+ /// value.
296
+ ///
297
+ /// @since 0.5
298
+ ///
299
+ /// @type {Number} (1em)
300
+ ///
301
+
302
+ $monospace-elements-font-size: 1em !default;
303
+
304
+ ///
305
+ /// When true, presets the monospace font-size.
306
+ ///
307
+ /// @since 0.5
308
+ ///
309
+ /// @type {Bool} (true)
310
+ ///
311
+
312
+ $reset-monospace-elements: true !important;
313
+
314
+ ///
315
+ /// When $reset-monospace-elements equals true, font-family is set to this
316
+ /// value. The font-family: monospace, monospace hack fixes the inheritance and
317
+ /// scaling of font-size for preformatted text. The duplication of monospace is
318
+ /// intentional.
319
+ ///
320
+ /// @since 0.5
321
+ ///
322
+ /// @type {String} (monospace, monospace)
323
+ ///
324
+
325
+ $monospace-elements-font-family: #{$monospace-family}, #{$monospace-family} !default;
326
+
327
+ ///
328
+ /// These elements font-weight will be set to bold
329
+ ///
330
+ /// @since 0.5
331
+ ///
332
+ /// @type {List} ("strong")
333
+ ///
334
+
335
+ $reset-font-weight-to-bold: ("optgroup", "strong") !default;
336
+
337
+ ///
338
+ /// These elements font-weight will be set to italic
339
+ ///
340
+ /// @since 0.5
341
+ ///
342
+ /// @type {List} ("em", "dfn")
343
+ ///
344
+
345
+ $reset-font-weight-to-italic: ("em", "dfn") !default;
346
+
347
+ ///
348
+ /// These elements font-weight will be set to regular
349
+ ///
350
+ /// @since 0.5
351
+ ///
352
+ /// @type {List} ("i", "b")
353
+ ///
354
+
355
+ $reset-font-weight-to-regular: ("i", "b") !default;
356
+
357
+ ///
358
+ /// These elements font-size, line-height and font-weight will be reset
359
+ /// to their parent's values.
360
+ ///
361
+ /// @since 0.5
362
+ ///
363
+ /// @type {List} ((button, input, optgroup, select, textarea))
364
+ ///
365
+
366
+ $reset-font: (button, input, optgroup, select, textarea) !default;
367
+
368
+ ///
369
+ /// These elements margin will be reset to 0.
137
370
  ///
138
- /// @type {List}
371
+ /// @since 0.5
139
372
  ///
373
+ /// @type {List} ((body, button, input, optgroup, select, textarea))
374
+ ///
375
+
376
+ $reset-margin: (body, button, input, optgroup, select, textarea) !default;
140
377
 
141
- $single-direction-elements: (p, pre, table, hr, article) !default;
378
+ ///
379
+ /// When true, addresses variable `h1` font-size and margin within `section`
380
+ /// and `article` contexts in Firefox 4+, Safari, and Chrome.
381
+ ///
382
+ /// @since 0.5
383
+ ///
384
+ /// @type {Bool} (true)
385
+ ///
142
386
 
387
+ $normalize-h1: true !default;
143
388
 
389
+ ///
390
+ /// When $normalize-h1 equals true, font-size is set to this value.
391
+ ///
392
+ /// @since 0.5
393
+ ///
394
+ /// @type {Number} (2em)
395
+ ///
396
+
397
+ $h1-font-size: to-unit(32px) !default;
398
+
399
+ ///
400
+ /// When $normalize-h1-font-size equals true, font-size is set to this value.
401
+ ///
402
+ /// @since 0.5
403
+ ///
404
+ /// @type {Number} (2em)
405
+ ///
406
+
407
+ $h1-line-height: to-unit(line-height(32px, 1), $line-height-unit) !default;
408
+
409
+
410
+ ///
411
+ /// When true, addresses inconsistent and variable font size in all browsers.
412
+ ///
413
+ /// @since 0.5
414
+ ///
415
+ /// @type {Bool} (true)
416
+ ///
417
+
418
+ $normalize-small: true !default;
419
+
420
+ ///
421
+ /// When $normalize-small equals true, font-size is set to this value.
422
+ ///
423
+ /// @since 0.5
424
+ ///
425
+ /// @type {Number} (80%)
426
+ ///
427
+
428
+ $small-font-size: 80% !default;
429
+
430
+ ///
431
+ /// When true, defines consistent border, margin, and padding.
432
+ ///
433
+ /// @since 0.5
434
+ ///
435
+ /// @type {Bool} (true)
436
+ ///
437
+
438
+ $normalize-fieldset: true !default;
439
+
440
+ ///
441
+ /// When $normalize-fieldset equals true, fieldset border is set to this value.
442
+ ///
443
+ /// @since 0.5
444
+ ///
445
+ /// @type {Number} (80%)
446
+ ///
447
+
448
+ $fieldset-border: 1px solid shade(20%) !default;
449
+
450
+ ///
451
+ /// When $normalize-fieldset equals true, fieldset margin is set to this value.
452
+ ///
453
+ /// @since 0.5
454
+ ///
455
+ /// @type {Number} (80%)
456
+ ///
457
+
458
+ $fieldset-margin: 0 rhythm(.5) !default;
459
+
460
+ ///
461
+ /// When $normalize-fieldset equals true, fieldset padding is set to this value.
462
+ ///
463
+ /// @since 0.5
464
+ ///
465
+ /// @type {Number} (80%)
466
+ ///
467
+
468
+ $fieldset-padding: rhythm(.5) rhythm(1) !default;
469
+
470
+ ///
471
+ /// Address styling not present in IE 8/9.
472
+ ///
473
+ /// @since 0.5
474
+ ///
475
+ /// @type {Bool} (true)
476
+ ///
477
+
478
+ $normalize-mark: true !default;
479
+
480
+ ///
481
+ /// When $normalize-mark equals true, mark background is set to this value.
482
+ ///
483
+ /// @since 0.5
484
+ ///
485
+ /// @type {Number} (80%)
486
+ ///
487
+
488
+ $mark-background: $yellow !default;
489
+
490
+ ///
491
+ /// When $normalize-mark equals true, mark text color is set to this value.
492
+ ///
493
+ /// @since 0.5
494
+ ///
495
+ /// @type {Number} (80%)
496
+ ///
497
+
498
+ $mark-color: $color-body !default;
499
+
500
+ ///
501
+ /// Remove the gray background color from active links in IE 10.
502
+ /// Improve readability when focused and also mouse hovered in all browsers.
503
+ ///
504
+ /// @since 0.5
505
+ ///
506
+ /// @type {Bool} (true)
507
+ ///
508
+
509
+ $normalize-anchor: true !default;
510
+
511
+ ///
512
+ /// Address styling not present in IE 8/9/10/11, Safari, and Chrome.
513
+ ///
514
+ /// @since 0.5
515
+ ///
516
+ /// @type {Bool} (true)
517
+ ///
518
+
519
+ $normalize-abbr: true !default;
520
+
521
+ ///
522
+ /// Correct `color` not being inherited in IE 8/9/10/11.
523
+ /// Remove padding so people aren't caught out if they zero out fieldsets.
524
+ ///
525
+ /// @since 0.5
526
+ ///
527
+ /// @type {Bool} (true)
528
+ ///
529
+
530
+ $normalize-legend: true !default;
531
+
532
+ ///
533
+ /// Known limitation: by default, Chrome and Safari on OS X allow very limited
534
+ /// styling of `select`, unless a `border` property is set.
535
+ ///
536
+ /// @since 0.5
537
+ ///
538
+ /// @type {Bool} (true)
539
+ ///
540
+
541
+ $normalize-form-elements: true !default;
542
+
543
+ ///
544
+ /// Based on an idea by [@csswizardry](https://twitter.com/csswizardry):
545
+ /// apply a bottom margin of one line-height to any element in this comma
546
+ /// separated list.
547
+ ///
548
+ /// @since 0.1
549
+ ///
550
+ /// @type {List} (true) (p, pre, table, hr, article)
551
+ ///
144
552
 
145
- $reset-fieldset: true;
553
+ $single-direction-elements: p, pre, table, hr, article !default;
@@ -38,7 +38,7 @@ Field base
38
38
  select:not([size]) {
39
39
  @extend #{$form-select-dropdown-selector} !optional;
40
40
  @if to-bool($select-appearance) {
41
- @include reset-appearance($select-appearance);
41
+ appearance: $select-appearance;
42
42
  }
43
43
  @if $select-webkit {
44
44
  @at-root .webkit {
@@ -7,6 +7,7 @@ $aqua: #0ff;
7
7
  $aquamarine: #7fffd4;
8
8
  $azure: #f0ffff;
9
9
  $becca: #639;
10
+ /* it's an official colour these days! */ $rebeccapurple: $becca;
10
11
  $beige: #f5f5dc;
11
12
  $bisque: #ffe4c4;
12
13
  $black: #000;
@@ -40,13 +41,15 @@ $darksalmon: #e9967a;
40
41
  $darkseagreen: #8fbc8f;
41
42
  $darkslateblue: #483d8b;
42
43
  $darkslategray: #2f4f4f;
43
- /* alternate spelling */ $darkslategrey: $darkslategray;
44
+ //* alternate spelling */
45
+ $darkslategrey: $darkslategray;
44
46
  $darkturquoise: #00ced1;
45
47
  $darkviolet: #9400d3;
46
48
  $deeppink: #ff1493;
47
49
  $deepskyblue: #00bfff;
48
50
  $dimgray: #696969;
49
- /* alternate spelling */ $dimgrey: $dimgray;
51
+ // /* alternate spelling */
52
+ $dimgrey: $dimgray;
50
53
  $dodgerblue: #1e90ff;
51
54
  $firebrick: #b22222;
52
55
  $floralwhite: #fffaf0;
@@ -208,19 +208,6 @@
208
208
  }
209
209
 
210
210
 
211
- ///
212
- /// Accepts a string with a valid appearance
213
- ///
214
- /// @since 0.1
215
- ///
216
- /// @param {String} $appearance
217
- ///
218
-
219
- @mixin reset-appearance($appearance) {
220
- appearance: $appearance;
221
- }
222
-
223
-
224
211
  ///
225
212
  /// Mixin to clear floats
226
213
  ///
@@ -3,7 +3,8 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>Piecss</title>
6
- <link href="./stylesheets/piecss.css" rel="stylesheet" media="screen">
6
+ <link href="../../sass/piecss/_behavior.css" rel="stylesheet" media="screen">
7
+ <!-- <link href="./stylesheets/piecss.css" rel="stylesheet" media="screen"> -->
7
8
  </head>
8
9
  <body>
9
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piecss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Babs Gosgens
@@ -44,6 +44,7 @@ files:
44
44
  - sass/piecss/_utilities.scss
45
45
  - sass/piecss/behavior/anchor/_anchor.scss
46
46
  - sass/piecss/behavior/base/_base.scss
47
+ - sass/piecss/behavior/base/_normalize.scss
47
48
  - sass/piecss/behavior/base/_settings.scss
48
49
  - sass/piecss/behavior/button/_button.scss
49
50
  - sass/piecss/behavior/button/_settings.scss