piecss 0.1.6.5.1 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/sass/piecss/settings/_base.scss +159 -159
  3. data/sass/piecss/settings/_breakpoint.scss +21 -21
  4. data/sass/piecss/settings/_button.scss +149 -149
  5. data/sass/piecss/settings/_constants.scss +1 -1
  6. data/sass/piecss/settings/_font.scss +1 -1
  7. data/sass/piecss/settings/_form.scss +332 -332
  8. data/sass/piecss/settings/_grid.scss +123 -123
  9. data/sass/piecss/settings/_list.scss +131 -131
  10. data/sass/piecss/settings/fonts/_roboto-slab.scss +1 -1
  11. data/sass/piecss/settings/fonts/_roboto.scss +1 -1
  12. data/sass/piecss/settings/fonts/_sofia-pro.scss +1 -1
  13. data/sass/piecss/settings/fonts/_varela-round.scss +1 -1
  14. data/sass/piecss/settings/fonts/icon-fonts/_fontawesome.scss +1 -1
  15. data/sass/piecss/settings/fonts/icon-fonts/_foundation-accessability.scss +1 -1
  16. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_bootstrap.scss +1 -1
  17. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_core.scss +1 -1
  18. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_extras.scss +1 -1
  19. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_icons.scss +1 -1
  20. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_mixins.scss +3 -3
  21. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_path.scss +1 -1
  22. data/sass/piecss/settings/fonts/icon-fonts/foundation-accessability/_settings.scss +2 -2
  23. data/sass/piecss/utilities/_breakpoint.scss +29 -30
  24. data/sass/piecss/utilities/_cache.scss +32 -32
  25. data/sass/piecss/utilities/_element.scss +50 -50
  26. data/sass/piecss/utilities/_image.scss +21 -21
  27. data/sass/piecss/utilities/_layout.scss +115 -115
  28. data/sass/piecss/utilities/_list.scss +10 -10
  29. data/sass/piecss/utilities/_miscellaneous.scss +99 -99
  30. data/sass/piecss/utilities/_rhythm.scss +42 -42
  31. data/sass/piecss/utilities/_side.scss +136 -136
  32. data/sass/piecss/utilities/_typography.scss +129 -132
  33. data/sass/piecss/utilities/_unit.scss +66 -64
  34. data/templates/project/_sets/_button.scss +4 -4
  35. data/templates/project/_sets/_form.scss +4 -4
  36. data/templates/project/_sets.scss +4 -4
  37. data/templates/project/_settings.scss +4 -4
  38. data/templates/project/screen.scss +1 -1
  39. metadata +9 -9
@@ -26,15 +26,15 @@
26
26
  // 1. FUNCTIONS
27
27
 
28
28
 
29
- /**
30
- * Convert a fraction to a percentage.
31
- *
32
- * @deprecated
33
- *
34
- * @param {Number} $fraction (1/3) - A fraction, e.g. 1/2
35
- *
36
- * @return {Number} - The resulting percentage value
37
- */
29
+ ///
30
+ /// Convert a fraction to a percentage.
31
+ ///
32
+ /// @deprecated
33
+ ///
34
+ /// @param {Number} $fraction (1/3) - A fraction, e.g. 1/2
35
+ ///
36
+ /// @return {Number} - The resulting percentage value
37
+ ///
38
38
 
39
39
  @function fraction-to-percentage($fraction: 1/3)
40
40
  {
@@ -42,24 +42,24 @@
42
42
  }
43
43
 
44
44
 
45
- /**
46
- * Convert a fraction to a word.
47
- * Used to build style rules based on column widths.
48
- * For values up to #/16.
49
- *
50
- * @example scss
51
- * .#{fraction-to-text(1/2)} {
52
- * // Column properties }
53
- * // Output:
54
- * .half {
55
- * // Column properties }
56
- *
57
- * @since 0.1
58
- *
59
- * @param {Number} $fraction - A fraction, e.g. 1/2
60
- *
61
- * @return {String}
62
- */
45
+ ///
46
+ /// Convert a fraction to a word.
47
+ /// Used to build style rules based on column widths.
48
+ /// For values up to #/16.
49
+ ///
50
+ /// @example scss
51
+ /// .#{fraction-to-text(1/2)} {
52
+ /// // Column properties }
53
+ /// // Output:
54
+ /// .half {
55
+ /// // Column properties }
56
+ ///
57
+ /// @since 0.1
58
+ ///
59
+ /// @param {Number} $fraction - A fraction, e.g. 1/2
60
+ ///
61
+ /// @return {String}
62
+ ///
63
63
 
