docs.css 8.25 KB
Newer Older
Jacob Thornton's avatar
Jacob Thornton committed
1
2
3
/* Add additional stylesheets below
-------------------------------------------------- */
/*
4
5
  Bootstrap's documentation styles
  Special styles for presenting Bootstrap's documentation and examples
Jacob Thornton's avatar
Jacob Thornton committed
6
*/
7

Jacob Thornton's avatar
Jacob Thornton committed
8
9
10
11
/* Body and structure
-------------------------------------------------- */
body {
  position: relative;
12
13
  padding-top: 40px;
  background-color: #fff;
Jacob Thornton's avatar
Jacob Thornton committed
14
15
}
section {
16
  padding-top: 60px;
Jacob Thornton's avatar
Jacob Thornton committed
17
}
18
19
20
section > .row {
  margin-bottom: 10px;
}
21
22
23
24


/* Jumbotrons
-------------------------------------------------- */
25
26
27
28
29
30
.jumbotron,
.jumbotron .inner {
  -webkit-border-radius: 0 0 6px 6px;
     -moz-border-radius: 0 0 6px 6px;
          border-radius: 0 0 6px 6px;
}
31
.jumbotron {
32
33
34
35
  margin-bottom: 40px;
  -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.25);
     -moz-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.25);
          box-shadow: inset 0 -1px 0 rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.25);
Jacob Thornton's avatar
Jacob Thornton committed
36
}
37
.jumbotron .inner {
38
  background: transparent url(../img/grid-18px.png) top center;
39
40
41
42
43
  padding: 36px 60px;
  -webkit-box-shadow: inset 0 -15px 30px rgba(0,0,0,.1);
     -moz-box-shadow: inset 0 -15px 30px rgba(0,0,0,.1);
          box-shadow: inset 0 -15px 30px rgba(0,0,0,.1);
}
44
45
46
.jumbotron h1,
.jumbotron p {
  margin-bottom: 9px;
47
  color: #fff;
48
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
49
}
50
.jumbotron h1 {
51
52
  font-size: 54px;
  line-height: 1;
53
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
Jacob Thornton's avatar
Jacob Thornton committed
54
}
55
.jumbotron p {
56
  font-weight: 300;
57
  margin-right: 25%;
58
}
59
.jumbotron .lead {
60
  font-size: 20px;
61
  line-height: 27px;
Jacob Thornton's avatar
Jacob Thornton committed
62
}
63
64
65
66
67
68
69
70
71
.jumbotron p a {
  color: #fff;
  font-weight: bold;
}

