-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreset.css
175 lines (143 loc) · 3.4 KB
/
reset.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
/**
* HTML Reset
*
* A general reset stylesheet. This document has been written in accordance with my experience and needs.
* Some pieces are taken from Foundation's Normalize CSS.
*
* @link https://github.com/nppetrov/HTML-Reset
* @version 1.0.2
*/
* {
outline: 0;
border: 0;
margin: 0;
padding: 0;
line-height: 1;
background: transparent;
color: inherit;
font: inherit;
font-size: 100%;
text-transform: inherit;
vertical-align: baseline;
-ms-text-size-adjust: 100%; /* Prevent iOS text size adjust after orientation change, without disabling user zoom. */
-webkit-text-size-adjust: 100%;
}
/**
* Add `box-sizing: border-box` by default for all browsers.
*/
*,
*:before,
*:after {
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
abbr { border-bottom: 1px dotted; cursor: help; }
h1, h2, h3, h4, h5, h6, b, strong { font-weight: bold; }
i, em { font-style: italic; }
q { quotes: none; }
button { overflow: visible; } /* Address `overflow` set to `hidden` in IE */
table {
border-collapse: collapse;
border-spacing: 0;
}
input, select {
vertical-align: middle;
}
nav ul { list-style: none; } /* Remove default `list-style` for navigation menus */
textarea {
overflow: auto; /* Remove default vertical scrollbar in IE */
resize: none;
}
img, iframe, embed, object, video {
max-width: 100%;
vertical-align: bottom; /* Remove the gap on the bottom of the element */
}
img {
height: auto; /* Fix image ratio if max-width is applied */
}
input, select, textarea {
max-width: 100%;
}
ul, ol {
list-style-position: inside;
}
/**
* Default styles for `code`, `kbd`, `pre` and `samp`.
*/
code,
kbd,
pre,
samp {
font: 1em/1.2 monospace;
}
pre {
overflow: auto;
}
/**
* Default styles for buttons and form elements.
*/
button, input, select, textarea {
border: 1px solid #999;
padding: 5px 10px;
}
/**
* Prevent `sub` and `sup` from extending `line-height` of the parent element.
*/
sub,
sup {
padding: 0px;
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/**
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
* `font-size` values of the `input`, it causes the cursor style of the
* decrement button to change from `default` to `text`.
*/
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
* Safari (but not Chrome) clips the cancel button when the search input has
* padding (and `textfield` appearance).
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Improve usability by adding `cursor: pointer` to clickable elements.
*/
input[type="submit"],
input[type="button"],
button,
label {
cursor: pointer;
}
/**
* Improve usability by adding `cursor: default` to disabled elements.
*/
*[disabled] {
cursor: default;
}
/**
* Reset input placeholders.
*/
::-webkit-input-placeholder { color: inherit; opacity: 1; }
:-moz-placeholder { color: inherit; opacity: 1; }
::-moz-placeholder { color: inherit; opacity: 1; }
:-ms-input-placeholder { color: inherit; opacity: 1; }
:focus {
outline: 0;
}