Alexander Afanasyev | 8a09376 | 2014-07-16 18:43:09 -0700 | [diff] [blame] | 1 | /* `XHTML, HTML4, HTML5 Reset |
| 2 | ----------------------------------------------------------------------------------------------------*/ |
| 3 | |
| 4 | a, |
| 5 | abbr, |
| 6 | acronym, |
| 7 | address, |
| 8 | applet, |
| 9 | article, |
| 10 | aside, |
| 11 | audio, |
| 12 | b, |
| 13 | big, |
| 14 | blockquote, |
| 15 | body, |
| 16 | canvas, |
| 17 | caption, |
| 18 | center, |
| 19 | cite, |
| 20 | code, |
| 21 | dd, |
| 22 | del, |
| 23 | details, |
| 24 | dfn, |
| 25 | dialog, |
| 26 | div, |
| 27 | dl, |
| 28 | dt, |
| 29 | em, |
| 30 | embed, |
| 31 | fieldset, |
| 32 | figcaption, |
| 33 | figure, |
| 34 | font, |
| 35 | footer, |
| 36 | form, |
| 37 | h1, |
| 38 | h2, |
| 39 | h3, |
| 40 | h4, |
| 41 | h5, |
| 42 | h6, |
| 43 | header, |
| 44 | hgroup, |
| 45 | hr, |
| 46 | html, |
| 47 | i, |
| 48 | iframe, |
| 49 | img, |
| 50 | ins, |
| 51 | kbd, |
| 52 | label, |
| 53 | legend, |
| 54 | li, |
| 55 | mark, |
| 56 | menu, |
| 57 | meter, |
| 58 | nav, |
| 59 | object, |
| 60 | ol, |
| 61 | output, |
| 62 | p, |
| 63 | pre, |
| 64 | progress, |
| 65 | q, |
| 66 | rp, |
| 67 | rt, |
| 68 | ruby, |
| 69 | s, |
| 70 | samp, |
| 71 | section, |
| 72 | small, |
| 73 | span, |
| 74 | strike, |
| 75 | strong, |
| 76 | sub, |
| 77 | summary, |
| 78 | sup, |
| 79 | table, |
| 80 | tbody, |
| 81 | td, |
| 82 | tfoot, |
| 83 | th, |
| 84 | thead, |
| 85 | time, |
| 86 | tr, |
| 87 | tt, |
| 88 | u, |
| 89 | ul, |
| 90 | var, |
| 91 | video, |
| 92 | xmp { |
| 93 | border: 0; |
| 94 | margin: 0; |
| 95 | padding: 0; |
| 96 | font-size: 100%; |
| 97 | } |
| 98 | |
| 99 | html, |
| 100 | body { |
| 101 | height: 100%; |
| 102 | } |
| 103 | |
| 104 | article, |
| 105 | aside, |
| 106 | details, |
| 107 | figcaption, |
| 108 | figure, |
| 109 | footer, |
| 110 | header, |
| 111 | hgroup, |
| 112 | menu, |
| 113 | nav, |
| 114 | section { |
| 115 | /* |
| 116 | Override the default (display: inline) for |
| 117 | browsers that do not recognize HTML5 tags. |
| 118 | |
| 119 | IE8 (and lower) requires a shiv: |
| 120 | http://ejohn.org/blog/html5-shiv |
| 121 | */ |
| 122 | display: block; |
| 123 | } |
| 124 | |
| 125 | b, |
| 126 | strong { |
| 127 | /* |
| 128 | Makes browsers agree. |
| 129 | IE + Opera = font-weight: bold. |
| 130 | Gecko + WebKit = font-weight: bolder. |
| 131 | */ |
| 132 | font-weight: bold; |
| 133 | } |
| 134 | |
| 135 | img { |
| 136 | color: transparent; |
| 137 | font-size: 0; |
| 138 | vertical-align: middle; |
| 139 | /* |
| 140 | For IE. |
| 141 | http://css-tricks.com/ie-fix-bicubic-scaling-for-images |
| 142 | */ |
| 143 | -ms-interpolation-mode: bicubic; |
| 144 | } |
| 145 | |
| 146 | li { |
| 147 | /* |
| 148 | For IE6 + IE7: |
| 149 | |
| 150 | "display: list-item" keeps bullets from |
| 151 | disappearing if hasLayout is triggered. |
| 152 | */ |
| 153 | display: list-item; |
| 154 | list-style: none; |
| 155 | } |
| 156 | |
| 157 | table { |
| 158 | border-collapse: collapse; |
| 159 | border-spacing: 0; |
| 160 | } |
| 161 | |
| 162 | th, |
| 163 | td, |
| 164 | caption { |
| 165 | font-weight: normal; |
| 166 | vertical-align: top; |
| 167 | text-align: left; |
| 168 | } |
| 169 | |
| 170 | q { |
| 171 | quotes: none; |
| 172 | } |
| 173 | |
| 174 | q:before, |
| 175 | q:after { |
| 176 | content: ''; |
| 177 | content: none; |
| 178 | } |
| 179 | |
| 180 | sub, |
| 181 | sup, |
| 182 | small { |
| 183 | font-size: 75%; |
| 184 | } |
| 185 | |
| 186 | sub, |
| 187 | sup { |
| 188 | line-height: 0; |
| 189 | position: relative; |
| 190 | vertical-align: baseline; |
| 191 | } |
| 192 | |
| 193 | sub { |
| 194 | bottom: -0.25em; |
| 195 | } |
| 196 | |
| 197 | sup { |
| 198 | top: -0.5em; |
| 199 | } |
| 200 | |
| 201 | svg { |
| 202 | /* |
| 203 | For IE9. Without, occasionally draws shapes |
| 204 | outside the boundaries of <svg> rectangle. |
| 205 | */ |
| 206 | overflow: hidden; |
| 207 | } |