-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixalize.css
364 lines (310 loc) · 8.5 KB
/
fixalize.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
/* Fixalize CSS -> Personal mix of Normalize.css and Remedy.css */
*, *::before, *::after {
/* Use border-box by default, globally. */
box-sizing: border-box;
}
html {
/* Correct the line height in all browsers. */
line-height: 1.5;
/* Prevent adjustments of font size after orientation changes in iOS. */
-webkit-text-size-adjust: 100%;
}
body {
/* Remove the margin in all browsers. */
margin: 0;
/* forces body to take full window height */
min-height: 100vh;
/* system ui font family */
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
main {
/* Render the `main` element consistently in IE. */
display: block;
}
/* Switch to rem units for headings */
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.17rem; }
h4 { font-size: 1.00rem; }
h5 { font-size: 0.83rem; }
h6 { font-size: 0.67rem; }
/* Keep h1 margins consistent, even when nested */
h1 { margin: 0.67em 0; }
/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
hr {
/* Solid, thin horizontal rules */
border-style: solid;
border-width: 1px 0 0 0;
height: 0;
/* Remove Firefox `color: gray` */
color: inherit;
/* Show the overflow in Edge and IE. */
overflow: visible;
}
pre {
/* Correct the inheritance and scaling of font size in all browsers. */
font-family: monospace, monospace;
/* Correct the odd `em` font sizing in all browsers. */
font-size: 1em;
/* Overflow by default is bad */
white-space: pre-wrap;
}
a {
/* Remove the gray background on active links in IE 10. */
background-color: transparent;
/* Add cursor */
cursor: pointer;
/* Override color */
color: #005cd8;
}
:visited {
color: #005cd8;
}
abbr[title] {
/* Remove the bottom border in Chrome 57- */
border-bottom: none;
/* Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. */
text-decoration: underline;
text-decoration: underline dotted;
}
b, strong {
/* Add the correct font weight in Chrome, Edge, and Safari. */
font-weight: bolder;
}
code, kbd, samp {
/* Correct the inheritance and scaling of font size in all browsers. */
font-family: monospace, monospace;
/* Correct the odd `em` font sizing in all browsers. */
font-size: 1em;
}
small {
/* Correct the small font size in all browsers. */
font-size: 80%;
}
sub, sup {
/* Prevent `sub` and `sup` elements from affecting the line height in all browsers. */
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
img, svg, video, canvas, audio, iframe, embed, object {
/* Block display is usually what we want; Remove strange space-below when inline; Responsive by default */
display: block;
vertical-align: middle;
max-width: 100%;
}
img, svg, video, canvas {
/* Maintain intrinsic aspect ratios when `max-width` is applied (iframe, embed, and object have no intrinsic ratio, set height explicitly) */
height: auto;
}
img {
/* Remove the border on images inside links in IE 10. */
border-style: none;
}
svg {
/* Hide the overflow in IE 10 and earlier */
overflow: hidden;
}
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
/* Default block display on HTML5 elements */
display: block;
}
button, input, optgroup, select, textarea {
/* Change the font styles in all browsers. */
font-family: inherit;
font-size: 100%;
line-height: 1.15;
/* Remove the margin in Firefox and Safari. */
margin: 0;
}
button, input, optgroup, select, textarea {
/* Override default border style, width and color; color cannot be inherit or it will break box-shadow in safari */
border: 1px solid black;
/* Override select multiple border radius */
border-radius: 0;
}
button:disabled, input:disabled, optgroup:disabled, select:disabled, textarea:disabled {
/* Change the font styles in all browsers. */
opacity: 0.6;
border: 1px solid #bbb;
cursor: default;
}
a:hover, a:focus, a:focus-visible {
/* Override focus styles */
/* outline: solid 2px #005cd8; */
outline: none;
/* box-shadow: 0 0 0 2px rgba(0,0,0,0.25); */
text-decoration: none;
}
button:focus, button:focus-visible,
[type="button"]:focus [type="button"]:focus-visible,
[type="reset"]:focus [type="reset"]:focus-visible,
[type="submit"]:focus [type="submit"]:focus-visible,
input:focus, input:focus-visible,
select:focus, select:focus-visible,
textarea:focus, textarea:focus-visible {
/* Override focus styles */
/* box-shadow: 0 0 0 1px white, 0 0 0 3px #005cd8; */
/* border: solid 1px #005cd8; */
/* outline: solid 1px #005cd8; */
outline: none;
box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
}
button, input {
/* Show the overflow in IE & Edge */
overflow: visible;
}
button, select {
/* Remove the inheritance of text transform in Firefox, Edge & IE. */
text-transform: none;
}
select {
background: none;
/* add cursor */
cursor: pointer;
}
select[multiple] {
/* investigate further if needed */
/* padding-right: 12px; */
}
button, [type="button"], [type="reset"], [type="submit"] {
/* Correct the inability to style clickable types in iOS and Safari. */
-webkit-appearance: button;
/* forces cursor to be a pointer on buttons */
cursor: pointer;
/* Override background default */
background: #f2f2f2;
}
button:hover:not(:disabled),
[type="button"]:hover:not(:disabled),
[type="reset"]:hover:not(:disabled),
[type="submit"]:hover:not(:disabled) {
/* Add hover style */
background: white;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
/* Remove the inner border and padding in Firefox. */
border-style: none;
padding: 0;
}
fieldset {
/* Correct the padding in Firefox. */
padding: 0.35em 0.75em 0.625em;
}
legend {
/* Correct the text wrapping in Edge and IE. */
box-sizing: border-box;
display: table;
max-width: 100%;
white-space: normal;
/* Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers. */
padding: 0;
/* Correct the color inheritance from `fieldset` elements in IE. */
color: inherit;
}
label {
cursor: pointer;
}
progress {
/* Add the correct vertical alignment in Chrome, Firefox, and Opera. */
vertical-align: baseline;
}
textarea {
/* Remove the default vertical scrollbar in IE 10+. */
overflow: auto;
}
[type="checkbox"], [type="radio"] {
/* Add the correct box sizing in IE 10. */
box-sizing: border-box;
/* Remove the padding in IE 10. */
padding: 0;
/* add cursor */
cursor: pointer;
}
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
/* Correct the cursor style of increment and decrement buttons in Chrome. */
height: auto;
}
::-webkit-input-placeholder {
/* Correct the text style of placeholders in Chrome, Edge, and Safari. */
color: inherit;
opacity: 0.54;
}
[type="search"] {
/* Correct the odd appearance in Chrome and Safari. */
-webkit-appearance: textfield;
/* Correct the outline style in Safari. */
outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
/* Remove the inner padding in Chrome and Safari on macOS. */
-webkit-appearance: none;
}
[type="file"], [type="file"]:focus {
/* Remove border for file input */
border: none;
outline: none;
/* Add cursor */
cursor: pointer;
}
[type="file"]::-webkit-file-upload-button,
[type="file"]::file-selector-button {
/* Correct the inability to style clickable types in iOS and Safari. */
-webkit-appearance: button;
/* Change font properties to `inherit` in Safari. */
font: inherit;
/* Override default border style inset, width and color */
border-style: solid;
border-width: 1px;
border-color: inherit;
/* Override background default */
background: #f2f2f2;
/* Add cursor */
cursor: pointer;
}
[type="file"]::-webkit-file-upload-button:hover:not(:disabled),
[type="file"]::file-selector-button:hover:not(:disabled) {
/* Override background on hover */
background: white;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
table tr td, table tr th{
border-bottom: solid 1px #ddd;
padding: 0.25em 0.5em;
}
table tr th {
border-width: 2px;
text-align: start;
}
details {
/* Add the correct display in Edge, IE 10+, and Firefox. */
display: block;
}
summary {
/* Add the correct display in all browsers. */
display: list-item;
}
template {
/* Add the correct display in IE 10+. */
display: none;
}
[hidden] {
/* Add the correct display in IE 10. */
display: none;
}