Skip to content

Commit d8335d3

Browse files
committed
Initial
1 parent 0434c40 commit d8335d3

File tree

1 file changed

+207
-0
lines changed

1 file changed

+207
-0
lines changed

normalize.css

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
/*
2+
* Add display for HTML5 elements
3+
* Styling not present in IE6/7/8/9 FF3
4+
*/
5+
6+
article,
7+
aside,
8+
details,
9+
figcaption,
10+
figure,
11+
footer,
12+
header,
13+
hgroup,
14+
nav,
15+
section {
16+
display: block;
17+
}
18+
19+
audio[controls],
20+
canvas,
21+
video {
22+
display: inline-block;
23+
*display: inline;
24+
*zoom: 1;
25+
}
26+
27+
/*
28+
* 1.
29+
* Make normal cursor the default for <html> element
30+
* Improves visual focus of page during mouse movement
31+
* 2.
32+
* Add horizontal scrollbar to <html> element
33+
* Scrollbars keep page center consistent regardless of content overflow
34+
* 3.
35+
* Remove text size adjust tap color for <html> element
36+
* Text size and tap color displayed oddly in iOS
37+
*/
38+
39+
html {
40+
cursor: default; /* 1 */
41+
overflow-y: scroll; /* 2 */
42+
-webkit-tap-highlight-color: transparent; /* 3 */
43+
-webkit-text-size-adjust: none; /* 3 */
44+
}
45+
46+
/*
47+
* Remove outline on <a> element when active or hovered
48+
* Improves readability when focused and then also mouse activated
49+
*/
50+
51+
a:active,
52+
a:hover {
53+
outline: none;
54+
}
55+
56+
/*
57+
* 1.
58+
* Disable border for <img> element
59+
* Improves readability when inside <a> element
60+
* 2.
61+
* Allow high quality bicubic image resampling for <img> element
62+
* Improves readability when scaled
63+
*/
64+
65+
img {
66+
border: 0; /* 1 */
67+
-ms-interpolation-mode: bicubic; /* 2 */
68+
}
69+
70+
/*
71+
* Add bottom border to <abbr> element
72+
* Styling not present in IE6/7/8/9 Chrome10 Saf5
73+
*/
74+
75+
abbr {
76+
border-bottom: 1px dotted;
77+
}
78+
79+
/*
80+
* Add italic font style to <dfn> element
81+
* Styling not present in Chrome10 Saf5
82+
*/
83+
84+
dfn {
85+
font-style: italic;
86+
}
87+
88+
/*
89+
* Add yellow background and black text to <mark> element
90+
* Styling not present in IE6/7/8/9
91+
*/
92+
93+
mark {
94+
background-color: #FF0;
95+
color: #000;
96+
}
97+
98+
/*
99+
* Redeclare monospace font family to <pre> <code> <kbd> <samp> elements
100+
* Font family set oddly in Chrome10 Saf5
101+
*/
102+
103+
pre,
104+
code,
105+
kbd,
106+
samp {
107+
font-family: monospace, sans-serif;
108+
}
109+
110+
/*
111+
* Allow line wrapping for <pre> element
112+
* Improves readability of pre-formatted text
113+
*/
114+
115+
pre {
116+
white-space: pre;
117+
white-space: pre-wrap;
118+
word-wrap: break-word;
119+
}
120+
121+
/*
122+
* Remove quotes from <q> element
123+
* 1.
124+
* CSS quotes not supported in IE6/7
125+
* 2.
126+
* Quote attributes not supported in Saf4
127+
*/
128+
129+
/* 1 */
130+
131+
q {
132+
quotes: none;
133+
}
134+
135+
/* 2 */
136+
137+
q:before,
138+
q:after {
139+
content: '';
140+
content: none;
141+
}
142+
143+
/*
144+
* Remove line height for <sub> <sup> elements
145+
* Line height within multi-line text displayed oddly
146+
*/
147+
148+
sub,
149+
sup {
150+
line-height: 0;
151+
}
152+
153+
/*
154+
* Align <legend> element
155+
* Alignment displayed oddly in IE6/7
156+
*/
157+
158+
legend {
159+
*margin-left: -7px;
160+
}
161+
162+
/*
163+
* Remove margin from form elements
164+
* Margin displayed oddly in Chrome10 Saf5
165+
*/
166+
167+
button,
168+
input,
169+
select,
170+
textarea {
171+
margin: 0;
172+
}
173+
174+
/*
175+
* Correct inner spacing for <button> element
176+
* 1. Spacing displayed oddly in IE6/7
177+
* 2. Border and padding displayed oddly in FF3/4
178+
*/
179+
180+
/* 1 */
181+
182+
button,
183+
input[type=button],
184+
input[type=reset],
185+
input[type=submit] {
186+
*overflow: visible;
187+
padding: 0 6px;
188+
}
189+
190+
/* 2 */
191+
192+
button::-moz-focus-inner,
193+
input[type=button]::-moz-focus-inner,
194+
input[type=reset]::-moz-focus-inner,
195+
input[type=submit]::-moz-focus-inner {
196+
border: 0;
197+
padding: 0;
198+
}
199+
200+
/*
201+
* Disable default horizontal scrollbar for <textarea> element
202+
* Scrollbar displayed oddly in IE6/7/8/9
203+
*/
204+
205+
textarea {
206+
overflow: auto;
207+
}

0 commit comments

Comments
 (0)