skeleton.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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. .column,
  35. .columns {
  36. width: 100%;
  37. float: left;
  38. box-sizing: border-box; }
  39. /* For devices larger than 400px */
  40. @media (min-width: 400px) {
  41. .container {
  42. width: 85%;
  43. padding: 0; }
  44. }
  45. /* For devices larger than 550px */
  46. @media (min-width: 550px) {
  47. .container {
  48. width: 80%; }
  49. .column,
  50. .columns {
  51. margin-left: 4%; }
  52. .column:first-child,
  53. .columns:first-child {
  54. margin-left: 0; }
  55. .one.column,
  56. .one.columns { width: 4.66666666667%; }
  57. .two.columns { width: 13.3333333333%; }
  58. .three.columns { width: 22%; }
  59. .four.columns { width: 30.6666666667%; }
  60. .five.columns { width: 39.3333333333%; }
  61. .six.columns { width: 48%; }
  62. .seven.columns { width: 56.6666666667%; }
  63. .eight.columns { width: 65.3333333333%; }
  64. .nine.columns { width: 74.0%; }
  65. .ten.columns { width: 82.6666666667%; }
  66. .eleven.columns { width: 91.3333333333%; }
  67. .twelve.columns { width: 100%; margin-left: 0; }
  68. .one-third.column { width: 30.6666666667%; }
  69. .two-thirds.column { width: 65.3333333333%; }
  70. .one-half.column { width: 48%; }
  71. /* Offsets */
  72. .offset-by-one.column,
  73. .offset-by-one.columns { margin-left: 8.66666666667%; }
  74. .offset-by-two.column,
  75. .offset-by-two.columns { margin-left: 17.3333333333%; }
  76. .offset-by-three.column,
  77. .offset-by-three.columns { margin-left: 26%; }
  78. .offset-by-four.column,
  79. .offset-by-four.columns { margin-left: 34.6666666667%; }
  80. .offset-by-five.column,
  81. .offset-by-five.columns { margin-left: 43.3333333333%; }
  82. .offset-by-six.column,
  83. .offset-by-six.columns { margin-left: 52%; }
  84. .offset-by-seven.column,
  85. .offset-by-seven.columns { margin-left: 60.6666666667%; }
  86. .offset-by-eight.column,
  87. .offset-by-eight.columns { margin-left: 69.3333333333%; }
  88. .offset-by-nine.column,
  89. .offset-by-nine.columns { margin-left: 78.0%; }
  90. .offset-by-ten.column,
  91. .offset-by-ten.columns { margin-left: 86.6666666667%; }
  92. .offset-by-eleven.column,
  93. .offset-by-eleven.columns { margin-left: 95.3333333333%; }
  94. .offset-by-one-third.column,
  95. .offset-by-one-third.columns { margin-left: 34.6666666667%; }
  96. .offset-by-two-thirds.column,
  97. .offset-by-two-thirds.columns { margin-left: 69.3333333333%; }
  98. .offset-by-one-half.column,
  99. .offset-by-one-half.columns { margin-left: 52%; }
  100. }
  101. .chn-name{
  102. font-size: 3rem;
  103. }
  104. /* Base Styles
  105. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  106. /* NOTE
  107. html is set to 62.5% so that all the REM measurements throughout Skeleton
  108. are based on 10px sizing. So basically 1.5rem = 15px :) */
  109. html {
  110. font-size: 62.5%; }
  111. body {
  112. font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
  113. line-height: 1.6;
  114. font-weight: 400;
  115. font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  116. color: #222; }
  117. /* Typography
  118. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  119. h1, h2, h3, h4, h5, h6 {
  120. margin-top: 2rem;
  121. margin-bottom: 2rem;
  122. font-weight: 300; }
  123. h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;}
  124. h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
  125. h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; }
  126. h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
  127. h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; }
  128. h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }
  129. /* Larger than phablet */
  130. @media (min-width: 550px) {
  131. h1 {
  132. margin-top:0;
  133. font-size: 4.0rem;
  134. }
  135. h2 { font-size: 3.8rem; }
  136. h3 { font-size: 3.4rem; }
  137. h4 { font-size: 3.0rem; }
  138. h5 { font-size: 2.4rem; }
  139. h6 { font-size: 1.5rem; }
  140. }
  141. p {
  142. margin-top: 0; }
  143. /* Links
  144. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  145. a {
  146. color: #1EAEDB; }
  147. a:hover {
  148. color: #0FA0CE; }
  149. /* Buttons
  150. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  151. .button,
  152. button,
  153. input[type="submit"],
  154. input[type="reset"],
  155. input[type="button"] {
  156. display: inline-block;
  157. height: 38px;
  158. padding: 0 30px;
  159. color: #555;
  160. text-align: center;
  161. font-size: 11px;
  162. font-weight: 600;
  163. line-height: 38px;
  164. letter-spacing: .1rem;
  165. text-transform: uppercase;
  166. text-decoration: none;
  167. white-space: nowrap;
  168. background-color: transparent;
  169. border-radius: 4px;
  170. border: 1px solid #bbb;
  171. cursor: pointer;
  172. box-sizing: border-box; }
  173. .button:hover,
  174. button:hover,
  175. input[type="submit"]:hover,
  176. input[type="reset"]:hover,
  177. input[type="button"]:hover,
  178. .button:focus,
  179. button:focus,
  180. input[type="submit"]:focus,
  181. input[type="reset"]:focus,
  182. input[type="button"]:focus {
  183. color: #333;
  184. border-color: #888;
  185. outline: 0; }
  186. .button.button-primary,
  187. button.button-primary,
  188. input[type="submit"].button-primary,
  189. input[type="reset"].button-primary,
  190. input[type="button"].button-primary {
  191. color: #FFF;
  192. background-color: #33C3F0;
  193. border-color: #33C3F0; }
  194. .button.button-primary:hover,
  195. button.button-primary:hover,
  196. input[type="submit"].button-primary:hover,
  197. input[type="reset"].button-primary:hover,
  198. input[type="button"].button-primary:hover,
  199. .button.button-primary:focus,
  200. button.button-primary:focus,
  201. input[type="submit"].button-primary:focus,
  202. input[type="reset"].button-primary:focus,
  203. input[type="button"].button-primary:focus {
  204. color: #FFF;
  205. background-color: #1EAEDB;
  206. border-color: #1EAEDB; }
  207. /* Forms
  208. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  209. input[type="email"],
  210. input[type="number"],
  211. input[type="search"],
  212. input[type="text"],
  213. input[type="tel"],
  214. input[type="url"],
  215. input[type="password"],
  216. textarea,
  217. select {
  218. height: 38px;
  219. padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
  220. background-color: #fff;
  221. border: 1px solid #D1D1D1;
  222. border-radius: 4px;
  223. box-shadow: none;
  224. box-sizing: border-box; }
  225. /* Removes awkward default styles on some inputs for iOS */
  226. input[type="email"],
  227. input[type="number"],
  228. input[type="search"],
  229. input[type="text"],
  230. input[type="tel"],
  231. input[type="url"],
  232. input[type="password"],
  233. textarea {
  234. -webkit-appearance: none;
  235. -moz-appearance: none;
  236. appearance: none; }
  237. textarea {
  238. min-height: 65px;
  239. padding-top: 6px;
  240. padding-bottom: 6px; }
  241. input[type="email"]:focus,
  242. input[type="number"]:focus,
  243. input[type="search"]:focus,
  244. input[type="text"]:focus,
  245. input[type="tel"]:focus,
  246. input[type="url"]:focus,
  247. input[type="password"]:focus,
  248. textarea:focus,
  249. select:focus {
  250. border: 1px solid #33C3F0;
  251. outline: 0; }
  252. label,
  253. legend {
  254. display: block;
  255. margin-bottom: .5rem;
  256. font-weight: 600; }
  257. fieldset {
  258. padding: 0;
  259. border-width: 0; }
  260. input[type="checkbox"],
  261. input[type="radio"] {
  262. display: inline; }
  263. label > .label-body {
  264. display: inline-block;
  265. margin-left: .5rem;
  266. font-weight: normal; }
  267. /* Lists
  268. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  269. ul {
  270. list-style: circle inside; }
  271. ol {
  272. list-style: decimal inside; }
  273. ol, ul {
  274. padding-left: 0;
  275. margin-top: 0; }
  276. ul ul,
  277. ul ol,
  278. ol ol,
  279. ol ul {
  280. margin: 1.5rem 0 1.5rem 3rem;
  281. font-size: 90%; }
  282. li {
  283. margin-bottom: 1rem; }
  284. /* Code
  285. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  286. code {
  287. padding: .2rem .5rem;
  288. margin: 0 .2rem;
  289. font-size: 90%;
  290. white-space: nowrap;
  291. background: #F1F1F1;
  292. border: 1px solid #E1E1E1;
  293. border-radius: 4px; }
  294. pre > code {
  295. display: block;
  296. padding: 1rem 1.5rem;
  297. white-space: pre; }
  298. /* Tables
  299. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  300. th,
  301. td {
  302. padding: 12px 15px;
  303. text-align: left;
  304. border-bottom: 1px solid #E1E1E1; }
  305. th:first-child,
  306. td:first-child {
  307. padding-left: 0; }
  308. th:last-child,
  309. td:last-child {
  310. padding-right: 0; }
  311. /* Spacing
  312. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  313. button,
  314. .button {
  315. margin-bottom: 1rem; }
  316. input,
  317. textarea,
  318. select,
  319. fieldset {
  320. margin-bottom: 1.5rem; }
  321. pre,
  322. blockquote,
  323. dl,
  324. figure,
  325. table,
  326. p,
  327. ul,
  328. ol,
  329. form {
  330. margin-bottom: 2.5rem; }
  331. /* Utilities
  332. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  333. .u-full-width {
  334. width: 100%;
  335. box-sizing: border-box; }
  336. .u-max-full-width {
  337. max-width: 100%;
  338. box-sizing: border-box; }
  339. .u-pull-right {
  340. float: right; }
  341. .u-pull-left {
  342. float: left; }
  343. /* Misc
  344. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  345. hr {
  346. margin-top: 3rem;
  347. margin-bottom: 3.5rem;
  348. border-width: 0;
  349. border-top: 1px solid #E1E1E1; }
  350. /* Clearing
  351. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  352. /* Self Clearing Goodness */
  353. .container:after,
  354. .row:after,
  355. .u-cf {
  356. content: "";
  357. display: table;
  358. clear: both; }
  359. /* Media Queries
  360. –––––––––––––––––––––––––––––––––––––––––––––––––– */
  361. /*
  362. Note: The best way to structure the use of media queries is to create the queries
  363. near the relevant code. For example, if you wanted to change the styles for buttons
  364. on small devices, paste the mobile query code up in the buttons section and style it
  365. there.
  366. */
  367. /* Larger than mobile */
  368. @media (min-width: 400px) {}
  369. /* Larger than phablet (also point when grid becomes active) */
  370. @media (min-width: 550px) {}
  371. /* Larger than tablet */
  372. @media (min-width: 750px) {}
  373. /* Larger than desktop */
  374. @media (min-width: 1000px) {}
  375. /* Larger than Desktop HD */
  376. @media (min-width: 1200px) {}