-
Notifications
You must be signed in to change notification settings - Fork 1
/
reset.scss
107 lines (96 loc) · 1.9 KB
/
reset.scss
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
/* Reference
* - http://marksheet.io/css/reset.css
* - https://github.com/necolas/normalize.css/
* - https://code.tutsplus.com/tutorials/quick-tip-create-your-own-simple-resetcss-file--net-206
* - http://jaydenseric.com/blog/forget-normalize-or-resets-lay-your-own-css-foundation
* - https://meyerweb.com/eric/tools/css/reset/
* - https://gist.github.com/murtaugh/5247154 - Cursor reset?
*/
// BASIC RESETS
html {
box-sizing: border-box;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
overflow-x: hidden;
overflow-y: auto;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
margin: 0;
}
// Reset all elements to normalized settings
html, body, div,
nav, header, main, section, footer,
h1, h2, h3, h4, p, a, img,
form, input,
ol, ul, li {
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
outline: none;
vertical-align: baseline;
background: transparent;
line-height: inherit;
}
:focus {
outline: none;
}
// HTML5 fixes for old browsers
main, nav, section, header, footer {
display: block;
}
b, strong {
font-weight: bold;
}
// link resets
a {
color: inherit;
text-decoration: none;
&:hover, &:link, &:visited, &:active, &:focus {
text-decoration: none;
}
}
// input resets
button, input {
margin: 0;
}
// button resets
button {
overflow: visible;
border: 0;
padding: 0;
font: inherit;
-webkit-font-smoothing: inherit;
letter-spacing: inherit;
background: none;
cursor: pointer;
text-align: inherit;
text-transform: inherit;
}
::-moz-focus-inner {
padding: 0;
border: 0;
}
// image resets
img {
max-width: 100%;
height: auto;
}
// list resets
ol, ul {
list-style: none;
}
blockquote {
quotes: none;
&:before, &:after {
content: '';
content: none;
}
}