sass-zero 0.0.45 → 0.0.49

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90335efa16cb09716e4c31bd9cb7df2469d9e586ce409ac5db752ef195f367a5
4
- data.tar.gz: 867fd4aec244f7886f26d438734e92d3e7511d9be443983632d673a12a4296b3
3
+ metadata.gz: 735d48c029ee403ce7aa12d171ff1c9e88d71be82a134e215ba40daf3fcc1c7f
4
+ data.tar.gz: b4a1f56ffca33aa9f3d00ea44d9a4fa4ff63173cb7ddb29a3cf04927c2ac4dc9
5
5
  SHA512:
6
- metadata.gz: 14ac230bce5200038c588cbca45e565931061251a1e401ccf3699a1c326ef55eb0caf3806b6c29124a6641847567891d69e3d43c0b0280cf8ba26f4d7ac66ee3
7
- data.tar.gz: b525273b68b1538a8102dbeb0ccd9abeaa9bcb5f60e1fea95829613fdcdfcdb354b991e228e22c6fd915fb4c515374cedac40d775c233ac8b5289ef3735948d9
6
+ metadata.gz: 50e61955a31df64c2afcd4ac926462630f3ff724f5e79fa28d08e83cc44703685580cd887dec5a0e904c7524281eed71c75f4d372e7cbb96e6c6061e1a503bf8
7
+ data.tar.gz: ea5215081604df3c141937e5f9fc1556d2483a8a0e4252c3e27d08f873119de1d5c386a4cbf92aebf32d3cee36f446bec3972d52504b0ea00290b2df2850be47
data/Example.html CHANGED
@@ -1,6 +1,6 @@
1
1
  <main class="container">
2
2
  <p>The base type is 1.6rem (16px) over 1.6 line height (24px)</p>
3
- <a href="#">Anchor</a>
3
+ <a href="#" class="txt--underline">Anchor</a>
4
4
  <em>Emphasis</em>
5
5
  <small>Small</small>
6
6
  <strong>Strong</strong>
@@ -26,8 +26,8 @@
26
26
  <div class="push-md--bottom">
27
27
  <label for="nameField" class="u-display-b txt--bold">Name</label>
28
28
  <input type="text" placeholder="CJ Patoilo" id="nameField" class="input">
29
- <label for="ageRangeField" class="u-display-b txt--bold">Age Range</label>
30
29
 
30
+ <label for="ageRangeField" class="u-display-b txt--bold">Age Range</label>
31
31
  <select id="ageRangeField" class="input input--select">
32
32
  <option value="0-13">0-13</option>
33
33
  <option value="14-17">14-17</option>
