Browse Source

updated normalize.css

changed line-height to 1.5
added sizing to h1's to fix html5 bug in IE
changed sub, sup font size to 75%
fixed duplicate monospace font family
fixed margins on lists
padding 0 on legends
removing image replacement and hidden sections since no one ever uses
them.
eddiemachado 14 năm trước cách đây
mục cha
commit
a555c3bc4b
1 tập tin đã thay đổi với 23 bổ sung19 xóa
  1. 23 19
      library/css/normalize.css

+ 23 - 19
library/css/normalize.css

@@ -23,65 +23,69 @@ GENERAL NORMALIZE
 article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
 audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
 audio:not([controls]), [hidden] { display: none; }
+
 /** Base Styles **/
+
 html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
-body { margin: 0; font-size: 13px; line-height: 1.231; }
+body { margin: 0; font-size: 13px; line-height: 1.5; }
 body, button, input, select, textarea { font-family: sans-serif; color: #333; }
+
 /** IE Fixes **/
 img { border: 0; -ms-interpolation-mode: bicubic; }
 svg:not(:root) { overflow: hidden; }
 figure { margin: 0; }
+
 /** Links **/
 a:focus { outline: thin dotted; }
 a:hover, a:active { outline: 0; }
+
 /** Typography **/
+h1 { font-size: 2em; } /* fixes html5 bug */
 p { -webkit-hyphens: auto; -moz-hyphens: auto; -epub-hyphens: auto; hyphens: auto; }
 abbr[title] { border-bottom: 1px dotted; }
 b, strong, .strong { font-weight: bold; }
 dfn, em, .em { font-style: italic; }
-small, .small, sub, sup { font-size: 85%; }
+small, .small, sub, sup { font-size: 75%; }
 ins, .ins { background: #ff9; color: #000; text-decoration: none; }
 mark, .mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
 hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
-pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }
+pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
 pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
-blockquote { margin: 1em 40px; }
+blockquote { margin: 1.5em 40px; }
 q { quotes: none; }
-q:before, q:after { content: ""; content: none; }
-ul, ol { margin: 1.231em 0; padding: 0; }
+q:before, q:after { content: ''; content: none; }
+ul, ol { margin: 1.5em 0; padding: 0; }
 dd { margin: 0; }
-nav ul, nav ol, .widget ol, .widget ul, .commentlist { list-style: none; margin: 0; }
+nav ul, nav ol, .widget ol, .widget ul, .commentlist { list-style: none; list-style-image: none; margin: 0; }
+
 /* Position subscript and superscript content without affecting line-height: gist.github.com/413930 */
 sub, sup { line-height: 0; position: relative; vertical-align: baseline; }
 sup { top: -0.5em; }
 sub { bottom: -0.25em; }
+
 /** Forms **/
 form, fieldset, form ul, form ol, fieldset ol, fieldset ul { margin: 0; border: 0; }
-legend { border: 0; *margin-left: -7px; padding: 0; }
+legend { border: 0; *margin-left: -7px; }
 button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
-button, input { line-height: normal; *overflow: visible; }
-button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
-input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
+button, input { line-height: normal; }
+button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
+input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
 input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
 input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
 button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
 textarea { overflow: auto; vertical-align: top; }
+
 /* Colors for form validity */
 input:invalid, textarea:invalid { background-color: #f0dddd; }
+
 /** Tables **/
 table { border-collapse: collapse; border-spacing: 0; }
-/** Image Replacement **/
-.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
-.ir br { display: none; }
-/** Hidden & Invisiblity **/
-.hidden { display: none; visibility: hidden; }
-.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
-.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
-.invisible { visibility: hidden; }
+
 /* Contain floats: nicolasgallagher.com/micro-clearfix-hack/ */ 
 .clearfix:before, .clearfix:after, nav[role=navigation] .menu ul:before, nav[role=navigation] .menu ul:after { content: ""; display: table; }
 .clearfix:after, nav[role=navigation] .menu ul:after { clear: both; }
 .clearfix, nav[role=navigation] .menu ul { zoom: 1; }
+
 /* wordpress junk */
 .wp-smiley { margin: 0 !important; max-height: 1em; }