Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

425 lines
7.4KB

  1. /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
  2. //
  3. // 1. Set default font family to sans-serif.
  4. // 2. Prevent iOS and IE text size adjust after device orientation change,
  5. // without disabling user zoom.
  6. //
  7. html {
  8. font-family: sans-serif; // 1
  9. -ms-text-size-adjust: 100%; // 2
  10. -webkit-text-size-adjust: 100%; // 2
  11. }
  12. //
  13. // Remove default margin.
  14. //
  15. body {
  16. margin: 0;
  17. }
  18. // HTML5 display definitions
  19. // ==========================================================================
  20. //
  21. // Correct `block` display not defined for any HTML5 element in IE 8/9.
  22. // Correct `block` display not defined for `details` or `summary` in IE 10/11
  23. // and Firefox.
  24. // Correct `block` display not defined for `main` in IE 11.
  25. //
  26. article,
  27. aside,
  28. details,
  29. figcaption,
  30. figure,
  31. footer,
  32. header,
  33. hgroup,
  34. main,
  35. menu,
  36. nav,
  37. section,
  38. summary {
  39. display: block;
  40. }
  41. //
  42. // 1. Correct `inline-block` display not defined in IE 8/9.
  43. // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  44. //
  45. audio,
  46. canvas,
  47. progress,
  48. video {
  49. display: inline-block; // 1
  50. vertical-align: baseline; // 2
  51. }
  52. //
  53. // Prevent modern browsers from displaying `audio` without controls.
  54. // Remove excess height in iOS 5 devices.
  55. //
  56. audio:not([controls]) {
  57. display: none;
  58. height: 0;
  59. }
  60. //
  61. // Address `[hidden]` styling not present in IE 8/9/10.
  62. // Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
  63. //
  64. [hidden],
  65. template {
  66. display: none;
  67. }
  68. // Links
  69. // ==========================================================================
  70. //
  71. // Remove the gray background color from active links in IE 10.
  72. //
  73. a {
  74. background-color: transparent;
  75. }
  76. //
  77. // Improve readability of focused elements when they are also in an
  78. // active/hover state.
  79. //
  80. a:active,
  81. a:hover {
  82. outline: 0;
  83. }
  84. // Text-level semantics
  85. // ==========================================================================
  86. //
  87. // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  88. //
  89. abbr[title] {
  90. border-bottom: 1px dotted;
  91. }
  92. //
  93. // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  94. //
  95. b,
  96. strong {
  97. font-weight: bold;
  98. }
  99. //
  100. // Address styling not present in Safari and Chrome.
  101. //
  102. dfn {
  103. font-style: italic;
  104. }
  105. //
  106. // Address variable `h1` font-size and margin within `section` and `article`
  107. // contexts in Firefox 4+, Safari, and Chrome.
  108. //
  109. h1 {
  110. font-size: 2em;
  111. margin: 0.67em 0;
  112. }
  113. //
  114. // Address styling not present in IE 8/9.
  115. //
  116. mark {
  117. background: #ff0;
  118. color: #000;
  119. }
  120. //
  121. // Address inconsistent and variable font size in all browsers.
  122. //
  123. small {
  124. font-size: 80%;
  125. }
  126. //
  127. // Prevent `sub` and `sup` affecting `line-height` in all browsers.
  128. //
  129. sub,
  130. sup {
  131. font-size: 75%;
  132. line-height: 0;
  133. position: relative;
  134. vertical-align: baseline;
  135. }
  136. sup {
  137. top: -0.5em;
  138. }
  139. sub {
  140. bottom: -0.25em;
  141. }
  142. // Embedded content
  143. // ==========================================================================
  144. //
  145. // Remove border when inside `a` element in IE 8/9/10.
  146. //
  147. img {
  148. border: 0;
  149. }
  150. //
  151. // Correct overflow not hidden in IE 9/10/11.
  152. //
  153. svg:not(:root) {
  154. overflow: hidden;
  155. }
  156. // Grouping content
  157. // ==========================================================================
  158. //
  159. // Address margin not present in IE 8/9 and Safari.
  160. //
  161. figure {
  162. margin: 1em 40px;
  163. }
  164. //
  165. // Address differences between Firefox and other browsers.
  166. //
  167. hr {
  168. box-sizing: content-box;
  169. height: 0;
  170. }
  171. //
  172. // Contain overflow in all browsers.
  173. //
  174. pre {
  175. overflow: auto;
  176. }
  177. //
  178. // Address odd `em`-unit font size rendering in all browsers.
  179. //
  180. code,
  181. kbd,
  182. pre,
  183. samp {
  184. font-family: monospace, monospace;
  185. font-size: 1em;
  186. }
  187. // Forms
  188. // ==========================================================================
  189. //
  190. // Known limitation: by default, Chrome and Safari on OS X allow very limited
  191. // styling of `select`, unless a `border` property is set.
  192. //
  193. //
  194. // 1. Correct color not being inherited.
  195. // Known issue: affects color of disabled elements.
  196. // 2. Correct font properties not being inherited.
  197. // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  198. //
  199. button,
  200. input,
  201. optgroup,
  202. select,
  203. textarea {
  204. color: inherit; // 1
  205. font: inherit; // 2
  206. margin: 0; // 3
  207. }
  208. //
  209. // Address `overflow` set to `hidden` in IE 8/9/10/11.
  210. //
  211. button {
  212. overflow: visible;
  213. }
  214. //
  215. // Address inconsistent `text-transform` inheritance for `button` and `select`.
  216. // All other form control elements do not inherit `text-transform` values.
  217. // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  218. // Correct `select` style inheritance in Firefox.
  219. //
  220. button,
  221. select {
  222. text-transform: none;
  223. }
  224. //
  225. // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  226. // and `video` controls.
  227. // 2. Correct inability to style clickable `input` types in iOS.
  228. // 3. Improve usability and consistency of cursor style between image-type
  229. // `input` and others.
  230. //
  231. button,
  232. html input[type="button"], // 1
  233. input[type="reset"],
  234. input[type="submit"] {
  235. -webkit-appearance: button; // 2
  236. cursor: pointer; // 3
  237. }
  238. //
  239. // Re-set default cursor for disabled elements.
  240. //
  241. button[disabled],
  242. html input[disabled] {
  243. cursor: default;
  244. }
  245. //
  246. // Remove inner padding and border in Firefox 4+.
  247. //
  248. button::-moz-focus-inner,
  249. input::-moz-focus-inner {
  250. border: 0;
  251. padding: 0;
  252. }
  253. //
  254. // Address Firefox 4+ setting `line-height` on `input` using `!important` in
  255. // the UA stylesheet.
  256. //
  257. input {
  258. line-height: normal;
  259. }
  260. //
  261. // It's recommended that you don't attempt to style these elements.
  262. // Firefox's implementation doesn't respect box-sizing, padding, or width.
  263. //
  264. // 1. Address box sizing set to `content-box` in IE 8/9/10.
  265. // 2. Remove excess padding in IE 8/9/10.
  266. //
  267. input[type="checkbox"],
  268. input[type="radio"] {
  269. box-sizing: border-box; // 1
  270. padding: 0; // 2
  271. }
  272. //
  273. // Fix the cursor style for Chrome's increment/decrement buttons. For certain
  274. // `font-size` values of the `input`, it causes the cursor style of the
  275. // decrement button to change from `default` to `text`.
  276. //
  277. input[type="number"]::-webkit-inner-spin-button,
  278. input[type="number"]::-webkit-outer-spin-button {
  279. height: auto;
  280. }
  281. //
  282. // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  283. // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
  284. //
  285. input[type="search"] {
  286. -webkit-appearance: textfield; // 1
  287. box-sizing: content-box; //2
  288. }
  289. //
  290. // Remove inner padding and search cancel button in Safari and Chrome on OS X.
  291. // Safari (but not Chrome) clips the cancel button when the search input has
  292. // padding (and `textfield` appearance).
  293. //
  294. input[type="search"]::-webkit-search-cancel-button,
  295. input[type="search"]::-webkit-search-decoration {
  296. -webkit-appearance: none;
  297. }
  298. //
  299. // Define consistent border, margin, and padding.
  300. //
  301. fieldset {
  302. border: 1px solid #c0c0c0;
  303. margin: 0 2px;
  304. padding: 0.35em 0.625em 0.75em;
  305. }
  306. //
  307. // 1. Correct `color` not being inherited in IE 8/9/10/11.
  308. // 2. Remove padding so people aren't caught out if they zero out fieldsets.
  309. //
  310. legend {
  311. border: 0; // 1
  312. padding: 0; // 2
  313. }
  314. //
  315. // Remove default vertical scrollbar in IE 8/9/10/11.
  316. //
  317. textarea {
  318. overflow: auto;
  319. }
  320. //
  321. // Don't inherit the `font-weight` (applied by a rule above).
  322. // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  323. //
  324. optgroup {
  325. font-weight: bold;
  326. }
  327. // Tables
  328. // ==========================================================================
  329. //
  330. // Remove most spacing between table cells.
  331. //
  332. table {
  333. border-collapse: collapse;
  334. border-spacing: 0;
  335. }
  336. td,
  337. th {
  338. padding: 0;
  339. }