milligram.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. /*!
  2. * Milligram v1.3.0
  3. * https://milligram.github.io
  4. *
  5. * Copyright (c) 2018 CJ Patoilo
  6. * Licensed under the MIT license
  7. */
  8. *,
  9. *:after,
  10. *:before {
  11. box-sizing: inherit;
  12. }
  13. html {
  14. box-sizing: border-box;
  15. font-size: 62.5%;
  16. }
  17. body {
  18. color: #606c76;
  19. font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  20. font-size: 1.6em;
  21. font-weight: 300;
  22. letter-spacing: .01em;
  23. line-height: 1.6;
  24. }
  25. blockquote {
  26. border-left: 0.3rem solid #d1d1d1;
  27. margin-left: 0;
  28. margin-right: 0;
  29. padding: 1rem 1.5rem;
  30. }
  31. blockquote *:last-child {
  32. margin-bottom: 0;
  33. }
  34. .button,
  35. button,
  36. input[type='button'],
  37. input[type='reset'],
  38. input[type='submit'] {
  39. background-color: #9b4dca;
  40. border: 0.1rem solid #9b4dca;
  41. border-radius: .4rem;
  42. color: #fff;
  43. cursor: pointer;
  44. display: inline-block;
  45. font-size: 1.1rem;
  46. font-weight: 700;
  47. height: 3.8rem;
  48. letter-spacing: .1rem;
  49. line-height: 3.8rem;
  50. padding: 0 3.0rem;
  51. text-align: center;
  52. text-decoration: none;
  53. text-transform: uppercase;
  54. white-space: nowrap;
  55. }
  56. .button:focus, .button:hover,
  57. button:focus,
  58. button:hover,
  59. input[type='button']:focus,
  60. input[type='button']:hover,
  61. input[type='reset']:focus,
  62. input[type='reset']:hover,
  63. input[type='submit']:focus,
  64. input[type='submit']:hover {
  65. background-color: #606c76;
  66. border-color: #606c76;
  67. color: #fff;
  68. outline: 0;
  69. }
  70. .button[disabled],
  71. button[disabled],
  72. input[type='button'][disabled],
  73. input[type='reset'][disabled],
  74. input[type='submit'][disabled] {
  75. cursor: default;
  76. opacity: .5;
  77. }
  78. .button[disabled]:focus, .button[disabled]:hover,
  79. button[disabled]:focus,
  80. button[disabled]:hover,
  81. input[type='button'][disabled]:focus,
  82. input[type='button'][disabled]:hover,
  83. input[type='reset'][disabled]:focus,
  84. input[type='reset'][disabled]:hover,
  85. input[type='submit'][disabled]:focus,
  86. input[type='submit'][disabled]:hover {
  87. background-color: #9b4dca;
  88. border-color: #9b4dca;
  89. }
  90. .button.button-outline,
  91. button.button-outline,
  92. input[type='button'].button-outline,
  93. input[type='reset'].button-outline,
  94. input[type='submit'].button-outline {
  95. background-color: transparent;
  96. color: #9b4dca;
  97. }
  98. .button.button-outline:focus, .button.button-outline:hover,
  99. button.button-outline:focus,
  100. button.button-outline:hover,
  101. input[type='button'].button-outline:focus,
  102. input[type='button'].button-outline:hover,
  103. input[type='reset'].button-outline:focus,
  104. input[type='reset'].button-outline:hover,
  105. input[type='submit'].button-outline:focus,
  106. input[type='submit'].button-outline:hover {
  107. background-color: transparent;
  108. border-color: #606c76;
  109. color: #606c76;
  110. }
  111. .button.button-outline[disabled]:focus, .button.button-outline[disabled]:hover,
  112. button.button-outline[disabled]:focus,
  113. button.button-outline[disabled]:hover,
  114. input[type='button'].button-outline[disabled]:focus,
  115. input[type='button'].button-outline[disabled]:hover,
  116. input[type='reset'].button-outline[disabled]:focus,
  117. input[type='reset'].button-outline[disabled]:hover,
  118. input[type='submit'].button-outline[disabled]:focus,
  119. input[type='submit'].button-outline[disabled]:hover {
  120. border-color: inherit;
  121. color: #9b4dca;
  122. }
  123. .button.button-clear,
  124. button.button-clear,
  125. input[type='button'].button-clear,
  126. input[type='reset'].button-clear,
  127. input[type='submit'].button-clear {
  128. background-color: transparent;
  129. border-color: transparent;
  130. color: #9b4dca;
  131. }
  132. .button.button-clear:focus, .button.button-clear:hover,
  133. button.button-clear:focus,
  134. button.button-clear:hover,
  135. input[type='button'].button-clear:focus,
  136. input[type='button'].button-clear:hover,
  137. input[type='reset'].button-clear:focus,
  138. input[type='reset'].button-clear:hover,
  139. input[type='submit'].button-clear:focus,
  140. input[type='submit'].button-clear:hover {
  141. background-color: transparent;
  142. border-color: transparent;
  143. color: #606c76;
  144. }
  145. .button.button-clear[disabled]:focus, .button.button-clear[disabled]:hover,
  146. button.button-clear[disabled]:focus,
  147. button.button-clear[disabled]:hover,
  148. input[type='button'].button-clear[disabled]:focus,
  149. input[type='button'].button-clear[disabled]:hover,
  150. input[type='reset'].button-clear[disabled]:focus,
  151. input[type='reset'].button-clear[disabled]:hover,
  152. input[type='submit'].button-clear[disabled]:focus,
  153. input[type='submit'].button-clear[disabled]:hover {
  154. color: #9b4dca;
  155. }
  156. code {
  157. background: #f4f5f6;
  158. border-radius: .4rem;
  159. font-size: 86%;
  160. margin: 0 .2rem;
  161. padding: .2rem .5rem;
  162. white-space: nowrap;
  163. }
  164. pre {
  165. background: #f4f5f6;
  166. border-left: 0.3rem solid #9b4dca;
  167. overflow-y: hidden;
  168. }
  169. pre > code {
  170. border-radius: 0;
  171. display: block;
  172. padding: 1rem 1.5rem;
  173. white-space: pre;
  174. }
  175. hr {
  176. border: 0;
  177. border-top: 0.1rem solid #f4f5f6;
  178. margin: 3.0rem 0;
  179. }
  180. input[type='email'],
  181. input[type='number'],
  182. input[type='password'],
  183. input[type='search'],
  184. input[type='tel'],
  185. input[type='text'],
  186. input[type='url'],
  187. input[type='color'],
  188. input[type='date'],
  189. input[type='month'],
  190. input[type='week'],
  191. input[type='datetime'],
  192. input[type='datetime-local'],
  193. input:not([type]),
  194. textarea,
  195. select {
  196. -webkit-appearance: none;
  197. -moz-appearance: none;
  198. appearance: none;
  199. background-color: transparent;
  200. border: 0.1rem solid #d1d1d1;
  201. border-radius: .4rem;
  202. box-shadow: none;
  203. box-sizing: inherit;
  204. height: 3.8rem;
  205. padding: .6rem 1.0rem;
  206. width: 100%;
  207. }
  208. input[type='email']:focus,
  209. input[type='number']:focus,
  210. input[type='password']:focus,
  211. input[type='search']:focus,
  212. input[type='tel']:focus,
  213. input[type='text']:focus,
  214. input[type='url']:focus,
  215. input[type='color']:focus,
  216. input[type='date']:focus,
  217. input[type='month']:focus,
  218. input[type='week']:focus,
  219. input[type='datetime']:focus,
  220. input[type='datetime-local']:focus,
  221. input:not([type]):focus,
  222. textarea:focus,
  223. select:focus {
  224. border-color: #9b4dca;
  225. outline: 0;
  226. }
  227. select {
  228. background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" viewBox="0 0 29 14" width="29"><path fill="%23d1d1d1" d="M9.37727 3.625l5.08154 6.93523L19.54036 3.625"/></svg>') center right no-repeat;
  229. padding-right: 3.0rem;
  230. }
  231. select:focus {
  232. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" viewBox="0 0 29 14" width="29"><path fill="%239b4dca" d="M9.37727 3.625l5.08154 6.93523L19.54036 3.625"/></svg>');
  233. }
  234. textarea {
  235. min-height: 6.5rem;
  236. }
  237. label,
  238. legend {
  239. display: block;
  240. font-size: 1.6rem;
  241. font-weight: 700;
  242. margin-bottom: .5rem;
  243. }
  244. fieldset {
  245. border-width: 0;
  246. padding: 0;
  247. }
  248. input[type='checkbox'],
  249. input[type='radio'] {
  250. display: inline;
  251. }
  252. .label-inline {
  253. display: inline-block;
  254. font-weight: normal;
  255. margin-left: .5rem;
  256. }
  257. .container {
  258. margin: 0 auto;
  259. max-width: 112.0rem;
  260. padding: 0 2.0rem;
  261. position: relative;
  262. width: 100%;
  263. }
  264. .row {
  265. display: flex;
  266. flex-direction: column;
  267. padding: 0;
  268. width: 100%;
  269. }
  270. .row.row-no-padding {
  271. padding: 0;
  272. }
  273. .row.row-no-padding > .column {
  274. padding: 0;
  275. }
  276. .row.row-wrap {
  277. flex-wrap: wrap;
  278. }
  279. .row.row-top {
  280. align-items: flex-start;
  281. }
  282. .row.row-bottom {
  283. align-items: flex-end;
  284. }
  285. .row.row-center {
  286. align-items: center;
  287. }
  288. .row.row-stretch {
  289. align-items: stretch;
  290. }
  291. .row.row-baseline {
  292. align-items: baseline;
  293. }
  294. .row .column {
  295. display: block;
  296. flex: 1 1 auto;
  297. margin-left: 0;
  298. max-width: 100%;
  299. width: 100%;
  300. }
  301. .row .column.column-offset-10 {
  302. margin-left: 10%;
  303. }
  304. .row .column.column-offset-20 {
  305. margin-left: 20%;
  306. }
  307. .row .column.column-offset-25 {
  308. margin-left: 25%;
  309. }
  310. .row .column.column-offset-33, .row .column.column-offset-34 {
  311. margin-left: 33.3333%;
  312. }
  313. .row .column.column-offset-50 {
  314. margin-left: 50%;
  315. }
  316. .row .column.column-offset-66, .row .column.column-offset-67 {
  317. margin-left: 66.6666%;
  318. }
  319. .row .column.column-offset-75 {
  320. margin-left: 75%;
  321. }
  322. .row .column.column-offset-80 {
  323. margin-left: 80%;
  324. }
  325. .row .column.column-offset-90 {
  326. margin-left: 90%;
  327. }
  328. .row .column.column-10 {
  329. flex: 0 0 10%;
  330. max-width: 10%;
  331. }
  332. .row .column.column-20 {
  333. flex: 0 0 20%;
  334. max-width: 20%;
  335. }
  336. .row .column.column-25 {
  337. flex: 0 0 25%;
  338. max-width: 25%;
  339. }
  340. .row .column.column-33, .row .column.column-34 {
  341. flex: 0 0 33.3333%;
  342. max-width: 33.3333%;
  343. }
  344. .row .column.column-40 {
  345. flex: 0 0 40%;
  346. max-width: 40%;
  347. }
  348. .row .column.column-50 {
  349. flex: 0 0 50%;
  350. max-width: 50%;
  351. }
  352. .row .column.column-60 {
  353. flex: 0 0 60%;
  354. max-width: 60%;
  355. }
  356. .row .column.column-66, .row .column.column-67 {
  357. flex: 0 0 66.6666%;
  358. max-width: 66.6666%;
  359. }
  360. .row .column.column-75 {
  361. flex: 0 0 75%;
  362. max-width: 75%;
  363. }
  364. .row .column.column-80 {
  365. flex: 0 0 80%;
  366. max-width: 80%;
  367. }
  368. .row .column.column-90 {
  369. flex: 0 0 90%;
  370. max-width: 90%;
  371. }
  372. .row .column .column-top {
  373. align-self: flex-start;
  374. }
  375. .row .column .column-bottom {
  376. align-self: flex-end;
  377. }
  378. .row .column .column-center {
  379. -ms-grid-row-align: center;
  380. align-self: center;
  381. }
  382. @media (min-width: 40rem) {
  383. .row {
  384. flex-direction: row;
  385. margin-left: -1.0rem;
  386. width: calc(100% + 2.0rem);
  387. }
  388. .row .column {
  389. margin-bottom: inherit;
  390. padding: 0 1.0rem;
  391. }
  392. }
  393. a {
  394. color: #9b4dca;
  395. text-decoration: none;
  396. }
  397. a:focus, a:hover {
  398. color: #606c76;
  399. }
  400. dl,
  401. ol,
  402. ul {
  403. list-style: none;
  404. margin-top: 0;
  405. padding-left: 0;
  406. }
  407. dl dl,
  408. dl ol,
  409. dl ul,
  410. ol dl,
  411. ol ol,
  412. ol ul,
  413. ul dl,
  414. ul ol,
  415. ul ul {
  416. font-size: 90%;
  417. margin: 1.5rem 0 1.5rem 3.0rem;
  418. }
  419. ol {
  420. list-style: decimal inside;
  421. }
  422. ul {
  423. list-style: circle inside;
  424. }
  425. .button,
  426. button,
  427. dd,
  428. dt,
  429. li {
  430. margin-bottom: 1.0rem;
  431. }
  432. fieldset,
  433. input,
  434. select,
  435. textarea {
  436. margin-bottom: 1.5rem;
  437. }
  438. blockquote,
  439. dl,
  440. figure,
  441. form,
  442. ol,
  443. p,
  444. pre,
  445. table,
  446. ul {
  447. margin-bottom: 2.5rem;
  448. }
  449. table {
  450. border-spacing: 0;
  451. width: 100%;
  452. }
  453. td,
  454. th {
  455. border-bottom: 0.1rem solid #e1e1e1;
  456. padding: 1.2rem 1.5rem;
  457. text-align: left;
  458. }
  459. td:first-child,
  460. th:first-child {
  461. padding-left: 0;
  462. }
  463. td:last-child,
  464. th:last-child {
  465. padding-right: 0;
  466. }
  467. b,
  468. strong {
  469. font-weight: bold;
  470. }
  471. p {
  472. margin-top: 0;
  473. }
  474. h1,
  475. h2,
  476. h3,
  477. h4,
  478. h5,
  479. h6 {
  480. font-weight: 300;
  481. letter-spacing: -.1rem;
  482. margin-bottom: 2.0rem;
  483. margin-top: 0;
  484. }
  485. h1 {
  486. font-size: 4.6rem;
  487. line-height: 1.2;
  488. }
  489. h2 {
  490. font-size: 3.6rem;
  491. line-height: 1.25;
  492. }
  493. h3 {
  494. font-size: 2.8rem;
  495. line-height: 1.3;
  496. }
  497. h4 {
  498. font-size: 2.2rem;
  499. letter-spacing: -.08rem;
  500. line-height: 1.35;
  501. }
  502. h5 {
  503. font-size: 1.8rem;
  504. letter-spacing: -.05rem;
  505. line-height: 1.5;
  506. }
  507. h6 {
  508. font-size: 1.6rem;
  509. letter-spacing: 0;
  510. line-height: 1.4;
  511. }
  512. img {
  513. max-width: 100%;
  514. }
  515. .clearfix:after {
  516. clear: both;
  517. content: ' ';
  518. display: table;
  519. }
  520. .float-left {
  521. float: left;
  522. }
  523. .float-right {
  524. float: right;
  525. }
  526. /*# sourceMappingURL=milligram.css.map */