loomcss 0.1.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.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/.nvmrc +1 -0
  4. data/.stylelintrc +6 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE +21 -0
  7. data/README.md +161 -0
  8. data/Rakefile +2 -0
  9. data/assets/loom/10-global-settings/_box-sizing.scss +5 -0
  10. data/assets/loom/10-global-settings/_breakpoints.scss +22 -0
  11. data/assets/loom/10-global-settings/_color.scss +79 -0
  12. data/assets/loom/10-global-settings/_icons.scss +5 -0
  13. data/assets/loom/10-global-settings/_misc.scss +89 -0
  14. data/assets/loom/10-global-settings/_spacing.scss +20 -0
  15. data/assets/loom/10-global-settings/_typography.scss +201 -0
  16. data/assets/loom/20-tools/_color.scss +22 -0
  17. data/assets/loom/20-tools/_grid-columns.scss +23 -0
  18. data/assets/loom/20-tools/_icons.scss +16 -0
  19. data/assets/loom/20-tools/_misc.scss +12 -0
  20. data/assets/loom/20-tools/_mq.scss +126 -0
  21. data/assets/loom/20-tools/_spacing.scss +14 -0
  22. data/assets/loom/20-tools/_transition.scss +10 -0
  23. data/assets/loom/20-tools/_type-checking.scss +52 -0
  24. data/assets/loom/20-tools/_typography.scss +130 -0
  25. data/assets/loom/20-tools/_z-index.scss +16 -0
  26. data/assets/loom/30-generic/_box-sizing.scss +9 -0
  27. data/assets/loom/30-generic/_normalize.scss +461 -0
  28. data/assets/loom/30-generic/_reset.scss +48 -0
  29. data/assets/loom/40-base-elements/_form-items.scss +50 -0
  30. data/assets/loom/40-base-elements/_images.scss +5 -0
  31. data/assets/loom/40-base-elements/_typography.scss +138 -0
  32. data/assets/loom/50-layout/_grid.scss +37 -0
  33. data/assets/loom/60-objects/_absolute-center.scss +18 -0
  34. data/assets/loom/60-objects/_absolute-cover.scss +19 -0
  35. data/assets/loom/60-objects/_button.scss +93 -0
  36. data/assets/loom/60-objects/_clearfix.scss +19 -0
  37. data/assets/loom/60-objects/_container.scss +34 -0
  38. data/assets/loom/60-objects/_fixed-ratio.scss +42 -0
  39. data/assets/loom/60-objects/_headings.scss +28 -0
  40. data/assets/loom/60-objects/_hide-visually.scss +23 -0
  41. data/assets/loom/60-objects/_icon.scss +30 -0
  42. data/assets/loom/60-objects/_list-inline.scss +37 -0
  43. data/assets/loom/60-objects/_list-reset.scss +25 -0
  44. data/assets/loom/60-objects/_media.scss +35 -0
  45. data/assets/loom/60-objects/_vertical-center.scss +18 -0
  46. data/assets/loom/70-ui-components/_example.scss +22 -0
  47. data/assets/loom/80-utilities/_background-color.scss +13 -0
  48. data/assets/loom/80-utilities/_border.scss +10 -0
  49. data/assets/loom/80-utilities/_color.scss +13 -0
  50. data/assets/loom/80-utilities/_display.scss +31 -0
  51. data/assets/loom/80-utilities/_font-family.scss +20 -0
  52. data/assets/loom/80-utilities/_font-size.scss +24 -0
  53. data/assets/loom/80-utilities/_font-style.scss +15 -0
  54. data/assets/loom/80-utilities/_font-weight.scss +15 -0
  55. data/assets/loom/80-utilities/_line-height.scss +0 -0
  56. data/assets/loom/80-utilities/_margin.scss +33 -0
  57. data/assets/loom/80-utilities/_padding.scss +32 -0
  58. data/assets/loom/80-utilities/_position.scss +15 -0
  59. data/assets/loom/80-utilities/_text-align.scss +19 -0
  60. data/assets/loom/80-utilities/_text-transform.scss +19 -0
  61. data/assets/loom/80-utilities/_vertical-align.scss +26 -0
  62. data/assets/loom/80-utilities/_white-space.scss +27 -0
  63. data/assets/loom/80-utilities/_width.scss +11 -0
  64. data/assets/loom/90-trumps/.keepfile +0 -0
  65. data/assets/loom/_10-global-settings.scss +7 -0
  66. data/assets/loom/_20-tools.scss +10 -0
  67. data/assets/loom/_30-generic.scss +2 -0
  68. data/assets/loom/_40-base-elements.scss +3 -0
  69. data/assets/loom/_50-layout.scss +1 -0
  70. data/assets/loom/_60-objects.scss +13 -0
  71. data/assets/loom/_70-ui-components.scss +0 -0
  72. data/assets/loom/_80-utilities.scss +17 -0
  73. data/assets/loom/_90-trumps.scss +0 -0
  74. data/assets/main-shorthand.scss +44 -0
  75. data/assets/main.scss +108 -0
  76. data/bin/console +14 -0
  77. data/bin/setup +8 -0
  78. data/gulpfile.js +24 -0
  79. data/index.html +97 -0
  80. data/lib/loomcss.rb +2 -0
  81. data/lib/loomcss/engine.rb +9 -0
  82. data/lib/loomcss/version.rb +3 -0
  83. data/loomcss.gemspec +32 -0
  84. data/main.css +1298 -0
  85. data/package.json +36 -0
  86. data/public/docs/assets/images/favicon.png +0 -0
  87. data/public/docs/assets/images/logo_full_compact.svg +1 -0
  88. data/public/docs/assets/images/logo_full_inline.svg +1 -0
  89. data/public/docs/assets/images/logo_light_compact.svg +1 -0
  90. data/public/docs/assets/images/logo_light_inline.svg +1 -0
  91. data/public/docs/assets/js/main.js +56 -0
  92. data/public/docs/assets/js/main.min.js +1 -0
  93. data/public/docs/assets/js/search.js +146 -0
  94. data/public/docs/assets/js/sidebar.js +163 -0
  95. data/public/docs/assets/js/vendor/fuse.min.js +20 -0
  96. data/public/docs/assets/js/vendor/jquery.min.js +4 -0
  97. data/public/docs/assets/js/vendor/prism.min.js +9 -0
  98. data/public/docs/index.html +314 -0
  99. metadata +172 -0
