spuit 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +11 -0
- data/.gitignore +70 -0
- data/.npmignore +9 -0
- data/Gemfile +4 -0
- data/README.md +16 -0
- data/Rakefile +1 -0
- data/assets/javascripts/index.js +2 -0
- data/assets/javascripts/spuit/Common.js +316 -0
- data/assets/javascripts/spuit/extend.js +46 -0
- data/assets/stylesheets/spuit/components/_body.sass +175 -0
- data/assets/stylesheets/spuit/components/_button.sass +116 -0
- data/assets/stylesheets/spuit/components/_form.sass +44 -0
- data/assets/stylesheets/spuit/components/_gist.sass +57 -0
- data/assets/stylesheets/spuit/components/_grids.sass +44 -0
- data/assets/stylesheets/spuit/components/_icon.scss +68 -0
- data/assets/stylesheets/spuit/components/_markdown.sass +182 -0
- data/assets/stylesheets/spuit/components/_messages.sass +18 -0
- data/assets/stylesheets/spuit/components/_shoulder.sass +13 -0
- data/assets/stylesheets/spuit/components/_split.sass +32 -0
- data/assets/stylesheets/spuit/components/_triangle.sass +40 -0
- data/assets/stylesheets/spuit/components/_wordwrap-fadeout.sass +19 -0
- data/assets/stylesheets/spuit/components/_wrap.sass +22 -0
- data/assets/stylesheets/spuit/elements/_checkbox.sass +46 -0
- data/assets/stylesheets/spuit/elements/_dl.sass +30 -0
- data/assets/stylesheets/spuit/elements/_fieldset.sass +46 -0
- data/assets/stylesheets/spuit/elements/_hr.sass +36 -0
- data/assets/stylesheets/spuit/elements/_input.sass +27 -0
- data/assets/stylesheets/spuit/elements/_radio.sass +47 -0
- data/assets/stylesheets/spuit/elements/_select.sass +54 -0
- data/assets/stylesheets/spuit/elements/_table.sass +58 -0
- data/assets/stylesheets/spuit/includes/_animations.scss +55 -0
- data/assets/stylesheets/spuit/includes/_grid.scss +345 -0
- data/assets/stylesheets/spuit/includes/_hiddens.scss +17 -0
- data/assets/stylesheets/spuit/includes/_normalize.scss +467 -0
- data/assets/stylesheets/spuit/includes/_spacers.scss +79 -0
- data/assets/stylesheets/spuit/includes/_spuit-utils.scss +11 -0
- data/assets/stylesheets/spuit/includes/_stickey-footer.scss +18 -0
- data/assets/stylesheets/spuit/includes/_webfonts.scss +30 -0
- data/assets/stylesheets/spuit/modules/_background-image.scss +63 -0
- data/assets/stylesheets/spuit/modules/_breakpoints.scss +19 -0
- data/assets/stylesheets/spuit/modules/_clearfix.scss +7 -0
- data/assets/stylesheets/spuit/modules/_fa.scss +28 -0
- data/assets/stylesheets/spuit/modules/_font-face.scss +31 -0
- data/assets/stylesheets/spuit/modules/_hide-text.scss +9 -0
- data/assets/stylesheets/spuit/modules/_inherit.scss +6 -0
- data/assets/stylesheets/spuit/modules/_reset.scss +55 -0
- data/assets/stylesheets/spuit/modules/_text-overflow.scss +15 -0
- data/assets/stylesheets/spuit/modules/_word-break.scss +11 -0
- data/assets/stylesheets/spuit/shortcuts/_absolute.scss +17 -0
- data/assets/stylesheets/spuit/shortcuts/_centering.scss +6 -0
- data/assets/stylesheets/spuit/shortcuts/_disc.scss +6 -0
- data/assets/stylesheets/spuit/variables/_colors.scss +3 -0
- data/assets/stylesheets/spuit/variables/_defaults.scss +3 -0
- data/assets/stylesheets/spuit/variables/_fonts.scss +6 -0
- data/assets/stylesheets/spuit/variables/_media-queries.scss +31 -0
- data/assets/stylesheets/spuit/variables/_svgs.scss +7 -0
- data/assets/stylesheets/spuit/variables/_timing-functions.sass +37 -0
- data/assets/stylesheets/styles.scss +164 -0
- data/assets/stylesheets/styles/config/_mixins.scss +23 -0
- data/assets/stylesheets/styles/config/_variables.scss +4 -0
- data/dist/favicon.png +0 -0
- data/dist/index.html +307 -0
- data/dist/javascripts/scripts.min.js +2 -0
- data/dist/javascripts/scripts.min.js.map +1 -0
- data/dist/stylesheets/styles.css +1 -0
- data/gulp/README.md +7 -0
- data/gulp/tasks/watch.js +79 -0
- data/gulpfile.js +2 -0
- data/lib/spuit.rb +41 -0
- data/lib/spuit/engine.rb +5 -0
- data/lib/spuit/generator.rb +80 -0
- data/lib/spuit/version.rb +3 -0
- data/package.json +38 -0
- data/spuit.gemspec +23 -0
- data/spuit.scss +47 -0
- metadata +147 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
// @include include-hiddens
|
2
|
+
@mixin include-hiddens {
|
3
|
+
@at-root {
|
4
|
+
@each $bp in map-keys($grids-breakpoints) {
|
5
|
+
.hidden-#{$bp}-up {
|
6
|
+
@include breakpoint-up($bp) {
|
7
|
+
display: none !important;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
.hidden-#{$bp}-down {
|
11
|
+
@include breakpoint-down($bp) {
|
12
|
+
display: none !important;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,467 @@
|
|
1
|
+
// @include include-normalize
|
2
|
+
@mixin include-normalize {
|
3
|
+
@at-root {
|
4
|
+
|
5
|
+
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
|
6
|
+
|
7
|
+
/**
|
8
|
+
* 1. Change the default font family in all browsers (opinionated).
|
9
|
+
* 2. Correct the line height in all browsers.
|
10
|
+
* 3. Prevent adjustments of font size after orientation changes in
|
11
|
+
* IE on Windows Phone and in iOS.
|
12
|
+
*/
|
13
|
+
|
14
|
+
/* Document
|
15
|
+
========================================================================== */
|
16
|
+
|
17
|
+
html {
|
18
|
+
font-family: sans-serif; /* 1 */
|
19
|
+
line-height: 1.15; /* 2 */
|
20
|
+
-ms-text-size-adjust: 100%; /* 3 */
|
21
|
+
-webkit-text-size-adjust: 100%; /* 3 */
|
22
|
+
}
|
23
|
+
|
24
|
+
/* Sections
|
25
|
+
========================================================================== */
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Remove the margin in all browsers (opinionated).
|
29
|
+
*/
|
30
|
+
|
31
|
+
body {
|
32
|
+
margin: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Add the correct display in IE 9-.
|
37
|
+
*/
|
38
|
+
|
39
|
+
article,
|
40
|
+
aside,
|
41
|
+
footer,
|
42
|
+
header,
|
43
|
+
nav,
|
44
|
+
section {
|
45
|
+
display: block;
|
46
|
+
}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
50
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
51
|
+
*/
|
52
|
+
|
53
|
+
h1 {
|
54
|
+
font-size: 2em;
|
55
|
+
margin: 0.67em 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
/* Grouping content
|
59
|
+
========================================================================== */
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Add the correct display in IE 9-.
|
63
|
+
* 1. Add the correct display in IE.
|
64
|
+
*/
|
65
|
+
|
66
|
+
figcaption,
|
67
|
+
figure,
|
68
|
+
main { /* 1 */
|
69
|
+
display: block;
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Add the correct margin in IE 8.
|
74
|
+
*/
|
75
|
+
|
76
|
+
figure {
|
77
|
+
margin: 1em 40px;
|
78
|
+
}
|
79
|
+
|
80
|
+
/**
|
81
|
+
* 1. Add the correct box sizing in Firefox.
|
82
|
+
* 2. Show the overflow in Edge and IE.
|
83
|
+
*/
|
84
|
+
|
85
|
+
hr {
|
86
|
+
box-sizing: content-box; /* 1 */
|
87
|
+
height: 0; /* 1 */
|
88
|
+
overflow: visible; /* 2 */
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
93
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
94
|
+
*/
|
95
|
+
|
96
|
+
pre {
|
97
|
+
font-family: monospace, monospace; /* 1 */
|
98
|
+
font-size: 1em; /* 2 */
|
99
|
+
}
|
100
|
+
|
101
|
+
/* Text-level semantics
|
102
|
+
========================================================================== */
|
103
|
+
|
104
|
+
/**
|
105
|
+
* 1. Remove the gray background on active links in IE 10.
|
106
|
+
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
107
|
+
*/
|
108
|
+
|
109
|
+
a {
|
110
|
+
background-color: transparent; /* 1 */
|
111
|
+
-webkit-text-decoration-skip: objects; /* 2 */
|
112
|
+
}
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Remove the outline on focused links when they are also active or hovered
|
116
|
+
* in all browsers (opinionated).
|
117
|
+
*/
|
118
|
+
|
119
|
+
a:active,
|
120
|
+
a:hover {
|
121
|
+
outline-width: 0;
|
122
|
+
}
|
123
|
+
|
124
|
+
/**
|
125
|
+
* 1. Remove the bottom border in Firefox 39-.
|
126
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
127
|
+
*/
|
128
|
+
|
129
|
+
abbr[title] {
|
130
|
+
border-bottom: none; /* 1 */
|
131
|
+
text-decoration: underline; /* 2 */
|
132
|
+
text-decoration: underline dotted; /* 2 */
|
133
|
+
}
|
134
|
+
|
135
|
+
/**
|
136
|
+
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
137
|
+
*/
|
138
|
+
|
139
|
+
b,
|
140
|
+
strong {
|
141
|
+
font-weight: inherit;
|
142
|
+
}
|
143
|
+
|
144
|
+
/**
|
145
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
146
|
+
*/
|
147
|
+
|
148
|
+
b,
|
149
|
+
strong {
|
150
|
+
font-weight: bolder;
|
151
|
+
}
|
152
|
+
|
153
|
+
/**
|
154
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
155
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
156
|
+
*/
|
157
|
+
|
158
|
+
code,
|
159
|
+
kbd,
|
160
|
+
samp {
|
161
|
+
font-family: monospace, monospace; /* 1 */
|
162
|
+
font-size: 1em; /* 2 */
|
163
|
+
}
|
164
|
+
|
165
|
+
/**
|
166
|
+
* Add the correct font style in Android 4.3-.
|
167
|
+
*/
|
168
|
+
|
169
|
+
dfn {
|
170
|
+
font-style: italic;
|
171
|
+
}
|
172
|
+
|
173
|
+
/**
|
174
|
+
* Add the correct background and color in IE 9-.
|
175
|
+
*/
|
176
|
+
|
177
|
+
mark {
|
178
|
+
background-color: #ff0;
|
179
|
+
color: #000;
|
180
|
+
}
|
181
|
+
|
182
|
+
/**
|
183
|
+
* Add the correct font size in all browsers.
|
184
|
+
*/
|
185
|
+
|
186
|
+
small {
|
187
|
+
font-size: 80%;
|
188
|
+
}
|
189
|
+
|
190
|
+
/**
|
191
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
192
|
+
* all browsers.
|
193
|
+
*/
|
194
|
+
|
195
|
+
sub,
|
196
|
+
sup {
|
197
|
+
font-size: 75%;
|
198
|
+
line-height: 0;
|
199
|
+
position: relative;
|
200
|
+
vertical-align: baseline;
|
201
|
+
}
|
202
|
+
|
203
|
+
sub {
|
204
|
+
bottom: -0.25em;
|
205
|
+
}
|
206
|
+
|
207
|
+
sup {
|
208
|
+
top: -0.5em;
|
209
|
+
}
|
210
|
+
|
211
|
+
/* Embedded content
|
212
|
+
========================================================================== */
|
213
|
+
|
214
|
+
/**
|
215
|
+
* Add the correct display in IE 9-.
|
216
|
+
*/
|
217
|
+
|
218
|
+
audio,
|
219
|
+
video {
|
220
|
+
display: inline-block;
|
221
|
+
}
|
222
|
+
|
223
|
+
/**
|
224
|
+
* Add the correct display in iOS 4-7.
|
225
|
+
*/
|
226
|
+
|
227
|
+
audio:not([controls]) {
|
228
|
+
display: none;
|
229
|
+
height: 0;
|
230
|
+
}
|
231
|
+
|
232
|
+
/**
|
233
|
+
* Remove the border on images inside links in IE 10-.
|
234
|
+
*/
|
235
|
+
|
236
|
+
img {
|
237
|
+
border-style: none;
|
238
|
+
}
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Hide the overflow in IE.
|
242
|
+
*/
|
243
|
+
|
244
|
+
svg:not(:root) {
|
245
|
+
overflow: hidden;
|
246
|
+
}
|
247
|
+
|
248
|
+
/* Forms
|
249
|
+
========================================================================== */
|
250
|
+
|
251
|
+
/**
|
252
|
+
* 1. Change the font styles in all browsers (opinionated).
|
253
|
+
* 2. Remove the margin in Firefox and Safari.
|
254
|
+
*/
|
255
|
+
|
256
|
+
button,
|
257
|
+
input,
|
258
|
+
optgroup,
|
259
|
+
select,
|
260
|
+
textarea {
|
261
|
+
font-family: sans-serif; /* 1 */
|
262
|
+
font-size: 100%; /* 1 */
|
263
|
+
line-height: 1.15; /* 1 */
|
264
|
+
margin: 0; /* 2 */
|
265
|
+
}
|
266
|
+
|
267
|
+
/**
|
268
|
+
* Show the overflow in IE.
|
269
|
+
* 1. Show the overflow in Edge.
|
270
|
+
*/
|
271
|
+
|
272
|
+
button,
|
273
|
+
input { /* 1 */
|
274
|
+
overflow: visible;
|
275
|
+
}
|
276
|
+
|
277
|
+
/**
|
278
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
279
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
280
|
+
*/
|
281
|
+
|
282
|
+
button,
|
283
|
+
select { /* 1 */
|
284
|
+
text-transform: none;
|
285
|
+
}
|
286
|
+
|
287
|
+
/**
|
288
|
+
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
289
|
+
* controls in Android 4.
|
290
|
+
* 2. Correct the inability to style clickable types in iOS and Safari.
|
291
|
+
*/
|
292
|
+
|
293
|
+
button,
|
294
|
+
html [type="button"], /* 1 */
|
295
|
+
[type="reset"],
|
296
|
+
[type="submit"] {
|
297
|
+
-webkit-appearance: button; /* 2 */
|
298
|
+
}
|
299
|
+
|
300
|
+
/**
|
301
|
+
* Remove the inner border and padding in Firefox.
|
302
|
+
*/
|
303
|
+
|
304
|
+
button::-moz-focus-inner,
|
305
|
+
[type="button"]::-moz-focus-inner,
|
306
|
+
[type="reset"]::-moz-focus-inner,
|
307
|
+
[type="submit"]::-moz-focus-inner {
|
308
|
+
border-style: none;
|
309
|
+
padding: 0;
|
310
|
+
}
|
311
|
+
|
312
|
+
/**
|
313
|
+
* Restore the focus styles unset by the previous rule.
|
314
|
+
*/
|
315
|
+
|
316
|
+
button:-moz-focusring,
|
317
|
+
[type="button"]:-moz-focusring,
|
318
|
+
[type="reset"]:-moz-focusring,
|
319
|
+
[type="submit"]:-moz-focusring {
|
320
|
+
outline: 1px dotted ButtonText;
|
321
|
+
}
|
322
|
+
|
323
|
+
/**
|
324
|
+
* Change the border, margin, and padding in all browsers (opinionated).
|
325
|
+
*/
|
326
|
+
|
327
|
+
fieldset {
|
328
|
+
border: 1px solid #c0c0c0;
|
329
|
+
margin: 0 2px;
|
330
|
+
padding: 0.35em 0.625em 0.75em;
|
331
|
+
}
|
332
|
+
|
333
|
+
/**
|
334
|
+
* 1. Correct the text wrapping in Edge and IE.
|
335
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
336
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
337
|
+
* `fieldset` elements in all browsers.
|
338
|
+
*/
|
339
|
+
|
340
|
+
legend {
|
341
|
+
box-sizing: border-box; /* 1 */
|
342
|
+
color: inherit; /* 2 */
|
343
|
+
display: table; /* 1 */
|
344
|
+
max-width: 100%; /* 1 */
|
345
|
+
padding: 0; /* 3 */
|
346
|
+
white-space: normal; /* 1 */
|
347
|
+
}
|
348
|
+
|
349
|
+
/**
|
350
|
+
* 1. Add the correct display in IE 9-.
|
351
|
+
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
352
|
+
*/
|
353
|
+
|
354
|
+
progress {
|
355
|
+
display: inline-block; /* 1 */
|
356
|
+
vertical-align: baseline; /* 2 */
|
357
|
+
}
|
358
|
+
|
359
|
+
/**
|
360
|
+
* Remove the default vertical scrollbar in IE.
|
361
|
+
*/
|
362
|
+
|
363
|
+
textarea {
|
364
|
+
overflow: auto;
|
365
|
+
}
|
366
|
+
|
367
|
+
/**
|
368
|
+
* 1. Add the correct box sizing in IE 10-.
|
369
|
+
* 2. Remove the padding in IE 10-.
|
370
|
+
*/
|
371
|
+
|
372
|
+
[type="checkbox"],
|
373
|
+
[type="radio"] {
|
374
|
+
box-sizing: border-box; /* 1 */
|
375
|
+
padding: 0; /* 2 */
|
376
|
+
}
|
377
|
+
|
378
|
+
/**
|
379
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
380
|
+
*/
|
381
|
+
|
382
|
+
[type="number"]::-webkit-inner-spin-button,
|
383
|
+
[type="number"]::-webkit-outer-spin-button {
|
384
|
+
height: auto;
|
385
|
+
}
|
386
|
+
|
387
|
+
/**
|
388
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
389
|
+
* 2. Correct the outline style in Safari.
|
390
|
+
*/
|
391
|
+
|
392
|
+
[type="search"] {
|
393
|
+
-webkit-appearance: textfield; /* 1 */
|
394
|
+
outline-offset: -2px; /* 2 */
|
395
|
+
}
|
396
|
+
|
397
|
+
/**
|
398
|
+
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
|
399
|
+
*/
|
400
|
+
|
401
|
+
[type="search"]::-webkit-search-cancel-button,
|
402
|
+
[type="search"]::-webkit-search-decoration {
|
403
|
+
-webkit-appearance: none;
|
404
|
+
}
|
405
|
+
|
406
|
+
/**
|
407
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
408
|
+
* 2. Change font properties to `inherit` in Safari.
|
409
|
+
*/
|
410
|
+
|
411
|
+
::-webkit-file-upload-button {
|
412
|
+
-webkit-appearance: button; /* 1 */
|
413
|
+
font: inherit; /* 2 */
|
414
|
+
}
|
415
|
+
|
416
|
+
/* Interactive
|
417
|
+
========================================================================== */
|
418
|
+
|
419
|
+
/*
|
420
|
+
* Add the correct display in IE 9-.
|
421
|
+
* 1. Add the correct display in Edge, IE, and Firefox.
|
422
|
+
*/
|
423
|
+
|
424
|
+
details, /* 1 */
|
425
|
+
menu {
|
426
|
+
display: block;
|
427
|
+
}
|
428
|
+
|
429
|
+
/*
|
430
|
+
* Add the correct display in all browsers.
|
431
|
+
*/
|
432
|
+
|
433
|
+
summary {
|
434
|
+
display: list-item;
|
435
|
+
}
|
436
|
+
|
437
|
+
/* Scripting
|
438
|
+
========================================================================== */
|
439
|
+
|
440
|
+
/**
|
441
|
+
* Add the correct display in IE 9-.
|
442
|
+
*/
|
443
|
+
|
444
|
+
canvas {
|
445
|
+
display: inline-block;
|
446
|
+
}
|
447
|
+
|
448
|
+
/**
|
449
|
+
* Add the correct display in IE.
|
450
|
+
*/
|
451
|
+
|
452
|
+
template {
|
453
|
+
display: none;
|
454
|
+
}
|
455
|
+
|
456
|
+
/* Hidden
|
457
|
+
========================================================================== */
|
458
|
+
|
459
|
+
/**
|
460
|
+
* Add the correct display in IE 10-.
|
461
|
+
*/
|
462
|
+
|
463
|
+
[hidden] {
|
464
|
+
display: none;
|
465
|
+
}
|
466
|
+
}
|
467
|
+
}
|