base.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  1. /*************/
  2. /* Normalize */
  3. /*************/
  4. /*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
  5. /**
  6. * 1. Change the default font family in all browsers (opinionated).
  7. * 2. Prevent adjustments of font size after orientation changes in IE and iOS.
  8. */
  9. html {
  10. font-family: sans-serif; /* 1 */
  11. -ms-text-size-adjust: 100%; /* 2 */
  12. -webkit-text-size-adjust: 100%; /* 2 */
  13. }
  14. /**
  15. * Remove the margin in all browsers (opinionated).
  16. */
  17. body {
  18. margin: 0;
  19. }
  20. /* HTML5 display definitions
  21. ========================================================================== */
  22. /**
  23. * Add the correct display in IE 9-.
  24. * 1. Add the correct display in Edge, IE, and Firefox.
  25. * 2. Add the correct display in IE.
  26. */
  27. article,
  28. aside,
  29. details, /* 1 */
  30. figcaption,
  31. figure,
  32. footer,
  33. header,
  34. main, /* 2 */
  35. menu,
  36. nav,
  37. section,
  38. summary {
  39. /* 1 */
  40. display: block;
  41. }
  42. /**
  43. * Add the correct display in IE 9-.
  44. */
  45. audio,
  46. canvas,
  47. progress,
  48. video {
  49. display: inline-block;
  50. }
  51. /**
  52. * Add the correct display in iOS 4-7.
  53. */
  54. audio:not([controls]) {
  55. display: none;
  56. height: 0;
  57. }
  58. /**
  59. * Add the correct vertical alignment in Chrome, Firefox, and Opera.
  60. */
  61. progress {
  62. vertical-align: baseline;
  63. }
  64. /**
  65. * Add the correct display in IE 10-.
  66. * 1. Add the correct display in IE.
  67. */
  68. template, /* 1 */
  69. [hidden] {
  70. display: none;
  71. }
  72. /* Links
  73. ========================================================================== */
  74. /**
  75. * 1. Remove the gray background on active links in IE 10.
  76. * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
  77. */
  78. a {
  79. background-color: transparent; /* 1 */
  80. -webkit-text-decoration-skip: objects; /* 2 */
  81. }
  82. /**
  83. * Remove the outline on focused links when they are also active or hovered
  84. * in all browsers (opinionated).
  85. */
  86. a:active,
  87. a:hover {
  88. outline-width: 0;
  89. }
  90. /* Text-level semantics
  91. ========================================================================== */
  92. /**
  93. * 1. Remove the bottom border in Firefox 39-.
  94. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  95. */
  96. abbr[title] {
  97. border-bottom: none; /* 1 */
  98. text-decoration: underline; /* 2 */
  99. text-decoration: underline dotted; /* 2 */
  100. }
  101. /**
  102. * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
  103. */
  104. b,
  105. strong {
  106. font-weight: inherit;
  107. }
  108. /**
  109. * Add the correct font weight in Chrome, Edge, and Safari.
  110. */
  111. b,
  112. strong {
  113. font-weight: bolder;
  114. }
  115. /**
  116. * Add the correct font style in Android 4.3-.
  117. */
  118. dfn {
  119. font-style: italic;
  120. }
  121. /**
  122. * Correct the font size and margin on `h1` elements within `section` and
  123. * `article` contexts in Chrome, Firefox, and Safari.
  124. */
  125. h1 {
  126. font-size: 2em;
  127. margin: 0.67em 0;
  128. }
  129. /**
  130. * Add the correct background and color in IE 9-.
  131. */
  132. mark {
  133. background-color: #ff0;
  134. color: #000;
  135. }
  136. /**
  137. * Add the correct font size in all browsers.
  138. */
  139. small {
  140. font-size: 80%;
  141. }
  142. /**
  143. * Prevent `sub` and `sup` elements from affecting the line height in
  144. * all browsers.
  145. */
  146. sub,
  147. sup {
  148. font-size: 75%;
  149. line-height: 0;
  150. position: relative;
  151. vertical-align: baseline;
  152. }
  153. sub {
  154. bottom: -0.25em;
  155. }
  156. sup {
  157. top: -0.5em;
  158. }
  159. /* Embedded content
  160. ========================================================================== */
  161. /**
  162. * Remove the border on images inside links in IE 10-.
  163. */
  164. img {
  165. border-style: none;
  166. }
  167. /**
  168. * Hide the overflow in IE.
  169. */
  170. svg:not(:root) {
  171. overflow: hidden;
  172. }
  173. /* Grouping content
  174. ========================================================================== */
  175. /**
  176. * 1. Correct the inheritance and scaling of font size in all browsers.
  177. * 2. Correct the odd `em` font sizing in all browsers.
  178. */
  179. code,
  180. kbd,
  181. pre,
  182. samp {
  183. font-family: monospace, monospace; /* 1 */
  184. font-size: 1em; /* 2 */
  185. }
  186. /**
  187. * Add the correct margin in IE 8.
  188. */
  189. figure {
  190. margin: 1em 40px;
  191. }
  192. /**
  193. * 1. Add the correct box sizing in Firefox.
  194. * 2. Show the overflow in Edge and IE.
  195. */
  196. hr {
  197. box-sizing: content-box; /* 1 */
  198. height: 0; /* 1 */
  199. overflow: visible; /* 2 */
  200. }
  201. /* Forms
  202. ========================================================================== */
  203. /**
  204. * 1. Change font properties to `inherit` in all browsers (opinionated).
  205. * 2. Remove the margin in Firefox and Safari.
  206. */
  207. button,
  208. input,
  209. select,
  210. textarea {
  211. font: inherit; /* 1 */
  212. margin: 0; /* 2 */
  213. }
  214. /**
  215. * Restore the font weight unset by the previous rule.
  216. */
  217. optgroup {
  218. font-weight: bold;
  219. }
  220. /**
  221. * Show the overflow in IE.
  222. * 1. Show the overflow in Edge.
  223. */
  224. button,
  225. input {
  226. /* 1 */
  227. overflow: visible;
  228. }
  229. /**
  230. * Remove the inheritance of text transform in Edge, Firefox, and IE.
  231. * 1. Remove the inheritance of text transform in Firefox.
  232. */
  233. button,
  234. select {
  235. /* 1 */
  236. text-transform: none;
  237. }
  238. /**
  239. * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
  240. * controls in Android 4.
  241. * 2. Correct the inability to style clickable types in iOS and Safari.
  242. */
  243. button,
  244. html [type="button"], /* 1 */
  245. [type="reset"],
  246. [type="submit"] {
  247. -webkit-appearance: button; /* 2 */
  248. }
  249. /**
  250. * Remove the inner border and padding in Firefox.
  251. */
  252. button::-moz-focus-inner,
  253. [type='button']::-moz-focus-inner,
  254. [type='reset']::-moz-focus-inner,
  255. [type='submit']::-moz-focus-inner {
  256. border-style: none;
  257. padding: 0;
  258. }
  259. /**
  260. * Restore the focus styles unset by the previous rule.
  261. */
  262. button:-moz-focusring,
  263. [type='button']:-moz-focusring,
  264. [type='reset']:-moz-focusring,
  265. [type='submit']:-moz-focusring {
  266. outline: 1px dotted ButtonText;
  267. }
  268. /**
  269. * Change the border, margin, and padding in all browsers (opinionated).
  270. */
  271. fieldset {
  272. border: 1px solid #c0c0c0;
  273. margin: 0 2px;
  274. padding: 0.35em 0.625em 0.75em;
  275. }
  276. /**
  277. * 1. Correct the text wrapping in Edge and IE.
  278. * 2. Correct the color inheritance from `fieldset` elements in IE.
  279. * 3. Remove the padding so developers are not caught out when they zero out
  280. * `fieldset` elements in all browsers.
  281. */
  282. legend {
  283. box-sizing: border-box; /* 1 */
  284. color: inherit; /* 2 */
  285. display: table; /* 1 */
  286. max-width: 100%; /* 1 */
  287. padding: 0; /* 3 */
  288. white-space: normal; /* 1 */
  289. }
  290. /**
  291. * Remove the default vertical scrollbar in IE.
  292. */
  293. textarea {
  294. overflow: auto;
  295. }
  296. /**
  297. * 1. Add the correct box sizing in IE 10-.
  298. * 2. Remove the padding in IE 10-.
  299. */
  300. [type='checkbox'],
  301. [type='radio'] {
  302. box-sizing: border-box; /* 1 */
  303. padding: 0; /* 2 */
  304. }
  305. /**
  306. * Correct the cursor style of increment and decrement buttons in Chrome.
  307. */
  308. [type='number']::-webkit-inner-spin-button,
  309. [type='number']::-webkit-outer-spin-button {
  310. height: auto;
  311. }
  312. /**
  313. * 1. Correct the odd appearance in Chrome and Safari.
  314. * 2. Correct the outline style in Safari.
  315. */
  316. [type='search'] {
  317. -webkit-appearance: textfield; /* 1 */
  318. outline-offset: -2px; /* 2 */
  319. }
  320. /**
  321. * Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
  322. */
  323. [type='search']::-webkit-search-cancel-button,
  324. [type='search']::-webkit-search-decoration {
  325. -webkit-appearance: none;
  326. }
  327. /**
  328. * Correct the text style of placeholders in Chrome, Edge, and Safari.
  329. */
  330. ::-webkit-input-placeholder {
  331. color: inherit;
  332. opacity: 0.54;
  333. }
  334. /**
  335. * 1. Correct the inability to style clickable types in iOS and Safari.
  336. * 2. Change font properties to `inherit` in Safari.
  337. */
  338. ::-webkit-file-upload-button {
  339. -webkit-appearance: button; /* 1 */
  340. font: inherit; /* 2 */
  341. }
  342. /*******************/
  343. /* Grid / Skeleton */
  344. /*******************/
  345. .container {
  346. position: relative;
  347. width: 100%;
  348. max-width: 960px;
  349. margin: 0 auto;
  350. padding: 0 20px;
  351. box-sizing: border-box;
  352. }
  353. .column,
  354. .columns {
  355. width: 100%;
  356. float: left;
  357. box-sizing: border-box;
  358. }
  359. /* For devices larger than 400px */
  360. @media (min-width: 400px) {
  361. .container {
  362. width: 85%;
  363. padding: 0;
  364. }
  365. }
  366. /* For devices larger than 550px */
  367. @media (min-width: 550px) {
  368. .container {
  369. width: 80%;
  370. }
  371. .column,
  372. .columns {
  373. margin-left: 4%;
  374. }
  375. .column:first-child,
  376. .columns:first-child {
  377. margin-left: 0;
  378. }
  379. .one.column,
  380. .one.columns {
  381. width: 4.66666666667%;
  382. }
  383. .two.columns {
  384. width: 13.3333333333%;
  385. }
  386. .three.columns {
  387. width: 22%;
  388. }
  389. .four.columns {
  390. width: 30.6666666667%;
  391. }
  392. .five.columns {
  393. width: 39.3333333333%;
  394. }
  395. .six.columns {
  396. width: 48%;
  397. }
  398. .seven.columns {
  399. width: 56.6666666667%;
  400. }
  401. .eight.columns {
  402. width: 65.3333333333%;
  403. }
  404. .nine.columns {
  405. width: 74%;
  406. }
  407. .ten.columns {
  408. width: 82.6666666667%;
  409. }
  410. .eleven.columns {
  411. width: 91.3333333333%;
  412. }
  413. .twelve.columns {
  414. width: 100%;
  415. margin-left: 0;
  416. }
  417. .one-third.column {
  418. width: 30.6666666667%;
  419. }
  420. .two-thirds.column {
  421. width: 65.3333333333%;
  422. }
  423. .one-half.column {
  424. width: 48%;
  425. }
  426. /* Offsets */
  427. .offset-by-one.column,
  428. .offset-by-one.columns {
  429. margin-left: 8.66666666667%;
  430. }
  431. .offset-by-two.column,
  432. .offset-by-two.columns {
  433. margin-left: 17.3333333333%;
  434. }
  435. .offset-by-three.column,
  436. .offset-by-three.columns {
  437. margin-left: 26%;
  438. }
  439. .offset-by-four.column,
  440. .offset-by-four.columns {
  441. margin-left: 34.6666666667%;
  442. }
  443. .offset-by-five.column,
  444. .offset-by-five.columns {
  445. margin-left: 43.3333333333%;
  446. }
  447. .offset-by-six.column,
  448. .offset-by-six.columns {
  449. margin-left: 52%;
  450. }
  451. .offset-by-seven.column,
  452. .offset-by-seven.columns {
  453. margin-left: 60.6666666667%;
  454. }
  455. .offset-by-eight.column,
  456. .offset-by-eight.columns {
  457. margin-left: 69.3333333333%;
  458. }
  459. .offset-by-nine.column,
  460. .offset-by-nine.columns {
  461. margin-left: 78%;
  462. }
  463. .offset-by-ten.column,
  464. .offset-by-ten.columns {
  465. margin-left: 86.6666666667%;
  466. }
  467. .offset-by-eleven.column,
  468. .offset-by-eleven.columns {
  469. margin-left: 95.3333333333%;
  470. }
  471. .offset-by-one-third.column,
  472. .offset-by-one-third.columns {
  473. margin-left: 34.6666666667%;
  474. }
  475. .offset-by-two-thirds.column,
  476. .offset-by-two-thirds.columns {
  477. margin-left: 69.3333333333%;
  478. }
  479. .offset-by-one-half.column,
  480. .offset-by-one-half.columns {
  481. margin-left: 52%;
  482. }
  483. }
  484. html {
  485. font-size: 62.5%;
  486. }
  487. body {
  488. font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
  489. line-height: 1.6;
  490. font-weight: 400;
  491. color: #222;
  492. }
  493. h1,
  494. h2,
  495. h3,
  496. h4,
  497. h5,
  498. h6 {
  499. margin-top: 0;
  500. margin-bottom: 2rem;
  501. }
  502. h1 {
  503. font-size: 4rem;
  504. line-height: 1.2;
  505. letter-spacing: -0.1rem;
  506. }
  507. h2 {
  508. font-size: 3.6rem;
  509. line-height: 1.25;
  510. letter-spacing: -0.1rem;
  511. }
  512. h3 {
  513. font-size: 3rem;
  514. line-height: 1.3;
  515. letter-spacing: -0.1rem;
  516. }
  517. h4 {
  518. font-size: 2.4rem;
  519. line-height: 1.35;
  520. letter-spacing: -0.08rem;
  521. }
  522. h5 {
  523. font-size: 1.8rem;
  524. line-height: 1.5;
  525. letter-spacing: -0.05rem;
  526. }
  527. h6 {
  528. font-size: 1.5rem;
  529. line-height: 1.6;
  530. letter-spacing: 0;
  531. }
  532. /* Larger than phablet */
  533. @media (min-width: 550px) {
  534. h1 {
  535. font-size: 5rem;
  536. }
  537. h2 {
  538. font-size: 4.2rem;
  539. }
  540. h3 {
  541. font-size: 3.6rem;
  542. }
  543. h4 {
  544. font-size: 3rem;
  545. }
  546. h5 {
  547. font-size: 2.4rem;
  548. }
  549. h6 {
  550. font-size: 1.5rem;
  551. }
  552. }
  553. p {
  554. margin-top: 0;
  555. }
  556. ul {
  557. list-style: circle inside;
  558. }
  559. ol {
  560. list-style: decimal inside;
  561. }
  562. ol,
  563. ul {
  564. padding-left: 0;
  565. margin-top: 0;
  566. }
  567. ul ul,
  568. ul ol,
  569. ol ol,
  570. ol ul {
  571. margin: 1.5rem 0 1.5rem 3rem;
  572. font-size: 90%;
  573. }
  574. li {
  575. margin-bottom: 1rem;
  576. }
  577. code {
  578. padding: 0.2rem 0.5rem;
  579. margin: 0 0.2rem;
  580. font-size: 90%;
  581. white-space: nowrap;
  582. }
  583. pre > code {
  584. display: block;
  585. padding: 1rem 1.5rem;
  586. white-space: pre;
  587. }
  588. hr {
  589. margin-top: 3rem;
  590. margin-bottom: 3.5rem;
  591. border-width: 0;
  592. border-top: 1px solid #e1e1e1;
  593. }
  594. pre,
  595. blockquote,
  596. dl,
  597. figure,
  598. table,
  599. p,
  600. ul,
  601. ol,
  602. form {
  603. margin-bottom: 2.5rem;
  604. }
  605. .container:after,
  606. .row:after {
  607. content: '';
  608. display: table;
  609. clear: both;
  610. }