skeleton.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  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. textarea,
  328. select {
  329. height: 38px;
  330. padding: 6px 10px;
  331. /* The 6px vertically centers text on FF, ignored by Webkit */
  332. background-color: #fff;
  333. border: 1px solid #D1D1D1;
  334. border-radius: 4px;
  335. box-shadow: none;
  336. box-sizing: border-box;
  337. }
  338. /* Removes awkward default styles on some inputs for iOS */
  339. input[type="email"],
  340. input[type="number"],
  341. input[type="search"],
  342. input[type="text"],
  343. input[type="tel"],
  344. input[type="url"],
  345. input[type="password"],
  346. textarea {
  347. -webkit-appearance: none;
  348. -moz-appearance: none;
  349. appearance: none;
  350. }
  351. textarea {
  352. min-height: 65px;
  353. padding-top: 6px;
  354. padding-bottom: 6px;
  355. }
  356. input[type="email"]:focus,
  357. input[type="number"]:focus,
  358. input[type="search"]:focus,
  359. input[type="text"]:focus,
  360. input[type="tel"]:focus,
  361. input[type="url"]:focus,
  362. input[type="password"]:focus,
  363. textarea:focus,
  364. select:focus {
  365. border: 1px solid #33C3F0;
  366. outline: 0;
  367. }
  368. label,
  369. legend {
  370. display: block;
  371. margin-bottom: .5rem;
  372. font-weight: 600;
  373. }
  374. fieldset {
  375. padding: 0;
  376. border-width: 0;
  377. }
  378. input[type="checkbox"],
  379. input[type="radio"] {
  380. display: inline;
  381. }
  382. label>.label-body {
  383. display: inline-block;
  384. margin-left: .5rem;
  385. font-weight: normal;
  386. }
  387. /* Lists
  388. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  389. ul {
  390. list-style: circle inside;
  391. }
  392. ol {
  393. list-style: decimal inside;
  394. }
  395. ol,
  396. ul {
  397. padding-left: 0;
  398. margin-top: 0;
  399. }
  400. ul ul,
  401. ul ol,
  402. ol ol,
  403. ol ul {
  404. margin: 1.5rem 0 1.5rem 3rem;
  405. font-size: 90%;
  406. }
  407. li {
  408. margin-bottom: 1rem;
  409. }
  410. /* Code
  411. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  412. code {
  413. padding: .2rem .5rem;
  414. margin: 0 .2rem;
  415. font-size: 90%;
  416. white-space: nowrap;
  417. background: #F1F1F1;
  418. border: 1px solid #E1E1E1;
  419. border-radius: 4px;
  420. }
  421. pre>code {
  422. display: block;
  423. padding: 1rem 1.5rem;
  424. white-space: pre;
  425. }
  426. /* Tables
  427. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  428. th,
  429. td {
  430. padding: 12px 15px;
  431. text-align: left;
  432. border-bottom: 1px solid #E1E1E1;
  433. }
  434. th:first-child,
  435. td:first-child {
  436. padding-left: 0;
  437. }
  438. th:last-child,
  439. td:last-child {
  440. padding-right: 0;
  441. }
  442. /* Spacing
  443. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  444. button,
  445. .button {
  446. margin-bottom: 1rem;
  447. }
  448. input,
  449. textarea,
  450. select,
  451. fieldset {
  452. margin-bottom: 1.5rem;
  453. }
  454. pre,
  455. blockquote,
  456. dl,
  457. figure,
  458. table,
  459. p,
  460. ul,
  461. ol,
  462. form {
  463. margin-bottom: 2.5rem;
  464. }
  465. /* Utilities
  466. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  467. .u-full-width {
  468. width: 100%;
  469. box-sizing: border-box;
  470. }
  471. .u-max-full-width {
  472. max-width: 100%;
  473. box-sizing: border-box;
  474. }
  475. .u-pull-right {
  476. float: right;
  477. }
  478. .u-pull-left {
  479. float: left;
  480. }
  481. /* Misc
  482. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  483. hr {
  484. margin-top: 3rem;
  485. margin-bottom: 3.5rem;
  486. border-width: 0;
  487. border-top: 1px solid #E1E1E1;
  488. }
  489. /* Clearing
  490. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  491. /* Self Clearing Goodness */
  492. .container:after,
  493. .row:after,
  494. .u-cf {
  495. content: "";
  496. display: table;
  497. clear: both;
  498. }
  499. /* Media Queries
  500. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  501. /*
  502. Note: The best way to structure the use of media queries is to create the queries
  503. near the relevant code. For example, if you wanted to change the styles for buttons
  504. on small devices, paste the mobile query code up in the buttons section and style it
  505. there.
  506. */
  507. /* Larger than mobile */
  508. @media (min-width: 400px) {}
  509. /* Larger than phablet (also point when grid becomes active) */
  510. @media (min-width: 550px) {}
  511. /* Larger than tablet */
  512. @media (min-width: 750px) {}
  513. /* Larger than desktop */
  514. @media (min-width: 1000px) {}
  515. /* Larger than Desktop HD */
  516. @media (min-width: 1200px) {}