-
Notifications
You must be signed in to change notification settings - Fork 1
/
css-flat.css
332 lines (292 loc) · 6.12 KB
/
css-flat.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
/* ----------------------------------------------------------------------------- GLOBAL */
/**
* Hard reset margin and padding
*/
* {
margin: 0;
padding: 0;
}
/**
* Default Box sizing on before & after pseudo elements
*/
*, *:before, *:after {
box-sizing: inherit;
}
/**
* Default Box sizing
* Correct the line height in all browsers.
* Prevent adjustments of font size after orientation changes in iOS.
*/
html {
box-sizing: border-box;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
}
/* ----------------------------------------------------------------------------- SECTION */
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/* ----------------------------------------------------------------------------- TEXT */
/**
* Remove default title browser margin
* Remove default title browser UGLY bold font weight
*/
h1, h2, h3, h4, h5, h6 {
font-size: 1em;
margin: 0;
font-weight: normal;
}
/**
* Remove the gray background on active links in IE 10.
* Remove default underline
*/
a {
background-color: transparent;
text-decoration: none;
}
/**
* Init flat font-wheight
*/
b,
strong {
font-weight: normal;
}
/**
* Remove list style dote by default
*/
ul {
list-style: none;
}
/**
* Correct the inheritance and scaling of font size in all browsers.
* Correct the odd `em` font sizing in all browsers.
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre
*/
pre {
font-size: 1em;
font-family: inherit;
margin: 0;
}
/**
* Correct the inheritance and scaling of font size in all browsers.
* Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: inherit;
font-size: 1em;
}
/**
* Init the correct font size in all browsers.
*/
small {
font-size: 1em;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 1em;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: 0;
}
sup {
top: 0;
}
/**
* Add the correct box sizing in Firefox.
* Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
margin: 0 auto;
}
/* ----------------------------------------------------------------------------- TEXT CONTENT */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
* Remove outline.
*/
summary {
display: block;
outline: none;
}
/**
* Remove arrow indicatore
*/
details summary::-webkit-details-marker {
display:none;
}
/* ----------------------------------------------------------------------------- MEDIA */
/**
* Init position
* Remove the border on images inside links in IE 10.
*/
img {
display: block;
border-style: none;
}
/* ----------------------------------------------------------------------------- FORM */
/**
* Change the font styles in all browsers.
* Remove the margin in Firefox and Safari.
* Remove background color
* Remove border
* Remove outline
*/
button,
input,
optgroup,
option,
select,
textarea {
display: block;
margin: 0;
border: 0;
font-family: inherit;
font-size: 1em;
font-weight: normal;
line-height: normal;
color: inherit;
background: none;
text-transform: none;
appearance: none;
-webkit-appearance: none;
outline: none;
overflow: visible;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Init full style
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Fieldset
*/
fieldset {
display: block;
font-size: 1em;
padding: 0;
border: 0;
}
/**
* Correct the text wrapping in Edge and IE.
* Correct the color inheritance from `fieldset` elements in IE.
* Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend
*/
legend {
display: block;
box-sizing: border-box;
color: inherit;
border: none;
padding: 0;
white-space: normal;
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* Add the correct box sizing in IE 10.
* Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* Correct the odd appearance in Chrome and Safari.
* Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
* Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
/* ----------------------------------------------------------------------------- MISC */
/**
* Add the correct display in IE 10+.
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}