fix body top spacing on mobile
[bootswatch] / css / bootswatch.css
1 section {
2         margin-top: 60px;
3         padding-top: 100px;
4 }
5
6 /* index */
7
8 .navbar a > i {
9         opacity: 0.5;
10 }
11
12 .navbar a:hover > i {
13         opacity: 1;
14 }
15
16 .tooltip-inner {
17         max-width: 500px;
18 }
19
20 .hero-unit {
21         padding-bottom: 5px;
22         background-color: #F3F3F3;
23         border: 1px solid #ddd;
24         text-align: center;
25 }
26
27 .hero-unit h1,
28 .hero-unit p {
29         margin-bottom: 15px;
30 }
31
32 #social {
33         display: inline-block;
34         margin-top: 45px;
35         text-align: center;
36 }
37
38 #gh-star {
39         margin-right: 10px;
40 }
41
42 .twitter-follow-button {
43         width: 60px !important;
44 }
45
46 .twitter-share-button  {
47         margin-right: 15px;
48 }
49
50 .rss-button {
51         width: 40px;
52         height: 14px;
53         font-size: 11px;
54         line-height: 14px;
55         font-weight: bold;
56         margin: 0 0 10px;
57         padding: 2px 5px 2px 4px;
58 }
59
60 .icon-rss {
61         background: url(../img/rss-icons.png) no-repeat 0 0;
62         opacity: .65;
63         width: 16px;
64 }
65
66 .index h3 {
67         text-align: center;
68         font-size: 20px;
69 }
70
71 #ticker {
72         margin-top: 40px;
73         margin-bottom: 10px;
74         font-size: 14px;
75         line-height: 1.4;
76 }
77
78 .about {
79         margin-top: 40px;
80         margin-bottom: 40px;
81 }
82
83 .about > div {
84         margin-bottom: 20px;
85 }
86
87 .about h3 {
88         margin: 0 0 0 35px;
89         text-align: left;
90 }
91
92 .about img {
93         float: left;
94         margin-top: 5px;
95         opacity: 0.7;
96 }
97
98 #gallery {
99         padding-top: 60px;
100 }
101
102 .thumbnail {
103         margin-bottom: 20px;
104         background-color: rgba(0, 0, 0, 0.05);
105 }
106
107 .thumbnail img {
108         width: 100%;
109         -webkit-border-radius: 7px;
110         -moz-border-radius: 7px;
111         border-radius: 7px;
112 }
113
114 .thumbnail .caption {
115         color: inherit;
116 }
117
118 .thumbnail .caption p {
119         overflow: hidden;
120         text-overflow: ellipsis;
121         white-space: nowrap;
122 }
123
124 .thumbnail h3 {
125         text-align: left;
126         margin-bottom: 0;
127 }
128
129 .thumbnail .btn-toolbar {
130         margin-top: 15px;
131         text-align: right;
132 }
133
134 #more {
135         margin-top: 40px;
136         margin-bottom: 20px;
137         text-align: center;
138 }
139
140 .links {
141         margin-bottom: 20px;
142 }
143
144 .links > a {
145         margin-right: 10px;
146 }
147
148 .bsa {
149         float: right;
150         max-width: 400px;
151         padding: 0;
152 }
153
154 body .one .bsa_it_ad {
155         margin-bottom: -10px;
156         padding: 25px 25px 15px 25px;
157         background: none;
158         border: none;
159         font-family: inherit;
160         color: inherit;
161 }
162
163 body .one .bsa_it_ad .bsa_it_t,
164 body .one .bsa_it_ad .bsa_it_d {
165         color: inherit;
166         font-size: inherit;
167 }
168
169 body .one .bsa_it_p {
170         display: none;
171 }
172
173 #footer {
174         margin-bottom: 20px;
175 }
176
177 #footer .links a {
178         margin-right: 10px;
179 }
180
181 @media (max-width: 480px) {
182
183         .hero-unit {
184                 padding: 20px 20px 0;
185                 margin: 0 0 20px;
186         }
187
188         .hero-unit h1 {
189                 font-size: 36px;
190         }
191
192         .hero-unit iframe {
193                 margin-right: 0 !important;
194         }
195
196         #social {
197                 margin-top: 0px;
198                 margin-bottom: 20px;
199         }
200
201         #social > span {
202                 display: block;
203         }
204
205         #ticker {
206                 margin-top: 0;
207         }
208
209         .about {
210                 margin-top: 0;
211         }
212
213         .about h3 {
214                 margin-top: 20px;
215         }
216
217         .about p {
218                 margin-bottom: 0;
219         }
220
221         .modal {
222                 position: fixed !important;
223                 top: 25% !important;
224         }
225 }
226
227 @media (min-width: 481px) and (max-width: 767px) {
228
229         .hero-unit {
230                 margin-top: 0;
231                 padding: 30px;
232         }
233
234         .about {
235                 margin-top: 0;
236         }
237 }
238
239 @media (max-width: 767px) {
240
241
242         section {
243                 padding-top: 20px;
244         }
245
246         .bsa {
247                 float: none;
248         }
249 }
250
251 @media (max-width: 979px) and (min-width: 768px) {
252
253         .index .navbar {
254                 margin-bottom: 0;
255         }
256
257         .hero-unit {
258                 border-radius: 0;
259         }
260
261         section {
262                 padding-top: 20px;
263         }
264
265         #gallery .btn {
266                 padding: 6px 10px;
267                 font-size: 14px;
268         }
269 }
270
271 @media (min-width: 980px) {
272
273         .index {
274                 padding-top: 40px;
275         }
276
277         .preview {
278                 padding-top: 100px;
279         }
280 }
281
282 /* preview */
283
284 .subhead {
285         padding-bottom: 0;
286         margin-bottom: 9px;
287 }
288
289 .subhead h1 {
290         font-size: 54px;
291 }
292
293 .subhead > div:first-child {
294         min-height: 200px;
295 }
296
297 /* subnav */
298  
299 .subnav {
300         margin-bottom: 60px;
301         width: 100%;
302         height: 36px;
303         background-color: #eeeeee; /* Old browsers */
304         background-repeat: repeat-x; /* Repeat the gradient */
305         background-image: -moz-linear-gradient(top, #f5f5f5 0%, #eeeeee 100%); /* FF3.6+ */
306         background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */
307         background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Chrome 10+,Safari 5.1+ */
308         background-image: -ms-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* IE10+ */
309         background-image: -o-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Opera 11.10+ */
310         filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
311         background-image: linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* W3C */
312         border: 1px solid #e5e5e5;
313         -webkit-border-radius: 4px;
314         -moz-border-radius: 4px;
315         border-radius: 4px;
316 }
317  
318 .subnav .nav {
319         margin-bottom: 0;
320 }
321  
322 .subnav .nav > li > a {
323         margin: 0;
324         padding-top:    11px;
325         padding-bottom: 11px;
326         border-left: 1px solid #f5f5f5;
327         border-right: 1px solid #e5e5e5;
328         -webkit-border-radius: 0;
329         -moz-border-radius: 0;
330         border-radius: 0;
331 }
332  
333 .subnav .nav > .active > a,
334 .subnav .nav > .active > a:hover {
335         padding-left: 13px;
336         color: #777;
337         background-color: #e9e9e9;
338         border-right-color: #ddd;
339         border-left: 0;
340         -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
341         -moz-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
342         box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
343 }
344  
345 .subnav .nav > .active > a .caret,
346 .subnav .nav > .active > a:hover .caret {
347         border-top-color: #777;
348 }
349  
350 .subnav .nav > li:first-child > a,
351 .subnav .nav > li:first-child > a:hover {
352         border-left: 0;
353         padding-left: 12px;
354         -webkit-border-radius: 4px 0 0 4px;
355         -moz-border-radius: 4px 0 0 4px;
356         border-radius: 4px 0 0 4px;
357 }
358  
359 .subnav .nav > li:last-child > a {
360         border-right: 0;
361 }
362  
363 .subnav .dropdown-menu {
364         -webkit-border-radius: 0 0 4px 4px;
365         -moz-border-radius: 0 0 4px 4px;
366         border-radius: 0 0 4px 4px;
367 }
368  
369 @media (max-width: 767px) {
370  
371         .subnav {
372                 position: static;
373                 top: auto;
374                 z-index: auto;
375                 width: auto;
376                 height: auto;
377                 background: #fff; /* whole background property since we use a background-image for gradient */
378                 -webkit-box-shadow: none;
379                 -moz-box-shadow: none;
380                 box-shadow: none;
381         }
382  
383         .subnav .nav > li {
384                 float: none;
385         }
386  
387         .subnav .nav > li > a {
388                 border: 0;
389         }
390  
391         .subnav .nav > li + li > a {
392                 border-top: 1px solid #e5e5e5;
393         }
394  
395         .subnav .nav > li:first-child > a,
396         .subnav .nav > li:first-child > a:hover {
397                 -webkit-border-radius: 4px 4px 0 0;
398                 -moz-border-radius: 4px 4px 0 0;
399                 border-radius: 4px 4px 0 0;
400         }
401 }
402  
403 @media (min-width: 980px) {
404   
405         .subnav-fixed {
406                 position: fixed;
407                 top: 40px;
408                 left: 0;
409                 right: 0;
410                 z-index: 1020; /* 10 less than .navbar-fixed to prevent any overlap */
411                 border-color: #d5d5d5;
412                 border-width: 0 0 1px; /* drop the border on the fixed edges */
413                 -webkit-border-radius: 0;
414                 -moz-border-radius: 0;
415                 border-radius: 0;
416                 -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
417                 -moz-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
418                 box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
419                 filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); /* IE6-9 */
420         }
421   
422         .subnav-fixed .nav {
423                 width: 938px;
424                 margin: 0 auto;
425                 padding: 0 1px;
426         }
427   
428         .subnav .nav > li:first-child > a,
429         .subnav .nav > li:first-child > a:hover {
430                 -webkit-border-radius: 0;
431                 -moz-border-radius: 0;
432                 border-radius: 0;
433         }
434 }
435  
436 @media (min-width: 1210px) {
437  
438         .subnav-fixed .nav {
439                 width: 1168px; /* 2px less to account for left/right borders being removed when in fixed mode */
440         }
441 }