bitstyles 0.8.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.
- checksums.yaml +7 -0
- data/.eslintignore +5 -0
- data/.eslintrc +4 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +20 -0
- data/.gitignore +19 -0
- data/.nvmrc +1 -0
- data/.stylelintrc +166 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +7 -0
- data/README.md +251 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bitstyles.gemspec +29 -0
- data/bower.json +31 -0
- data/build/.gitignore +4 -0
- data/lib/bitstyles/engine.rb +9 -0
- data/lib/bitstyles/version.rb +3 -0
- data/lib/bitstyles.rb +2 -0
- data/package.json +85 -0
- data/postcss_build.json +12 -0
- data/postcss_lint.json +11 -0
- data/scripts/styleguide.sh +16 -0
- data/scss/bitstyles/base/_figure.scss +9 -0
- data/scss/bitstyles/base/_forms.scss +182 -0
- data/scss/bitstyles/base/_hr.scss +6 -0
- data/scss/bitstyles/base/_images.scss +13 -0
- data/scss/bitstyles/base/_link.scss +32 -0
- data/scss/bitstyles/base/_media.scss +24 -0
- data/scss/bitstyles/base/_typography.scss +354 -0
- data/scss/bitstyles/components/_expander.scss +45 -0
- data/scss/bitstyles/components/_modal.scss +170 -0
- data/scss/bitstyles/generic/_box-sizing.scss +16 -0
- data/scss/bitstyles/generic/_normalize.scss +421 -0
- data/scss/bitstyles/layout/_content.scss +33 -0
- data/scss/bitstyles/layout/_grid.scss +148 -0
- data/scss/bitstyles/layout/_topbar.scss +25 -0
- data/scss/bitstyles/layout/_width.scss +48 -0
- data/scss/bitstyles/objects/_absolute-center.scss +16 -0
- data/scss/bitstyles/objects/_absolute-cover.scss +16 -0
- data/scss/bitstyles/objects/_block.scss +14 -0
- data/scss/bitstyles/objects/_bordered-header.scss +39 -0
- data/scss/bitstyles/objects/_break-long-words.scss +15 -0
- data/scss/bitstyles/objects/_button--icon.scss +30 -0
- data/scss/bitstyles/objects/_button.scss +103 -0
- data/scss/bitstyles/objects/_clearfix.scss +19 -0
- data/scss/bitstyles/objects/_expander.scss +45 -0
- data/scss/bitstyles/objects/_fixed-ratio.scss +23 -0
- data/scss/bitstyles/objects/_flex.scss +24 -0
- data/scss/bitstyles/objects/_hidden.scss +33 -0
- data/scss/bitstyles/objects/_icon.scss +43 -0
- data/scss/bitstyles/objects/_input.scss +83 -0
- data/scss/bitstyles/objects/_label.scss +15 -0
- data/scss/bitstyles/objects/_link.scss +29 -0
- data/scss/bitstyles/objects/_list-reset.scss +25 -0
- data/scss/bitstyles/objects/_media.scss +20 -0
- data/scss/bitstyles/objects/_truncate-with-ellipsis.scss +18 -0
- data/scss/bitstyles/objects/_typography.scss +92 -0
- data/scss/bitstyles/objects/_vertical-center.scss +16 -0
- data/scss/bitstyles/objects/_visuallyhidden.scss +30 -0
- data/scss/bitstyles/settings/_bordered-header.scss +3 -0
- data/scss/bitstyles/settings/_button--icon.scss +5 -0
- data/scss/bitstyles/settings/_button.scss +18 -0
- data/scss/bitstyles/settings/_content.scss +5 -0
- data/scss/bitstyles/settings/_global.animation.scss +3 -0
- data/scss/bitstyles/settings/_global.breakpoints.scss +12 -0
- data/scss/bitstyles/settings/_global.color-base.scss +14 -0
- data/scss/bitstyles/settings/_global.color-theme.scss +11 -0
- data/scss/bitstyles/settings/_global.layout.scss +7 -0
- data/scss/bitstyles/settings/_global.setup.scss +1 -0
- data/scss/bitstyles/settings/_global.typography.scss +28 -0
- data/scss/bitstyles/settings/_grid.scss +1 -0
- data/scss/bitstyles/settings/_hidden.scss +1 -0
- data/scss/bitstyles/settings/_icon.scss +5 -0
- data/scss/bitstyles/settings/_input.scss +12 -0
- data/scss/bitstyles/settings/_link.scss +4 -0
- data/scss/bitstyles/settings/_modal.scss +9 -0
- data/scss/bitstyles/settings/_topbar.scss +2 -0
- data/scss/bitstyles/settings/_visuallyhidden.scss +1 -0
- data/scss/bitstyles/settings/_width.scss +12 -0
- data/scss/bitstyles/tools/_absolute-center.scss +13 -0
- data/scss/bitstyles/tools/_absolute-cover.scss +13 -0
- data/scss/bitstyles/tools/_block.scss +9 -0
- data/scss/bitstyles/tools/_break-long-words.scss +11 -0
- data/scss/bitstyles/tools/_clearfix.scss +13 -0
- data/scss/bitstyles/tools/_fixed-ratio.scss +27 -0
- data/scss/bitstyles/tools/_flex.scss +15 -0
- data/scss/bitstyles/tools/_font-face.scss +21 -0
- data/scss/bitstyles/tools/_hidden.scss +11 -0
- data/scss/bitstyles/tools/_list-reset.scss +17 -0
- data/scss/bitstyles/tools/_media-query.scss +30 -0
- data/scss/bitstyles/tools/_media.scss +15 -0
- data/scss/bitstyles/tools/_truncate-with-ellipsis.scss +13 -0
- data/scss/bitstyles/tools/_typography-conversions.scss +18 -0
- data/scss/bitstyles/tools/_typography.scss +17 -0
- data/scss/bitstyles/tools/_vertical-center.scss +11 -0
- data/scss/bitstyles/tools/_visuallyhidden.scss +18 -0
- data/scss/bitstyles/tools/_width.scss +30 -0
- data/scss/bitstyles/tools/_zindex.scss +36 -0
- data/scss/bitstyles/trumps/_background-color.scss +18 -0
- data/scss/bitstyles/trumps/_color.scss +19 -0
- data/scss/bitstyles/trumps/_margin.scss +39 -0
- data/scss/bitstyles/trumps/_no-margin.scss +39 -0
- data/scss/bitstyles/trumps/_no-padding.scss +43 -0
- data/scss/bitstyles/trumps/_padding.scss +43 -0
- data/scss/bitstyles/trumps/_text-align.scss +21 -0
- data/scss/bitstyles/trumps/_text-style.scss +19 -0
- data/scss/bitstyles/trumps/_text-weight.scss +25 -0
- data/scss/bitstyles.scss +167 -0
- data/styleguide/assets/images/icons.svg +12 -0
- data/styleguide/assets/images/placeholder_16-9.png +0 -0
- data/styleguide/assets/images/placeholder_button.png +0 -0
- data/styleguide/assets/javascripts/a11y-dialog.js +135 -0
- data/styleguide/assets/javascripts/expander.js +40 -0
- data/styleguide/assets/javascripts/modal.js +55 -0
- data/styleguide/assets/javascripts/styleguide-init.js +6 -0
- data/styleguide/assets/stylesheets/styleguide-extras.css +17 -0
- metadata +192 -0
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 1. Change the default font family in all browsers (opinionated).
|
|
6
|
+
* 2. Prevent adjustments of font size after orientation changes in IE and iOS.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
html {
|
|
10
|
+
font-family: sans-serif; /* 1 */
|
|
11
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
|
12
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Remove the margin in all browsers (opinionated).
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* HTML5 display definitions
|
|
24
|
+
========================================================================== */
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Add the correct display in IE 9-.
|
|
28
|
+
* 1. Add the correct display in Edge, IE, and Firefox.
|
|
29
|
+
* 2. Add the correct display in IE.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
article,
|
|
33
|
+
aside,
|
|
34
|
+
details, /* 1 */
|
|
35
|
+
figcaption,
|
|
36
|
+
figure,
|
|
37
|
+
footer,
|
|
38
|
+
header,
|
|
39
|
+
main, /* 2 */
|
|
40
|
+
menu,
|
|
41
|
+
nav,
|
|
42
|
+
section,
|
|
43
|
+
summary { /* 1 */
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Add the correct display in IE 9-.
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
audio,
|
|
52
|
+
canvas,
|
|
53
|
+
progress,
|
|
54
|
+
video {
|
|
55
|
+
display: inline-block;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Add the correct display in iOS 4-7.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
audio:not([controls]) {
|
|
63
|
+
display: none;
|
|
64
|
+
height: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
progress {
|
|
72
|
+
vertical-align: baseline;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Add the correct display in IE 10-.
|
|
77
|
+
* 1. Add the correct display in IE.
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
template, /* 1 */
|
|
81
|
+
[hidden] {
|
|
82
|
+
display: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Links
|
|
86
|
+
========================================================================== */
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* 1. Remove the gray background on active links in IE 10.
|
|
90
|
+
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
a {
|
|
94
|
+
background-color: transparent; /* 1 */
|
|
95
|
+
-webkit-text-decoration-skip: objects; /* 2 */
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Remove the outline on focused links when they are also active or hovered
|
|
100
|
+
* in all browsers (opinionated).
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
a:active,
|
|
104
|
+
a:hover {
|
|
105
|
+
outline-width: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Text-level semantics
|
|
109
|
+
========================================================================== */
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* 1. Remove the bottom border in Firefox 39-.
|
|
113
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
abbr[title] {
|
|
117
|
+
border-bottom: none; /* 1 */
|
|
118
|
+
text-decoration: underline; /* 2 */
|
|
119
|
+
text-decoration: underline dotted; /* 2 */
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
b,
|
|
127
|
+
strong {
|
|
128
|
+
font-weight: inherit;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
b,
|
|
136
|
+
strong {
|
|
137
|
+
font-weight: bolder;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Add the correct font style in Android 4.3-.
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
dfn {
|
|
145
|
+
font-style: italic;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
150
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
h1 {
|
|
154
|
+
font-size: 2em;
|
|
155
|
+
margin: 0.67em 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Add the correct background and color in IE 9-.
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
mark {
|
|
163
|
+
background-color: #ff0;
|
|
164
|
+
color: #000;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Add the correct font size in all browsers.
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
small {
|
|
172
|
+
font-size: 80%;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
177
|
+
* all browsers.
|
|
178
|
+
*/
|
|
179
|
+
|
|
180
|
+
sub,
|
|
181
|
+
sup {
|
|
182
|
+
font-size: 75%;
|
|
183
|
+
line-height: 0;
|
|
184
|
+
position: relative;
|
|
185
|
+
vertical-align: baseline;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
sub {
|
|
189
|
+
bottom: -0.25em;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
sup {
|
|
193
|
+
top: -0.5em;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Embedded content
|
|
197
|
+
========================================================================== */
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Remove the border on images inside links in IE 10-.
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
img {
|
|
204
|
+
border-style: none;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Hide the overflow in IE.
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
svg:not(:root) {
|
|
212
|
+
overflow: hidden;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* Grouping content
|
|
216
|
+
========================================================================== */
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
220
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
code,
|
|
224
|
+
kbd,
|
|
225
|
+
pre,
|
|
226
|
+
samp {
|
|
227
|
+
font-family: monospace, monospace; /* 1 */
|
|
228
|
+
font-size: 1em; /* 2 */
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Add the correct margin in IE 8.
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
figure {
|
|
236
|
+
margin: 1em 40px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* 1. Add the correct box sizing in Firefox.
|
|
241
|
+
* 2. Show the overflow in Edge and IE.
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
hr {
|
|
245
|
+
box-sizing: content-box; /* 1 */
|
|
246
|
+
height: 0; /* 1 */
|
|
247
|
+
overflow: visible; /* 2 */
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* Forms
|
|
251
|
+
========================================================================== */
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* 1. Change font properties to `inherit` in all browsers (opinionated).
|
|
255
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
button,
|
|
259
|
+
input,
|
|
260
|
+
select,
|
|
261
|
+
textarea {
|
|
262
|
+
font: inherit; /* 1 */
|
|
263
|
+
margin: 0; /* 2 */
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Restore the font weight unset by the previous rule.
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
optgroup {
|
|
271
|
+
font-weight: bold;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Show the overflow in IE.
|
|
276
|
+
* 1. Show the overflow in Edge.
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
button,
|
|
280
|
+
input { /* 1 */
|
|
281
|
+
overflow: visible;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
286
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
287
|
+
*/
|
|
288
|
+
|
|
289
|
+
button,
|
|
290
|
+
select { /* 1 */
|
|
291
|
+
text-transform: none;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
|
296
|
+
* controls in Android 4.
|
|
297
|
+
* 2. Correct the inability to style clickable types in iOS and Safari.
|
|
298
|
+
*/
|
|
299
|
+
|
|
300
|
+
button,
|
|
301
|
+
html [type="button"], /* 1 */
|
|
302
|
+
[type="reset"],
|
|
303
|
+
[type="submit"] {
|
|
304
|
+
-webkit-appearance: button; /* 2 */
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Remove the inner border and padding in Firefox.
|
|
309
|
+
*/
|
|
310
|
+
|
|
311
|
+
button::-moz-focus-inner,
|
|
312
|
+
[type="button"]::-moz-focus-inner,
|
|
313
|
+
[type="reset"]::-moz-focus-inner,
|
|
314
|
+
[type="submit"]::-moz-focus-inner {
|
|
315
|
+
border-style: none;
|
|
316
|
+
padding: 0;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Restore the focus styles unset by the previous rule.
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
button:-moz-focusring,
|
|
324
|
+
[type="button"]:-moz-focusring,
|
|
325
|
+
[type="reset"]:-moz-focusring,
|
|
326
|
+
[type="submit"]:-moz-focusring {
|
|
327
|
+
outline: 1px dotted ButtonText;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Change the border, margin, and padding in all browsers (opinionated).
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
fieldset {
|
|
335
|
+
border: 1px solid #c0c0c0;
|
|
336
|
+
margin: 0 2px;
|
|
337
|
+
padding: 0.35em 0.625em 0.75em;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
342
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
343
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
344
|
+
* `fieldset` elements in all browsers.
|
|
345
|
+
*/
|
|
346
|
+
|
|
347
|
+
legend {
|
|
348
|
+
box-sizing: border-box; /* 1 */
|
|
349
|
+
color: inherit; /* 2 */
|
|
350
|
+
display: table; /* 1 */
|
|
351
|
+
max-width: 100%; /* 1 */
|
|
352
|
+
padding: 0; /* 3 */
|
|
353
|
+
white-space: normal; /* 1 */
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Remove the default vertical scrollbar in IE.
|
|
358
|
+
*/
|
|
359
|
+
|
|
360
|
+
textarea {
|
|
361
|
+
overflow: auto;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* 1. Add the correct box sizing in IE 10-.
|
|
366
|
+
* 2. Remove the padding in IE 10-.
|
|
367
|
+
*/
|
|
368
|
+
|
|
369
|
+
[type="checkbox"],
|
|
370
|
+
[type="radio"] {
|
|
371
|
+
box-sizing: border-box; /* 1 */
|
|
372
|
+
padding: 0; /* 2 */
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
380
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
381
|
+
height: auto;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
386
|
+
* 2. Correct the outline style in Safari.
|
|
387
|
+
*/
|
|
388
|
+
|
|
389
|
+
[type="search"] {
|
|
390
|
+
-webkit-appearance: textfield; /* 1 */
|
|
391
|
+
outline-offset: -2px; /* 2 */
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
|
|
396
|
+
*/
|
|
397
|
+
|
|
398
|
+
[type="search"]::-webkit-search-cancel-button,
|
|
399
|
+
[type="search"]::-webkit-search-decoration {
|
|
400
|
+
-webkit-appearance: none;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Correct the text style of placeholders in Chrome, Edge, and Safari.
|
|
405
|
+
*/
|
|
406
|
+
|
|
407
|
+
::-webkit-input-placeholder {
|
|
408
|
+
color: inherit;
|
|
409
|
+
opacity: 0.54;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
414
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
415
|
+
*/
|
|
416
|
+
|
|
417
|
+
::-webkit-file-upload-button {
|
|
418
|
+
-webkit-appearance: button; /* 1 */
|
|
419
|
+
font: inherit; /* 2 */
|
|
420
|
+
}
|
|
421
|
+
/* stylelint-enable */
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @define content */
|
|
2
|
+
//
|
|
3
|
+
// Content
|
|
4
|
+
//
|
|
5
|
+
// Semi-fixed-width centred content wrapper. Takes full width available up to a maximum,
|
|
6
|
+
// at which point width stays the same. Always remains centred.
|
|
7
|
+
//
|
|
8
|
+
// markup:
|
|
9
|
+
// <div class="l-content">
|
|
10
|
+
// <p>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer. Gummies cheesecake oat cake sugar plum icing cupcake tiramisu bonbon. Cotton candy chupa chups tootsie roll chupa chups cotton candy liquorice jelly gingerbread. Pastry gummi bears liquorice tart cotton candy marshmallow. Ice cream cotton candy chocolate cake cookie. Bonbon candy jelly-o sugar plum cotton candy carrot cake icing ice cream. Sweet chocolate marzipan. Candy canes danish cake carrot cake bonbon. Gummi bears sesame snaps tart bear claw pie chocolate bar. Ice cream candy canes sugar plum cookie. Macaroon biscuit biscuit carrot cake liquorice. Muffin pudding gingerbread powder jelly-o chocolate bar powder jelly beans toffee.</p>
|
|
11
|
+
// </div>
|
|
12
|
+
//
|
|
13
|
+
// Styleguide 5.1
|
|
14
|
+
|
|
15
|
+
@import '../settings/content';
|
|
16
|
+
|
|
17
|
+
.#{$bitstyles-namespace}l-content {
|
|
18
|
+
display: block;
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: $bitstyles-content-max-width;
|
|
21
|
+
padding-right: $bitstyles-content-horizontal-padding;
|
|
22
|
+
padding-left: $bitstyles-content-horizontal-padding;
|
|
23
|
+
margin-right: auto;
|
|
24
|
+
margin-left: auto;
|
|
25
|
+
transition: padding $bitstyles-transition-duration $bitstyles-transition-easing;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@include media-query($bitstyles-content-large-breakpoint) {
|
|
29
|
+
.#{$bitstyles-namespace}l-content {
|
|
30
|
+
padding-right: $bitstyles-content-horizontal-padding-large;
|
|
31
|
+
padding-left: $bitstyles-content-horizontal-padding-large;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// Grid Systems
|
|
2
|
+
//
|
|
3
|
+
// Responsive grid system using inline-block (no floats, no flexbox).
|
|
4
|
+
// Note this means whitespace is important. If necessary, use html comments between
|
|
5
|
+
// each `.grid__item` to remove any whitespace, otherwise the browser will display
|
|
6
|
+
// a small gap between grid items.
|
|
7
|
+
//
|
|
8
|
+
// Each grid item needs the class `.l-grid__item` and a width class. With current defaults,
|
|
9
|
+
// the widths create a 12-column system e.g. 1-of-12, 2-of-12, 3-of-12 … 11-of-12, 12-of-12.
|
|
10
|
+
//
|
|
11
|
+
// Dependencies:
|
|
12
|
+
// - `layout/width`
|
|
13
|
+
// - `tools/width`
|
|
14
|
+
//
|
|
15
|
+
// Styleguide 5.3
|
|
16
|
+
|
|
17
|
+
// Grid system — base
|
|
18
|
+
//
|
|
19
|
+
// Proportional widths but not responsive.
|
|
20
|
+
//
|
|
21
|
+
// markup:
|
|
22
|
+
// <ul class="l-grid">
|
|
23
|
+
// <li class="l-grid__item l-width--1-of-12">
|
|
24
|
+
// <div class="background-grey">1-of-12</div>
|
|
25
|
+
// </li><!--
|
|
26
|
+
// --><li class="l-grid__item l-width--11-of-12">
|
|
27
|
+
// <div>11-of-12</div>
|
|
28
|
+
// </li><!--
|
|
29
|
+
// --><li class="l-grid__item l-width--2-of-12">
|
|
30
|
+
// <div class="background-grey">2-of-12</div>
|
|
31
|
+
// </li><!--
|
|
32
|
+
// --><li class="l-grid__item l-width--10-of-12">
|
|
33
|
+
// <div>10-of-12</div>
|
|
34
|
+
// </li><!--
|
|
35
|
+
// --><li class="l-grid__item l-width--3-of-12">
|
|
36
|
+
// <div class="background-grey">3-of-12</div>
|
|
37
|
+
// </li><!--
|
|
38
|
+
// --><li class="l-grid__item l-width--9-of-12">
|
|
39
|
+
// <div>9-of-12</div>
|
|
40
|
+
// </li><!--
|
|
41
|
+
// --><li class="l-grid__item l-width--4-of-12">
|
|
42
|
+
// <div class="background-grey">4-of-12</div>
|
|
43
|
+
// </li><!--
|
|
44
|
+
// --><li class="l-grid__item l-width--8-of-12">
|
|
45
|
+
// <div>8-of-12</div>
|
|
46
|
+
// </li><!--
|
|
47
|
+
// --><li class="l-grid__item l-width--5-of-12">
|
|
48
|
+
// <div class="background-grey">5-of-12</div>
|
|
49
|
+
// </li><!--
|
|
50
|
+
// --><li class="l-grid__item l-width--7-of-12">
|
|
51
|
+
// <div>7-of-12</div>
|
|
52
|
+
// </li><!--
|
|
53
|
+
// --><li class="l-grid__item l-width--6-of-12">
|
|
54
|
+
// <div class="background-grey">6-of-12</div>
|
|
55
|
+
// </li><!--
|
|
56
|
+
// --><li class="l-grid__item l-width--6-of-12">
|
|
57
|
+
// <div>6-of-12</div>
|
|
58
|
+
// </li><!--
|
|
59
|
+
// --><li class="l-grid__item l-width--7-of-12">
|
|
60
|
+
// <div class="background-grey">7-of-12</div>
|
|
61
|
+
// </li><!--
|
|
62
|
+
// --><li class="l-grid__item l-width--5-of-12">
|
|
63
|
+
// <div>5-of-12</div>
|
|
64
|
+
// </li><!--
|
|
65
|
+
// --><li class="l-grid__item l-width--8-of-12">
|
|
66
|
+
// <div class="background-grey">8-of-12</div>
|
|
67
|
+
// </li><!--
|
|
68
|
+
// --><li class="l-grid__item l-width--4-of-12">
|
|
69
|
+
// <div>4-of-12</div>
|
|
70
|
+
// </li><!--
|
|
71
|
+
// --><li class="l-grid__item l-width--9-of-12">
|
|
72
|
+
// <div class="background-grey">9-of-12</div>
|
|
73
|
+
// </li><!--
|
|
74
|
+
// --><li class="l-grid__item l-width--3-of-12">
|
|
75
|
+
// <div>3-of-12</div>
|
|
76
|
+
// </li><!--
|
|
77
|
+
// --><li class="l-grid__item l-width--10-of-12">
|
|
78
|
+
// <div class="background-grey">10-of-12</div>
|
|
79
|
+
// </li><!--
|
|
80
|
+
// --><li class="l-grid__item l-width--2-of-12">
|
|
81
|
+
// <div>2-of-12</div>
|
|
82
|
+
// </li><!--
|
|
83
|
+
// --><li class="l-grid__item l-width--11-of-12">
|
|
84
|
+
// <div class="background-grey">11-of-12</div>
|
|
85
|
+
// </li><!--
|
|
86
|
+
// --><li class="l-grid__item l-width--1-of-12">
|
|
87
|
+
// <div>1-of-12</div>
|
|
88
|
+
// </li><!--
|
|
89
|
+
// --><li class="l-grid__item l-width--12-of-12">
|
|
90
|
+
// <div class="background-grey">12-of-12</div>
|
|
91
|
+
// </li><!--
|
|
92
|
+
// --><li class="l-grid__item l-width--3-of-12">
|
|
93
|
+
// <div class="background-grey">3-of-12</div>
|
|
94
|
+
// </li><!--
|
|
95
|
+
// --><li class="l-grid__item l-width--3-of-12">
|
|
96
|
+
// <div>3-of-12</div>
|
|
97
|
+
// </li><!--
|
|
98
|
+
// --><li class="l-grid__item l-width--3-of-12">
|
|
99
|
+
// <div class="background-grey">3-of-12</div>
|
|
100
|
+
// </li><!--
|
|
101
|
+
// --><li class="l-grid__item l-width--3-of-12">
|
|
102
|
+
// <div>3-of-12</div>
|
|
103
|
+
// </li>
|
|
104
|
+
// </ul>
|
|
105
|
+
//
|
|
106
|
+
// Styleguide 5.3.1
|
|
107
|
+
|
|
108
|
+
@import '../settings/grid';
|
|
109
|
+
|
|
110
|
+
.#{$bitstyles-namespace}l-grid {
|
|
111
|
+
@include list-reset();
|
|
112
|
+
|
|
113
|
+
margin-left: -$bitstyles-grid-gutter;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.#{$bitstyles-namespace}l-grid__item {
|
|
117
|
+
display: inline-block;
|
|
118
|
+
width: 100%;
|
|
119
|
+
padding-left: $bitstyles-grid-gutter;
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
vertical-align: top;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Grid system - responsive
|
|
125
|
+
//
|
|
126
|
+
// The grid system can also be used responsively. Append the name of a breakpoint
|
|
127
|
+
// to the end of a width class to have it activate only at that breakpoint. Multiple
|
|
128
|
+
// l-width--item/breakpoints combinations can be used to define a grid item’s width
|
|
129
|
+
// at various breakpoints (for all breakpoints you define in `$bitstyles-widths-breakpoints`).
|
|
130
|
+
//
|
|
131
|
+
// This is commonly used to set a default mobile-first width of `.l-width--12-of-12`
|
|
132
|
+
// and a larger-screen width of e.g. `.l-width--4-of-12-medium-and-up` for a
|
|
133
|
+
// three-column layout that becomes a single-column stack on small screens.
|
|
134
|
+
//
|
|
135
|
+
// markup:
|
|
136
|
+
// <ul class="l-grid">
|
|
137
|
+
// <li class="l-grid__item l-width--12-of-12 l-width--4-of-12-medium-and-up">
|
|
138
|
+
// <div class="background-grey">6-of-12 / 2-of-12-medium-and-up</div>
|
|
139
|
+
// </li><!--
|
|
140
|
+
//--><li class="l-grid__item l-width--12-of-12 l-width--4-of-12-medium-and-up">
|
|
141
|
+
// <div>6-of-12 / 2-of-12-medium-and-up</div>
|
|
142
|
+
// </li><!--
|
|
143
|
+
//--><li class="l-grid__item l-width--12-of-12 l-width--4-of-12-medium-and-up">
|
|
144
|
+
// <div class="background-grey">6-of-12 / 2-of-12-medium-and-up</div>
|
|
145
|
+
// </li>
|
|
146
|
+
// </ul>
|
|
147
|
+
//
|
|
148
|
+
// Styleguide 5.3.2
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @define topbar */
|
|
2
|
+
//
|
|
3
|
+
// Topbar
|
|
4
|
+
//
|
|
5
|
+
// Fixed-position topbar/menu.
|
|
6
|
+
//
|
|
7
|
+
// markup:
|
|
8
|
+
// <header class="l-topbar">
|
|
9
|
+
// <h1>Topbar content here (menu, logo…)</h1>
|
|
10
|
+
// </header>
|
|
11
|
+
//
|
|
12
|
+
// Styleguide 1.6
|
|
13
|
+
|
|
14
|
+
@import '../settings/topbar';
|
|
15
|
+
|
|
16
|
+
.#{$bitstyles-namespace}l-topbar {
|
|
17
|
+
position: fixed;
|
|
18
|
+
top: 0;
|
|
19
|
+
right: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
z-index: z($bitstyles-global-z, topbar);
|
|
22
|
+
padding: $bitstyles-topbar-vertical-padding $bitstyles-topbar-horizontal-padding;
|
|
23
|
+
transition: background-color $bitstyles-transition-duration $bitstyles-transition-easing, transform 0.3s $bitstyles-transition-easing;
|
|
24
|
+
backface-visibility: hidden;
|
|
25
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Widths
|
|
2
|
+
//
|
|
3
|
+
// Creates a series of classes that control width. Commonly used as part of a
|
|
4
|
+
// grid system (see our grid system), but can be used alone if needed (as shown here).
|
|
5
|
+
//
|
|
6
|
+
// Set `$bitstyles-widths` to define which fractions you need a row split into e.g.
|
|
7
|
+
// `$bitstyles-widths: (10, 12)` to create classes that split a row into 10ths and 12ths:
|
|
8
|
+
//
|
|
9
|
+
// `.l-width--1-of-10` … `.l-width--10-of-10`
|
|
10
|
+
//
|
|
11
|
+
// `.l-width--1-of-12` … `.l-width--12-of-12`.
|
|
12
|
+
//
|
|
13
|
+
// If you define `$bitstyles-widths-breakpoints` to contain the names of one or more
|
|
14
|
+
// breakpoints (defaults to just `medium-and-up`), widths will also be created
|
|
15
|
+
// for those breakpoints:
|
|
16
|
+
//
|
|
17
|
+
// `.l-width--4-of-12-medium-and-up`
|
|
18
|
+
//
|
|
19
|
+
// See the section on grid systems for an example of this.
|
|
20
|
+
//
|
|
21
|
+
// Requires:
|
|
22
|
+
// - `settings/widths`
|
|
23
|
+
// - `tools/widths`
|
|
24
|
+
//
|
|
25
|
+
// markup:
|
|
26
|
+
// <div class="l-width--2-of-12">
|
|
27
|
+
// <div class="background-grey">2-of-12</div>
|
|
28
|
+
// </div>
|
|
29
|
+
// <div class="l-width--4-of-12">
|
|
30
|
+
// <div class="background-grey">4-of-12</div>
|
|
31
|
+
// </div>
|
|
32
|
+
// <div class="l-width--6-of-12">
|
|
33
|
+
// <div class="background-grey">6-of-12</div>
|
|
34
|
+
// </div>
|
|
35
|
+
//
|
|
36
|
+
// Styleguide 5.2
|
|
37
|
+
|
|
38
|
+
@import '../settings/width';
|
|
39
|
+
|
|
40
|
+
@include width($bitstyles-widths);
|
|
41
|
+
|
|
42
|
+
@each $width-breakpoint in $bitstyles-widths-breakpoints {
|
|
43
|
+
@include media-query($width-breakpoint) {
|
|
44
|
+
@each $i in $bitstyles-widths {
|
|
45
|
+
@include width($i, -#{$width-breakpoint});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @define absolute-center */
|
|
2
|
+
//
|
|
3
|
+
// Absolute Center
|
|
4
|
+
//
|
|
5
|
+
// Centres an element vertically & horizontally, relative to its closest relatively-positioned parent element.
|
|
6
|
+
//
|
|
7
|
+
// markup:
|
|
8
|
+
// <div class="background-grey min-height-block">
|
|
9
|
+
// <p class="o-absolute-center">Centred content</p>
|
|
10
|
+
// </div>
|
|
11
|
+
//
|
|
12
|
+
// Styleguide 1.11
|
|
13
|
+
|
|
14
|
+
.#{$bitstyles-namespace}o-absolute-center {
|
|
15
|
+
@include absolute-center;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @define absolute-cover */
|
|
2
|
+
//
|
|
3
|
+
// Absolute Cover
|
|
4
|
+
//
|
|
5
|
+
// The element will cover its nearest relatively-positioned parent element from edge to edge.
|
|
6
|
+
//
|
|
7
|
+
// markup:
|
|
8
|
+
// <div class="o-absolute-cover background-grey">
|
|
9
|
+
// <p>Covering content</p>
|
|
10
|
+
// </div>
|
|
11
|
+
//
|
|
12
|
+
// Styleguide 1.16
|
|
13
|
+
|
|
14
|
+
.#{$bitstyles-namespace}o-absolute-cover {
|
|
15
|
+
@include absolute-cover;
|
|
16
|
+
}
|