39eff933915542f3a7c475107dda148fa96ad8fb
[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 .links {
190   margin-bottom: 20px;
191 }
192
193 .links > a {
194   margin-right: 10px;
195 }
196
197 @media (max-width: 768px) {
198
199   .bsa {
200     float: none;
201   }
202
203 }
204
205
206 /* Responsive Docs
207 -------------------------------------------------- */
208 @media (max-width: 480px) {
209
210   /* Reduce padding above jumbotron */
211   body {
212     padding-top: 70px;
213   }
214
215   /* Adjust the jumbotron */
216   .jumbotron h1,
217   .jumbotron p {
218     text-align: center;
219     margin-right: 0;
220   }
221   .jumbotron h1 {
222     font-size: 45px;
223     margin-right: 0;
224   }
225   .jumbotron p {
226     margin-right: 0;
227     margin-left: 0;
228     font-size: 18px;
229     line-height: 24px;
230   }
231   .jumbotron .btn {
232     display: block;
233     font-size: 18px;
234     padding: 10px 14px;
235     margin: 0 auto 10px;
236   }
237
238 }
239
240
241 @media (max-width: 768px) {
242
243   /* Remove any padding from the body */
244   body {
245     padding-top: 0;
246   }
247
248   /* Jumbotron buttons */
249   .jumbotron .btn {
250     margin-bottom: 10px;
251   }
252
253   /* Subnav */
254   .subnav {
255     position: static;
256     top: auto;
257     z-index: auto;
258     width: auto;
259     height: auto;
260     background: #fff; /* whole background property since we use a background-image for gradient */
261     -webkit-box-shadow: none;
262        -moz-box-shadow: none;
263             box-shadow: none;
264   }
265   .subnav .nav > li {
266     float: none;
267   }
268   .subnav .nav > li > a {
269     border: 0;
270   }
271   .subnav .nav > li + li > a {
272     border-top: 1px solid #e5e5e5;
273   }
274   .subnav .nav > li:first-child > a,
275   .subnav .nav > li:first-child > a:hover {
276       -webkit-border-radius: 4px 4px 0 0;
277          -moz-border-radius: 4px 4px 0 0;
278               border-radius: 4px 4px 0 0;
279   }
280 }
281
282
283 @media (min-width: 480px) and (max-width: 768px) {
284
285   /* Scale down the jumbotron content */
286   .jumbotron h1 {
287     font-size: 54px;
288   }
289   .jumbotron p {
290     margin-right: 0;
291     margin-left: 0;
292   }
293 }
294
295
296 @media (min-width: 768px) and (max-width: 980px) {
297
298   /* Remove any padding from the body */
299   body {
300     padding-top: 0;
301   }
302
303   /* Scale down the jumbotron content */
304   .jumbotron h1 {
305     font-size: 72px;
306   }
307 }
308
309
310 @media (max-width: 980px) {
311
312   /* Unfloat brand */
313   .navbar-fixed-top .brand {
314     float: left;
315     margin-left: 0;
316     padding-left: 10px;
317     padding-right: 10px;
318   }
319 }
320
321
322 /* LARGE DESKTOP SCREENS */
323 @media (min-width: 1210px) {
324
325   /* Update subnav container */
326   .subnav-fixed .nav {
327     width: 1168px; /* 2px less to account for left/right borders being removed when in fixed mode */
328   }
329 }