just-the-docs 0.2.8 → 0.3.3
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 +4 -4
- data/README.md +5 -1
- data/_includes/css/custom.scss.liquid +1 -0
- data/_includes/css/just-the-docs.scss.liquid +7 -0
- data/_includes/fix_linenos.html +65 -0
- data/_includes/footer_custom.html +3 -0
- data/_includes/head.html +7 -7
- data/_includes/header_custom.html +0 -0
- data/_includes/nav.html +94 -35
- data/_includes/vendor/anchor_headings.html +53 -9
- data/_layouts/default.html +176 -76
- data/_layouts/table_wrappers.html +1 -1
- data/_sass/base.scss +14 -17
- data/_sass/code.scss +291 -74
- data/_sass/color_schemes/dark.scss +1 -1
- data/_sass/color_schemes/light.scss +0 -0
- data/_sass/content.scss +76 -5
- data/_sass/custom/custom.scss +0 -129
- data/_sass/labels.scss +5 -4
- data/_sass/layout.scss +48 -52
- data/_sass/modules.scss +20 -0
- data/_sass/navigation.scss +149 -50
- data/_sass/print.scss +40 -0
- data/_sass/search.scss +204 -48
- data/_sass/support/_functions.scss +2 -3
- data/_sass/support/_variables.scss +33 -9
- data/_sass/support/mixins/_layout.scss +1 -3
- data/_sass/support/mixins/_typography.scss +25 -22
- data/_sass/typography.scss +13 -7
- data/_sass/utilities/_layout.scss +74 -17
- data/_sass/utilities/_spacing.scss +69 -25
- data/_sass/vendor/normalize.scss/README.md +4 -75
- data/_sass/vendor/normalize.scss/normalize.scss +157 -235
- data/assets/css/just-the-docs-dark.scss +3 -0
- data/assets/css/just-the-docs-default.scss +8 -0
- data/assets/css/just-the-docs-light.scss +3 -0
- data/assets/js/just-the-docs.js +374 -202
- data/assets/js/zzzz-search-data.json +72 -0
- data/lib/tasks/search.rake +69 -10
- metadata +15 -15
- data/_sass/overrides.scss +0 -3
- data/_sass/vendor/normalize.scss/package.json +0 -70
- data/assets/css/dark-mode-preview.scss +0 -45
- data/assets/css/just-the-docs.scss +0 -49
- data/assets/js/dark-mode-preview.js +0 -23
- data/assets/js/search-data.json +0 -12
@@ -1,78 +1,7 @@
|
|
1
|
-
# normalize.scss
|
1
|
+
# normalize.scss
|
2
2
|
|
3
|
-
Normalize.scss is
|
3
|
+
Normalize.scss is an SCSS copy of [normalize.css](http://necolas.github.io/normalize.css), a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards.
|
4
4
|
|
5
|
-
[
|
6
|
-
|
7
|
-
## Install
|
8
|
-
|
9
|
-
* [npm](http://npmjs.org/): `npm install --save normalize.scss`
|
10
|
-
* [Component(1)](https://github.com/component/component/): `component install guerrero/normalize.scss`
|
11
|
-
* [Bower](http://bower.io/): `bower install --save normalize.scss`
|
12
|
-
* Download: Go to [this link](https://raw.githubusercontent.com/guerrero/normalize.scss/master/normalize.scss), press right-click on the page and choose "Save as..."
|
13
|
-
|
14
|
-
No other styles should come before Normalize.scss.
|
15
|
-
|
16
|
-
It's recommendable to modify `normalize.scss` to suit it to your project
|
17
|
-
|
18
|
-
## What does it do?
|
19
|
-
|
20
|
-
* Preserves useful defaults, unlike many CSS resets.
|
21
|
-
* Normalizes styles for a wide range of elements.
|
22
|
-
* Corrects bugs and common browser inconsistencies.
|
23
|
-
* Improves usability with subtle improvements.
|
24
|
-
* Explains what code does using detailed comments.
|
25
|
-
|
26
|
-
## Browser support
|
27
|
-
|
28
|
-
* Google Chrome (latest)
|
29
|
-
* Mozilla Firefox (latest)
|
30
|
-
* Mozilla Firefox 4
|
31
|
-
* Opera (latest)
|
32
|
-
* Apple Safari 6+
|
33
|
-
* Internet Explorer 8+
|
34
|
-
|
35
|
-
[Normalize.css v1 provides legacy browser
|
36
|
-
support](https://github.com/necolas/normalize.css/tree/v1) (IE 6+, Safari 4+),
|
37
|
-
but is no longer actively developed.
|
38
|
-
|
39
|
-
## Extended details
|
40
|
-
|
41
|
-
Additional detail and explanation of the esoteric parts of normalize.css.
|
5
|
+
The [normalize.scss fork](https://github.com/guerrero/normalize.scss) of [normalize.css](http://necolas.github.io/normalize.css) was archived in 2014, and has not been updated since v0.1.0.
|
42
6
|
|
43
|
-
|
44
|
-
|
45
|
-
The `font-family: monospace, monospace` hack fixes the inheritance and scaling
|
46
|
-
of font-size for preformated text. The duplication of `monospace` is
|
47
|
-
intentional. [Source](http://en.wikipedia.org/wiki/User:Davidgothberg/Test59).
|
48
|
-
|
49
|
-
#### `sub, sup`
|
50
|
-
|
51
|
-
Normally, using `sub` or `sup` affects the line-box height of text in all
|
52
|
-
browsers. [Source](http://gist.github.com/413930).
|
53
|
-
|
54
|
-
#### `svg:not(:root)`
|
55
|
-
|
56
|
-
Adding `overflow: hidden` fixes IE9's SVG rendering. Earlier versions of IE
|
57
|
-
don't support SVG, so we can safely use the `:not()` and `:root` selectors that
|
58
|
-
modern browsers use in the default UA stylesheets to apply this style. [SVG
|
59
|
-
Mailing List discussion](http://lists.w3.org/Archives/Public/public-svg-wg/2008JulSep/0339.html)
|
60
|
-
|
61
|
-
#### `input[type="search"]`
|
62
|
-
|
63
|
-
The search input is not fully stylable by default. In Chrome and Safari on
|
64
|
-
OSX/iOS you can't control `font`, `padding`, `border`, or `background`. In
|
65
|
-
Chrome and Safari on Windows you can't control `border` properly. It will apply
|
66
|
-
`border-width` but will only show a border color (which cannot be controlled)
|
67
|
-
for the outer 1px of that border. Applying `-webkit-appearance: textfield`
|
68
|
-
addresses these issues without removing the benefits of search inputs (e.g.
|
69
|
-
showing past searches).
|
70
|
-
|
71
|
-
#### `legend`
|
72
|
-
|
73
|
-
Adding `border: 0` corrects an IE 8–11 bug where `color` (yes, `color`) is not
|
74
|
-
inherited by `legend`.
|
75
|
-
|
76
|
-
## Acknowledgements
|
77
|
-
|
78
|
-
Normalize.scss is a project by [Alex Guerrero](https://github.com/guerrero) based on [normalize.css](http://necolas.github.io/normalize.css) from [Nicolas Gallagher](https://github.com/necolas), co-created with [Jonathan Neal](https://github.com/jonathantneal).
|
7
|
+
[View the normalize.css test file](http://necolas.github.io/normalize.css/latest/test.html)
|
@@ -1,89 +1,76 @@
|
|
1
|
-
/*! normalize.
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
2
|
+
|
3
|
+
/* Document
|
4
|
+
========================================================================== */
|
2
5
|
|
3
6
|
/**
|
4
|
-
* 1.
|
5
|
-
* 2. Prevent
|
6
|
-
* user zoom.
|
7
|
+
* 1. Correct the line height in all browsers.
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
7
9
|
*/
|
8
10
|
|
9
11
|
html {
|
10
|
-
|
11
|
-
-ms-text-size-adjust: 100%; /* 2 */
|
12
|
+
line-height: 1.15; /* 1 */
|
12
13
|
-webkit-text-size-adjust: 100%; /* 2 */
|
13
14
|
}
|
14
15
|
|
16
|
+
/* Sections
|
17
|
+
========================================================================== */
|
18
|
+
|
15
19
|
/**
|
16
|
-
* Remove
|
20
|
+
* Remove the margin in all browsers.
|
17
21
|
*/
|
18
22
|
|
19
23
|
body {
|
20
24
|
margin: 0;
|
21
25
|
}
|
22
26
|
|
23
|
-
/* HTML5 display definitions
|
24
|
-
========================================================================== */
|
25
|
-
|
26
27
|
/**
|
27
|
-
*
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
*/
|
32
|
-
|
33
|
-
article,
|
34
|
-
aside,
|
35
|
-
details,
|
36
|
-
figcaption,
|
37
|
-
figure,
|
38
|
-
footer,
|
39
|
-
header,
|
40
|
-
hgroup,
|
41
|
-
main,
|
42
|
-
menu,
|
43
|
-
nav,
|
44
|
-
section,
|
45
|
-
summary {
|
28
|
+
* Render the `main` element consistently in IE.
|
29
|
+
*/
|
30
|
+
|
31
|
+
main {
|
46
32
|
display: block;
|
47
33
|
}
|
48
34
|
|
49
35
|
/**
|
50
|
-
*
|
51
|
-
*
|
36
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
37
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
52
38
|
*/
|
53
39
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
video {
|
58
|
-
display: inline-block; /* 1 */
|
59
|
-
vertical-align: baseline; /* 2 */
|
40
|
+
h1 {
|
41
|
+
font-size: 2em;
|
42
|
+
margin: 0.67em 0;
|
60
43
|
}
|
61
44
|
|
45
|
+
/* Grouping content
|
46
|
+
========================================================================== */
|
47
|
+
|
62
48
|
/**
|
63
|
-
*
|
64
|
-
*
|
49
|
+
* 1. Add the correct box sizing in Firefox.
|
50
|
+
* 2. Show the overflow in Edge and IE.
|
65
51
|
*/
|
66
52
|
|
67
|
-
|
68
|
-
|
69
|
-
height: 0;
|
53
|
+
hr {
|
54
|
+
box-sizing: content-box; /* 1 */
|
55
|
+
height: 0; /* 1 */
|
56
|
+
overflow: visible; /* 2 */
|
70
57
|
}
|
71
58
|
|
72
59
|
/**
|
73
|
-
*
|
74
|
-
*
|
60
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
61
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
75
62
|
*/
|
76
63
|
|
77
|
-
|
78
|
-
|
79
|
-
|
64
|
+
pre {
|
65
|
+
font-family: monospace, monospace; /* 1 */
|
66
|
+
font-size: 1em; /* 2 */
|
80
67
|
}
|
81
68
|
|
82
|
-
/*
|
69
|
+
/* Text-level semantics
|
83
70
|
========================================================================== */
|
84
71
|
|
85
72
|
/**
|
86
|
-
* Remove the gray background
|
73
|
+
* Remove the gray background on active links in IE 10.
|
87
74
|
*/
|
88
75
|
|
89
76
|
a {
|
@@ -91,63 +78,39 @@ a {
|
|
91
78
|
}
|
92
79
|
|
93
80
|
/**
|
94
|
-
*
|
95
|
-
|
96
|
-
|
97
|
-
a:active,
|
98
|
-
a:hover {
|
99
|
-
outline: 0;
|
100
|
-
}
|
101
|
-
|
102
|
-
/* Text-level semantics
|
103
|
-
========================================================================== */
|
104
|
-
|
105
|
-
/**
|
106
|
-
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
81
|
+
* 1. Remove the bottom border in Chrome 57-
|
82
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
107
83
|
*/
|
108
84
|
|
109
85
|
abbr[title] {
|
110
|
-
border-bottom:
|
86
|
+
border-bottom: none; /* 1 */
|
87
|
+
text-decoration: underline; /* 2 */
|
88
|
+
text-decoration: underline dotted; /* 2 */
|
111
89
|
}
|
112
90
|
|
113
91
|
/**
|
114
|
-
*
|
92
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
115
93
|
*/
|
116
94
|
|
117
95
|
b,
|
118
96
|
strong {
|
119
|
-
font-weight:
|
120
|
-
}
|
121
|
-
|
122
|
-
/**
|
123
|
-
* Address styling not present in Safari and Chrome.
|
124
|
-
*/
|
125
|
-
|
126
|
-
dfn {
|
127
|
-
font-style: italic;
|
128
|
-
}
|
129
|
-
|
130
|
-
/**
|
131
|
-
* Address variable `h1` font-size and margin within `section` and `article`
|
132
|
-
* contexts in Firefox 4+, Safari, and Chrome.
|
133
|
-
*/
|
134
|
-
|
135
|
-
h1 {
|
136
|
-
font-size: 2em;
|
137
|
-
margin: 0.67em 0;
|
97
|
+
font-weight: bolder;
|
138
98
|
}
|
139
99
|
|
140
100
|
/**
|
141
|
-
*
|
101
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
102
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
142
103
|
*/
|
143
104
|
|
144
|
-
|
145
|
-
|
146
|
-
|
105
|
+
code,
|
106
|
+
kbd,
|
107
|
+
samp {
|
108
|
+
font-family: monospace, monospace; /* 1 */
|
109
|
+
font-size: 1em; /* 2 */
|
147
110
|
}
|
148
111
|
|
149
112
|
/**
|
150
|
-
*
|
113
|
+
* Add the correct font size in all browsers.
|
151
114
|
*/
|
152
115
|
|
153
116
|
small {
|
@@ -155,7 +118,8 @@ small {
|
|
155
118
|
}
|
156
119
|
|
157
120
|
/**
|
158
|
-
* Prevent `sub` and `sup` affecting
|
121
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
122
|
+
* all browsers.
|
159
123
|
*/
|
160
124
|
|
161
125
|
sub,
|
@@ -166,262 +130,220 @@ sup {
|
|
166
130
|
vertical-align: baseline;
|
167
131
|
}
|
168
132
|
|
169
|
-
sup {
|
170
|
-
top: -0.5em;
|
171
|
-
}
|
172
|
-
|
173
133
|
sub {
|
174
134
|
bottom: -0.25em;
|
175
135
|
}
|
176
136
|
|
137
|
+
sup {
|
138
|
+
top: -0.5em;
|
139
|
+
}
|
140
|
+
|
177
141
|
/* Embedded content
|
178
142
|
========================================================================== */
|
179
143
|
|
180
144
|
/**
|
181
|
-
* Remove border
|
145
|
+
* Remove the border on images inside links in IE 10.
|
182
146
|
*/
|
183
147
|
|
184
148
|
img {
|
185
|
-
border:
|
186
|
-
}
|
187
|
-
|
188
|
-
/**
|
189
|
-
* Correct overflow not hidden in IE 9/10/11.
|
190
|
-
*/
|
191
|
-
|
192
|
-
svg:not(:root) {
|
193
|
-
overflow: hidden;
|
149
|
+
border-style: none;
|
194
150
|
}
|
195
151
|
|
196
|
-
/*
|
152
|
+
/* Forms
|
197
153
|
========================================================================== */
|
198
154
|
|
199
155
|
/**
|
200
|
-
*
|
156
|
+
* 1. Change the font styles in all browsers.
|
157
|
+
* 2. Remove the margin in Firefox and Safari.
|
201
158
|
*/
|
202
159
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
*/
|
210
|
-
|
211
|
-
|
212
|
-
-moz-box-sizing: content-box;
|
213
|
-
box-sizing: content-box;
|
214
|
-
height: 0;
|
160
|
+
button,
|
161
|
+
input,
|
162
|
+
optgroup,
|
163
|
+
select,
|
164
|
+
textarea {
|
165
|
+
font-family: inherit; /* 1 */
|
166
|
+
font-size: 100%; /* 1 */
|
167
|
+
line-height: 1.15; /* 1 */
|
168
|
+
margin: 0; /* 2 */
|
215
169
|
}
|
216
170
|
|
217
171
|
/**
|
218
|
-
*
|
172
|
+
* Show the overflow in IE.
|
173
|
+
* 1. Show the overflow in Edge.
|
219
174
|
*/
|
220
175
|
|
221
|
-
|
222
|
-
|
176
|
+
button,
|
177
|
+
input { /* 1 */
|
178
|
+
overflow: visible;
|
223
179
|
}
|
224
180
|
|
225
181
|
/**
|
226
|
-
*
|
182
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
183
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
227
184
|
*/
|
228
185
|
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
samp {
|
233
|
-
font-family: monospace, monospace;
|
234
|
-
font-size: 1em;
|
186
|
+
button,
|
187
|
+
select { /* 1 */
|
188
|
+
text-transform: none;
|
235
189
|
}
|
236
190
|
|
237
|
-
/* Forms
|
238
|
-
========================================================================== */
|
239
|
-
|
240
|
-
/**
|
241
|
-
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
242
|
-
* styling of `select`, unless a `border` property is set.
|
243
|
-
*/
|
244
|
-
|
245
191
|
/**
|
246
|
-
*
|
247
|
-
* Known issue: affects color of disabled elements.
|
248
|
-
* 2. Correct font properties not being inherited.
|
249
|
-
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
192
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
250
193
|
*/
|
251
194
|
|
252
195
|
button,
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
color: inherit; /* 1 */
|
258
|
-
font: inherit; /* 2 */
|
259
|
-
margin: 0; /* 3 */
|
196
|
+
[type="button"],
|
197
|
+
[type="reset"],
|
198
|
+
[type="submit"] {
|
199
|
+
-webkit-appearance: button;
|
260
200
|
}
|
261
201
|
|
262
202
|
/**
|
263
|
-
*
|
203
|
+
* Remove the inner border and padding in Firefox.
|
264
204
|
*/
|
265
205
|
|
266
|
-
button
|
267
|
-
|
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;
|
268
212
|
}
|
269
213
|
|
270
214
|
/**
|
271
|
-
*
|
272
|
-
* All other form control elements do not inherit `text-transform` values.
|
273
|
-
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
274
|
-
* Correct `select` style inheritance in Firefox.
|
215
|
+
* Restore the focus styles unset by the previous rule.
|
275
216
|
*/
|
276
217
|
|
277
|
-
button,
|
278
|
-
|
279
|
-
|
218
|
+
button:-moz-focusring,
|
219
|
+
[type="button"]:-moz-focusring,
|
220
|
+
[type="reset"]:-moz-focusring,
|
221
|
+
[type="submit"]:-moz-focusring {
|
222
|
+
outline: 1px dotted ButtonText;
|
280
223
|
}
|
281
224
|
|
282
225
|
/**
|
283
|
-
*
|
284
|
-
* and `video` controls.
|
285
|
-
* 2. Correct inability to style clickable `input` types in iOS.
|
286
|
-
* 3. Improve usability and consistency of cursor style between image-type
|
287
|
-
* `input` and others.
|
226
|
+
* Correct the padding in Firefox.
|
288
227
|
*/
|
289
228
|
|
290
|
-
|
291
|
-
|
292
|
-
input[type="reset"],
|
293
|
-
input[type="submit"] {
|
294
|
-
-webkit-appearance: button; /* 2 */
|
295
|
-
cursor: pointer; /* 3 */
|
229
|
+
fieldset {
|
230
|
+
padding: 0.35em 0.75em 0.625em;
|
296
231
|
}
|
297
232
|
|
298
233
|
/**
|
299
|
-
*
|
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.
|
300
238
|
*/
|
301
239
|
|
302
|
-
|
303
|
-
|
304
|
-
|
240
|
+
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 */
|
305
247
|
}
|
306
248
|
|
307
249
|
/**
|
308
|
-
*
|
250
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
309
251
|
*/
|
310
252
|
|
311
|
-
|
312
|
-
|
313
|
-
border: 0;
|
314
|
-
padding: 0;
|
253
|
+
progress {
|
254
|
+
vertical-align: baseline;
|
315
255
|
}
|
316
256
|
|
317
257
|
/**
|
318
|
-
*
|
319
|
-
* the UA stylesheet.
|
258
|
+
* Remove the default vertical scrollbar in IE 10+.
|
320
259
|
*/
|
321
260
|
|
322
|
-
|
323
|
-
|
261
|
+
textarea {
|
262
|
+
overflow: auto;
|
324
263
|
}
|
325
264
|
|
326
265
|
/**
|
327
|
-
*
|
328
|
-
*
|
329
|
-
*
|
330
|
-
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
331
|
-
* 2. Remove excess padding in IE 8/9/10.
|
266
|
+
* 1. Add the correct box sizing in IE 10.
|
267
|
+
* 2. Remove the padding in IE 10.
|
332
268
|
*/
|
333
269
|
|
334
|
-
|
335
|
-
|
270
|
+
[type="checkbox"],
|
271
|
+
[type="radio"] {
|
336
272
|
box-sizing: border-box; /* 1 */
|
337
273
|
padding: 0; /* 2 */
|
338
274
|
}
|
339
275
|
|
340
276
|
/**
|
341
|
-
*
|
342
|
-
* `font-size` values of the `input`, it causes the cursor style of the
|
343
|
-
* decrement button to change from `default` to `text`.
|
277
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
344
278
|
*/
|
345
279
|
|
346
|
-
|
347
|
-
|
280
|
+
[type="number"]::-webkit-inner-spin-button,
|
281
|
+
[type="number"]::-webkit-outer-spin-button {
|
348
282
|
height: auto;
|
349
283
|
}
|
350
284
|
|
351
285
|
/**
|
352
|
-
* 1.
|
353
|
-
* 2.
|
354
|
-
* (include `-moz` to future-proof).
|
286
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
287
|
+
* 2. Correct the outline style in Safari.
|
355
288
|
*/
|
356
289
|
|
357
|
-
|
290
|
+
[type="search"] {
|
358
291
|
-webkit-appearance: textfield; /* 1 */
|
359
|
-
-
|
360
|
-
-webkit-box-sizing: content-box; /* 2 */
|
361
|
-
box-sizing: content-box;
|
292
|
+
outline-offset: -2px; /* 2 */
|
362
293
|
}
|
363
294
|
|
364
295
|
/**
|
365
|
-
* Remove inner padding
|
366
|
-
* Safari (but not Chrome) clips the cancel button when the search input has
|
367
|
-
* padding (and `textfield` appearance).
|
296
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
368
297
|
*/
|
369
298
|
|
370
|
-
|
371
|
-
input[type="search"]::-webkit-search-decoration {
|
299
|
+
[type="search"]::-webkit-search-decoration {
|
372
300
|
-webkit-appearance: none;
|
373
301
|
}
|
374
302
|
|
375
303
|
/**
|
376
|
-
*
|
304
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
305
|
+
* 2. Change font properties to `inherit` in Safari.
|
377
306
|
*/
|
378
307
|
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
padding: 0.35em 0.625em 0.75em;
|
308
|
+
::-webkit-file-upload-button {
|
309
|
+
-webkit-appearance: button; /* 1 */
|
310
|
+
font: inherit; /* 2 */
|
383
311
|
}
|
384
312
|
|
385
|
-
|
386
|
-
|
387
|
-
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
388
|
-
*/
|
389
|
-
|
390
|
-
legend {
|
391
|
-
border: 0; /* 1 */
|
392
|
-
padding: 0; /* 2 */
|
393
|
-
}
|
313
|
+
/* Interactive
|
314
|
+
========================================================================== */
|
394
315
|
|
395
|
-
|
396
|
-
*
|
316
|
+
/*
|
317
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
397
318
|
*/
|
398
319
|
|
399
|
-
|
400
|
-
|
320
|
+
details {
|
321
|
+
display: block;
|
401
322
|
}
|
402
323
|
|
403
|
-
|
404
|
-
*
|
405
|
-
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
324
|
+
/*
|
325
|
+
* Add the correct display in all browsers.
|
406
326
|
*/
|
407
327
|
|
408
|
-
|
409
|
-
|
328
|
+
summary {
|
329
|
+
display: list-item;
|
410
330
|
}
|
411
331
|
|
412
|
-
/*
|
332
|
+
/* Misc
|
413
333
|
========================================================================== */
|
414
334
|
|
415
335
|
/**
|
416
|
-
*
|
336
|
+
* Add the correct display in IE 10+.
|
417
337
|
*/
|
418
338
|
|
419
|
-
|
420
|
-
|
421
|
-
border-spacing: 0;
|
339
|
+
template {
|
340
|
+
display: none;
|
422
341
|
}
|
423
342
|
|
424
|
-
|
425
|
-
|
426
|
-
|
343
|
+
/**
|
344
|
+
* Add the correct display in IE 10.
|
345
|
+
*/
|
346
|
+
|
347
|
+
[hidden] {
|
348
|
+
display: none;
|
427
349
|
}
|