piecss 0.1.6.5.1 → 0.1.7
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.
- checksums.yaml +4 -4
- data/sass/piecss/settings/_base.scss +159 -159
- data/sass/piecss/settings/_breakpoint.scss +21 -21
- data/sass/piecss/settings/_button.scss +149 -149
- data/sass/piecss/settings/_constants.scss +1 -1
- data/sass/piecss/settings/_font.scss +1 -1
- data/sass/piecss/settings/_form.scss +332 -332
- data/sass/piecss/settings/_grid.scss +123 -123
- data/sass/piecss/settings/_list.scss +131 -131
- data/sass/piecss/settings/fonts/_roboto-slab.scss +1 -1
- data/sass/piecss/settings/fonts/_roboto.scss +1 -1
- data/sass/piecss/settings/fonts/_sofia-pro.scss +1 -1
- data/sass/piecss/settings/fonts/_varela-round.scss +1 -1
- data/sass/piecss/settings/fonts/icon-fonts/_fontawesome.scss +1 -1
- data/sass/piecss/settings/fonts/icon-fonts/_foundation-accessability.scss +1 -1
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_bootstrap.scss +1 -1
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_core.scss +1 -1
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_extras.scss +1 -1
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_icons.scss +1 -1
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_mixins.scss +3 -3
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_path.scss +1 -1
- data/sass/piecss/settings/fonts/icon-fonts/foundation-accessability/_settings.scss +2 -2
- data/sass/piecss/utilities/_breakpoint.scss +29 -30
- data/sass/piecss/utilities/_cache.scss +32 -32
- data/sass/piecss/utilities/_element.scss +50 -50
- data/sass/piecss/utilities/_image.scss +21 -21
- data/sass/piecss/utilities/_layout.scss +115 -115
- data/sass/piecss/utilities/_list.scss +10 -10
- data/sass/piecss/utilities/_miscellaneous.scss +99 -99
- data/sass/piecss/utilities/_rhythm.scss +42 -42
- data/sass/piecss/utilities/_side.scss +136 -136
- data/sass/piecss/utilities/_typography.scss +129 -132
- data/sass/piecss/utilities/_unit.scss +66 -64
- data/templates/project/_sets/_button.scss +4 -4
- data/templates/project/_sets/_form.scss +4 -4
- data/templates/project/_sets.scss +4 -4
- data/templates/project/_settings.scss +4 -4
- data/templates/project/screen.scss +1 -1
- metadata +9 -9
@@ -16,16 +16,16 @@
|
|
16
16
|
|
17
17
|
// 1. Functions
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
19
|
+
///
|
20
|
+
/// Calculates a value based on the [$rhythm](./#variable-rhythm).
|
21
|
+
///
|
22
|
+
/// @since 0.1
|
23
|
+
/// @access private
|
24
|
+
///
|
25
|
+
/// @param {Int | Fraction} $units (1) - The number of -rhythm-units (whole or fraction) to span
|
26
|
+
///
|
27
|
+
/// @return {Number} - The calculated span in px
|
28
|
+
///
|
29
29
|
|
30
30
|
@function -rhythm-units($units: 1)
|
31
31
|
{
|
@@ -33,19 +33,19 @@
|
|
33
33
|
}
|
34
34
|
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
36
|
+
///
|
37
|
+
/// Find the optimal rhythm units for a given size in px.
|
38
|
+
/// If the specified span is too small for the size, find the next best one
|
39
|
+
/// based on a specified increment.
|
40
|
+
///
|
41
|
+
/// @since 0.1
|
42
|
+
///
|
43
|
+
/// @param {Number} $units - The number of rhythm units to span (whole or fraction), 1 equals 1 $rhythm
|
44
|
+
/// @param {Number} $size-px - The size in px
|
45
|
+
/// @param {Number} $increment - The increment in rhythm-units (whole or fraction)
|
46
|
+
///
|
47
|
+
/// @return {Number} - The calculated span in px
|
48
|
+
///
|
49
49
|
|
50
50
|
@function rhythm($args...)
|
51
51
|
{
|
@@ -84,18 +84,18 @@
|
|
84
84
|
|
85
85
|
// 2. MIXINS
|
86
86
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
87
|
+
///
|
88
|
+
/// Use for left and right margins and paddings. Uses [$gutter-width](./#variable-gutter-width) declared in grid settings
|
89
|
+
///
|
90
|
+
/// @example
|
91
|
+
/// @include rhythm(1, padding-left);
|
92
|
+
///
|
93
|
+
/// @since 0.1
|
94
|
+
///
|
95
|
+
/// @param {Number} $units - The fraction of the gutter measurement
|
96
|
+
/// @param {String} $property - The property to be set, e.g. padding, margin-left
|
97
|
+
/// @param {Number} $context (16px) - The font-size context
|
98
|
+
///
|
99
99
|
|
100
100
|
@mixin rhythm($units, $property, $context: $default-font-size)
|
101
101
|
{
|
@@ -109,11 +109,11 @@
|
|
109
109
|
}
|
110
110
|
|
111
111
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
112
|
+
///
|
113
|
+
/// Reveals the document's vertical rhythm. Will automatically be mixed in when [$debug-rhythm](./#variable-debug-rhythm) is set to true.
|
114
|
+
///
|
115
|
+
/// @since 0.1
|
116
|
+
///
|
117
117
|
|
118
118
|
@mixin debug-rhythm()
|
119
119
|
{
|
@@ -124,11 +124,11 @@
|
|
124
124
|
background-image: linear-gradient($from 50%, $to 50%);
|
125
125
|
background-size: 2*$default-line-height 2*$default-line-height;
|
126
126
|
|
127
|
-
|
127
|
+
/// {
|
128
128
|
background-color: transparent !important;
|
129
129
|
background-image: none !important;
|
130
130
|
outline: rgba(255,0,255,.1) dotted 1px;
|
131
131
|
outline: #D6D6D6 dotted 1px;
|
132
132
|
outline: lighten(rgb(255,0,255),.1) dotted 1px \9;
|
133
133
|
}
|
134
|
-
}
|
134
|
+
}
|
@@ -15,14 +15,14 @@
|
|
15
15
|
// 1. FUNCTIONS
|
16
16
|
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
18
|
+
///
|
19
|
+
/// Takes a list of values and keys and returns a spacing map.
|
20
|
+
///
|
21
|
+
/// @since 0.1
|
22
|
+
///
|
23
|
+
/// @param {List} $values - A list of value arguments like CSS's normal padding (0 0 0 0)
|
24
|
+
/// @param {String} $property (padding) - The property to which the values should be applied
|
25
|
+
///
|
26
26
|
|
27
27
|
@function value-map($values, $keys: $keys-side) {
|
28
28
|
|
@@ -42,16 +42,16 @@
|
|
42
42
|
@return $map;
|
43
43
|
}
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
45
|
+
///
|
46
|
+
/// Checks if a Map is a proper value-map by checking for specific keys.
|
47
|
+
///
|
48
|
+
/// @since 0.1
|
49
|
+
///
|
50
|
+
/// @param {List} $values - The value to test, can be a single number or a list
|
51
|
+
/// @param {List} $keys ($keys-side) - A list of keys to match
|
52
|
+
///
|
53
|
+
/// @return {Bool}
|
54
|
+
///
|
55
55
|
|
56
56
|
@function is-value-map($values, $keys: $keys-side) {
|
57
57
|
|
@@ -71,18 +71,18 @@
|
|
71
71
|
@return $is-map;
|
72
72
|
}
|
73
73
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
74
|
+
///
|
75
|
+
/// Converts values in a (one-dimensional) map to the specified [unit](./#variable-unit).
|
76
|
+
///
|
77
|
+
/// @since 0.1
|
78
|
+
///
|
79
|
+
/// @throws Argument $map needs to be a map.
|
80
|
+
///
|
81
|
+
/// @param {List} $values - The value to test, can be a single number or a list
|
82
|
+
/// @param {Number} $unit ($unit) - A list of keys to match
|
83
|
+
///
|
84
|
+
/// @return {Map}
|
85
|
+
///
|
86
86
|
|
87
87
|
@function value-map-to-unit($map, $unit: $unit) {
|
88
88
|
|
@@ -99,18 +99,18 @@
|
|
99
99
|
@return $map;
|
100
100
|
}
|
101
101
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
102
|
+
///
|
103
|
+
/// This function takes a space separated list of padding or margin values and completes it into a list of four side values.
|
104
|
+
///
|
105
|
+
/// @since 0.1
|
106
|
+
/// @access private
|
107
|
+
///
|
108
|
+
/// @throws Argument $values needs to be a list.
|
109
|
+
///
|
110
|
+
/// @param {List} $values - The value to test, can be a single number or a list
|
111
|
+
///
|
112
|
+
/// @return {List}
|
113
|
+
///
|
114
114
|
@function -sides($values) {
|
115
115
|
|
116
116
|
@if type-of($values)==map {
|
@@ -137,141 +137,141 @@
|
|
137
137
|
// 2. MIXINS
|
138
138
|
|
139
139
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
140
|
+
///
|
141
|
+
/// Mixin padding for any or all sides, in final unit (defaults to em). The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used. With rem fallback if the final unit of output is rem.
|
142
|
+
///
|
143
|
+
/// @since 0.1
|
144
|
+
///
|
145
|
+
/// @param {Map} $sides - A spacing map in px (top:0,right:0,bottom:0,left:0)
|
146
|
+
///
|
147
147
|
|
148
148
|
@mixin padding($values) {
|
149
149
|
|
150
150
|
@include -unit-sides($values, padding);
|
151
151
|
}
|
152
152
|
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
153
|
+
///
|
154
|
+
/// Mixin top padding in final unit (defaults to em). The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used. With rem fallback if the final unit of output is rem.
|
155
|
+
///
|
156
|
+
/// @since 0.1
|
157
|
+
///
|
158
|
+
/// @param {Number} $value - A value in px
|
159
|
+
///
|
160
160
|
|
161
161
|
@mixin padding-top($value) {
|
162
162
|
@include -unit-sides((top: $value), padding);
|
163
163
|
}
|
164
164
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
165
|
+
///
|
166
|
+
/// Mixin right padding in final unit (defaults to em). The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used. With rem fallback if the final unit of output is rem.
|
167
|
+
///
|
168
|
+
/// @since 0.1
|
169
|
+
///
|
170
|
+
/// @param {Number} $value - A value in px
|
171
|
+
///
|
172
172
|
|
173
173
|
@mixin padding-right($value) {
|
174
174
|
@include -unit-sides((right: $value), padding);
|
175
175
|
}
|
176
176
|
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
177
|
+
///
|
178
|
+
/// Mixin bottom padding in final unit (defaults to em). The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used. With rem fallback if the final unit of output is rem.
|
179
|
+
///
|
180
|
+
/// @since 0.1
|
181
|
+
///
|
182
|
+
/// @param {Number} $value - A value in px
|
183
|
+
///
|
184
184
|
|
185
185
|
@mixin padding-bottom($value) {
|
186
186
|
@include -unit-sides((bottom: $value), padding);
|
187
187
|
}
|
188
188
|
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
189
|
+
///
|
190
|
+
/// Mixin left padding in final unit (defaults to em). The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used. With rem fallback if the final unit of output is rem.
|
191
|
+
///
|
192
|
+
/// @since 0.1
|
193
|
+
///
|
194
|
+
/// @param {Number} $value - A value in px
|
195
|
+
///
|
196
196
|
|
197
197
|
@mixin padding-left($value) {
|
198
198
|
@include -unit-sides((left: $value), padding);
|
199
199
|
}
|
200
200
|
|
201
201
|
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
202
|
+
///
|
203
|
+
/// Mixin margin for any or all sides, in final unit (defaults to em). The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used. With rem fallback if the final unit of output is rem.
|
204
|
+
///
|
205
|
+
/// @since 0.1
|
206
|
+
///
|
207
|
+
/// @param {Map} $sides - A spacing map in px (top:0,right:0,bottom:0,left:0)
|
208
|
+
///
|
209
209
|
|
210
210
|
@mixin margin($values) {
|
211
211
|
|
212
212
|
@include -unit-sides($values, margin);
|
213
213
|
}
|
214
214
|
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
215
|
+
///
|
216
|
+
/// Mixin top margin in final unit (defaults to em). The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used. With rem fallback if the final unit of output is rem.
|
217
|
+
///
|
218
|
+
/// @since 0.1
|
219
|
+
///
|
220
|
+
/// @param {Number} $value - A value in px
|
221
|
+
///
|
222
222
|
|
223
223
|
@mixin margin-top($value) {
|
224
224
|
@include -unit-sides((top: $value), margin);
|
225
225
|
}
|
226
226
|
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
227
|
+
///
|
228
|
+
/// Mixin right margin in final unit (defaults to em). The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used. With rem fallback if the final unit of output is rem.
|
229
|
+
///
|
230
|
+
/// @since 0.1
|
231
|
+
///
|
232
|
+
/// @param {Number} $value - A value in px
|
233
|
+
///
|
234
234
|
|
235
235
|
@mixin margin-right($value) {
|
236
236
|
@include -unit-sides((right: $value), margin);
|
237
237
|
}
|
238
238
|
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
239
|
+
///
|
240
|
+
/// Mixin bottom margin in final unit (defaults to em). The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used. With rem fallback if the final unit of output is rem.
|
241
|
+
///
|
242
|
+
/// @since 0.1
|
243
|
+
///
|
244
|
+
/// @param {Number} $value - A value in px
|
245
|
+
///
|
246
246
|
|
247
247
|
@mixin margin-bottom($value) {
|
248
248
|
@include -unit-sides((bottom: $value), margin);
|
249
249
|
}
|
250
250
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
251
|
+
///
|
252
|
+
/// Mixin right margin in final unit (defaults to em). The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used. With rem fallback if the final unit of output is rem.
|
253
|
+
///
|
254
|
+
/// @since 0.1
|
255
|
+
///
|
256
|
+
/// @param {Number} $value - A value in px
|
257
|
+
///
|
258
258
|
|
259
259
|
@mixin margin-left($value) {
|
260
260
|
@include -unit-sides((left: $value), margin);
|
261
261
|
}
|
262
262
|
|
263
263
|
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
264
|
+
///
|
265
|
+
/// Like [-sides](./#mixin--sides), but with rem fallback if the final unit is rem
|
266
|
+
///
|
267
|
+
/// @access private
|
268
|
+
///
|
269
|
+
/// @since 0.1
|
270
|
+
///
|
271
|
+
/// @param {Map} $sides - A spacing map in final values (top:0,right:0,bottom:0,left:0)
|
272
|
+
/// @param {String} $property - The property to apply the values to (padding, margin)
|
273
|
+
/// @param {Number} $unit ($unit) - The final unit to which $target-px is converted, e.g. 1px, 1rem, 1em, 1%
|
274
|
+
///
|
275
275
|
|
276
276
|
@mixin -unit-sides($values, $property: padding, $unit: $unit) {
|
277
277
|
|
@@ -294,18 +294,18 @@
|
|
294
294
|
}
|
295
295
|
|
296
296
|
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
297
|
+
///
|
298
|
+
/// Mixin the value for any or all sides for padding or margin. The mixin will determine if the shorthand notation, or a single side (...-top, ...-right, ...-bottom, --left) should be used.
|
299
|
+
///
|
300
|
+
/// @access private
|
301
|
+
///
|
302
|
+
/// @since 0.1
|
303
|
+
///
|
304
|
+
/// @throws 'Argument $map needs to be a value map of four side (top, right, bottom, left) values. Mixin -sides aborted.';
|
305
|
+
///
|
306
|
+
/// @param {Map} $sides - A spacing map in final values (top:0,right:0,bottom:0,left:0)
|
307
|
+
/// @param {String} $property - The property to apply the values to (padding, margin)
|
308
|
+
///
|
309
309
|
|
310
310
|
@mixin -sides($values, $property: padding) {
|
311
311
|
|
@@ -365,4 +365,4 @@
|
|
365
365
|
|
366
366
|
}
|
367
367
|
}
|
368
|
-
}
|
368
|
+
}
|