docs.css 8.04 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

8

Jacob Thornton's avatar
Jacob Thornton committed
9
10
11
12
/* Body and structure
-------------------------------------------------- */
body {
  position: relative;
13
  padding-top: 90px;
14
  background-color: #fff;
15
16
  background-image: url(../img/grid-18px-masked.png);
  background-repeat: repeat-x;
Jacob Thornton's avatar
Jacob Thornton committed
17
}
18

19

20
/* Tweak navbar brand link to be super sleek
21
-------------------------------------------------- */
22
body > .navbar-fixed .brand {
23
24
  padding-right: 0;
  padding-left: 0;
25
26
27
  float: right;
  font-weight: bold;
  color: #000;
28
  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
29
}
30
body > .navbar-fixed .brand:hover {
31
32
  text-decoration: none;
}
33

34

35
36
37
38
39
40
/* Space out sub-sections more
-------------------------------------------------- */
.page-header {
  margin-top: 36px;
}

41

42
43
44
/* Jumbotrons
-------------------------------------------------- */
.jumbotron {
45
46
  position: relative;
  text-shadow: 0 1px 0 #fff;
47
}
48
.jumbotron h1 {
49
  margin-right: 40%;
50
  margin-bottom: 9px;
51
  font-size: 90px;
52
  letter-spacing: -1px;
53
  line-height: 1;
Jacob Thornton's avatar
Jacob Thornton committed
54
}
55
.jumbotron p {
56
57
58
  margin-right: 32%;
  margin-bottom: 20px;
  font-size: 25px;
59
  font-weight: 300;
60
  line-height: 36px;
61
}
Mark Otto's avatar
Mark Otto committed
62
.jumbotron .btn-large {
63
  font-size: 20px;
64
  padding: 14px 24px;
65
  margin-right: 5px;
66
67
68
69
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
70
71
72
73
.jumbotron .download-info {
  font-size: 16px;
  color: #999;
}
74
75

/* Benefits list in masthead */
76
77
78
79
.benefits {
  width: 250px;
  position: absolute;
  right: 0;
80
  bottom: 0;
81
82
83
84
85
86
87
88
}
.benefits ul {
  list-style: none;
  margin: 0;
}
.benefits li {
  font-size: 16px;
  font-weight: 300;
89
  line-height: 35px;
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
  color: #555;
}
.benefits li + li {
  border-top: 1px solid #f5f5f5;
}
.benefits h4 {
  color: #555;
}
.benefits span {
  position: relative;
  top: -2px;
  padding-right: 5px;
  color: #999;
}

105
106
107
108
/* Specific jumbotrons
------------------------- */
/* supporting docs pages */
.subhead {
109
  padding-bottom: 14px;
110
  margin-bottom: 45px;
111
  border-bottom: 3px solid #e5e5e5;
112
113
114
}
.subhead h1,
.subhead p {
115
  margin-right: 0;
116
117
}
.subhead h1 {
118
  font-size: 45px;
119
120
121
}


122
123
124
125
/* Quick links
-------------------------------------------------- */
.quick-links {
  padding: 5px 20px;
126
  margin: 45px 0;
127
128
129
  list-style: none;
  text-align: center;
  background-color: #eee;
130
131
132
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
133
134
135
  -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
     -moz-box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
          box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
136
137
138
139
140
141
142
143
144
145
146
147
148
}
.quick-links li {
  display: inline;
  margin: 0 5px;
  line-height: 30px;
}
.quick-links .divider {
  color: #999;
}
.quick-links strong {
  font-weight: normal;
  color: #999;
}
Mark Otto's avatar
Mark Otto committed
149
.quick-links .github-btn,
150
151
152
153
154
155
156
.quick-links .tweet-btn,
.quick-links .follow-btn {
  position: relative;
  top: 5px;
}


157
158
159
160
161
162
/* Marketing section of Overview
-------------------------------------------------- */
.marketing .row {
  margin-bottom: 18px;
}
.marketing h1 {
163
164
165
166
  margin: 36px 0 27px;
  font-size: 36px;
  font-weight: 300;
  text-align: center;
167
168
169
170
171
172
173
174
175
176
177
}
.marketing h2,
.marketing h3 {
  font-weight: 300;
}
.marketing h2 {
  margin-bottom: 9px;
}
.marketing p {
  margin-right: 10px;
}
178
.marketing .icon {
179
180
  float: left;
  margin: 7px 10px 0 0;
181
  opacity: .8;
182
}
183
184
185
186
.marketing .small-icon {
  float: left;
  margin: 4px 5px 0 0;
}
187
188


189
190
191
/* Footer
-------------------------------------------------- */
.footer {
192
193
  margin-top: 45px;
  padding: 35px 0 36px;
194
  border-top: 1px solid #e5e5e5;
195
}
196
.footer p {
197
  margin-bottom: 0;
198
199
200
  color: #555;
}

201

Jacob Thornton's avatar
Jacob Thornton committed
202
203
204
/* Special grid styles
-------------------------------------------------- */
.show-grid {
205
  margin-top: 10px;
206
  margin-bottom: 20px;
Jacob Thornton's avatar
Jacob Thornton committed
207
}
208
.show-grid [class*="span"] {
209
  background-color: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
210
  text-align: center;
211
212
213
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
214
  min-height: 30px;
Jacob Thornton's avatar
Jacob Thornton committed
215
216
  line-height: 30px;
}
217
.show-grid:hover [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
218
  background: #ddd;
219
220
221
222
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
223
}
224
225
226
.show-grid .show-grid [class*="span"] {
  background-color: #ccc;
}
227
228


Jacob Thornton's avatar
Jacob Thornton committed
229
230
/* Render mini layout previews
-------------------------------------------------- */
231
.mini-layout {
232
  border: 1px solid #ddd;
233
234
235
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
236
237
238
  -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
239
}
240
.mini-layout {
241
  height: 240px;
242
243
244
245
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
246
247
248
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
249
}
250
.mini-layout .mini-layout-body {
251
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
252
  margin: 0 auto;
253
  width: 70%;
254
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
255
}
256
257
258
.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
259
260
  float: left;
}
261
.mini-layout.fluid .mini-layout-sidebar {
262
  background-color: #bbd8e9;
263
  width: 20%;
264
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
265
}
266
.mini-layout.fluid .mini-layout-body {
267
  width: 60%;
Jacob Thornton's avatar
Jacob Thornton committed
268
269
  margin-left: 10px;
}
270
271


