skeleton.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. /*
  2. * Skeleton V2.0.4
  3. * Copyright 2014, Dave Gamache
  4. * www.getskeleton.com
  5. * Free to use under the MIT license.
  6. * http://www.opensource.org/licenses/mit-license.php
  7. * 12/29/2014
  8. */
  9. /* Table of contents
  10. ––––––––––––––––––––––––––––––––––––––––––––––––––
  11. - Grid
  12. - Base Styles
  13. - Typography
  14. - Links
  15. - Buttons
  16. - Forms
  17. - Lists
  18. - Code
  19. - Tables
  20. - Spacing
  21. - Utilities
  22. - Clearing
  23. - Media Queries
  24. */
  25. /* Grid
  26. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  27. .container {
  28. position: relative;
  29. width: 100%;
  30. max-width: 960px;
  31. margin: 0 auto;
  32. padding: 0 20px;
  33. box-sizing: border-box;
  34. }
  35. .column,
  36. .columns {
  37. width: 100%;
  38. float: left;
  39. box-sizing: border-box;
  40. }
  41. /* For devices larger than 400px */
  42. @media (min-width: 400px) {
  43. .container {
  44. width: 85%;
  45. padding: 0;
  46. }
  47. }
  48. /* For devices larger than 550px */
  49. @media (min-width: 550px) {
  50. .container {
  51. width: 80%;
  52. }
  53. .column,
  54. .columns {
  55. margin-left: 4%;
  56. }
  57. .column:first-child,
  58. .columns:first-child {
  59. margin-left: 0;
  60. }
  61. .one.column,
  62. .one.columns {
  63. width: 4.66666666667%;
  64. }
  65. .two.columns {
  66. width: 13.3333333333%;
  67. }
  68. .three.columns {
  69. width: 22%;
  70. }
  71. .four.columns {
  72. width: 30.6666666667%;
  73. }
  74. .five.columns {
  75. width: 39.3333333333%;
  76. }
  77. .six.columns {
  78. width: 48%;
  79. }
  80. .seven.columns {
  81. width: 56.6666666667%;
  82. }
  83. .eight.columns {
  84. width: 65.3333333333%;
  85. }
  86. .nine.columns {
  87. width: 74.0%;
  88. }
  89. .ten.columns {
  90. width: 82.6666666667%;
  91. }
  92. .eleven.columns {
  93. width: 91.3333333333%;
  94. }
  95. .twelve.columns {
  96. width: 100%;
  97. margin-left: 0;
  98. }
  99. .one-third.column {
  100. width: 30.6666666667%;
  101. }
  102. .two-thirds.column {
  103. width: 65.3333333333%;
  104. }
  105. .one-half.column {
  106. width: 48%;
  107. }
  108. /* Offsets */
  109. .offset-by-one.column,
  110. .offset-by-one.columns {
  111. margin-left: 8.66666666667%;
  112. }
  113. .offset-by-two.column,
  114. .offset-by-two.columns {
  115. margin-left: 17.3333333333%;
  116. }
  117. .offset-by-three.column,
  118. .offset-by-three.columns {
  119. margin-left: 26%;
  120. }
  121. .offset-by-four.column,
  122. .offset-by-four.columns {
  123. margin-left: 34.6666666667%;
  124. }
  125. .offset-by-five.column,
  126. .offset-by-five.columns {
  127. margin-left: 43.3333333333%;
  128. }
  129. .offset-by-six.column,
  130. .offset-by-six.columns {
  131. margin-left: 52%;
  132. }
  133. .offset-by-seven.column,
  134. .offset-by-seven.columns {
  135. margin-left: 60.6666666667%;
  136. }
  137. .offset-by-eight.column,
  138. .offset-by-eight.columns {
  139. margin-left: 69.3333333333%;
  140. }
  141. .offset-by-nine.column,
  142. .offset-by-nine.columns {
  143. margin-left: 78.0%;
  144. }
  145. .offset-by-ten.column,
  146. .offset-by-ten.columns {
  147. margin-left: 86.6666666667%;
  148. }
  149. .offset-by-eleven.column,
  150. .offset-by-eleven.columns {
  151. margin-left: 95.3333333333%;
  152. }
  153. .offset-by-one-third.column,
  154. .offset-by-one-third.columns {
  155. margin-left: 34.6666666667%;
  156. }
  157. .offset-by-two-thirds.column,
  158. .offset-by-two-thirds.columns {
  159. margin-left: 69.3333333333%;
  160. }
  161. .offset-by-one-half.column,
  162. .offset-by-one-half.columns {
  163. margin-left: 52%;
  164. }
  165. }
  166. /* Base Styles
  167. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  168. /* NOTE
  169. html is set to 62.5% so that all the REM measurements throughout Skeleton
  170. are based on 10px sizing. So basically 1.5rem = 15px :) */
  171. html {
  172. font-size: 62.5%;
  173. }
  174. body {
  175. font-size: 1.5em;
  176. /* currently ems cause chrome bug misinterpreting rems on body element */
  177. line-height: 1.6;
  178. font-weight: 400;
  179. font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  180. color: #222;
  181. }
  182. /* Typography
  183. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  184. h1,
  185. h2,
  186. h3,
  187. h4,
  188. h5,
  189. h6 {
  190. margin-top: 0;
  191. margin-bottom: 2rem;
  192. font-weight: 300;
  193. }
  194. h1 {
  195. font-size: 4.0rem;
  196. line-height: 1.2;
  197. letter-spacing: -.1rem;
  198. }
  199. h2 {
  200. font-size: 3.6rem;
  201. line-height: 1.25;
  202. letter-spacing: -.1rem;
  203. }
  204. h3 {
  205. font-size: 3.0rem;
  206. line-height: 1.3;
  207. letter-spacing: -.1rem;
  208. }
  209. h4 {
  210. font-size: 2.4rem;
  211. line-height: 1.35;
  212. letter-spacing: -.08rem;
  213. }
  214. h5 {
  215. font-size: 1.8rem;
  216. line-height: 1.5;
  217. letter-spacing: -.05rem;
  218. }
  219. h6 {
  220. font-size: 1.5rem;
  221. line-height: 1.6;
  222. letter-spacing: 0;
  223. }
  224. /* Larger than phablet */
  225. @media (min-width: 550px) {
  226. h1 {
  227. font-size: 5.0rem;
  228. }
  229. h2 {
  230. font-size: 4.2rem;
  231. }
  232. h3 {
  233. font-size: 3.6rem;
  234. }
  235. h4 {
  236. font-size: 3.0rem;
  237. }
  238. h5 {
  239. font-size: 2.4rem;
  240. }
  241. h6 {
  242. font-size: 1.5rem;
  243. }
  244. }
  245. p {
  246. margin-top: 0;
  247. }
  248. /* Links
  249. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  250. a {
  251. color: #1EAEDB;
  252. }
  253. a:hover {
  254. color: #0FA0CE;
  255. }
  256. /* Buttons
  257. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  258. .button,
  259. button,
  260. input[type="submit"],
  261. input[type="reset"],
  262. input[type="button"] {
  263. display: inline-block;
  264. height: 38px;
  265. padding: 0 30px;
  266. color: #555;
  267. text-align: center;
  268. font-size: 11px;
  269. font-weight: 600;
  270. line-height: 38px;
  271. letter-spacing: .1rem;
  272. text-transform: uppercase;
  273. text-decoration: none;
  274. white-space: nowrap;
  275. background-color: transparent;
  276. border-radius: 4px;
  277. border: 1px solid #bbb;
  278. cursor: pointer;
  279. box-sizing: border-box;
  280. }
  281. .button:hover,
  282. button:hover,
  283. input[type="submit"]:hover,
  284. input[type="reset"]:hover,
  285. input[type="button"]:hover,
  286. .button:focus,
  287. button:focus,
  288. input[type="submit"]:focus,
  289. input[type="reset"]:focus,
  290. input[type="button"]:focus {
  291. color: #333;
  292. border-color: #888;
  293. outline: 0;
  294. }
  295. .button.button-primary,
  296. button.button-primary,
  297. input[type="submit"].button-primary,
  298. input[type="reset"].button-primary,
  299. input[type="button"].button-primary {
  300. color: #FFF;
  301. background-color: #33C3F0;
  302. border-color: #33C3F0;
  303. }
  304. .button.button-primary:hover,
  305. button.button-primary:hover,
  306. input[type="submit"].button-primary:hover,
  307. input[type="reset"].button-primary:hover,
  308. input[type="button"].button-primary:hover,
  309. .button.button-primary:focus,
  310. button.button-primary:focus,
  311. input[type="submit"].button-primary:focus,
  312. input[type="reset"].button-primary:focus,
  313. input[type="button"].button-primary:focus {
  314. color: #FFF;
  315. background-color: #1EAEDB;
  316. border-color: #1EAEDB;
  317. }
  318. /* Forms
  319. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  320. input[type="email"],
  321. input[type="number"],
  322. input[type="search"],
  323. input[type="text"],
  324. input[type="tel"],
  325. input[type="url"],
  326. input[type="password"],
  327. input[type="datetime-local"],
  328. textarea,
  329. select {
  330. height: 38px;
  331. padding: 6px 10px;
  332. /* The 6px vertically centers text on FF, ignored by Webkit */
  333. background-color: #6b6b6b;
  334. border: 1px solid #1a1a1a;
  335. border-radius: 4px;
  336. box-shadow: none;
  337. box-sizing: border-box;
  338. }
  339. /* Removes awkward default styles on some inputs for iOS */
  340. input[type="email"],
  341. input[type="number"],
  342. input[type="search"],
  343. input[type="text"],
  344. input[type="tel"],
  345. input[type="url"],
  346. input[type="password"],
  347. textarea {
  348. -webkit-appearance: none;
  349. -moz-appearance: none;
  350. appearance: none;
  351. }
  352. textarea {
  353. min-height: 65px;
  354. padding-top: 6px;
  355. padding-bottom: 6px;
  356. }
  357. input[type="email"]:focus,
  358. input[type="number"]:focus,
  359. input[type="search"]:focus,
  360. input[type="text"]:focus,
  361. input[type="tel"]:focus,
  362. input[type="url"]:focus,
  363. input[type="password"]:focus,
  364. textarea:focus,
  365. select:focus {
  366. border: 1px solid #33C3F0;
  367. outline: 0;
  368. }
  369. label,
  370. legend {
  371. display: block;
  372. margin-bottom: .5rem;
  373. font-weight: 600;
  374. }
  375. fieldset {
  376. padding: 0;
  377. border-width: 0;
  378. }
  379. input[type="checkbox"],
  380. input[type="radio"] {
  381. display: inline;
  382. }
  383. label>.label-body {
  384. display: inline-block;
  385. margin-left: .5rem;
  386. font-weight: normal;
  387. }
  388. /* Lists
  389. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  390. ul {
  391. list-style: circle inside;
  392. }
  393. ol {
  394. list-style: decimal inside;
  395. }
  396. ol,
  397. ul {
  398. padding-left: 0;
  399. margin-top: 0;
  400. }
  401. ul ul,
  402. ul ol,
  403. ol ol,
  404. ol ul {
  405. margin: 1.5rem 0 1.5rem 3rem;
  406. font-size: 90%;
  407. }
  408. li {
  409. margin-bottom: 1rem;
  410. }
  411. /* Code
  412. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  413. code {
  414. padding: .2rem .5rem;
  415. margin: 0 .2rem;
  416. font-size: 90%;
  417. white-space: nowrap;
  418. background: #F1F1F1;
  419. border: 1px solid #E1E1E1;
  420. border-radius: 4px;
  421. }
  422. pre>code {
  423. display: block;
  424. padding: 1rem 1.5rem;
  425. white-space: pre;
  426. }
  427. /* Tables
  428. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  429. th,
  430. td {
  431. padding: 12px 15px;
  432. text-align: left;
  433. border-bottom: 1px solid #E1E1E1;
  434. }
  435. th:first-child,
  436. td:first-child {
  437. padding-left: 0;
  438. }
  439. th:last-child,
  440. td:last-child {
  441. padding-right: 0;
  442. }
  443. /* Spacing
  444. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  445. button,
  446. .button {
  447. margin-bottom: 1rem;
  448. }
  449. input,
  450. textarea,
  451. select,
  452. fieldset {
  453. margin-bottom: 1.5rem;
  454. }
  455. pre,
  456. blockquote,
  457. dl,
  458. figure,
  459. table,
  460. p,
  461. ul,
  462. ol,
  463. form {
  464. margin-bottom: 2.5rem;
  465. }
  466. /* Utilities
  467. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  468. .u-full-width {
  469. width: 100%;
  470. box-sizing: border-box;
  471. }
  472. .u-max-full-width {
  473. max-width: 100%;
  474. box-sizing: border-box;
  475. }
  476. .u-pull-right {
  477. float: right;
  478. }
  479. .u-pull-left {
  480. float: left;
  481. }
  482. /* Misc
  483. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  484. hr {
  485. margin-top: 3rem;
  486. margin-bottom: 3.5rem;
  487. border-width: 0;
  488. border-top: 1px solid #E1E1E1;
  489. }
  490. /* Clearing
  491. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  492. /* Self Clearing Goodness */
  493. .container:after,
  494. .row:after,
  495. .u-cf {
  496. content: "";
  497. display: table;
  498. clear: both;
  499. }
  500. /* Media Queries
  501. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  502. /*
  503. Note: The best way to structure the use of media queries is to create the queries
  504. near the relevant code. For example, if you wanted to change the styles for buttons
  505. on small devices, paste the mobile query code up in the buttons section and style it
  506. there.
  507. */
  508. /* Larger than mobile */
  509. @media (min-width: 400px) {}
  510. /* Larger than phablet (also point when grid becomes active) */
  511. @media (min-width: 550px) {}
  512. /* Larger than tablet */
  513. @media (min-width: 750px) {}
  514. /* Larger than desktop */
  515. @media (min-width: 1000px) {}
  516. /* Larger than Desktop HD */
  517. @media (min-width: 1200px) {}