piecss 0.1.0.alpha.01
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 +7 -0
- data/README.md +7 -0
- data/lib/piecss.rb +6 -0
- data/sass/piecss/behavior.scss +11 -0
- data/sass/piecss/behavior/anchor.scss +30 -0
- data/sass/piecss/behavior/base.scss +4 -0
- data/sass/piecss/behavior/base/normalize.scss +458 -0
- data/sass/piecss/behavior/base/preset.scss +57 -0
- data/sass/piecss/behavior/form.scss +120 -0
- data/sass/piecss/behavior/grid.scss +4 -0
- data/sass/piecss/behavior/grid/layout.scss +170 -0
- data/sass/piecss/behavior/grid/rhythm.scss +54 -0
- data/sass/piecss/behavior/list.scss +189 -0
- data/sass/piecss/settings.scss +18 -0
- data/sass/piecss/settings/base.scss +177 -0
- data/sass/piecss/settings/breakpoint.scss +32 -0
- data/sass/piecss/settings/constants.scss +147 -0
- data/sass/piecss/settings/fonts.scss +31 -0
- data/sass/piecss/settings/fonts/_asap.scss +44 -0
- data/sass/piecss/settings/fonts/_bree-serif.scss +23 -0
- data/sass/piecss/settings/fonts/_example.scss +43 -0
- data/sass/piecss/settings/fonts/_lato.scss +32 -0
- data/sass/piecss/settings/fonts/_monospace.scss +39 -0
- data/sass/piecss/settings/fonts/_pt-sans.scss +40 -0
- data/sass/piecss/settings/fonts/_raleway.scss +31 -0
- data/sass/piecss/settings/fonts/_righteous.scss +23 -0
- data/sass/piecss/settings/fonts/_roboto.scss +34 -0
- data/sass/piecss/settings/fonts/_sans-serif.scss +39 -0
- data/sass/piecss/settings/fonts/_serif.scss +39 -0
- data/sass/piecss/settings/fonts/_sofia-pro.scss +40 -0
- data/sass/piecss/settings/fonts/_varela-round.scss +24 -0
- data/sass/piecss/settings/fonts/_verdana.scss +40 -0
- data/sass/piecss/settings/fonts/icon-fonts/_fontawesome.scss +33 -0
- data/sass/piecss/settings/fonts/icon-fonts/_foundation-accessability.scss +75 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_bootstrap.scss +84 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_core.scss +129 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_extras.scss +93 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_icons.scss +381 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_mixins.scss +48 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_path.scss +14 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_variables.scss +734 -0
- data/sass/piecss/settings/fonts/icon-fonts/foundation-accessability/_settings.scss +28 -0
- data/sass/piecss/settings/form.scss +664 -0
- data/sass/piecss/settings/grid.scss +157 -0
- data/sass/piecss/settings/list.scss +216 -0
- data/sass/piecss/utilities.scss +16 -0
- data/sass/piecss/utilities/README.md +105 -0
- data/sass/piecss/utilities/breakpoint.scss +46 -0
- data/sass/piecss/utilities/cache.scss +74 -0
- data/sass/piecss/utilities/elements.scss +182 -0
- data/sass/piecss/utilities/image.scss +58 -0
- data/sass/piecss/utilities/layout.scss +367 -0
- data/sass/piecss/utilities/list.scss +26 -0
- data/sass/piecss/utilities/miscellaneous.scss +260 -0
- data/sass/piecss/utilities/rhythm.scss +173 -0
- data/sass/piecss/utilities/sides.scss +376 -0
- data/sass/piecss/utilities/typography.scss +295 -0
- data/sass/piecss/utilities/units.scss +166 -0
- data/templates/project/_settings.scss +24 -0
- data/templates/project/examples.html +224 -0
- data/templates/project/manifest.rb +13 -0
- data/templates/project/screen.scss +96 -0
- metadata +133 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
$fontFileName: "/PGFramework/Fonts/accessibility_foundicons";
|
2
|
+
$fontName: "AccessibilityFoundicons";
|
3
|
+
$classPrefix: "foundicon-";
|
4
|
+
|
5
|
+
@mixin i-class($name,$pua) {
|
6
|
+
.#{$classPrefix}#{$name}:before {
|
7
|
+
content: "\f#{$pua}";
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin ie-class($name,$pua) {
|
12
|
+
.#{$classPrefix}#{$name} {
|
13
|
+
*zoom: expression( this.runtimeStyle['zoom'] = "1", this.innerHTML = "#{$pua};");
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin face {
|
18
|
+
@font-face {
|
19
|
+
font-family: $fontName;
|
20
|
+
src: url('#{$fontFileName}.eot');
|
21
|
+
src: url('#{$fontFileName}.eot?#iefix') format('embedded-opentype'),
|
22
|
+
url('#{$fontFileName}.woff') format('woff'),
|
23
|
+
url('#{$fontFileName}.ttf') format('truetype'),
|
24
|
+
url('#{$fontFileName}.svg##{$fontName}') format('svg');
|
25
|
+
font-weight: normal;
|
26
|
+
font-style: normal;
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,664 @@
|
|
1
|
+
// Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
|
2
|
+
|
3
|
+
|
4
|
+
// ==========================================================================
|
5
|
+
//
|
6
|
+
// CONTENT
|
7
|
+
//
|
8
|
+
// ==========================================================================
|
9
|
+
//
|
10
|
+
// 1. Selector settings
|
11
|
+
// 2. Field settings
|
12
|
+
// 2a. Shared settings
|
13
|
+
// Default
|
14
|
+
// Focus
|
15
|
+
// 2b. Color input
|
16
|
+
// 2b. Range input
|
17
|
+
// 2d. Search input
|
18
|
+
// 2e. Checkbox/Radio settings
|
19
|
+
// 2f. Textarea settings
|
20
|
+
// 2g. Select settings
|
21
|
+
// 3. Label settings
|
22
|
+
// 4. Elements
|
23
|
+
|
24
|
+
|
25
|
+
// ==========================================================================
|
26
|
+
//
|
27
|
+
// SELECTOR SETTINGS
|
28
|
+
//
|
29
|
+
// ==========================================================================
|
30
|
+
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Seletor for form elements
|
34
|
+
*
|
35
|
+
* @since 0.1
|
36
|
+
*
|
37
|
+
* @type {String}
|
38
|
+
*/
|
39
|
+
|
40
|
+
$form-form-selector: "%form" !default;
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Selector for fieldset elements
|
44
|
+
*
|
45
|
+
* @since 0.1
|
46
|
+
*
|
47
|
+
* @type {String}
|
48
|
+
*/
|
49
|
+
|
50
|
+
$form-fieldset-selector: "%fieldset" !default;
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Selector for legend elements
|
54
|
+
*
|
55
|
+
* @since 0.1
|
56
|
+
*
|
57
|
+
* @type {String}
|
58
|
+
*/
|
59
|
+
|
60
|
+
$form-legend-selector: "%legend" !default;
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Selector for field base
|
64
|
+
*
|
65
|
+
* @since 0.1
|
66
|
+
*
|
67
|
+
* @type {String}
|
68
|
+
*/
|
69
|
+
|
70
|
+
$form-field-base-selector: "%field-base" !default;
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Selector for focus state of form elements
|
74
|
+
*
|
75
|
+
* @since 0.1
|
76
|
+
*
|
77
|
+
* @type {String}
|
78
|
+
*/
|
79
|
+
|
80
|
+
$form-field-base-selector--focus: "%field-base--focus" !default;
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Selector for most field elements
|
84
|
+
*
|
85
|
+
* @since 0.1
|
86
|
+
*
|
87
|
+
* @type {String}
|
88
|
+
*/
|
89
|
+
|
90
|
+
$form-field-selector: "%field" !default;
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Selector for color field elements
|
94
|
+
*
|
95
|
+
* @since 0.1
|
96
|
+
*
|
97
|
+
* @type {String}
|
98
|
+
*/
|
99
|
+
|
100
|
+
$form-field-color-selector: "%field--color" !default;
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Selector for range field elements
|
104
|
+
*
|
105
|
+
* @since 0.1
|
106
|
+
*
|
107
|
+
* @type {String}
|
108
|
+
*/
|
109
|
+
|
110
|
+
$form-field-range-selector: "%field--range" !default;
|
111
|
+
|
112
|
+
/**
|
113
|
+
* Selector for search field elements
|
114
|
+
*
|
115
|
+
* @since 0.1
|
116
|
+
*
|
117
|
+
* @type {String}
|
118
|
+
*/
|
119
|
+
|
120
|
+
$form-field-search-selector: "%field--search" !default;
|
121
|
+
|
122
|
+
/**
|
123
|
+
* Selector for checkbox field elements
|
124
|
+
*
|
125
|
+
* @since 0.1
|
126
|
+
*
|
127
|
+
* @type {String}
|
128
|
+
*/
|
129
|
+
|
130
|
+
$form-checkbox-selector: "%checkbox" !default;
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Selector for radio field elements
|
134
|
+
*
|
135
|
+
* @since 0.1
|
136
|
+
*
|
137
|
+
* @type {String}
|
138
|
+
*/
|
139
|
+
|
140
|
+
$form-radio-selector: "%radio" !default;
|
141
|
+
|
142
|
+
/**
|
143
|
+
* Selector for textarea field elements
|
144
|
+
*
|
145
|
+
* @since 0.1
|
146
|
+
*
|
147
|
+
* @type {String}
|
148
|
+
*/
|
149
|
+
|
150
|
+
$form-textarea-selector: "%textarea" !default;
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Selector for select field base
|
154
|
+
*
|
155
|
+
* @since 0.1
|
156
|
+
*
|
157
|
+
* @type {String}
|
158
|
+
*/
|
159
|
+
|
160
|
+
$form-select-selector: "%select" !default;
|
161
|
+
|
162
|
+
/**
|
163
|
+
* Selector for select field elements that behave like dropdowns
|
164
|
+
*
|
165
|
+
* @since 0.1
|
166
|
+
*
|
167
|
+
* @type {String}
|
168
|
+
*/
|
169
|
+
|
170
|
+
$form-select-dropdown-selector: "%select--dropdown" !default;
|
171
|
+
|
172
|
+
/**
|
173
|
+
* Selector for scrollable select field elements
|
174
|
+
*
|
175
|
+
* @since 0.1
|
176
|
+
*
|
177
|
+
* @type {String}
|
178
|
+
*/
|
179
|
+
|
180
|
+
$form-select-box-selector: "%select--box" !default;
|
181
|
+
|
182
|
+
/**
|
183
|
+
* Selector for scrollable select field elements
|
184
|
+
*
|
185
|
+
* @since 0.1
|
186
|
+
*
|
187
|
+
* @type {String}
|
188
|
+
*/
|
189
|
+
|
190
|
+
$form-select-multiple-selector: "%select--multiple" !default;
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Selector for scrollable labe; elements
|
194
|
+
*
|
195
|
+
* @since 0.1
|
196
|
+
*
|
197
|
+
* @type {String}
|
198
|
+
*/
|
199
|
+
|
200
|
+
$form-label-selector: "%label" !default;
|
201
|
+
|
202
|
+
// Start collection of element-maps
|
203
|
+
|
204
|
+
/**
|
205
|
+
* Collection of form selectors and property maps. For each selector, the corrresponding properties are rendered by the form behavior.
|
206
|
+
* You can override form behavior by a) overriding any of the field settings, or by b) replacing the selector entry in this element collection map.
|
207
|
+
*
|
208
|
+
* @since 0.1
|
209
|
+
*
|
210
|
+
* @type {Map}
|
211
|
+
*/
|
212
|
+
|
213
|
+
$form-elements: ();
|
214
|
+
|
215
|
+
// ==========================================================================
|
216
|
+
//
|
217
|
+
// FIELD SETTINGS
|
218
|
+
//
|
219
|
+
// ==========================================================================
|
220
|
+
|
221
|
+
|
222
|
+
// --------------------------------------------------------------------------
|
223
|
+
//
|
224
|
+
// SHARED SETTINGS - DEFAULT
|
225
|
+
//
|
226
|
+
// --------------------------------------------------------------------------
|
227
|
+
|
228
|
+
/**
|
229
|
+
* Field top-padding. Defaults to a quarter rhythm unit.
|
230
|
+
*
|
231
|
+
* @since 0.1
|
232
|
+
*
|
233
|
+
* @type {Number}
|
234
|
+
*/
|
235
|
+
|
236
|
+
$field-padding-top: vrhythm(.25) !default;
|
237
|
+
|
238
|
+
/**
|
239
|
+
* Field right-padding.
|
240
|
+
*
|
241
|
+
* @since 0.1
|
242
|
+
*
|
243
|
+
* @type {Number}
|
244
|
+
*/
|
245
|
+
|
246
|
+
$field-padding-right: .5em !default;
|
247
|
+
|
248
|
+
/**
|
249
|
+
* Field bottom-padding. Defaults to a quarter rhythm unit.
|
250
|
+
*
|
251
|
+
* @since 0.1
|
252
|
+
*
|
253
|
+
* @type {Number}
|
254
|
+
*/
|
255
|
+
|
256
|
+
$field-padding-bottom: vrhythm(.25) !default;
|
257
|
+
|
258
|
+
/**
|
259
|
+
* Field left-padding.
|
260
|
+
*
|
261
|
+
* @since 0.1
|
262
|
+
*
|
263
|
+
* @type {Number}
|
264
|
+
*/
|
265
|
+
|
266
|
+
$field-padding-left: .5em !default;
|
267
|
+
|
268
|
+
/**
|
269
|
+
* Field background-color, defaults to the default background color.
|
270
|
+
*
|
271
|
+
* @since 0.1
|
272
|
+
*
|
273
|
+
* @type {Color}
|
274
|
+
*/
|
275
|
+
|
276
|
+
$field-background-color: $color-background !default;
|
277
|
+
|
278
|
+
/**
|
279
|
+
* Field background-image, false will not render an image.
|
280
|
+
*
|
281
|
+
* @since 0.1
|
282
|
+
*
|
283
|
+
* @type {Color}
|
284
|
+
*/
|
285
|
+
|
286
|
+
$field-background-image: false !default;
|
287
|
+
|
288
|
+
/**
|
289
|
+
* Field border width.
|
290
|
+
*
|
291
|
+
* @since 0.1
|
292
|
+
*
|
293
|
+
* @type {Number}
|
294
|
+
*/
|
295
|
+
|
296
|
+
$field-border-width: 1px !default;
|
297
|
+
|
298
|
+
/**
|
299
|
+
* Field border style.
|
300
|
+
*
|
301
|
+
* @since 0.1
|
302
|
+
*
|
303
|
+
* @type {String}
|
304
|
+
*/
|
305
|
+
|
306
|
+
$field-border-style: solid !default;
|
307
|
+
|
308
|
+
/**
|
309
|
+
* Field border color.
|
310
|
+
*
|
311
|
+
* @since 0.1
|
312
|
+
*
|
313
|
+
* @type {Color}
|
314
|
+
*/
|
315
|
+
|
316
|
+
$field-border-color: darken($color-background, 30%) !default;
|
317
|
+
|
318
|
+
/**
|
319
|
+
* Field border radius.
|
320
|
+
*
|
321
|
+
* @since 0.1
|
322
|
+
*
|
323
|
+
* @type {Number}
|
324
|
+
*/
|
325
|
+
|
326
|
+
$field-border-radius: $corner-radius !default;
|
327
|
+
|
328
|
+
/**
|
329
|
+
* Field box sizing, set to border-box if you want consistent heights and widths accross form elements.
|
330
|
+
*
|
331
|
+
* @since 0.1
|
332
|
+
*
|
333
|
+
* @type {String}
|
334
|
+
*/
|
335
|
+
|
336
|
+
$field-box-sizing: border-box !default;
|
337
|
+
|
338
|
+
/**
|
339
|
+
* Field width, set to 100%. Width will be set on the field's (parent) container.
|
340
|
+
*
|
341
|
+
* @since 0.1
|
342
|
+
*
|
343
|
+
* @type {Number}
|
344
|
+
*/
|
345
|
+
|
346
|
+
$field-width: 100% !default;
|
347
|
+
|
348
|
+
/**
|
349
|
+
* Field height computes to line-heigh plus border-width + plus padding and is used by select (dropdown) form elements.
|
350
|
+
*
|
351
|
+
* @since 0.1
|
352
|
+
*
|
353
|
+
* @type {Number}
|
354
|
+
*/
|
355
|
+
|
356
|
+
$field-height: $default-line-height + 2*$field-border-width + $field-padding-top + $field-padding-bottom !default;
|
357
|
+
|
358
|
+
/**
|
359
|
+
* Field line-height, relevant for text-area.
|
360
|
+
*
|
361
|
+
* @since 0.1
|
362
|
+
*
|
363
|
+
* @type {Number}
|
364
|
+
*/
|
365
|
+
|
366
|
+
$field-line-height: $default-line-height !default;
|
367
|
+
|
368
|
+
/**
|
369
|
+
* Field shadow, simple inset shadow by default.
|
370
|
+
*
|
371
|
+
* @since 0.1
|
372
|
+
*
|
373
|
+
* @type {List}
|
374
|
+
*/
|
375
|
+
|
376
|
+
$field-shadow: mix($black, $field-background-color, 10%) 1px 1px 1px 0 inset !default;
|
377
|
+
|
378
|
+
$form-elements: add-properties(
|
379
|
+
(
|
380
|
+
box-sizing: $field-box-sizing, // The search box needs this, weirdly
|
381
|
+
height: $field-height,
|
382
|
+
width: $field-width,
|
383
|
+
padding: (top: $field-padding-top, right: $field-padding-right, bottom: $field-padding-bottom, left: $field-padding-left),
|
384
|
+
background: $field-background-color if($field-background-image, url(#{$field-background-image}), none),
|
385
|
+
border: $field-border-width $field-border-style $field-border-color,
|
386
|
+
border-radius: $field-border-radius,
|
387
|
+
line-height: $field-line-height,
|
388
|
+
box-shadow: $field-shadow,
|
389
|
+
),
|
390
|
+
$form-field-base-selector,
|
391
|
+
$form-elements
|
392
|
+
);
|
393
|
+
|
394
|
+
|
395
|
+
// --------------------------------------------------------------------------
|
396
|
+
//
|
397
|
+
// SHARED SETTINGS - FOCUS
|
398
|
+
//
|
399
|
+
// --------------------------------------------------------------------------
|
400
|
+
|
401
|
+
|
402
|
+
/**
|
403
|
+
* Background color of a field with focus state.
|
404
|
+
*
|
405
|
+
* @since 0.1
|
406
|
+
*
|
407
|
+
* @type {Color}
|
408
|
+
*/
|
409
|
+
|
410
|
+
$field-focussed-background-color: $whitesmoke !default;
|
411
|
+
|
412
|
+
/**
|
413
|
+
* Outline width of a field with focus state.
|
414
|
+
*
|
415
|
+
* @since 0.1
|
416
|
+
*
|
417
|
+
* @type {Number}
|
418
|
+
*/
|
419
|
+
|
420
|
+
$field-focussed-outline-width: 1px !default;
|
421
|
+
|
422
|
+
/**
|
423
|
+
* Outline style of a field with focus state.
|
424
|
+
*
|
425
|
+
* @since 0.1
|
426
|
+
*
|
427
|
+
* @type {String}
|
428
|
+
*/
|
429
|
+
|
430
|
+
$field-focussed-outline-style: solid !default;
|
431
|
+
|
432
|
+
/**
|
433
|
+
* Outline color of a field with focus state.
|
434
|
+
*
|
435
|
+
* @since 0.1
|
436
|
+
*
|
437
|
+
* @type {Color}
|
438
|
+
*/
|
439
|
+
|
440
|
+
$field-focussed-outline-color: mix($field-border-color, $field-focussed-background-color, 0) !default;
|
441
|
+
|
442
|
+
/**
|
443
|
+
* Outline offset of a field with focus state. In this setting, the outline is rendered inside the field against the field background.
|
444
|
+
* Be aware that this property can have a negative impact on a form's accessibility. Alter with care.
|
445
|
+
*
|
446
|
+
* @since 0.1
|
447
|
+
*
|
448
|
+
* @type {Number}
|
449
|
+
*/
|
450
|
+
|
451
|
+
$field-focussed-outline-offset: -1*( $field-focussed-outline-width + 3*$field-border-width) !default;
|
452
|
+
|
453
|
+
$form-elements: add-properties(
|
454
|
+
(
|
455
|
+
background-color: $field-focussed-background-color,
|
456
|
+
outline: $field-focussed-outline-width $field-focussed-outline-style $field-focussed-outline-color,
|
457
|
+
outline-offset: $field-focussed-outline-offset,
|
458
|
+
),
|
459
|
+
$form-field-base-selector--focus,
|
460
|
+
$form-elements
|
461
|
+
);
|
462
|
+
|
463
|
+
|
464
|
+
// ==========================================================================
|
465
|
+
//
|
466
|
+
// 2b. Input Color properties
|
467
|
+
//
|
468
|
+
// ==========================================================================
|
469
|
+
|
470
|
+
$form-elements: add-properties(
|
471
|
+
(
|
472
|
+
// border: $field-border-width $field-border-style $field-border-color,
|
473
|
+
border-radius: $field-border-radius,
|
474
|
+
),
|
475
|
+
$form-field-color-selector,
|
476
|
+
$form-elements
|
477
|
+
);
|
478
|
+
|
479
|
+
|
480
|
+
// ==========================================================================
|
481
|
+
//
|
482
|
+
// 2b. Input Range properties
|
483
|
+
//
|
484
|
+
// ==========================================================================
|
485
|
+
|
486
|
+
|
487
|
+
/**
|
488
|
+
* Width of range input field.
|
489
|
+
*
|
490
|
+
* @since 0.1
|
491
|
+
*
|
492
|
+
* @type {Number}
|
493
|
+
*/
|
494
|
+
|
495
|
+
$field-range-width: $field-width !default;
|
496
|
+
|
497
|
+
$form-elements: add-properties(
|
498
|
+
(
|
499
|
+
width: $field-range-width,
|
500
|
+
),
|
501
|
+
$form-field-range-selector,
|
502
|
+
$form-elements
|
503
|
+
);
|
504
|
+
|
505
|
+
|
506
|
+
// --------------------------------------------------------------------------
|
507
|
+
//
|
508
|
+
// Input Search properties
|
509
|
+
//
|
510
|
+
// --------------------------------------------------------------------------
|
511
|
+
|
512
|
+
|
513
|
+
/**
|
514
|
+
* Border radius for search fields.
|
515
|
+
*
|
516
|
+
* @since 0.1
|
517
|
+
*
|
518
|
+
* @type {Number}
|
519
|
+
*/
|
520
|
+
|
521
|
+
$field-search-border-radius: $field-border-radius !default;
|
522
|
+
|
523
|
+
/**
|
524
|
+
* Outline offset override for search fields.
|
525
|
+
*
|
526
|
+
* @since 0.1
|
527
|
+
*
|
528
|
+
* @type {Number}
|
529
|
+
*/
|
530
|
+
|
531
|
+
$field-search-outline-offset: 0 !default;
|
532
|
+
|
533
|
+
$form-elements: add-properties(
|
534
|
+
(
|
535
|
+
// border-radius: $field-search-border-radius,
|
536
|
+
// outline-offset: $field-search-outline-offset,
|
537
|
+
),
|
538
|
+
$form-field-search-selector,
|
539
|
+
$form-elements
|
540
|
+
);
|
541
|
+
|
542
|
+
|
543
|
+
// --------------------------------------------------------------------------
|
544
|
+
//
|
545
|
+
// Select properties
|
546
|
+
//
|
547
|
+
// --------------------------------------------------------------------------
|
548
|
+
|
549
|
+
/**
|
550
|
+
* Height of select element.
|
551
|
+
*
|
552
|
+
* @since 0.1
|
553
|
+
*
|
554
|
+
* @type {Number}
|
555
|
+
*/
|
556
|
+
|
557
|
+
$select-height: $field-height !default; // This is used for select elements
|
558
|
+
|
559
|
+
/**
|
560
|
+
* Experimental setting.
|
561
|
+
*
|
562
|
+
* @since 0.1
|
563
|
+
*
|
564
|
+
* @type {String}
|
565
|
+
*/
|
566
|
+
|
567
|
+
$select-appearance: menulist !default;
|
568
|
+
|
569
|
+
/**
|
570
|
+
* Experimental setting. Allows overriding of default behavior. Will require JavaScript.
|
571
|
+
*
|
572
|
+
* @todo define behavior, does not do anything at the moment
|
573
|
+
* @since 0.1
|
574
|
+
*
|
575
|
+
* @type {Number}
|
576
|
+
*/
|
577
|
+
|
578
|
+
$select-webkit: false !default;
|
579
|
+
|
580
|
+
$form-elements: add-properties(
|
581
|
+
(
|
582
|
+
height: $select-height,
|
583
|
+
),
|
584
|
+
$form-select-selector,
|
585
|
+
$form-elements
|
586
|
+
);
|
587
|
+
|
588
|
+
$form-elements: add-properties(
|
589
|
+
(
|
590
|
+
height: auto,
|
591
|
+
),
|
592
|
+
$form-select-box-selector,
|
593
|
+
$form-elements
|
594
|
+
);
|
595
|
+
|
596
|
+
|
597
|
+
// --------------------------------------------------------------------------
|
598
|
+
//
|
599
|
+
// Textarea properties
|
600
|
+
//
|
601
|
+
// --------------------------------------------------------------------------
|
602
|
+
|
603
|
+
|
604
|
+
/**
|
605
|
+
* Height of textarea element.
|
606
|
+
*
|
607
|
+
* @since 0.1
|
608
|
+
*
|
609
|
+
* @type {Number | String}
|
610
|
+
*/
|
611
|
+
|
612
|
+
$textarea-height: auto !default;
|
613
|
+
|
614
|
+
/**
|
615
|
+
* Alternate height of textarea element, medium.
|
616
|
+
*
|
617
|
+
* @since 0.1
|
618
|
+
*
|
619
|
+
* @type {Number | String}
|
620
|
+
*/
|
621
|
+
|
622
|
+
$textarea-height-medium: vrhythm(5) - 2*$field-border-width !default;
|
623
|
+
|
624
|
+
/**
|
625
|
+
* Alternate height of textarea element, large.
|
626
|
+
*
|
627
|
+
* @since 0.1
|
628
|
+
*
|
629
|
+
* @type {Number | String}
|
630
|
+
*/
|
631
|
+
|
632
|
+
$textarea-height-large: vrhythm(10) - 2*$field-border-width !default;
|
633
|
+
|
634
|
+
$form-elements: add-properties(
|
635
|
+
(
|
636
|
+
height: $textarea-height,
|
637
|
+
),
|
638
|
+
$form-textarea-selector,
|
639
|
+
$form-elements
|
640
|
+
);
|
641
|
+
|
642
|
+
$form-elements: add-properties(
|
643
|
+
(
|
644
|
+
height: $textarea-height-medium,
|
645
|
+
),
|
646
|
+
#{$form-textarea-selector}--medium,
|
647
|
+
$form-elements
|
648
|
+
);
|
649
|
+
|
650
|
+
$form-elements: add-properties(
|
651
|
+
(
|
652
|
+
height: $textarea-height-large,
|
653
|
+
),
|
654
|
+
#{$form-textarea-selector}--large,
|
655
|
+
$form-elements
|
656
|
+
);
|
657
|
+
|
658
|
+
// ==========================================================================
|
659
|
+
//
|
660
|
+
// LABEL SETTINGS
|
661
|
+
//
|
662
|
+
// ==========================================================================
|
663
|
+
|
664
|
+
|