_reset.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. html {
  2. box-sizing: border-box;
  3. }
  4. *,
  5. *:before,
  6. *:after {
  7. box-sizing: inherit;
  8. }
  9. html {
  10. -webkit-text-size-adjust: 100%;
  11. }
  12. body {
  13. -webkit-overflow-scrolling: touch;
  14. }
  15. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  16. margin: 0;
  17. padding: 0;
  18. border: 0 none;
  19. }
  20. article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
  21. display: block;
  22. }
  23. audio,
  24. canvas,
  25. progress,
  26. video {
  27. display: inline-block;
  28. }
  29. audio:not([controls]) {
  30. display: none;
  31. height: 0;
  32. }
  33. a {
  34. background-color: transparent;
  35. }
  36. abbr[title] {
  37. border-bottom: none;
  38. text-decoration: underline;
  39. text-decoration: underline dotted;
  40. }
  41. b,
  42. strong {
  43. font-weight: bolder;
  44. }
  45. dfn {
  46. font-style: italic;
  47. }
  48. mark {
  49. background-color: #ffff00;
  50. color: #000000;
  51. }
  52. svg:not(:root) {
  53. overflow: hidden;
  54. }
  55. code,
  56. kbd,
  57. pre,
  58. samp {
  59. font-family: monospace, monospace;
  60. font-size: 1em;
  61. }
  62. hr {
  63. box-sizing: content-box;
  64. height: 0;
  65. overflow: visible;
  66. }
  67. button,
  68. input,
  69. select,
  70. textarea {
  71. font: inherit;
  72. margin: 0;
  73. }
  74. button,
  75. input {
  76. overflow: visible;
  77. }
  78. button,
  79. select {
  80. text-transform: none;
  81. }
  82. button,
  83. [type="button"],
  84. [type="reset"],
  85. [type="submit"] {
  86. -webkit-appearance: button;
  87. }
  88. input,
  89. textarea,
  90. button,
  91. select,
  92. a {
  93. -webkit-tap-highlight-color: rgba(0,0,0,0);
  94. }
  95. address {
  96. font-style: normal;
  97. }
  98. a:focus,
  99. select:focus,
  100. input:focus,
  101. textarea:focus {
  102. outline: 0 none;
  103. }
  104. button::-moz-focus-inner,
  105. [type="button"]::-moz-focus-inner,
  106. [type="reset"]::-moz-focus-inner,
  107. [type="submit"]::-moz-focus-inner {
  108. border-style: none;
  109. padding: 0;
  110. }
  111. button,
  112. input[type="reset"],
  113. input[type="button"],
  114. input[type="submit"] {
  115. cursor: pointer;
  116. }
  117. button[disabled],
  118. input[disabled] {
  119. cursor: default;
  120. }
  121. button {
  122. -webkit-appearance: none;
  123. -moz-appearance: none;
  124. background: transparent;
  125. padding: 0;
  126. border: 0;
  127. border-radius: 0;
  128. line-height: 1;
  129. outline: 0 none;
  130. }
  131. a,
  132. a:hover {
  133. text-decoration: none;
  134. }
  135. [href="javascript:void();"],
  136. [href="javascript:"] {
  137. cursor: default;
  138. }
  139. ul,
  140. ol {
  141. list-style: none;
  142. }
  143. blockquote,
  144. q {
  145. quotes: none;
  146. }
  147. blockquote:before,
  148. blockquote:after,
  149. q:before,
  150. q:after {
  151. content: none;
  152. }
  153. table {
  154. border-collapse: collapse;
  155. border-spacing: 0;
  156. }
  157. input[type="text"],
  158. input[type="password"],
  159. input[type="date"],
  160. input[type="datetime"],
  161. input[type="datetime-local"],
  162. input[type="email"],
  163. input[type="month"],
  164. input[type="number"],
  165. input[type="search"],
  166. input[type="tel"],
  167. input[type="time"],
  168. input[type="url"],
  169. input[type="week"],
  170. textarea {
  171. box-sizing: border-box;
  172. margin: 0;
  173. }
  174. [type="checkbox"],
  175. [type="radio"] {
  176. box-sizing: border-box;
  177. margin: 0;
  178. padding: 0;
  179. }
  180. input[type="search"] {
  181. -webkit-appearance: textfield;
  182. outline-offset: -2px;
  183. }
  184. input[type="search"]::-webkit-search-decoration,
  185. input[type="search"]::-webkit-search-cancel-button {
  186. -webkit-appearance: none;
  187. }
  188. input[type="number"]::-webkit-inner-spin-button,
  189. input[type="number"]::-webkit-outer-spin-button {
  190. height: auto;
  191. -webkit-appearance: none;
  192. }
  193. ::-webkit-file-upload-button {
  194. -webkit-appearance: button;
  195. font: inherit;
  196. }
  197. input[type="number"] {
  198. -moz-appearance: textfield;
  199. }
  200. select {
  201. width: 100%;
  202. height: 20px;
  203. border: 0 none;
  204. background: none;
  205. }
  206. textarea {
  207. resize: none;
  208. border: 0 none;
  209. overflow: auto;
  210. }
  211. ::placeholder {
  212. color: #777777;
  213. line-height: normal;
  214. }
  215. [hidden] {
  216. display: none;
  217. }