Skip to content

Commit 849eded

Browse files
committed
Update normalize.css and demo.html from master branch
1 parent e3a0bf0 commit 849eded

File tree

2 files changed

+45
-13
lines changed

2 files changed

+45
-13
lines changed

demo.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
<meta name="viewport" content="width=device-width">
66
<title>Normalize CSS</title>
77
<link rel="stylesheet" href="normalize.css">
88
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
@@ -291,10 +291,13 @@ <h1>Forms</h1>
291291
<p><input type="reset" value="Reset (input)"></p>
292292
<p><input type="button" value="Button (input)"></p>
293293
<p><input type="submit" value="Submit (input)"></p>
294+
<p><input type="submit" value="Disabled (input)" disabled></p>
295+
294296

295297
<p><button type="reset">Reset (button)</button></p>
296298
<p><button type="button">Button (button)</button></p>
297299
<p><button type="submit">Submit (button)</button></p>
300+
<p><button type="submit" disabled>Disabled (button)</button></p>
298301
</fieldset>
299302

300303
<fieldset id="boxsize">
@@ -318,7 +321,7 @@ <h1>Forms</h1>
318321
<div><input type="checkbox"></div>
319322

320323
<div><select><option>Option 01</option><option>Option 02</option></select></div>
321-
<div><textarea cols="30" rows="5" >Textarea text</textarea></div>
324+
<div><textarea cols="30" rows="5">Textarea text</textarea></div>
322325

323326
<div><input type="image" src="http://placekitten.com/90/24" alt="Image (input)"></div>
324327
<div><input type="reset" value="Reset (input)"></div>

normalize.css

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! normalize.css 2012-01-22T23:00 UTC - http://github.com/necolas/normalize.css */
1+
/*! normalize.css 2012-01-31T16:06 UTC - http://github.com/necolas/normalize.css */
22

33
/* =============================================================================
44
HTML5 display definitions
@@ -118,10 +118,37 @@ a:active {
118118

119119
/*
120120
* Neutralise smaller font-size in 'section' and 'article' in FF4+, Chrome, S5
121+
* Fix IE6/7 heading font-size not being relative to the root font-size
121122
*/
122123

123124
h1 {
124125
font-size: 2em;
126+
margin: 0.67em 0;
127+
}
128+
129+
h2 {
130+
font-size: 1.5em;
131+
margin: 0.83em 0;
132+
}
133+
134+
h3 {
135+
font-size: 1.17em;
136+
margin: 1em 0;
137+
}
138+
139+
h4 {
140+
font-size: 1em;
141+
margin: 1.33em 0;
142+
}
143+
144+
h5 {
145+
font-size: 0.83em;
146+
margin: 1.67em 0;
147+
}
148+
149+
h6 {
150+
font-size: 0.75em;
151+
margin: 2.33em 0;
125152
}
126153

127154
/*
@@ -365,6 +392,15 @@ input[type="submit"] {
365392
*overflow: visible; /* 3 */
366393
}
367394

395+
/*
396+
* Re-set default cursor for disabled elements
397+
*/
398+
399+
button[disabled],
400+
input[disabled] {
401+
cursor: default;
402+
}
403+
368404
/*
369405
* 1. Addresses box sizing set to content-box in IE8/9
370406
* 2. Removes excess padding in IE8/9
@@ -393,17 +429,10 @@ input[type="search"] {
393429
}
394430

395431
/*
396-
* Removes inner padding that is displayed in S5, Chrome on OS X
397-
*/
398-
399-
input[type="search"]::-webkit-search-decoration {
400-
-webkit-appearance: none;
401-
}
402-
403-
/*
404-
* Removes search cancel button in S5, Chrome on OS X
432+
* Removes inner padding and search cancel button in S5, Chrome on OS X
405433
*/
406434

435+
input[type="search"]::-webkit-search-decoration,
407436
input[type="search"]::-webkit-search-cancel-button {
408437
-webkit-appearance: none;
409438
}

0 commit comments

Comments
 (0)