@@ -0,0 +1,130 @@
1
+ /// Extracts a font-family name from a font usage
2
+ ///
3
+ /// By default it will grab the "default" font. Specify "webfont" for the webfont version.
4
+ ///
5
+ /// @group 20-tools
6
+ /// @requires $LOOM-fonts
7
+ /// @example scss
8
+ /// font-size: get-font-family(primary); // Get default version of font "primary"
9
+ /// font-size: get-font-family(secondary, webfont); // Get webfont version of font "secondary"
10
+ @function get-font-family($font-name, $font-variant: default, $font-map: $LOOM-fonts) {
11
+ @if map-has-key($font-map, $font-name) {
12
+ @return get-map-deep($font-map, $font-name, $font-variant);
13
+ }
14
+
15
+ @else {
16
+ @warn "No matching font found for `#{$font-name}` in global font map.";
17
+
18
+ @return null;
19
+ }
20
+ }
21
+
22
+ /// Extract a font size from the global sizing map.
23
+ ///
24
+ /// By default it will grab the "small breakpoint" version of the font-size.
25
+ /// @group 20-tools
26
+ /// @requires $LOOM-font-sizes
27
+ /// @example scss
28
+ /// font-size: get-font-size(alpha); // Get default version of size "alpha"
29
+ /// font-size: get-font-size(beta, large); // Get large version of size "beta"
30
+ @function get-font-size($font-name, $font-size: smaller-viewport, $font-map: $LOOM-font-sizes) {
31
+ @if map-has-key($font-map, $font-name) {
32
+ @return get-map-deep($font-map, $font-name, $font-size, 'font-size');
33
+ }
34
+
35
+ @else {
36
+ @warn "No matching font found for `#{$font-name}` in global font map.";
37
+
38
+ @return null;
39
+ }
40
+ }
41
+
42
+ /// Extract a line-height from the global sizing map.
43
+ ///
44
+ /// By default it will grab the "small breakpoint" version of the line-height.
45
+ /// @group 20-tools
46
+ /// @requires $LOOM-font-sizes
47
+ @function get-line-height($font-name, $font-size: smaller-viewport, $font-map: $LOOM-font-sizes) {
48
+ @if map-has-key($font-map, $font-name) {
49
+ @return get-map-deep($font-map, $font-name, $font-size, 'line-height');
50
+ }
51
+
52
+ @else {
53
+ @warn "No matching font found for `#{$font-name}` in global font map.";
54
+
55
+ @return null;
56
+ }
57
+ }
58
+
59
+ /// Gonverts pixel values to REMs
60
+ ///
61
+ /// @parameter {number} $pixels - A font size in pixels
62
+ /// @parameter {string} $browser-content - The base font size of the page at the current breakpoint. y default, this is the value of "base" at the "small breakpoint"
63
+ ///
64
+ /// @group 20-tools
65
+ /// @returns {Number} Value in REMs
66
+ @function convert-px-to-rem($pixel-size, $root-size: get-font-size(default, smaller-viewport)) {
67
+ @return ($pixel-size / $root-size) * 1rem;
68
+ }
69
+
70
+ /// Gonverts pixel values to EMs
71
+ ///
72
+ /// @parameter {number} $pixels - A font size in pixels
73
+ /// @parameter {string} $browser-content - The base font size of the page at the current breakpoint. y default, this is the value of "base" at the "small breakpoint"
74
+ ///
75
+ /// @group 20-tools
76
+ /// @returns {Number} Value in EMs
77
+ @function convert-px-to-em($pixels, $browser-context: get-font-size(default, smaller-viewport)) {
78
+ @return ($pixels / $browser-context) + 0em; // stylelint-disable-line length-zero-no-unit
79
+ }
80
+
81
+ /// Generates a font-size ruleset.
82
+ ///
83
+ /// By default it will grab the "small breakpoint" version of the font-size.
84
+ /// @group 20-tools
85
+ @mixin font-size($size-name, $size-browser-context: smaller-viewport ) {
86
+ $font-size: null;
87
+
88
+ @if (type-of($size-name) == string) {
89
+ $font-size: get-font-size($size-name, $size-browser-context);
90
+ }
91
+
92
+ @if (type-of($size-name) == number) {
93
+ $font-size: $size-name;
94
+ }
95
+
96
+ $font-size-context: get-font-size(default, $size-browser-context);
97
+
98
+ font-size: $font-size; // NOTE: Fallback to size in pixels
99
+ font-size: convert-px-to-rem($font-size, $font-size-context); // stylelint-disable-line declaration-block-no-duplicate-properties
100
+ }
101
+
102
+ /// Output styling for a generic heading.
103
+ ///
104
+ /// @group 20-tools
105
+ /// @example scss
106
+ /// .o-h1 {
107
+ /// @include generic-heading();
108
+ /// }
109
+ @mixin generic-heading(
110
+ $margin-size: xsmall,
111
+ $font: secondary,
112
+ $font-weight: $LOOM-font-weight-bold
113
+ ) {
114
+ font-family: get-font-family($font, default);
115
+ font-weight: $font-weight;
116
+
117
+ @if $margin-size == 0 or $margin-size == none {
118
+ margin: 0;
119
+ }
120
+
121
+ @else {
122
+ margin: 0 0 get-spacing($margin-size);
123
+ }
124
+
125
+ text-rendering: optimizeLegibility;
126
+
127
+ .#{$LOOM-fonts-loaded} & {
128
+ font-family: get-font-family($font, webfont);
129
+ }
130
+ }
@@ -0,0 +1,16 @@
1
+ /// Retrieve a z-index value.
2
+ ///
3
+ /// @group 20-tools
4
+ /// @parameter {string} $layer - The name of a layer in $LOOM-z-layers
5
+ /// @parameter {map} $z-layers - A map of z-index layers/integer values.
6
+ @function get-z($layer, $z-layers: $LOOM-z-layers) {
7
+ @if map-has-key($z-layers, $layer) {
8
+ @return map-get($z-layers, $layer);
9
+ }
10
+
11
+ @else {
12
+ @warn "No layer found for `#{$layer}` in $z-layers map. Property omitted.";
13
+
14
+ @return null;
15
+ }
16
+ }
@@ -0,0 +1,9 @@
1
+ html {
2
+ box-sizing: $LOOM-box-sizing;
3
+ }
4
+
5
+ *,
6
+ *::before,
7
+ *::after {
8
+ box-sizing: inherit;
9
+ }
@@ -0,0 +1,461 @@
1
+ /*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /**
4
+ * 1. Change the default font family in all browsers (opinionated).
5
+ * 2. Correct the line height in all browsers.
6
+ * 3. Prevent adjustments of font size after orientation changes in
7
+ * IE on Windows Phone and in iOS.
8
+ */
9
+
10
+ /* Document
11
+ ========================================================================== */
12
+
13
+ html {
14
+ font-family: sans-serif; /* 1 */
15
+ line-height: 1.15; /* 2 */
16
+ -ms-text-size-adjust: 100%; /* 3 */
17
+ -webkit-text-size-adjust: 100%; /* 3 */
18
+ }
19
+
20
+ /* Sections
21
+ ========================================================================== */
22
+
23
+ /**
24
+ * Remove the margin in all browsers (opinionated).
25
+ */
26
+
27
+ body {
28
+ margin: 0;
29
+ }
30
+
31
+ /**
32
+ * Add the correct display in IE 9-.
33
+ */
34
+
35
+ article,
36
+ aside,
37
+ footer,
38
+ header,
39
+ nav,
40
+ section {
41
+ display: block;
42
+ }
43
+
44
+ /**
45
+ * Correct the font size and margin on `h1` elements within `section` and
46
+ * `article` contexts in Chrome, Firefox, and Safari.
47
+ */
48
+
49
+ h1 {
50
+ font-size: 2em;
51
+ margin: 0.67em 0;
52
+ }
53
+
54
+ /* Grouping content
55
+ ========================================================================== */
56
+
57
+ /**
58
+ * Add the correct display in IE 9-.
59
+ * 1. Add the correct display in IE.
60
+ */
61
+
62
+ figcaption,
63
+ figure,
64
+ main { /* 1 */
65
+ display: block;
66
+ }
67
+
68
+ /**
69
+ * Add the correct margin in IE 8.
70
+ */
71
+
72
+ figure {
73
+ margin: 1em 40px;
74
+ }
75
+
76
+ /**
77
+ * 1. Add the correct box sizing in Firefox.
78
+ * 2. Show the overflow in Edge and IE.
79
+ */
80
+
81
+ hr {
82
+ box-sizing: content-box; /* 1 */
83
+ height: 0; /* 1 */
84
+ overflow: visible; /* 2 */
85
+ }
86
+
87
+ /**
88
+ * 1. Correct the inheritance and scaling of font size in all browsers.
89
+ * 2. Correct the odd `em` font sizing in all browsers.
90
+ */
91
+
92
+ pre {
93
+ font-family: monospace, monospace; /* 1 */
94
+ font-size: 1em; /* 2 */
95
+ }
96
+
97
+ /* Text-level semantics
98
+ ========================================================================== */
99
+
100
+ /**
101
+ * 1. Remove the gray background on active links in IE 10.
102
+ * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
103
+ */
104
+
105
+ a {
106
+ background-color: transparent; /* 1 */
107
+ -webkit-text-decoration-skip: objects; /* 2 */
108
+ }
109
+
110
+ /**
111
+ * Remove the outline on focused links when they are also active or hovered
112
+ * in all browsers (opinionated).
113
+ */
114
+
115
+ a:active,
116
+ a:hover {
117
+ outline-width: 0;
118
+ }
119
+
120
+ /**
121
+ * 1. Remove the bottom border in Firefox 39-.
122
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
123
+ */
124
+
125
+ abbr[title] {
126
+ border-bottom: none; /* 1 */
127
+ text-decoration: underline; /* 2 */
128
+ text-decoration: underline dotted; /* 2 */
129
+ }
130
+
131
+ /**
132
+ * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
133
+ */
134
+
135
+ b,
136
+ strong {
137
+ font-weight: inherit;
138
+ }
139
+
140
+ /**
141
+ * Add the correct font weight in Chrome, Edge, and Safari.
142
+ */
143
+
144
+ b,
145
+ strong {
146
+ font-weight: bolder;
147
+ }
148
+
149
+ /**
150
+ * 1. Correct the inheritance and scaling of font size in all browsers.
151
+ * 2. Correct the odd `em` font sizing in all browsers.
152
+ */
153
+
154
+ code,
155
+ kbd,
156
+ samp {
157
+ font-family: monospace, monospace; /* 1 */
158
+ font-size: 1em; /* 2 */
159
+ }
160
+
161
+ /**
162
+ * Add the correct font style in Android 4.3-.
163
+ */
164
+
165
+ dfn {
166
+ font-style: italic;
167
+ }
168
+
169
+ /**
170
+ * Add the correct background and color in IE 9-.
171
+ */
172
+
173
+ mark {
174
+ background-color: #ff0;
175
+ color: #000;
176
+ }
177
+
178
+ /**
179
+ * Add the correct font size in all browsers.
180
+ */
181
+
182
+ small {
183
+ font-size: 80%;
184
+ }
185
+
186
+ /**
187
+ * Prevent `sub` and `sup` elements from affecting the line height in
188
+ * all browsers.
189
+ */
190
+
191
+ sub,
192
+ sup {
193
+ font-size: 75%;
194
+ line-height: 0;
195
+ position: relative;
196
+ vertical-align: baseline;
197
+ }
198
+
199
+ sub {
200
+ bottom: -0.25em;
201
+ }
202
+
203
+ sup {
204
+ top: -0.5em;
205
+ }
206
+
207
+ /* Embedded content
208
+ ========================================================================== */
209
+
210
+ /**
211
+ * Add the correct display in IE 9-.
212
+ */
213
+
214
+ audio,
215
+ video {
216
+ display: inline-block;
217
+ }
218
+
219
+ /**
220
+ * Add the correct display in iOS 4-7.
221
+ */
222
+
223
+ audio:not([controls]) {
224
+ display: none;
225
+ height: 0;
226
+ }
227
+
228
+ /**
229
+ * Remove the border on images inside links in IE 10-.
230
+ */
231
+
232
+ img {
233
+ border-style: none;
234
+ }
235
+
236
+ /**
237
+ * Hide the overflow in IE.
238
+ */
239
+
240
+ svg:not(:root) {
241
+ overflow: hidden;
242
+ }
243
+
244
+ /* Forms
245
+ ========================================================================== */
246
+
247
+ /**
248
+ * 1. Change the font styles in all browsers (opinionated).
249
+ * 2. Remove the margin in Firefox and Safari.
250
+ */
251
+
252
+ button,
253
+ input,
254
+ optgroup,
255
+ select,
256
+ textarea {
257
+ font-family: sans-serif; /* 1 */
258
+ font-size: 100%; /* 1 */
259
+ line-height: 1.15; /* 1 */
260
+ margin: 0; /* 2 */
261
+ }
262
+
263
+ /**
264
+ * Show the overflow in IE.
265
+ * 1. Show the overflow in Edge.
266
+ */
267
+
268
+ button,
269
+ input { /* 1 */
270
+ overflow: visible;
271
+ }
272
+
273
+ /**
274
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
275
+ * 1. Remove the inheritance of text transform in Firefox.
276
+ */
277
+
278
+ button,
279
+ select { /* 1 */
280
+ text-transform: none;
281
+ }
282
+
283
+ /**
284
+ * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
285
+ * controls in Android 4.
286
+ * 2. Correct the inability to style clickable types in iOS and Safari.
287
+ */
288
+
289
+ button,
290
+ html [type="button"], /* 1 */
291
+ [type="reset"],
292
+ [type="submit"] {
293
+ -webkit-appearance: button; /* 2 */
294
+ }
295
+
296
+ /**
297
+ * Remove the inner border and padding in Firefox.
298
+ */
299
+
300
+ button::-moz-focus-inner,
301
+ [type="button"]::-moz-focus-inner,
302
+ [type="reset"]::-moz-focus-inner,
303
+ [type="submit"]::-moz-focus-inner {
304
+ border-style: none;
305
+ padding: 0;
306
+ }
307
+
308
+ /**
309
+ * Restore the focus styles unset by the previous rule.
310
+ */
311
+
312
+ button:-moz-focusring,
313
+ [type="button"]:-moz-focusring,
314
+ [type="reset"]:-moz-focusring,
315
+ [type="submit"]:-moz-focusring {
316
+ outline: 1px dotted ButtonText;
317
+ }
318
+
319
+ /**
320
+ * Change the border, margin, and padding in all browsers (opinionated).
321
+ */
322
+
323
+ fieldset {
324
+ border: 1px solid #c0c0c0;
325
+ margin: 0 2px;
326
+ padding: 0.35em 0.625em 0.75em;
327
+ }
328
+
329
+ /**
330
+ * 1. Correct the text wrapping in Edge and IE.
331
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
332
+ * 3. Remove the padding so developers are not caught out when they zero out
333
+ * `fieldset` elements in all browsers.
334
+ */
335
+
336
+ legend {
337
+ box-sizing: border-box; /* 1 */
338
+ color: inherit; /* 2 */
339
+ display: table; /* 1 */
340
+ max-width: 100%; /* 1 */
341
+ padding: 0; /* 3 */
342
+ white-space: normal; /* 1 */
343
+ }
344
+
345
+ /**
346
+ * 1. Add the correct display in IE 9-.
347
+ * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
348
+ */
349
+
350
+ progress {
351
+ display: inline-block; /* 1 */
352
+ vertical-align: baseline; /* 2 */
353
+ }
354
+
355
+ /**
356
+ * Remove the default vertical scrollbar in IE.
357
+ */
358
+
359
+ textarea {
360
+ overflow: auto;
361
+ }
362
+
363
+ /**
364
+ * 1. Add the correct box sizing in IE 10-.
365
+ * 2. Remove the padding in IE 10-.
366
+ */
367
+
368
+ [type="checkbox"],
369
+ [type="radio"] {
370
+ box-sizing: border-box; /* 1 */
371
+ padding: 0; /* 2 */
372
+ }
373
+
374
+ /**
375
+ * Correct the cursor style of increment and decrement buttons in Chrome.
376
+ */
377
+
378
+ [type="number"]::-webkit-inner-spin-button,
379
+ [type="number"]::-webkit-outer-spin-button {
380
+ height: auto;
381
+ }
382
+
383
+ /**
384
+ * 1. Correct the odd appearance in Chrome and Safari.
385
+ * 2. Correct the outline style in Safari.
386
+ */
387
+
388
+ [type="search"] {
389
+ -webkit-appearance: textfield; /* 1 */
390
+ outline-offset: -2px; /* 2 */
391
+ }
392
+
393
+ /**
394
+ * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
395
+ */
396
+
397
+ [type="search"]::-webkit-search-cancel-button,
398
+ [type="search"]::-webkit-search-decoration {
399
+ -webkit-appearance: none;
400
+ }
401
+
402
+ /**
403
+ * 1. Correct the inability to style clickable types in iOS and Safari.
404
+ * 2. Change font properties to `inherit` in Safari.
405
+ */
406
+
407
+ ::-webkit-file-upload-button {
408
+ -webkit-appearance: button; /* 1 */
409
+ font: inherit; /* 2 */
410
+ }
411
+
412
+ /* Interactive
413
+ ========================================================================== */
414
+
415
+ /*
416
+ * Add the correct display in IE 9-.
417
+ * 1. Add the correct display in Edge, IE, and Firefox.
418
+ */
419
+
420
+ details, /* 1 */
421
+ menu {
422
+ display: block;
423
+ }
424
+
425
+ /*
426
+ * Add the correct display in all browsers.
427
+ */
428
+
429
+ summary {
430
+ display: list-item;
431
+ }
432
+
433
+ /* Scripting
434
+ ========================================================================== */
435
+
436
+ /**
437
+ * Add the correct display in IE 9-.
438
+ */
439
+
440
+ canvas {
441
+ display: inline-block;
442
+ }
443
+
444
+ /**
445
+ * Add the correct display in IE.
446
+ */
447
+
448
+ template {
449
+ display: none;
450
+ }
451
+
452
+ /* Hidden
453
+ ========================================================================== */
454
+
455
+ /**
456
+ * Add the correct display in IE 10-.
457
+ */
458
+
459
+ [hidden] {
460
+ display: none;
461
+ }