|
| 1 | +/* http://meyerweb.com/eric/tools/css/reset/ |
| 2 | + v2.0 | 20110126 |
| 3 | + License: none (public domain) |
| 4 | +*/ |
| 5 | + |
| 6 | +html, body, div, span, applet, object, iframe, |
| 7 | +h1, h2, h3, h4, h5, h6, p, blockquote, pre, |
| 8 | +a, abbr, acronym, address, big, cite, code, |
| 9 | +del, dfn, em, img, ins, kbd, q, s, samp, |
| 10 | +small, strike, strong, sub, sup, tt, var, |
| 11 | +b, u, i, center, |
| 12 | +dl, dt, dd, ol, ul, li, |
| 13 | +fieldset, form, label, legend, |
| 14 | +table, caption, tbody, tfoot, thead, tr, th, td, |
| 15 | +article, aside, canvas, details, embed, |
| 16 | +figure, figcaption, footer, header, hgroup, |
| 17 | +menu, nav, output, ruby, section, summary, |
| 18 | +time, mark, audio, video { |
| 19 | + margin:0; |
| 20 | + padding:0; |
| 21 | + border:0; |
| 22 | + font-size:100%; |
| 23 | + font:inherit; |
| 24 | + vertical-align:baseline; |
| 25 | +} |
| 26 | +/* HTML5 display-role reset for older browsers */ |
| 27 | +article, aside, details, figcaption, figure, |
| 28 | +footer, header, hgroup, menu, nav, section { |
| 29 | + display:block; |
| 30 | +} |
| 31 | +body { |
| 32 | + line-height:1; |
| 33 | +} |
| 34 | +ol, ul { |
| 35 | + list-style:none; |
| 36 | +} |
| 37 | +blockquote, q { |
| 38 | + quotes:none; |
| 39 | +} |
| 40 | +blockquote:before, blockquote:after, |
| 41 | +q:before, q:after { |
| 42 | + content:''; |
| 43 | + content:none; |
| 44 | +} |
| 45 | +table { |
| 46 | + border-collapse:collapse; |
| 47 | + border-spacing:0; |
| 48 | +} |
| 49 | + |
| 50 | +/* apply a natural box layout model to all elements */ |
| 51 | +*,*::before,*::after,*:before,*:after { |
| 52 | + -moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box; |
| 53 | +} |
| 54 | + |
| 55 | +/* inputs */ |
| 56 | +input,button,textarea,select { |
| 57 | + color:inherit; |
| 58 | + font-size:inherit; |
| 59 | + font-style:inherit; |
| 60 | + font-family:inherit; |
| 61 | + -webkit-border-radius:0; |
| 62 | + border-radius:0; |
| 63 | + -webkit-padding-start:0; |
| 64 | + align-items:flex-start; |
| 65 | + text-index:0; |
| 66 | + border:none; |
| 67 | + outline:none; |
| 68 | + background:none; |
| 69 | + padding:0; |
| 70 | + margin:0; |
| 71 | + width:auto; |
| 72 | + height:auto; |
| 73 | + line-height:1em; |
| 74 | +} |
| 75 | + |
| 76 | +/* inputs appearance (not for every input) */ |
| 77 | +input[type=text],input[type=reset],input[type=password],input[type=search],input[type=email],input[type=tel],input[type=url],input[type=time],input[type=week],input[type=month],input[type=date],input[type=datetime],input[type=datetime-local],input[type=number], |
| 78 | +input[type=submit],input[type=reset],input[type=color],input[type=file], |
| 79 | +button,textarea,select { |
| 80 | + height:1em; |
| 81 | + -webkit-appearance:none; |
| 82 | + -moz-appearance:none; |
| 83 | + appearance:none; |
| 84 | +} |
| 85 | + |
| 86 | +/* input color width */ |
| 87 | +input[type=color] { |
| 88 | + width:1em; |
| 89 | +} |
| 90 | + |
| 91 | +/* IE clear cross */ |
| 92 | +input::-ms-clear { |
| 93 | + display:none; |
| 94 | +} |
| 95 | + |
| 96 | +/* details and summary */ |
| 97 | +details, summary { |
| 98 | + -webkit-appearance:none; |
| 99 | + -moz-appearance:none; |
| 100 | + appearance:none; |
| 101 | +} |
| 102 | + |
| 103 | +/* text size adjusting */ |
| 104 | +body { |
| 105 | + -webkit-text-size-adjust:100%; |
| 106 | + -moz-text-size-adjust:100%; |
| 107 | + text-size-adjust:100%; |
| 108 | +} |
| 109 | + |
| 110 | +/* mark */ |
| 111 | +mark {background:none;} |
| 112 | + |
| 113 | +/* Font smoothing */ |
| 114 | +/**,*::before,*::after,*:before,*:after { |
| 115 | + -webkit-font-smoothing: antialiased; |
| 116 | + -moz-osx-font-smoothing: grayscale; |
| 117 | +}*/ |
| 118 | + |
| 119 | +/* hr */ |
| 120 | +hr { |
| 121 | + height:1px; |
| 122 | + margin:0;padding:0; |
| 123 | +} |
| 124 | + |
| 125 | +/* u */ |
| 126 | +u { |
| 127 | + text-decoration:none; |
| 128 | +} |
| 129 | + |
| 130 | +/* th */ |
| 131 | +table th { |
| 132 | + text-align:left; |
| 133 | +} |
| 134 | + |
| 135 | +/* a */ |
| 136 | +a { |
| 137 | + color:inherit; |
| 138 | + outline:none; |
| 139 | +} |
0 commit comments