data/README.md CHANGED
@@ -46,6 +46,7 @@ Developers should be able to produce your own design, [Refactoring UI](https://r
46
46
  - [Transition](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/transition.scss)
47
47
  - [Typography](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/typography.scss)
48
48
  - [Width](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/width.scss)
49
+ - [Height](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/height.scss)
49
50
  - [Z-Index](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/zindex.scss)
50
51
 
51
52
 
@@ -1,349 +1,285 @@
1
- /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
1
+ /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
2
2
 
3
- /* Document
4
- ========================================================================== */
3
+ /*
4
+ Document
5
+ ========
6
+ */
5
7
 
6
8
  /**
7
- * 1. Correct the line height in all browsers.
8
- * 2. Prevent adjustments of font size after orientation changes in iOS.
9
- */
9
+ Use a better box model (opinionated).
10
+ */
10
11
 
11
- html {
12
- line-height: 1.15; /* 1 */
13
- -webkit-text-size-adjust: 100%; /* 2 */
12
+ *,
13
+ ::before,
14
+ ::after {
15
+ box-sizing: border-box;
14
16
  }
15
17
 
16
- /* Sections
17
- ========================================================================== */
18
-
19
18
  /**
20
- * Remove the margin in all browsers.
21
- */
19
+ 1. Correct the line height in all browsers.
20
+ 2. Prevent adjustments of font size after orientation changes in iOS.
21
+ 3. Use a more readable tab size (opinionated).
22
+ */
22
23
 
23
- body {
24
- margin: 0;
24
+ html {
25
+ line-height: 1.15; /* 1 */
26
+ -webkit-text-size-adjust: 100%; /* 2 */
27
+ -moz-tab-size: 4; /* 3 */
28
+ tab-size: 4; /* 3 */
25
29
  }
26
30
 
27
- /**
28
- * Render the `main` element consistently in IE.
29
- */
30
-
31
- main {
32
- display: block;
33
- }
31
+ /*
32
+ Sections
33
+ ========
34
+ */
34
35
 
35
36
  /**
36
- * Correct the font size and margin on `h1` elements within `section` and
37
- * `article` contexts in Chrome, Firefox, and Safari.
38
- */
37
+ 1. Remove the margin in all browsers.
38
+ 2. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
39
+ */
39
40
 
40
- h1 {
41
- font-size: 2em;
42
- margin: 0.67em 0;
41
+ body {
42
+ margin: 0; /* 1 */
43
+ font-family:
44
+ system-ui,
45
+ -apple-system, /* Firefox supports this but not yet `system-ui` */
46
+ 'Segoe UI',
47
+ Roboto,
48
+ Helvetica,
49
+ Arial,
50
+ sans-serif,
51
+ 'Apple Color Emoji',
52
+ 'Segoe UI Emoji'; /* 2 */
43
53
  }
44
54
 
45
- /* Grouping content
46
- ========================================================================== */
55
+ /*
56
+ Grouping content
57
+ ================
58
+ */
47
59
 
48
60
  /**
49
- * 1. Add the correct box sizing in Firefox.
50
- * 2. Show the overflow in Edge and IE.
51
- */
61
+ 1. Add the correct height in Firefox.
62
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
63
+ */
52
64
 
53
65
  hr {
54
- box-sizing: content-box; /* 1 */
55
- height: 0; /* 1 */
56
- overflow: visible; /* 2 */
57
- }
58
-
59
- /**
60
- * 1. Correct the inheritance and scaling of font size in all browsers.
61
- * 2. Correct the odd `em` font sizing in all browsers.
62
- */
63
-
64
- pre {
65
- font-family: monospace, monospace; /* 1 */
66
- font-size: 1em; /* 2 */
66
+ height: 0; /* 1 */
67
+ color: inherit; /* 2 */
67
68
  }
68
69
 
69
- /* Text-level semantics
70
- ========================================================================== */
71
-
72
- /**
73
- * Remove the gray background on active links in IE 10.
74
- */
75
-
76
- a {
77
- background-color: transparent;
78
- }
70
+ /*
71
+ Text-level semantics
72
+ ====================
73
+ */
79
74
 
80
75
  /**
81
- * 1. Remove the bottom border in Chrome 57-
82
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
83
- */
76
+ Add the correct text decoration in Chrome, Edge, and Safari.
77
+ */
84
78
 
85
79
  abbr[title] {
86
- border-bottom: none; /* 1 */
87
- text-decoration: underline; /* 2 */
88
- text-decoration: underline dotted; /* 2 */
80
+ text-decoration: underline dotted;
89
81
  }
90
82
 
91
83
  /**
92
- * Add the correct font weight in Chrome, Edge, and Safari.
93
- */
84
+ Add the correct font weight in Edge and Safari.
85
+ */
94
86
 
95
87
  b,
96
88
  strong {
97
- font-weight: bolder;
89
+ font-weight: bolder;
98
90
  }
99
91
 
100
92
  /**
101
- * 1. Correct the inheritance and scaling of font size in all browsers.
102
- * 2. Correct the odd `em` font sizing in all browsers.
103
- */
93
+ 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
94
+ 2. Correct the odd 'em' font sizing in all browsers.
95
+ */
104
96
 
105
97
  code,
106
98
  kbd,
107
- samp {
108
- font-family: monospace, monospace; /* 1 */
109
- font-size: 1em; /* 2 */
99
+ samp,
100
+ pre {
101
+ font-family:
102
+ ui-monospace,
103
+ SFMono-Regular,
104
+ Consolas,
105
+ 'Liberation Mono',
106
+ Menlo,
107
+ monospace; /* 1 */
108
+ font-size: 1em; /* 2 */
110
109
  }
111
110
 
112
111
  /**
113
- * Add the correct font size in all browsers.
114
- */
112
+ Add the correct font size in all browsers.
113
+ */
115
114
 
116
115
  small {
117
- font-size: 80%;
116
+ font-size: 80%;
118
117
  }
119
118
 
120
119
  /**
121
- * Prevent `sub` and `sup` elements from affecting the line height in
122
- * all browsers.
123
- */
120
+ Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
121
+ */
124
122
 
125
123
  sub,
126
124
  sup {
127
- font-size: 75%;
128
- line-height: 0;
129
- position: relative;
130
- vertical-align: baseline;
125
+ font-size: 75%;
126
+ line-height: 0;
127
+ position: relative;
128
+ vertical-align: baseline;
131
129
  }
132
130
 
133
131
  sub {
134
- bottom: -0.25em;
132
+ bottom: -0.25em;
135
133
  }
136
134
 
137
135
  sup {
138
- top: -0.5em;
136
+ top: -0.5em;
139
137
  }
140
138
 
141
- /* Embedded content
142
- ========================================================================== */
139
+ /*
140
+ Tabular data
141
+ ============
142
+ */
143
143
 
144
144
  /**
145
- * Remove the border on images inside links in IE 10.
146
- */
145
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
146
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
147
+ */
147
148
 
148
- img {
149
- border-style: none;
149
+ table {
150
+ text-indent: 0; /* 1 */
151
+ border-color: inherit; /* 2 */
150
152
  }
151
153
 
152
- /* Forms
153
- ========================================================================== */
154
+ /*
155
+ Forms
156
+ =====
157
+ */
154
158
 
155
159
  /**
156
- * 1. Change the font styles in all browsers.
157
- * 2. Remove the margin in Firefox and Safari.
158
- */
160
+ 1. Change the font styles in all browsers.
161
+ 2. Remove the margin in Firefox and Safari.
162
+ */
159
163
 
160
164
  button,
161
165
  input,
162
166
  optgroup,
163
167
  select,
164
168
  textarea {
165
- font-family: inherit; /* 1 */
166
- font-size: 100%; /* 1 */
167
- line-height: 1.15; /* 1 */
168
- margin: 0; /* 2 */
169
+ font-family: inherit; /* 1 */
170
+ font-size: 100%; /* 1 */
171
+ line-height: 1.15; /* 1 */
172
+ margin: 0; /* 2 */
169
173
  }
170
174
 
171
175
  /**
172
- * Show the overflow in IE.
173
- * 1. Show the overflow in Edge.
174
- */
176
+ Remove the inheritance of text transform in Edge and Firefox.
177
+ */
175
178
 
176
179
  button,
177
- input { /* 1 */
178
- overflow: visible;
180
+ select {
181
+ text-transform: none;
179
182
  }
180
183
 
181
184
  /**
182
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
183
- * 1. Remove the inheritance of text transform in Firefox.
184
- */
185
+ Correct the inability to style clickable types in iOS and Safari.
186
+ */
185
187
 
186
188
  button,
187
- select { /* 1 */
188
- text-transform: none;
189
+ [type='button'],
190
+ [type='reset'],
191
+ [type='submit'] {
192
+ -webkit-appearance: button;
189
193
  }
190
194
 
191
195
  /**
192
- * Correct the inability to style clickable types in iOS and Safari.
193
- */
196
+ Remove the inner border and padding in Firefox.
197
+ */
194
198
 
195
- button,
196
- [type="button"],
197
- [type="reset"],
198
- [type="submit"] {
199
- -webkit-appearance: button;
199
+ ::-moz-focus-inner {
200
+ border-style: none;
201
+ padding: 0;
200
202
  }
201
203
 
202
204
  /**
203
- * Remove the inner border and padding in Firefox.
204
- */
205
-
206
- button::-moz-focus-inner,
207
- [type="button"]::-moz-focus-inner,
208
- [type="reset"]::-moz-focus-inner,
209
- [type="submit"]::-moz-focus-inner {
210
- border-style: none;
211
- padding: 0;
212
- }
205
+ Restore the focus styles unset by the previous rule.
206
+ */
213
207
 
214
- /**
215
- * Restore the focus styles unset by the previous rule.
216
- */
217
-
218
- button:-moz-focusring,
219
- [type="button"]:-moz-focusring,
220
- [type="reset"]:-moz-focusring,
221
- [type="submit"]:-moz-focusring {
222
- outline: 1px dotted ButtonText;
208
+ :-moz-focusring {
209
+ outline: 1px dotted ButtonText;
223
210
  }
224
211
 
225
212
  /**
226
- * Correct the padding in Firefox.
227
- */
213
+ Remove the additional ':invalid' styles in Firefox.
214
+ See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
215
+ */
228
216
 
229
- fieldset {
230
- padding: 0.35em 0.75em 0.625em;
217
+ :-moz-ui-invalid {
218
+ box-shadow: none;
231
219
  }
232
220
 
233
221
  /**
234
- * 1. Correct the text wrapping in Edge and IE.
235
- * 2. Correct the color inheritance from `fieldset` elements in IE.
236
- * 3. Remove the padding so developers are not caught out when they zero out
237
- * `fieldset` elements in all browsers.
238
- */
222
+ Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
223
+ */
239
224
 
240
225
  legend {
241
- box-sizing: border-box; /* 1 */
242
- color: inherit; /* 2 */
243
- display: table; /* 1 */
244
- max-width: 100%; /* 1 */
245
- padding: 0; /* 3 */
246
- white-space: normal; /* 1 */
226
+ padding: 0;
247
227
  }
248
228
 
249
229
  /**
250
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
251
- */
230
+ Add the correct vertical alignment in Chrome and Firefox.
231
+ */
252
232
 
253
233
  progress {
254
- vertical-align: baseline;
255
- }
256
-
257
- /**
258
- * Remove the default vertical scrollbar in IE 10+.
259
- */
260
-
261
- textarea {
262
- overflow: auto;
263
- }
264
-
265
- /**
266
- * 1. Add the correct box sizing in IE 10.
267
- * 2. Remove the padding in IE 10.
268
- */
269
-
270
- [type="checkbox"],
271
- [type="radio"] {
272
- box-sizing: border-box; /* 1 */
273
- padding: 0; /* 2 */
234
+ vertical-align: baseline;
274
235
  }
275
236
 
276
237
  /**
277
- * Correct the cursor style of increment and decrement buttons in Chrome.
278
- */
238
+ Correct the cursor style of increment and decrement buttons in Safari.
239
+ */
279
240
 
280
- [type="number"]::-webkit-inner-spin-button,
281
- [type="number"]::-webkit-outer-spin-button {
282
- height: auto;
241
+ ::-webkit-inner-spin-button,
242
+ ::-webkit-outer-spin-button {
243
+ height: auto;
283
244
  }
284
245
 
285
246
  /**
286
- * 1. Correct the odd appearance in Chrome and Safari.
287
- * 2. Correct the outline style in Safari.
288
- */
247
+ 1. Correct the odd appearance in Chrome and Safari.
248
+ 2. Correct the outline style in Safari.
249
+ */
289
250
 
290
- [type="search"] {
291
- -webkit-appearance: textfield; /* 1 */
292
- outline-offset: -2px; /* 2 */
251
+ [type='search'] {
252
+ -webkit-appearance: textfield; /* 1 */
253
+ outline-offset: -2px; /* 2 */
293
254
  }
294
255
 
295
256
  /**
296
- * Remove the inner padding in Chrome and Safari on macOS.
297
- */
257
+ Remove the inner padding in Chrome and Safari on macOS.
258
+ */
298
259
 
299
- [type="search"]::-webkit-search-decoration {
300
- -webkit-appearance: none;
260
+ ::-webkit-search-decoration {
261
+ -webkit-appearance: none;
301
262
  }
302
263
 
303
264
  /**
304
- * 1. Correct the inability to style clickable types in iOS and Safari.
305
- * 2. Change font properties to `inherit` in Safari.
306
- */
265
+ 1. Correct the inability to style clickable types in iOS and Safari.
266
+ 2. Change font properties to 'inherit' in Safari.
267
+ */
307
268
 
308
269
  ::-webkit-file-upload-button {
309
- -webkit-appearance: button; /* 1 */
310
- font: inherit; /* 2 */
270
+ -webkit-appearance: button; /* 1 */
271
+ font: inherit; /* 2 */
311
272
  }
312
273
 
313
- /* Interactive
314
- ========================================================================== */
315
-
316
274
  /*
317
- * Add the correct display in Edge, IE 10+, and Firefox.
318
- */
319
-
320
- details {
321
- display: block;
322
- }
275
+ Interactive
276
+ ===========
277
+ */
323
278
 
324
279
  /*
325
- * Add the correct display in all browsers.
326
- */
280
+ Add the correct display in Chrome and Safari.
281
+ */
327
282
 
328
283
  summary {
329
- display: list-item;
330
- }
331
-
332
- /* Misc
333
- ========================================================================== */
334
-
335
- /**
336
- * Add the correct display in IE 10+.
337
- */
338
-
339
- template {
340
- display: none;
341
- }
342
-
343
- /**
344
- * Add the correct display in IE 10.
345
- */
346
-
347
- [hidden] {
348
- display: none;
284
+ display: list-item;
349
285
  }
@@ -32,16 +32,6 @@ button {
32
32
  background-image: none;
33
33
  }
34
34
 
35
- /**
36
- * Work around a Firefox/IE bug where the transparent `button` background
37
- * results in a loss of the default `button` focus styles.
38
- */
39
-
40
- button:focus {
41
- outline: 1px dotted;
42
- outline: 5px auto -webkit-focus-ring-color;
43
- }
44
-
45
35
  fieldset {
46
36
  margin: 0;
47
37
  padding: 0;
@@ -144,6 +134,7 @@ textarea {
144
134
 
145
135
  input::placeholder,
146
136
  textarea::placeholder {
137
+ opacity: 1;
147
138
  color: $gray-400;
148
139
  }
149
140
 
@@ -152,6 +143,18 @@ button,
152
143
  cursor: pointer;
153
144
  }
154
145
 
146
+ /**
147
+ * Override legacy focus reset from Normalize with modern Firefox focus styles.
148
+ *
149
+ * This is actually an improvement over the new defaults in Firefox in our testing,
150
+ * as it triggers the better focus styles even for links, which still use a dotted
151
+ * outline in Firefox by default.
152
+ */
153
+
154
+ :-moz-focusring {
155
+ outline: auto;
156
+ }
157
+
155
158
  table {
156
159
  border-collapse: collapse;
157
160
  }
@@ -209,11 +212,20 @@ samp {
209
212
  }
210
213
 
211
214
  /**
212
- * Make replaced elements `display: block` by default as that's
213
- * the behavior you want almost all of the time. Inspired by
214
- * CSS Remedy, with `svg` added as well.
215
+ * 1. Make replaced elements `display: block` by default as that's
216
+ * the behavior you want almost all of the time. Inspired by
217
+ * CSS Remedy, with `svg` added as well.
215
218
  *
216
- * https://github.com/mozdevs/cssremedy/issues/14
219
+ * https://github.com/mozdevs/cssremedy/issues/14
220
+ *
221
+ * 2. Add `vertical-align: middle` to align replaced elements more
222
+ * sensibly by default when overriding `display` by adding a
223
+ * utility like `inline`.
224
+ *
225
+ * This can trigger a poorly considered linting error in some
226
+ * tools but is included by design.
227
+ *
228
+ * https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210
217
229
  */
218
230
 
219
231
  img,
@@ -224,13 +236,13 @@ audio,
224
236
  iframe,
225
237
  embed,
226
238
  object {
227
- display: block;
228
- vertical-align: middle;
239
+ display: block; /* 1 */
240
+ vertical-align: middle; /* 2 */
229
241
  }
230
242
 
231
243
  /**
232
244
  * Constrain images and videos to the parent width and preserve
233
- * their instrinsic aspect ratio.
245
+ * their intrinsic aspect ratio.
234
246
  *
235
247
  * https://github.com/mozdevs/cssremedy/issues/14
236
248
  */
@@ -240,3 +252,11 @@ video {
240
252
  max-width: 100%;
241
253
  height: auto;
242
254
  }
255
+
256
+ /**
257
+ * Ensure the default browser behavior of the `hidden` attribute.
258
+ */
259
+
260
+ [hidden] {
261
+ display: none;
262
+ }