30ecb220cb12f5f43bbe684cfdabb0de19b62c8e
[bootswatch] / css / docs.css
1 /* Add additional stylesheets below
2 -------------------------------------------------- */
3 /*
4   Bootstrap's documentation styles
5   Special styles for presenting Bootstrap's documentation and examples
6 */
7
8
9 /* Body and structure
10 -------------------------------------------------- */
11 body {
12   position: relative;
13   padding-top: 80px;
14 /*  background-color: #fff;
15   background-image: url(../img/grid-18px-masked.png);*/
16   background-repeat: repeat-x;
17   background-position: 0 40px;
18 }
19
20 /* Jumbotrons
21 -------------------------------------------------- */
22 .jumbotron {
23   position: relative;
24 }
25 .jumbotron h1 {
26   margin-bottom: 9px;
27   font-size: 81px;
28   font-weight: bold;
29   letter-spacing: -1px;
30   line-height: 1;
31 }
32 .jumbotron p {
33   margin-bottom: 18px;
34   font-weight: 300;
35 }
36 .jumbotron .btn-large {
37   font-size: 20px;
38   font-weight: normal;
39   padding: 14px 24px;
40   margin-right: 10px;
41   -webkit-border-radius: 6px;
42      -moz-border-radius: 6px;
43           border-radius: 6px;
44 }
45 .jumbotron .btn-large small {
46   font-size: 14px;
47 }
48
49
50 /* Specific jumbotrons
51 ------------------------- */
52 /* supporting docs pages */
53 .subhead {
54   padding-bottom: 0;
55   margin-bottom: 9px;
56 }
57 .subhead h1 {
58   font-size: 54px;
59 }
60
61 /* Subnav */
62 .subnav {
63   margin-bottom: 60px;
64   width: 100%;
65   height: 36px;
66   background-color: #eeeeee; /* Old browsers */
67   background-repeat: repeat-x; /* Repeat the gradient */
68   background-image: -moz-linear-gradient(top, #f5f5f5 0%, #eeeeee 100%); /* FF3.6+ */
69   background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */
70   background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Chrome 10+,Safari 5.1+ */
71   background-image: -ms-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* IE10+ */
72   background-image: -o-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Opera 11.10+ */
73   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
74   background-image: linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* W3C */
75   border: 1px solid #e5e5e5;
76   -webkit-border-radius: 4px;
77      -moz-border-radius: 4px;
78           border-radius: 4px;
79 }
80 .subnav .nav {
81   margin-bottom: 0;
82 }
83 .subnav .nav > li > a {
84   margin: 0;
85   padding-top:    11px;
86   padding-bottom: 11px;
87   border-left: 1px solid #f5f5f5;
88   border-right: 1px solid #e5e5e5;
89   -webkit-border-radius: 0;
90      -moz-border-radius: 0;
91           border-radius: 0;
92 }
93 .subnav .nav > .active > a,
94 .subnav .nav > .active > a:hover {
95   padding-left: 13px;
96   color: #777;
97   background-color: #e9e9e9;
98   border-right-color: #ddd;
99   border-left: 0;
100   -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
101      -moz-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
102           box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
103 }
104 .subnav .nav > .active > a .caret,
105 .subnav .nav > .active > a:hover .caret {
106   border-top-color: #777;
107 }
108 .subnav .nav > li:first-child > a,
109 .subnav .nav > li:first-child > a:hover {
110   border-left: 0;
111   padding-left: 12px;
112   -webkit-border-radius: 4px 0 0 4px;
113      -moz-border-radius: 4px 0 0 4px;
114           border-radius: 4px 0 0 4px;
115 }
116 .subnav .nav > li:last-child > a {
117   border-right: 0;
118 }
119 .subnav .dropdown-menu {
120   -webkit-border-radius: 0 0 4px 4px;
121      -moz-border-radius: 0 0 4px 4px;
122           border-radius: 0 0 4px 4px;
123 }
124
125 /* Fixed subnav on scroll, but only for 980px and up (sorry IE!) */
126 @media (min-width: 980px) {
127   .subnav-fixed {
128     position: fixed;
129     top: 40px;
130     left: 0;
131     right: 0;
132     z-index: 1020; /* 10 less than .navbar-fixed to prevent any overlap */
133     border-color: #d5d5d5;
134     border-width: 0 0 1px; /* drop the border on the fixed edges */
135     -webkit-border-radius: 0;
136        -moz-border-radius: 0;
137             border-radius: 0;
138     -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
139        -moz-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
140             box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
141     filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); /* IE6-9 */
142   }
143   .subnav-fixed .nav {
144     width: 938px;
145     margin: 0 auto;
146     padding: 0 1px;
147   }
148   .subnav .nav > li:first-child > a,
149   .subnav .nav > li:first-child > a:hover {
150     -webkit-border-radius: 0;
151        -moz-border-radius: 0;
152             border-radius: 0;
153   }
154 }
155
156 .bsa {
157   float: right;
158   max-width: 400px;
159   padding: 0;
160 }
161
162 body .one .bsa_it_ad {
163   margin-bottom: -10px;
164   background: none;
165   border: none;
166   font-family: inherit;
167   color: inherit;
168 }
169
170 body .one .bsa_it_ad .bsa_it_t,
171 body .one .bsa_it_ad .bsa_it_d {
172   color: inherit;
173   font-size: inherit;
174 }
175
176 body .one .bsa_it_p {
177   display: none;
178 }
179
180 #bsap_aplink {
181   float: right;
182   position: relative;
183   /*top: -25px;*/
184   right: 10px;
185   height: 0;
186   font-size: 11px;
187 }
188
189 @media (max-width: 768px) {
190
191   .bsa {
192     float: none;
193   }
194
195 }
196
197
198 /* Responsive Docs
199 -------------------------------------------------- */
200 @media (max-width: 480px) {
201
202   /* Reduce padding above jumbotron */
203   body {
204     padding-top: 70px;
205   }
206
207   /* Adjust the jumbotron */
208   .jumbotron h1,
209   .jumbotron p {
210     text-align: center;
211     margin-right: 0;
212   }
213   .jumbotron h1 {
214     font-size: 45px;
215     margin-right: 0;
216   }
217   .jumbotron p {
218     margin-right: 0;
219     margin-left: 0;
220     font-size: 18px;
221     line-height: 24px;
222   }
223   .jumbotron .btn {
224     display: block;
225     font-size: 18px;
226     padding: 10px 14px;
227     margin: 0 auto 10px;
228   }
229
230 }
231
232
233 @media (max-width: 768px) {
234
235   /* Remove any padding from the body */
236   body {
237     padding-top: 0;
238   }
239
240   /* Jumbotron buttons */
241   .jumbotron .btn {
242     margin-bottom: 10px;
243   }
244
245   /* Subnav */
246   .subnav {
247     position: static;
248     top: auto;
249     z-index: auto;
250     width: auto;
251     height: auto;
252     background: #fff; /* whole background property since we use a background-image for gradient */
253     -webkit-box-shadow: none;
254        -moz-box-shadow: none;
255             box-shadow: none;
256   }
257   .subnav .nav > li {
258     float: none;
259   }
260   .subnav .nav > li > a {
261     border: 0;
262   }
263   .subnav .nav > li + li > a {
264     border-top: 1px solid #e5e5e5;
265   }
266   .subnav .nav > li:first-child > a,
267   .subnav .nav > li:first-child > a:hover {
268       -webkit-border-radius: 4px 4px 0 0;
269          -moz-border-radius: 4px 4px 0 0;
270               border-radius: 4px 4px 0 0;
271   }
272 }
273
274
275 @media (min-width: 480px) and (max-width: 768px) {
276
277   /* Scale down the jumbotron content */
278   .jumbotron h1 {
279     font-size: 54px;
280   }
281   .jumbotron p {
282     margin-right: 0;
283     margin-left: 0;
284   }
285 }
286
287
288 @media (min-width: 768px) and (max-width: 980px) {
289
290   /* Remove any padding from the body */
291   body {
292     padding-top: 0;
293   }
294
295   /* Scale down the jumbotron content */
296   .jumbotron h1 {
297     font-size: 72px;
298   }
299 }
300
301
302 @media (max-width: 980px) {
303
304   /* Unfloat brand */
305   .navbar-fixed-top .brand {
306     float: left;
307     margin-left: 0;
308     padding-left: 10px;
309     padding-right: 10px;
310   }
311 }
312
313
314 /* LARGE DESKTOP SCREENS */
315 @media (min-width: 1210px) {
316
317   /* Update subnav container */
318   .subnav-fixed .nav {
319     width: 1168px; /* 2px less to account for left/right borders being removed when in fixed mode */
320   }
321 }