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