normalize.less 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
  2. // Modified to Chrome only.
  3. //
  4. // Remove default margin.
  5. //
  6. body {
  7. margin: 0;
  8. }
  9. // HTML5 display definitions
  10. // ==========================================================================
  11. //
  12. // 1. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  13. //
  14. audio,
  15. canvas,
  16. progress,
  17. video {
  18. vertical-align: baseline; // 1
  19. }
  20. //
  21. // Prevent modern browsers from displaying `audio` without controls.
  22. //
  23. audio:not([controls]) {
  24. display: none;
  25. }
  26. // Links
  27. // ==========================================================================
  28. //
  29. // Improve readability of focused elements when they are also in an
  30. // active/hover state.
  31. //
  32. a:active,
  33. a:hover {
  34. outline: 0;
  35. }
  36. // Text-level semantics
  37. // ==========================================================================
  38. //
  39. // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  40. //
  41. abbr[title] {
  42. border-bottom: 1px dotted;
  43. }
  44. //
  45. // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  46. //
  47. b,
  48. strong {
  49. font-weight: bold;
  50. }
  51. //
  52. // Address styling not present in Safari and Chrome.
  53. //
  54. dfn {
  55. font-style: italic;
  56. }
  57. //
  58. // Address variable `h1` font-size and margin within `section` and `article`
  59. // contexts in Firefox 4+, Safari, and Chrome.
  60. //
  61. h1 {
  62. font-size: 2em;
  63. margin: 0.67em 0;
  64. }
  65. //
  66. // Address inconsistent and variable font size in all browsers.
  67. //
  68. small {
  69. font-size: 80%;
  70. }
  71. //
  72. // Prevent `sub` and `sup` affecting `line-height` in all browsers.
  73. //
  74. sub,
  75. sup {
  76. font-size: 75%;
  77. line-height: 0;
  78. position: relative;
  79. vertical-align: baseline;
  80. }
  81. sup {
  82. top: -0.5em;
  83. }
  84. sub {
  85. bottom: -0.25em;
  86. }
  87. // Grouping content
  88. // ==========================================================================
  89. //
  90. // Address differences between Firefox and other browsers.
  91. //
  92. hr {
  93. box-sizing: content-box;
  94. height: 0;
  95. }
  96. //
  97. // Contain overflow in all browsers.
  98. //
  99. pre {
  100. overflow: auto;
  101. }
  102. //
  103. // Address odd `em`-unit font size rendering in all browsers.
  104. //
  105. code,
  106. kbd,
  107. pre,
  108. samp {
  109. font-family: monospace, monospace;
  110. font-size: 1em;
  111. }
  112. // Forms
  113. // ==========================================================================
  114. //
  115. // Known limitation: by default, Chrome and Safari on OS X allow very limited
  116. // styling of `select`, unless a `border` property is set.
  117. //
  118. //
  119. // 1. Correct color not being inherited.
  120. // Known issue: affects color of disabled elements.
  121. // 2. Correct font properties not being inherited.
  122. // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  123. //
  124. button,
  125. input,
  126. optgroup,
  127. select,
  128. textarea {
  129. color: inherit; // 1
  130. font: inherit; // 2
  131. margin: 0; // 3
  132. }
  133. //
  134. // Address inconsistent `text-transform` inheritance for `button` and `select`.
  135. // All other form control elements do not inherit `text-transform` values.
  136. //
  137. button,
  138. select {
  139. text-transform: none;
  140. }
  141. //
  142. // 1. Improve usability and consistency of cursor style between image-type
  143. // `input` and others.
  144. //
  145. button,
  146. input[type="reset"],
  147. input[type="submit"] {
  148. cursor: pointer; // 1
  149. }
  150. //
  151. // Re-set default cursor for disabled elements.
  152. //
  153. button[disabled],
  154. html input[disabled] {
  155. cursor: default;
  156. }
  157. //
  158. // Fix the cursor style for Chrome's increment/decrement buttons. For certain
  159. // `font-size` values of the `input`, it causes the cursor style of the
  160. // decrement button to change from `default` to `text`.
  161. //
  162. input[type="number"]::-webkit-inner-spin-button,
  163. input[type="number"]::-webkit-outer-spin-button {
  164. height: auto;
  165. }
  166. //
  167. // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  168. // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
  169. //
  170. input[type="search"] {
  171. -webkit-appearance: textfield; // 1
  172. box-sizing: content-box; //2
  173. }
  174. //
  175. // Remove inner padding and search cancel button in Safari and Chrome on OS X.
  176. // Safari (but not Chrome) clips the cancel button when the search input has
  177. // padding (and `textfield` appearance).
  178. //
  179. input[type="search"]::-webkit-search-cancel-button,
  180. input[type="search"]::-webkit-search-decoration {
  181. -webkit-appearance: none;
  182. }
  183. //
  184. // Define consistent border, margin, and padding.
  185. //
  186. fieldset {
  187. border: 1px solid;
  188. margin: 0 2px;
  189. padding: 0.35em 0.625em 0.75em;
  190. }
  191. //
  192. // 1. Remove padding so people aren't caught out if they zero out fieldsets.
  193. //
  194. legend {
  195. padding: 0; // 1
  196. }
  197. //
  198. // Don't inherit the `font-weight` (applied by a rule above).
  199. // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  200. //
  201. optgroup {
  202. font-weight: bold;
  203. }
  204. // Tables
  205. // ==========================================================================
  206. //
  207. // Remove most spacing between table cells.
  208. //
  209. table {
  210. border-collapse: collapse;
  211. border-spacing: 0;
  212. }
  213. td,
  214. th {
  215. padding: 0;
  216. }