/* Specific jumbotrons
------------------------- */
/* main docs page */
.masthead {
72
  background-color: #004d9f;
73
  background-repeat: no-repeat;
74
75
76
77
78
79
  background-image: -webkit-gradient(linear, left top, left bottom, from(#048ccd), to(#004d9f));
  background-image: -webkit-linear-gradient(#048ccd, #004d9f);
  background-image: -moz-linear-gradient(#048ccd, #004d9f);
  background-image: -o-linear-gradient(top, #048ccd, #004d9f);
  background-image: -khtml-gradient(linear, left top, left bottom, from(#048ccd), to(#004d9f));
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#048ccd', endColorstr='#004d9f', GradientType=0); /* IE8 and down */
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
}
/* supporting docs pages */
.subhead {
  background-color: #767d80;
  background-repeat: no-repeat;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#565d60), to(#767d80));
  background-image: -webkit-linear-gradient(#565d60, #767d80);
  background-image: -moz-linear-gradient(#565d60, #767d80);
  background-image: -o-linear-gradient(top, #565d60, #767d80);
  background-image: -khtml-gradient(linear, left top, left bottom, from(#565d60), to(#767d80));
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#565d60', endColorstr='#767d80', GradientType=0); /* IE8 and down */
}
.subhead .inner {
  padding: 36px 0 27px;
}
.subhead h1,
.subhead p {
  text-align: left;
}
.subhead h1 {
  font-size: 40px;
}
.subhead p a {
  font-weight: normal;
}


/* Footer
-------------------------------------------------- */
.footer {
  padding: 30px 0;
  border-top: 1px solid #e5e5e5;
112
}
113
114
115
116
.footer p {
  color: #555;
}

117

118
119
/* Quickstart section for getting le code
-------------------------------------------------- */
120
.quickstart {
121
122
123
124
125
126
127
128
129
130
131
  background-color: #f5f5f5;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f5f5f5));
  background-image: -moz-linear-gradient(#f9f9f9, #f5f5f5);
  background-image: -ms-linear-gradient(#f9f9f9, #f5f5f5);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f9f9f9), color-stop(100%, #f5f5f5));
  background-image: -webkit-linear-gradient(#f9f9f9, #f5f5f5);
  background-image: -o-linear-gradient(#f9f9f9, #f5f5f5);
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f5f5f5', GradientType=0)";
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f5f5f5', GradientType=0);
  background-image: linear-gradient(#f9f9f9, #f5f5f5);
132
133
134
  border-top: 1px solid #fff;
  border-bottom: 1px solid #eee;
}
135
136
137
138
.quickstart .container {
  margin-bottom: 0;
}
.quickstart .row {
139
  margin: 0 -20px;
140
  -webkit-box-shadow: 1px 0 0 #f9f9f9;
141
142
     -moz-box-shadow: 1px 0 0 #f9f9f9;
          box-shadow: 1px 0 0 #f9f9f9;
143
}
144
.quickstart [class*="span"] {
145
  width: 285px;
146
  height: 117px;
147
148
149
  margin-left: 0;
  padding: 17px 20px 26px;
  border-left: 1px solid #eee;
150
  -webkit-box-shadow: inset 1px 0 0 #f9f9f9;
151
152
     -moz-box-shadow: inset 1px 0 0 #f9f9f9;
          box-shadow: inset 1px 0 0 #f9f9f9;
153
}
154
.quickstart [class*="span"]:last-child {
155
156
  border-right: 1px solid #eee;
  width: 286px;
157
}
158
159
.quickstart h6,
.quickstart p {
160
161
162
  line-height: 18px;
  text-align: center;
  margin-bottom: 9px;
163
  color: #333;
164
}
Mark Otto's avatar
Mark Otto committed
165
166
167
168
.quickstart .current-version,
.quickstart .current-version a {
  color: #999;
}
169
.quickstart h6 {
170
  color: #999;
171
}
172
.quickstart textarea {
173
174
  display: block;
  width: 275px;
175
  height: auto;
176
  margin: 0 0 9px;
177
  line-height: 21px;
178
179
  white-space: nowrap;
  overflow: hidden;
Mark Otto's avatar
Mark Otto committed
180
}
181

Jacob Thornton's avatar
Jacob Thornton committed
182

Jacob Thornton's avatar
Jacob Thornton committed
183
184
185
/* Special grid styles
-------------------------------------------------- */
.show-grid {
186
187
  margin-top: 10px;
  margin-bottom: 10px;
Jacob Thornton's avatar
Jacob Thornton committed
188
}
189
.show-grid [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
190
  background: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
191
  text-align: center;
192
193
194
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
195
  min-height: 30px;
Jacob Thornton's avatar
Jacob Thornton committed
196
197
  line-height: 30px;
}
198
.show-grid:hover [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
199
  background: #ddd;
200
201
202
203
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
204
}
205
206
207
.show-grid .show-grid [class*="span"] {
  background-color: #ccc;
}
208
209


Jacob Thornton's avatar
Jacob Thornton committed
210
211
/* Render mini layout previews
-------------------------------------------------- */
212
.mini-layout {
213
  border: 1px solid #ddd;
214
215
216
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
217
218
219
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075);
     -moz-box-shadow: 0 1px 2px rgba(0,0,0,.075);
          box-shadow: 0 1px 2px rgba(0,0,0,.075);
Jacob Thornton's avatar
Jacob Thornton committed
220
}
221
.mini-layout {
222
  height: 240px;
223
224
225
226
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
227
228
229
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
230
}
231
.mini-layout .mini-layout-body {
232
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
233
  margin: 0 auto;
234
235
  width: 240px;
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
236
}
237
238
239
.mini-layout.fluid .mini-layout-sidebar,
.mini-layout.fluid .mini-layout-header,
.mini-layout.fluid .mini-layout-body {
Jacob Thornton's avatar
Jacob Thornton committed
240
241
  float: left;
}
242
.mini-layout.fluid .mini-layout-sidebar {
243
  background-color: #bbd8e9;
Jacob Thornton's avatar
Jacob Thornton committed
244
  width: 90px;
245
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
246
}
247
.mini-layout.fluid .mini-layout-body {
248
  width: 300px;
Jacob Thornton's avatar
Jacob Thornton committed
249
250
  margin-left: 10px;
}
251
252


Jacob Thornton's avatar
Jacob Thornton committed
253
254
/* Topbar special styles
-------------------------------------------------- */
255
.topbar-wrapper {
Jacob Thornton's avatar
Jacob Thornton committed
256
257
258
259
  position: relative;
  height: 40px;
  margin: 5px 0 15px;
}
260
.topbar-wrapper .topbar {
Jacob Thornton's avatar
Jacob Thornton committed
261
262
  position: absolute;
  margin: 0 -20px;
263
}
264
.topbar-wrapper .topbar .topbar-inner {
Jacob Thornton's avatar
Jacob Thornton committed
265
266
  padding-left: 20px;
  padding-right: 20px;
267
268
269
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
270
271
}

272
273
/* Topbar in js docs
------------------------- */
274
275
276
#bootstrap-js .topbar-wrapper {
  z-index: 1;
}
277
#bootstrap-js .topbar-wrapper .topbar {
278
279
280
  position: absolute;
  margin: 0 -20px;
}
281
#bootstrap-js .topbar-wrapper .topbar .topbar-inner {
282
283
284
285
286
287
  padding-left: 20px;
  padding-right: 20px;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
288
#bootstrap-js .topbar-wrapper .container {
289
290
291
  width: auto;
}

292

Mark Otto's avatar
Mark Otto committed
293
294
/* Popover docs
-------------------------------------------------- */
295
.popover-well {
Mark Otto's avatar
Mark Otto committed
296
297
  min-height: 160px;
}
298
.popover-well .popover {
Mark Otto's avatar
Mark Otto committed
299
300
  display: block;
}
301
.popover-well .popover-wrapper {
Mark Otto's avatar
Mark Otto committed
302
303
304
  width: 50%;
  height: 160px;
  float: left;
Jacob Thornton's avatar
Jacob Thornton committed
305
  margin-left: 55px;
306
  position: relative;
Mark Otto's avatar
Mark Otto committed
307
}
308
.popover-well .popover-menu-wrapper {
Mark Otto's avatar
Mark Otto committed
309
  height: 80px;
Jacob Thornton's avatar
Jacob Thornton committed
310
311
312
}
img.large-bird {
  margin: 5px 0 0 310px;
313
  opacity: .1;
Jacob Thornton's avatar
Jacob Thornton committed
314
315
}

316

Jacob Thornton's avatar
Jacob Thornton committed
317
318
/* Pretty Print
-------------------------------------------------- */
319
pre.prettyprint {
Jacob Thornton's avatar
Jacob Thornton committed
320
  overflow: hidden;
321
322
323
324
325
326
327
328
}


/* Wells
-------------------------------------------------- */
.well form {
  margin-bottom: 0;
}
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350


/* Responsive Docs
-------------------------------------------------- */

/* Tablet to Medium Desktop
------------------------- */

@media (min-width: 768px) and (max-width: 900px) {

  .footer,
  .jumbotron {
    min-width: 748px;
  }
  .jumbotron .inner h1,
  .jumbotron .inner p {
    margin-left: 40px;
    margin-right: 40px;
  }

}