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