-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup-basic.css
308 lines (260 loc) · 4.97 KB
/
setup-basic.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
/* ==========================================================================
Setup-basic.css
This "basic" version for simple pages removes normalization support for IE9,
older mobile browsers, and some form and media display styles.
========================================================================== */
/**
* Author: David Greenwald
* @link github.com/davidegreenwald
* @link davidgreenwald.com
*
* License: MIT
* @link https://en.wikipedia.org/wiki/MIT_License
* First release: 2018.05.10
*
* Setup.css is a lightweight reset and normalizer for modern browsers.
* Add back in your own anchor colors, heading weights and more.
*
* Setup.css is built on Normalize and Sanitize.
* @link https://necolas.github.io/normalize.css/
* @link http://jonathantneal.github.io/sanitize.css/
*
* Remove properties you override or for browsers you don't support for further
* optimization.
*
*
* TABLE OF CONTENTS:
* - #Reset
* - #Normalize
* - #Setup
*/
/* ==========================================================================
#Reset
*/
/* Box model */
body,
blockquote,
dd,
dl,
fieldset,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
ol,
p,
pre,
ul {
margin: 0;
}
button,
blockquote,
fieldset,
input,
legend,
ol,
ul {
padding: 0;
}
/* Prevent table spacing */
table {
border-collapse: collapse;
border-spacing: 0;
}
/* Reset typography for forms and headings. */
button,
h1,
h2,
h3,
h4,
h5,
h6,
input,
select,
textarea {
font-size: inherit;
font-weight: inherit;
}
button,
input,
select,
textarea {
color: inherit;
font-family: inherit;
background-color: transparent;
line-height: inherit;
}
a {
color: inherit;
text-decoration: none;
}
cite {
font-style: inherit;
}
/* Reset lists and quotes */
ol, ul {
list-style: none;
}
q {
quotes: none;
}
/* Reset form and iframe borders */
button,
iframe,
input,
fieldset {
border: 0;
}
/* ==========================================================================
#Normalize
- #cross-browser
- #internet-explorer
*/
/**
* Cross-browser normalization #cross-browser
*/
/*
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre,
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in all
* browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/**
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
* The bolder property goes one weight up from the parent, so that you can bold
* your already-bold text.
*/
b,
strong {
font-weight: bolder;
}
/* Internet Explorer #internet-explorer */
/**
* Add the correct display for HTML5 elements in IE 9-10.
* 1. Add the correct display in Edge, IE, and Firefox 46-48 (2016)
* 2. Add the correct display in IE 9-11.
* `details` functionality is not compatible with IE or Edge (as of May 2018)
*/
article,
aside,
footer,
header,
nav,
section,
figure,
figcaption,
menu,
details, /* 1 */
main /* 2 */
{
display: block;
}
/**
* Hide the overflow in IE.
* SVG images resized with CSS will leave empty canvas space otherwise.
*/
svg:not(:root) {
overflow: hidden;
}
/**
* 1. Remove the default vertical scrollbar in IE.
* 2. Change the resize direction on textareas in all browsers (opinionated).
*/
textarea {
overflow: auto; /* 1 */
resize: vertical; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input /* 1 */
{
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select /* 1 */
{
text-transform: none;
}
/* IE 10 */
/**
* Remove the border on images inside links in IE 10-.
* @link https://developer.mozilla.org/en-US/docs/Web/CSS/border-style
*/
img {
border-style: none;
}
/* Remove the gray background on active links in IE 10 */
a {
background-color: transparent;
}
/* Remove the padding in IE 10-. */
[type="checkbox"],
[type="radio"] {
padding: 0;
}
/* ==========================================================================
#Setup
Real CSS begins. Sass variables and web fonts can go up here before `html`.
This section assumes you'll set your `body` line-height with `font`.
*/
/**
* 1. Apply box-sizing: border-box to all elements
* IE8+ compatible
* https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
* https://www.paulirish.com/2012/box-sizing-border-box-ftw/
*
* 2. Maintain text size upon horizontal-vertical window changes in iOS.
*/
html {
box-sizing: border-box; /* 1 */
font-size: 100%;
-webkit-text-size-adjust: 100%; /* 2 */
}
*,
*:before,
*:after {
box-sizing: inherit;
}