Mark Otto's avatar
Mark Otto committed
272
273
/* Popover docs
-------------------------------------------------- */
274
.popover-well {
Mark Otto's avatar
Mark Otto committed
275
276
  min-height: 160px;
}
277
.popover-well .popover {
Mark Otto's avatar
Mark Otto committed
278
279
  display: block;
}
280
.popover-well .popover-wrapper {
Mark Otto's avatar
Mark Otto committed
281
282
283
  width: 50%;
  height: 160px;
  float: left;
Jacob Thornton's avatar
Jacob Thornton committed
284
  margin-left: 55px;
285
  position: relative;
Mark Otto's avatar
Mark Otto committed
286
}
287
.popover-well .popover-menu-wrapper {
Mark Otto's avatar
Mark Otto committed
288
  height: 80px;
Jacob Thornton's avatar
Jacob Thornton committed
289
290
291
}
img.large-bird {
  margin: 5px 0 0 310px;
292
  opacity: .1;
Jacob Thornton's avatar
Jacob Thornton committed
293
294
}

295

296
/* Misc
Jacob Thornton's avatar
Jacob Thornton committed
297
-------------------------------------------------- */
298

299
pre.prettyprint {
Jacob Thornton's avatar
Jacob Thornton committed
300
  overflow: hidden;
301
302
303
304
305
}

.well form {
  margin-bottom: 0;
}
306

307
308
309
310
.browser-support {
  max-width: 100%;
}

311
312
/* Make tables spaced out a bit more */
h2 + table {
313
  margin-top: 5px;
314
315
}

316
317
318
319
320
/* Example sites showcase */
.example-sites img {
  width: 290px;
}

321
322
323
324
325
326
.scrollspy-example {
  height: 200px;
  overflow: auto;
  position: relative;
}

327

328
329
/* Responsive Docs
-------------------------------------------------- */
330
@media (max-width: 480px) {
331

332
333
334
335
336
  /* Reduce padding above jumbotron */
  body {
    padding-top: 70px;
  }

337
338
339
340
  /* Change up some type stuff */
  h1 small {
    display: block;
    line-height: 20px;
341
  }
342
343
344
345
346
347
348
  /* More space between sections */
  h2 {
    margin-top: 27px;
  }
  h3 {
    margin-top: 18px;
  }
349

350
351
352
  /* Adjust the jumbotron */
  .jumbotron h1,
  .jumbotron p {
353
    text-align: center;
354
355
    margin-right: 0;
  }
356
  .jumbotron h1 {
357
    font-size: 45px;
358
359
360
361
362
363
364
    margin-right: 0;
  }
  .jumbotron p {
    margin-right: 0;
    font-size: 18px;
    line-height: 24px;
  }
365
  .jumbotron .btn {
366
    display: block;
367
368
    font-size: 18px;
    padding: 10px 14px;
369
370
371
372
373
374
    margin: 0 auto 10px;
  }

  /* Don't space out quick links so much */
  .quick-links {
    margin: 40px 0 0;
375
  }
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
  /* hide the bullets on mobile since our horizontal space is limited */
  .quick-links .divider {
    display: none;
  }

  /* center example sites */
  .example-sites {
    margin-left: 0;
  }
  .example-sites a {
    float: none;
    display: block;
    max-width: 300px;
    margin: 0 auto 18px;
  }
391
392
393
394
395
396

  table code {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
  }
397
398
399
400
401
402
403
404
405
406
407
408
}


@media (max-width: 768px) {

  /* Adjust the jumbotron */
  .jumbotron .benefits {
    position: relative;
    width: auto;
    margin: 36px 0;
  }

409
410
411
412
413
414
415
416
  /* Popovers */
  .large-bird {
    display: none;
  }
  .popover-well .popover-wrapper {
    margin-left: 0;
  }

417
418
419
420
421
422
423
424
425
  /* Space out the show-grid examples */
  .show-grid [class*="span"] {
    margin-bottom: 5px;
  }

  /* Unfloat the back to top link in footer */
  .footer .pull-right {
    float: none;
  }
426
427
428
  .footer p {
    margin-bottom: 9px;
  }
429

430
}
431

432

Mark Otto's avatar
Mark Otto committed
433
434
435
436
437
438
439
440
441
@media (min-width: 480px) and (max-width: 768px) {

  /* Scale down the jumbotron content */
  .jumbotron h1 {
    font-size: 54px;
  }

  .jumbotron h1,
  .jumbotron p {
442
    margin-right: 0;
Mark Otto's avatar
Mark Otto committed
443
444
445
446
447
  }

}


448
449
450
451
452
453
454
455
456
457
@media (min-width: 768px) and (max-width: 940px) {

  /* Scale down the jumbotron content */
  .jumbotron h1 {
    font-size: 72px;
  }

  /* Provide enough space on right-hand side for benefits list */
  .jumbotron h1,
  .jumbotron p {
458
    margin-right: 40%;
459
460
  }
}
461