64
64
  @function fraction-to-text($fraction)
65
65
  {
@@ -153,15 +153,15 @@
153
153
  }
154
154
 
155
155
 
156
- /**
157
- * Get layout settings from a layout map
158
- *
159
- *
160
- * @param {String} $breakpoints - A valid breakpoint
161
- * @param {Map} $page - An optional page layout
162
- *
163
- * @return {Map} - A breakpoint global layout, or a breakpoint nested page layout from [$layouts map](./#variable-layouts)
164
- */
156
+ ///
157
+ /// Get layout settings from a layout map
158
+ ///
159
+ ///
160
+ /// @param {String} $breakpoints - A valid breakpoint
161
+ /// @param {Map} $page - An optional page layout
162
+ ///
163
+ /// @return {Map} - A breakpoint global layout, or a breakpoint nested page layout from [$layouts map](./#variable-layouts)
164
+ ///
165
165
 
166
166
  @function get-layout($breakpoint, $page: null) {
167
167
  $layout: map-get($layouts, $breakpoint);
@@ -175,16 +175,16 @@
175
175
  // 2. MIXINS
176
176
 
177
177
 
178
- /**
179
- * Shorthand mixin for column.
180
- * Uses padding by default, can be overridden to use margins instead which is especially helpful when assigning backgrounds or borders.
181
- *
182
- * @since 0.1
183
- *
184
- * @param {Number} $fraction (1/1) - A fraction, e.g. 1/2
185
- * @param {Number | Bool} $apply-padding (1/2) - A fraction, e.g. 1/2, or false
186
- * @param {Number | Bool} $apply-margin (false) - A fraction, e.g. 1/2, or false
187
- */
178
+ ///
179
+ /// Shorthand mixin for column.
180
+ /// Uses padding by default, can be overridden to use margins instead which is especially helpful when assigning backgrounds or borders.
181
+ ///
182
+ /// @since 0.1
183
+ ///
184
+ /// @param {Number} $fraction (1/1) - A fraction, e.g. 1/2
185
+ /// @param {Number | Bool} $apply-padding (1/2) - A fraction, e.g. 1/2, or false
186
+ /// @param {Number | Bool} $apply-margin (false) - A fraction, e.g. 1/2, or false
187
+ ///
188
188
 
189
189
  @mixin column($fraction: 1/1, $apply-padding: 1/2, $apply-margin: false)
190
190
  {
@@ -201,14 +201,14 @@
201
201
  }
202
202
 
203
203
 
204
- /**
205
- * Mixin column-behavior: prepares an element to behave as a column. Widths must be set separately with [column-width](./#mixin-column-width).
206
- *
207
- * @since 0.1
208
- *
209
- * @param {Bool} $column-float (false) - If true, render columns as left floated block element. If false, render as inline-blocks.
210
- * @param {Bool | Number} $negative-right-margin (false) - If set, applies a negative right margin to force inline-blocks to render without gaps. Only use this if you cannot minify your markup.
211
- */
204
+ ///
205
+ /// Mixin column-behavior: prepares an element to behave as a column. Widths must be set separately with [column-width](./#mixin-column-width).
206
+ ///
207
+ /// @since 0.1
208
+ ///
209
+ /// @param {Bool} $column-float (false) - If true, render columns as left floated block element. If false, render as inline-blocks.
210
+ /// @param {Bool | Number} $negative-right-margin (false) - If set, applies a negative right margin to force inline-blocks to render without gaps. Only use this if you cannot minify your markup.
211
+ ///
212
212
 
213
213
  @mixin column-behavior($column-float: $column-float, $negative-right-margin: $negative-right-margin)
214
214
  {
@@ -225,13 +225,13 @@
225
225
  }
226
226
 
227
227
 
228
- /**
229
- * Mixin column-width. If [$negative-right-margin]() is set, it will automatically remove if from columns that span the full width of their containers.
230
- *
231
- * @since 0.1
232
- *
233
- * @param {Number} $fraction (1/1) - A fraction, e.g. 1/2
234
- */
228
+ ///
229
+ /// Mixin column-width. If [$negative-right-margin]() is set, it will automatically remove if from columns that span the full width of their containers.
230
+ ///
231
+ /// @since 0.1
232
+ ///
233
+ /// @param {Number} $fraction (1/1) - A fraction, e.g. 1/2
234
+ ///
235
235
 
236
236
  @mixin column-width($fraction: $column-width-default)
237
237
  {
@@ -244,14 +244,14 @@
244
244
  }
245
245
 
246
246
 
247
- /**
248
- * Mixes in gutter properties. Gutters are declared inside the column (padding) by default, on both sides. Can be overridden to use margins instead, which is helpful when assigning backgrounds or borders
249
- *
250
- * @since 0.1
251
- *
252
- * @param {Number} $fraction (1/2) - A fraction, e.g. 1/2
253
- * @param {Bool} $use-margin (false) - If true, will render gutters outside the column using margins
254
- */
247
+ ///
248
+ /// Mixes in gutter properties. Gutters are declared inside the column (padding) by default, on both sides. Can be overridden to use margins instead, which is helpful when assigning backgrounds or borders
249
+ ///
250
+ /// @since 0.1
251
+ ///
252
+ /// @param {Number} $fraction (1/2) - A fraction, e.g. 1/2
253
+ /// @param {Bool} $use-margin (false) - If true, will render gutters outside the column using margins
254
+ ///
255
255
 
256
256
  @mixin gutters($fraction: 1/2, $use-margin: false)
257
257
  {
@@ -284,13 +284,13 @@
284
284
  }
285
285
 
286
286
 
287
- /**
288
- * Fixes content width and aligns in viewport. [$root-position](./#variable-root-position) is defind in grid settings. Centers content inside the viewport by default.
289
- *
290
- * @since 0.1
291
- *
292
- * @param {Number} $root-max-width (72em) - The maximum width of your content
293
- */
287
+ ///
288
+ /// Fixes content width and aligns in viewport. [$root-position](./#variable-root-position) is defind in grid settings. Centers content inside the viewport by default.
289
+ ///
290
+ /// @since 0.1
291
+ ///
292
+ /// @param {Number} $root-max-width (72em) - The maximum width of your content
293
+ ///
294
294
 
295
295
  @mixin root($root-max-width: $root-max-width, $set-display: false)
296
296
  {
@@ -302,13 +302,13 @@
302
302
  }
303
303
 
304
304
 
305
- /**
306
- * Use it to remove column spacing on columns
307
- *
308
- * @since 0.1
309
- *
310
- * @param {Bool} $use-margin (false)
311
- */
305
+ ///
306
+ /// Use it to remove column spacing on columns
307
+ ///
308
+ /// @since 0.1
309
+ ///
310
+ /// @param {Bool} $use-margin (false)
311
+ ///
312
312
 
313
313
  @mixin container-behavior($use-margin: false)
314
314
  {
@@ -323,14 +323,14 @@
323
323
  }
324
324
 
325
325
 
326
- /**
327
- * Mixin to reverse padding on a container.
328
- * Use it to remove padded column spacing on columns, helpful when nesting columns and when applying backgrounds.
329
- *
330
- * @since 0.1
331
- *
332
- * @param {Number} $fraction (1/2) - A fraction, e.g. 1/2
333
- */
326
+ ///
327
+ /// Mixin to reverse padding on a container.
328
+ /// Use it to remove padded column spacing on columns, helpful when nesting columns and when applying backgrounds.
329
+ ///
330
+ /// @since 0.1
331
+ ///
332
+ /// @param {Number} $fraction (1/2) - A fraction, e.g. 1/2
333
+ ///
334
334
 
335
335
  @mixin bleed($fraction: -1/2)
336
336
  {
@@ -338,13 +338,13 @@
338
338
  }
339
339
 
340
340
 
341
- /**
342
- * Mixin for soure ordering
343
- *
344
- * @since 0.1
345
- *
346
- * @param {Number} $fraction (1/2) - A fraction, e.g. 1/2
347
- */
341
+ ///
342
+ /// Mixin for soure ordering
343
+ ///
344
+ /// @since 0.1
345
+ ///
346
+ /// @param {Number} $fraction (1/2) - A fraction, e.g. 1/2
347
+ ///
348
348
 
349
349
  @mixin move($fraction)
350
350
  {
@@ -352,9 +352,9 @@
352
352
  }
353
353
 
354
354
 
355
- /**
356
- * @alias move
357
- */
355
+ ///
356
+ /// @alias move
357
+ ///
358
358
 
359
359
  @mixin push($fraction)
360
360
  {
@@ -362,9 +362,9 @@
362
362
  }
363
363
 
364
364
 
365
- /**
366
- * @alias move
367
- */
365
+ ///
366
+ /// @alias move
367
+ ///
368
368
 
369
369
  @mixin pull($fraction)
370
370
  {
@@ -372,12 +372,12 @@
372
372
  }
373
373
 
374
374
 
375
- /**
376
- * Mixin for soure ordering.
377
- * Will reset positioning for smallest breakpoint.
378
- *
379
- * @since 0.1
380
- */
375
+ ///
376
+ /// Mixin for soure ordering.
377
+ /// Will reset positioning for smallest breakpoint.
378
+ ///
379
+ /// @since 0.1
380
+ ///
381
381
 
382
382
  @mixin reset-source-order()
383
383
  {
@@ -390,11 +390,11 @@
390
390
  }
391
391
 
392
392
 
393
- /**
394
- * Reveals the document's horizontal rhythm. Will automatically be mixed in when [$debug-layout](./#variable-debug-layout) is set to true.
395
- *
396
- * @since 0.1
397
- */
393
+ ///
394
+ /// Reveals the document's horizontal rhythm. Will automatically be mixed in when [$debug-layout](./#variable-debug-layout) is set to true.
395
+ ///
396
+ /// @since 0.1
397
+ ///
398
398
 
399
399
  @mixin debug-layout($columns: $columns, $color: #000, $gutter-width: $gutter-width)
400
400
  {
@@ -9,18 +9,18 @@
9
9
  // 1. Mixins
10
10
 
11
11
 
12
- /**
13
- * Mixin a list-style-type
14
- * @example scss
15
- * @include list-style-type(bullet);
16
- *
17
- * @since 0.1
18
- *
19
- * @param {String} $type
20
- */
12
+ ///
13
+ /// Mixin a list-style-type
14
+ /// @example scss
15
+ /// @include list-style-type(bullet);
16
+ ///
17
+ /// @since 0.1
18
+ ///
19
+ /// @param {String} $type
20
+ ///
21
21
 
22
22
  @mixin list-style-type($type) {
23
23
  %#{$list-selector}--#{$type} {
24
24
  list-style-type: $type;
25
25
  }
26
- }
26
+ }
@@ -16,15 +16,15 @@
16
16
  // 1. Functions
17
17
 
18
18
 
19
- /**
20
- * Converts a value to a proper boolean value
21
- *
22
- * @since 0.1
23
- *
24
- * @param {*} $value
25
- *
26
- * @return {Bool}
27
- */
19
+ ///
20
+ /// Converts a value to a proper boolean value
21
+ ///
22
+ /// @since 0.1
23
+ ///
24
+ /// @param {*} $value
25
+ ///
26
+ /// @return {Bool}
27
+ ///
28
28
 
29
29
  @function to-bool($value) {
30
30
  @if not $value or $value == "" or $value == 0 {
@@ -33,20 +33,20 @@
33
33
  @return true;
34
34
  }
35
35
 
36
- /**
37
- * Converts a list of property values to a property map. Use to convert 'old-style' associative arrays to SASS's new Map type.
38
- *
39
- * @example
40
- * list-to-map((color #FFF, text-align left))
41
- * // Output:
42
- * (color: #FFF, text-align: left)
43
- *
44
- * @since 0.1
45
- *
46
- * @param {List} $properties
47
- *
48
- * @return {Map}
49
- */
36
+ ///
37
+ /// Converts a list of property values to a property map. Use to convert 'old-style' associative arrays to SASS's new Map type.
38
+ ///
39
+ /// @example
40
+ /// list-to-map((color #FFF, text-align left))
41
+ /// // Output:
42
+ /// (color: #FFF, text-align: left)
43
+ ///
44
+ /// @since 0.1
45
+ ///
46
+ /// @param {List} $properties
47
+ ///
48
+ /// @return {Map}
49
+ ///
50
50
 
51
51
  @function list-to-map($properties)
52
52
  {
@@ -62,14 +62,14 @@
62
62
  // 2. Mixins
63
63
 
64
64
 
65
- /**
66
- * Mixin for border properties
67
- *
68
- * @since 0.1
69
- *
70
- * @param {String | Map | List | Numner} $values - The border (or outline) properties
71
- * @param {Bool} $outline - If true, will render the values as outline properties
72
- */
65
+ ///
66
+ /// Mixin for border properties
67
+ ///
68
+ /// @since 0.1
69
+ ///
70
+ /// @param {String | Map | List | Numner} $values - The border (or outline) properties
71
+ /// @param {Bool} $outline - If true, will render the values as outline properties
72
+ ///
73
73
 
74
74
  @mixin border($values, $outline: false)
75
75
  {
@@ -97,9 +97,9 @@
97
97
 
98
98
  }
99
99
 
100
- /**
101
- * @alias border
102
- */
100
+ ///
101
+ /// @alias border
102
+ ///
103
103
 
104
104
  @mixin outline($attributes)
105
105
  {
@@ -107,13 +107,13 @@
107
107
  }
108
108
 
109
109
 
110
- /**
111
- * Provides a cross-browser method to implement opacity. This replaces [Compass's](http://compass-style.org/reference/compass/css3/opacity/) mixin by the same name with a more accessible implementation.
112
- *
113
- * @since 0.1
114
- *
115
- * @param {Number} $opacity - A number between 0 and 1, where 0 is transparent and 1 is opaque.
116
- */
110
+ ///
111
+ /// Provides a cross-browser method to implement opacity. This replaces [Compass's](http://compass-style.org/reference/compass/css3/opacity/) mixin by the same name with a more accessible implementation.
112
+ ///
113
+ /// @since 0.1
114
+ ///
115
+ /// @param {Number} $opacity - A number between 0 and 1, where 0 is transparent and 1 is opaque.
116
+ ///
117
117
 
118
118
  @mixin opacity($opacity) {
119
119
  @include old-ie() {
@@ -123,15 +123,15 @@
123
123
  }
124
124
 
125
125
 
126
- /**
127
- * Conditional mixin of property
128
- *
129
- * @since 0.1
130
- * @deprecated
131
- *
132
- * @param {String} $property - A CSS property
133
- * @param {Bool | *} $value - A value for the property, or false if the property should not be rendered.
134
- */
126
+ ///
127
+ /// Conditional mixin of property
128
+ ///
129
+ /// @since 0.1
130
+ /// @deprecated
131
+ ///
132
+ /// @param {String} $property - A CSS property
133
+ /// @param {Bool | *} $value - A value for the property, or false if the property should not be rendered.
134
+ ///
135
135
 
136
136
  @mixin property($property, $value)
137
137
  {
@@ -140,14 +140,14 @@
140
140
  }
141
141
  }
142
142
 
143
- /**
144
- * Support for old-mozilla, cuse it to separate old-ie declarations from your other declarations with either a separate stylesheet or added specificity (Modernizr).
145
- *
146
- * @since 0.1
147
- *
148
- * @example
149
- * @include old-ie() { // properties }
150
- */
143
+ ///
144
+ /// Support for old-mozilla, cuse it to separate old-ie declarations from your other declarations with either a separate stylesheet or added specificity (Modernizr).
145
+ ///
146
+ /// @since 0.1
147
+ ///
148
+ /// @example
149
+ /// @include old-ie() { // properties }
150
+ ///
151
151
 
152
152
  @mixin old-ie() {
153
153
  @if $legacy-support-for-ie {
@@ -156,14 +156,14 @@
156
156
  }
157
157
 
158
158
 
159
- /**
160
- * Support for old-mozilla, cuse it to separate old-mozilla declarations from your other declarations with either a separate stylesheet or added specificity (Modernizr).
161
- *
162
- * @since 0.1
163
- *
164
- * @example
165
- * @include old-mozilla() { // properties }
166
- */
159
+ ///
160
+ /// Support for old-mozilla, cuse it to separate old-mozilla declarations from your other declarations with either a separate stylesheet or added specificity (Modernizr).
161
+ ///
162
+ /// @since 0.1
163
+ ///
164
+ /// @example
165
+ /// @include old-mozilla() { // properties }
166
+ ///
167
167
 
168
168
  @mixin old-mozilla() {
169
169
  @if $legacy-support-for-mozilla {
@@ -172,17 +172,17 @@
172
172
  }
173
173
 
174
174
 
175
- /**
176
- * Provides a cross-browser method to implement display: inline-block;. This replaces [Compass's](http://compass-style.org/reference/compass/css3/inline_block/) mixin by the same name with a more accessible implementation.
177
- * See for valid property values: [http://www.w3schools.com/cssref/pr_pos_vertical-align.asp](http://www.w3schools.com/cssref/pr_pos_vertical-align.asp)
178
- *
179
- * @since 0.1
180
- *
181
- * @example
182
- * @include inline-block(baseline);
183
- *
184
- * @param {String} $vertical-alignment (baseline) - Set $inline-block-alignment to none or false to disable the output of a vertical-align property in the inline-block mixin. Or set it to a legal value for vertical-align to change the default.
185
- */
175
+ ///
176
+ /// Provides a cross-browser method to implement display: inline-block;. This replaces [Compass's](http://compass-style.org/reference/compass/css3/inline_block/) mixin by the same name with a more accessible implementation.
177
+ /// See for valid property values: [http://www.w3schools.com/cssref/pr_pos_vertical-align.asp](http://www.w3schools.com/cssref/pr_pos_vertical-align.asp)
178
+ ///
179
+ /// @since 0.1
180
+ ///
181
+ /// @example
182
+ /// @include inline-block(baseline);
183
+ ///
184
+ /// @param {String} $vertical-alignment (baseline) - Set $inline-block-alignment to none or false to disable the output of a vertical-align property in the inline-block mixin. Or set it to a legal value for vertical-align to change the default.
185
+ ///
186
186
 
187
187
  @mixin inline-block($vertical-alignment: baseline) {
188
188
  $vertical-alignment: unquote($vertical-alignment);
@@ -203,13 +203,13 @@
203
203
  }
204
204
  }
205
205
 
206
- /**
207
- * Accepts a string which a valid appearance
208
- *
209
- * @since 0.1
210
- *
211
- * @param {String} $appearance
212
- */
206
+ ///
207
+ /// Accepts a string which a valid appearance
208
+ ///
209
+ /// @since 0.1
210
+ ///
211
+ /// @param {String} $appearance
212
+ ///
213
213
 
214
214
  @mixin reset-appearance($appearance)
215
215
  {
@@ -220,13 +220,13 @@
220
220
 
221
221
 
222
222
 
223
- /**
224
- * Accepts a string which a valid appearance
225
- *
226
- * @since 0.1
227
- *
228
- * @param {String} $appearance
229
- */
223
+ ///
224
+ /// Accepts a string which a valid appearance
225
+ ///
226
+ /// @since 0.1
227
+ ///
228
+ /// @param {String} $appearance
229
+ ///
230
230
 
231
231
  @mixin reset-webkit-appearance($appearance)
232
232
  {
@@ -234,15 +234,15 @@
234
234
  }
235
235
 
236
236
 
237
- /**
238
- * Accepts a string which a valid appearance
239
- *
240
- * @since 0.1
241
- *
242
- * @param {String} $appearance
243
- */
237
+ ///
238
+ /// Accepts a string which a valid appearance
239
+ ///
240
+ /// @since 0.1
241
+ ///
242
+ /// @param {String} $appearance
243
+ ///
244
244
 
245
245
  @mixin reset-mozilla-appearance($appearance)
246
246
  {
247
247
  -moz-appearance: $appearance; /* mobile firefox too! */
248
- }
248
+ }