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

Mark Otto's avatar
Mark Otto committed
9

Jacob Thornton's avatar
Jacob Thornton committed
10
11
/* Body and structure
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
12

Jacob Thornton's avatar
Jacob Thornton committed
13
14
body {
  position: relative;
15
  padding-top: 44px;
Jacob Thornton's avatar
Jacob Thornton committed
16
}
17

18
19
20
21
22
23
/* Code in headings */
h3 code {
  font-size: 14px;
  font-weight: normal;
}

Mark Otto's avatar
Mark Otto committed
24

Mark Otto's avatar
Mark Otto committed
25

Mark Otto's avatar
Mark Otto committed
26
27
28
/* Tweak navbar brand link to be super sleek
-------------------------------------------------- */

Mark Otto's avatar
Mark Otto committed
29
/* Change the docs' brand */
30
body > .navbar .brand {
Mark Otto's avatar
Mark Otto committed
31
32
33
34
35
36
37
38
39
40
41
  padding-right: 0;
  padding-left: 0;
  margin-left: 20px;
  float: right;
  font-weight: bold;
  color: #000;
  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
  -webkit-transition: all .2s linear;
     -moz-transition: all .2s linear;
          transition: all .2s linear;
}
42
body > .navbar .brand:hover {
Mark Otto's avatar
Mark Otto committed
43
  text-decoration: none;
44
  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
Mark Otto's avatar
Mark Otto committed
45
46
47
}


48
/* Sections
49
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
50

51
/* padding for in-page bookmarks and fixed navbar */
52
section {
53
  padding-top: 30px;
54
}
55
56
57
58
section > .page-header,
section > .lead {
  color: #5a5a5a;
}
59
60
61
section > ul li {
  margin-bottom: 5px;
}
62

Mark Otto's avatar
Mark Otto committed
63
64
65
66
67
/* Separators (hr) */
.bs-docs-separator {
  margin: 40px 0 39px;
}

68
69
70
/* Faded out hr */
hr.soften {
  height: 1px;
71
  margin: 70px 0;
72
73
74
75
  background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
76
77
78
  border: 0;
}

79

Mark Otto's avatar
Mark Otto committed
80

81
82
/* Jumbotrons
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
83
84
85

/* Base class
------------------------- */
86
.jumbotron {
87
  position: relative;
88
89
  padding: 40px 0;
  color: #fff;
Mark Otto's avatar
Mark Otto committed
90
  text-align: center;
91
  text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.075);
92
93
94
95
96
97
98
99
  background: #020031; /* Old browsers */
  background: -moz-linear-gradient(45deg,  #020031 0%, #6d3353 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#020031), color-stop(100%,#6d3353)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(45deg,  #020031 0%,#6d3353 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(45deg,  #020031 0%,#6d3353 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(45deg,  #020031 0%,#6d3353 100%); /* IE10+ */
  background: linear-gradient(45deg,  #020031 0%,#6d3353 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#020031', endColorstr='#6d3353',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
100
101
102
  -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
     -moz-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
          box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
103
}
104
.jumbotron h1 {
Mark Otto's avatar
Mark Otto committed
105
  font-size: 80px;
106
  font-weight: bold;
107
  letter-spacing: -1px;
108
  line-height: 1;
Jacob Thornton's avatar
Jacob Thornton committed
109
}
110
.jumbotron p {
111
  font-size: 24px;
112
  font-weight: 300;
113
  line-height: 1.25;
114
  margin-bottom: 30px;
115
}
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131

/* Link styles (used on .masthead-links as well) */
.jumbotron a {
  color: #fff;
  color: rgba(255,255,255,.5);
  -webkit-transition: all .2s ease-in-out;
     -moz-transition: all .2s ease-in-out;
          transition: all .2s ease-in-out;
}
.jumbotron a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.25);
}

/* Download button */
.masthead .btn {
132
  padding: 19px 24px;
133
134
135
136
  font-size: 24px;
  font-weight: 200;
  color: #fff; /* redeclare to override the `.jumbotron a` */
  border: 0;
137
138
139
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
     -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
Mark Otto's avatar
Mark Otto committed
140
141
142
  -webkit-transition: none;
     -moz-transition: none;
          transition: none;
143
144
145
146
147
}
.masthead .btn:hover {
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
     -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
148
}
149
150
151
152
.masthead .btn:active {
  -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
     -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
          box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
153
}
154

155

Mark Otto's avatar
Mark Otto committed
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/* Pattern overlay
------------------------- */
.jumbotron .container {
  position: relative;
  z-index: 2;
}
.jumbotron:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
Mark Otto's avatar
Mark Otto committed
170
  background: url(../img/bs-docs-masthead-pattern.png) repeat center center;
Mark Otto's avatar
Mark Otto committed
171
  opacity: .4;
Mark Otto's avatar
Mark Otto committed
172
}
173
174
175
176
177
178
179
180
181
182
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1) {

  .jumbotron:after {
    background-size: 150px 150px;
  }

}
Mark Otto's avatar
Mark Otto committed
183

Mark Otto's avatar
Mark Otto committed
184
185
/* Masthead (docs home)
------------------------- */
186
.masthead {
187
  padding: 70px 0 80px;
188
189
190
191
192
193
194
  margin-bottom: 0;
  color: #fff;
}
.masthead h1 {
  font-size: 120px;
  line-height: 1;
  letter-spacing: -2px;
195
196
}
.masthead p {
197
198
199
  font-size: 40px;
  font-weight: 200;
  line-height: 1.25;
Mark Otto's avatar
Mark Otto committed
200
201
}

202
203
/* Textual links in masthead */
.masthead-links {
Mark Otto's avatar
Mark Otto committed
204
205
206
  margin: 0;
  list-style: none;
}
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
.masthead-links li {
  display: inline;
  padding: 0 10px;
  color: rgba(255,255,255,.25);
}

/* Social proof buttons from GitHub & Twitter */
.bs-docs-social {
  padding: 15px 0;
  text-align: center;
  background-color: #f5f5f5;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #ddd;
}

/* Quick links on Home */
.bs-docs-social-buttons {
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
Mark Otto's avatar
Mark Otto committed
228
}
229
.bs-docs-social-buttons li {
Mark Otto's avatar
Mark Otto committed
230
  display: inline-block;
231
  padding: 5px 8px;
Mark Otto's avatar
Mark Otto committed
232
  line-height: 1;
Mark Otto's avatar
Mark Otto committed
233
234
  *display: inline;
  *zoom: 1;
235
236
}

237
238
239
240
/* Subhead (other pages)
------------------------- */
.subhead {
  text-align: left;
241
  border-bottom: 1px solid #ddd;
242
243
244
245
}
.subhead h1 {
  font-size: 60px;
}
246
.subhead p {
247
  margin-bottom: 20px;
248
}
249
250
251
.subhead .navbar {
  display: none;
}
252

253

Mark Otto's avatar
Mark Otto committed
254

255
256
/* Marketing section of Overview
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
257

258
259
.marketing {
  text-align: center;
260
  color: #5a5a5a;
261
262
}
.marketing h1 {
263
264
  margin: 60px 0 10px;
  font-size: 60px;
265
  font-weight: 200;
266
267
  line-height: 1;
  letter-spacing: -1px;
268
}
Mark Otto's avatar
Mark Otto committed
269
.marketing h2 {
270
271
272
  font-weight: 200;
  margin-bottom: 5px;
}
273
.marketing p {
274
275
  font-size: 16px;
  line-height: 1.5;
276
}
277
.marketing .marketing-byline {
278
  margin-bottom: 40px;
279
  font-size: 20px;
280
  font-weight: 300;
281
  line-height: 1.25;
282
  color: #999;
283
}
Mark Otto's avatar
Mark Otto committed
284
.marketing-img {
285
  display: block;
286
  margin: 0 auto 30px;
Mark Otto's avatar
Mark Otto committed
287
  max-height: 145px;
288
}
289

290

Mark Otto's avatar
Mark Otto committed
291

292
293
/* Footer
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
294

295
.footer {
Mark Otto's avatar
Mark Otto committed
296
297
  text-align: center;
  padding: 30px 0;
298
  margin-top: 70px;
299
  border-top: 1px solid #e5e5e5;
Mark Otto's avatar
Mark Otto committed
300
  background-color: #f5f5f5;
301
}
302
.footer p {
303
  margin-bottom: 0;
304
  color: #777;
305
}
306
307
308
309
310
.footer-links {
  margin: 10px 0;
}
.footer-links li {
  display: inline;
311
312
313
314
  padding: 0 2px;
}
.footer-links li:first-child {
  padding-left: 0;
315
}
316

317

318

Jacob Thornton's avatar
Jacob Thornton committed
319
320
/* Special grid styles
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
321

Jacob Thornton's avatar
Jacob Thornton committed
322
.show-grid {
323
  margin-top: 10px;
324
  margin-bottom: 20px;
Jacob Thornton's avatar
Jacob Thornton committed
325
}
326
.show-grid [class*="span"] {
327
  background-color: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
328
  text-align: center;
329
  border-radius: 3px;
Mark Otto's avatar
Mark Otto committed
330
331
  min-height: 40px;
  line-height: 40px;
Jacob Thornton's avatar
Jacob Thornton committed
332
}
333
334
335
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
336
}
337
.show-grid .show-grid [class*="span"] {
Mark Otto's avatar
Mark Otto committed
338
339
340
  margin-top: 5px;
}
.show-grid [class*="span"] [class*="span"] {
341
342
  background-color: #ccc;
}
Mark Otto's avatar
Mark Otto committed
343
344
345
.show-grid [class*="span"] [class*="span"] [class*="span"] {
  background-color: #999;
}
346

Mark Otto's avatar
Mark Otto committed
347
348
349
350
351
352
353
354
355
.show-grid [class*="span"]:nth-child(even) {
  background-color: #ddd;
}

.show-grid [class*="span"]:hover {
  background-color: #333;
  color: #fff;
  cursor: pointer;
}
356

Mark Otto's avatar
Mark Otto committed
357
358

/* Mini layout previews
Jacob Thornton's avatar
Jacob Thornton committed
359
-------------------------------------------------- */
360
.mini-layout {
361
  border: 1px solid #ddd;
362
363
364
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
365
366
367
  -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
368
}
Mark Otto's avatar
Mark Otto committed
369
370
371
372
373
.mini-layout,
.mini-layout .mini-layout-body,
.mini-layout.fluid .mini-layout-sidebar {
  height: 300px;
}
374
375
376
377
378
.mini-layout {
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
379
380
381
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
382
}
383
.mini-layout .mini-layout-body {
384
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
385
  margin: 0 auto;
386
  width: 70%;
Jacob Thornton's avatar
Jacob Thornton committed
387
}
388
389
390
.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
391
392
  float: left;
}
393
.mini-layout.fluid .mini-layout-sidebar {
394
  background-color: #bbd8e9;
395
  width: 20%;
Jacob Thornton's avatar
Jacob Thornton committed
396
}
397
.mini-layout.fluid .mini-layout-body {
Mark Otto's avatar
Mark Otto committed
398
399
  width: 77.5%;
  margin-left: 2.5%;
Jacob Thornton's avatar
Jacob Thornton committed
400
}
401
402


403

404
/* Download page
405
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
406

407
408
.download .page-header {
  margin-top: 36px;
409
}
410
.page-header .toggle-all {
411
  margin-top: 5px;
412
413
414
}

/* Space out h3s when following a section */
415
416
417
418
419
.download h3 {
  margin-bottom: 5px;
}
.download-builder input + h3,
.download-builder .checkbox + h3 {
420
421
422
423
  margin-top: 9px;
}

/* Fields for variables */
424
.download-builder input[type=text] {
425
426
427
428
429
  margin-bottom: 9px;
  font-family: Menlo, Monaco, "Courier New", monospace;
  font-size: 12px;
  color: #d14;
}
430
.download-builder input[type=text]:focus {
431
432
433
  background-color: #fff;
}

434
435
436
/* Custom, larger checkbox labels */
.download .checkbox {
  padding: 6px 10px 6px 25px;
437
438
  font-size: 13px;
  line-height: 18px;
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
  color: #555;
  background-color: #f9f9f9;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
  cursor: pointer;
}
.download .checkbox:hover {
  color: #333;
  background-color: #f5f5f5;
}
.download .checkbox small {
  font-size: 12px;
  color: #777;
}
454

455
456
457
458
459
/* Variables section */
#variables label {
  margin-bottom: 0;
}

460
461
/* Giant download button */
.download-btn {
462
  margin: 36px 0 108px;
463
}
464
465
#download p,
#download h4 {
466
  max-width: 50%;
467
  margin: 0 auto;
468
  color: #999;
469
  text-align: center;
470
}
471
#download h4 {
472
  margin-bottom: 0;
473
}
474
#download p {
475
476
  margin-bottom: 18px;
}
477
.download-btn .btn {
478
479
480
481
  display: block;
  width: auto;
  padding: 19px 24px;
  margin-bottom: 27px;
482
  font-size: 30px;
Mark Otto's avatar
Mark Otto committed
483
  line-height: 1;
484
485
486
487
  text-align: center;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
488
489
490
491
}



492
/* Misc
Jacob Thornton's avatar
Jacob Thornton committed
493
-------------------------------------------------- */
494

495
/* Make tables spaced out a bit more */
496
h2 + table,
497
498
h3 + table,
h4 + table,
499
h2 + .row {
500
  margin-top: 5px;
501
502
}

503
/* Example sites showcase */
Mark Otto's avatar
Mark Otto committed
504
.example-sites {
505
  xmargin-left: 20px;
Mark Otto's avatar
Mark Otto committed
506
}
507
.example-sites img {
Mark Otto's avatar
Mark Otto committed
508
  max-width: 100%;
509
  margin: 0 auto;
510
511
}

512
513
514
515
516
517
.scrollspy-example {
  height: 200px;
  overflow: auto;
  position: relative;
}

518
519
520
521
522
523
524
525
526
527

/* Fake the :focus state to demo it */
.focused {
  border-color: rgba(82,168,236,.8);
  -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
     -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
          box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
  outline: 0;
}

528
/* For input sizes, make them display block */
529
.docs-input-sizes select,
530
531
532
533
.docs-input-sizes input[type=text] {
  display: block;
  margin-bottom: 9px;
}
534

535
536
/* Icons
------------------------- */
537
.the-icons {
538
539
  margin-left: 0;
  list-style: none;
540
}
541
.the-icons li {
Mark Otto's avatar
Mark Otto committed
542
543
  float: left;
  width: 25%;
544
545
  line-height: 25px;
}
546
547
548
549
550
.the-icons [class^="glyphicon-"] {
  vertical-align: middle;
  margin-right: 3px;
}
.the-icons li:hover [class^="glyphicon-"] {
551
552
  background-color: rgba(255,0,0,.25);
}
553

554
/* Example page
555
------------------------- */
Mark Otto's avatar
Mark Otto committed
556
557
558
559
.bootstrap-examples p {
  font-size: 13px;
  line-height: 18px;
}
560
561
562
563
564
.bootstrap-examples .thumbnail {
  margin-bottom: 9px;
  background-color: #fff;
}

Mark Otto's avatar
Mark Otto committed
565
566
567
568
569
570


/* Bootstrap code examples
-------------------------------------------------- */

/* Base class */
571
572
573
574
.bs-docs-example {
  position: relative;
  margin: 15px 0;
  padding: 39px 19px 14px;
Mark Otto's avatar
Mark Otto committed
575
  *padding-top: 19px;
576
  background-color: #fff;
577
  border: 1px solid #ddd;
578
579
580
581
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
Mark Otto's avatar
Mark Otto committed
582
583

/* Echo out a label for the example */
584
585
586
587
588
589
590
591
592
.bs-docs-example:after {
  content: "Example";
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  background-color: #f5f5f5;
593
  border: 1px solid #ddd;
594
595
596
597
598
  color: #9da0a4;
  -webkit-border-radius: 4px 0 4px 0;
     -moz-border-radius: 4px 0 4px 0;
          border-radius: 4px 0 4px 0;
}
Mark Otto's avatar
Mark Otto committed
599
600

/* Remove spacing between an example and it's code */
601
602
603
604
.bs-docs-example + .prettyprint {
  margin-top: -20px;
  padding-top: 15px;
}
Mark Otto's avatar
Mark Otto committed
605
606
607

/* Tweak examples
------------------------- */
608
.bs-docs-example > p:last-child {
609
610
  margin-bottom: 0;
}
611
612
613
.bs-docs-example .table,
.bs-docs-example .progress,
.bs-docs-example .well,
Mark Otto's avatar
Mark Otto committed
614
.bs-docs-example .alert,
Mark Otto's avatar
Mark Otto committed
615
.bs-docs-example .hero-unit,
Mark Otto's avatar
Mark Otto committed
616
.bs-docs-example .pagination,
617
.bs-docs-example .navbar,
618
.bs-docs-example > .nav,
Mark Otto's avatar
Mark Otto committed
619
.bs-docs-example blockquote {
Mark Otto's avatar
Mark Otto committed
620
621
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
622
623
624
.bs-docs-example .pagination {
  margin-top: 0;
}
Mark Otto's avatar
Mark Otto committed
625
626
627
628
629
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
  height: 90px;
Mark Otto's avatar
Mark Otto committed
630
  overflow: hidden; /* cut the drop shadows off */
Mark Otto's avatar
Mark Otto committed
631
}
Mark Otto's avatar
Mark Otto committed
632
633
634
635
636
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
  margin-left: 0;
  margin-right: 0;
}
Mark Otto's avatar
Mark Otto committed
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
.bs-navbar-top-example {
  -webkit-border-radius: 0 0 4px 4px;
     -moz-border-radius: 0 0 4px 4px;
          border-radius: 0 0 4px 4px;
}
.bs-navbar-top-example:after {
  top: auto;
  bottom: -1px;
  -webkit-border-radius: 0 4px 0 4px;
     -moz-border-radius: 0 4px 0 4px;
          border-radius: 0 4px 0 4px;
}
.bs-navbar-bottom-example {
  -webkit-border-radius: 4px 4px 0 0;
     -moz-border-radius: 4px 4px 0 0;
          border-radius: 4px 4px 0 0;
}
.bs-navbar-bottom-example .navbar {
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
657
658
659
form.bs-docs-example {
  padding-bottom: 19px;
}
660

661
662
663
664
665
666
/* Images */
.bs-docs-example-images img {
  margin: 10px;
  display: inline-block;
}

667
668
669
670
671
672
673
674
675
676
677
/* Tooltips */
.bs-docs-tooltip-examples {
  text-align: center;
  margin: 0 0 10px;
  list-style: none;
}
.bs-docs-tooltip-examples li {
  display: inline;
  padding: 0 10px;
}

678
679
680
681
682
683
684
685
686
/* Popovers */
.bs-docs-example-popover {
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
.bs-docs-example-popover .popover {
  position: relative;
  display: block;
  float: left;
687
688
  width: 260px;
  margin: 20px;
689
690
691
}


Mark Otto's avatar
Mark Otto committed
692
693
694
695
696

/* Responsive docs
-------------------------------------------------- */

/* Utility classes table
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
------------------------- */
.responsive-utilities th small {
  display: block;
  font-weight: normal;
  color: #999;
}
.responsive-utilities tbody th {
  font-weight: normal;
}
.responsive-utilities td {
  text-align: center;
}
.responsive-utilities td.is-visible {
  color: #468847;
  background-color: #dff0d8 !important;
}
.responsive-utilities td.is-hidden {
  color: #ccc;
  background-color: #f9f9f9 !important;
}

/* Responsive tests
------------------------- */
.responsive-utilities-test {
  margin-top: 5px;
  margin-left: 0;
  list-style: none;
  overflow: hidden; /* clear floats */
}
.responsive-utilities-test li {
  position: relative;
  float: left;
  width: 25%;
  height: 43px;
  font-size: 14px;
  font-weight: bold;
  line-height: 43px;
  color: #999;
  text-align: center;
  border: 1px solid #ddd;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
.responsive-utilities-test li + li {
  margin-left: 10px;
}
.responsive-utilities-test span {
  position: absolute;
  top:    -1px;
  left:   -1px;
  right:  -1px;
  bottom: -1px;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
.responsive-utilities-test span {
  color: #468847;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
}

760

761

Mark Otto's avatar
Mark Otto committed
762
763
764
765
/* Sidenav for Docs
-------------------------------------------------- */

.bs-docs-sidenav {
766
  width: 228px;
Jacob Thornton's avatar
Jacob Thornton committed
767
  margin: 30px 0 0;
Mark Otto's avatar
Mark Otto committed
768
769
}
/* Chevrons */
770
.bs-docs-sidenav .glyphicon-chevron-right {
Mark Otto's avatar
Mark Otto committed
771
  float: right;
Mark Otto's avatar
Mark Otto committed
772
  margin-top: 1px;
Mark Otto's avatar
Mark Otto committed
773
774
  margin-right: -6px;
  opacity: .25;
775
  color: #000;
Mark Otto's avatar
Mark Otto committed
776
}
777
.bs-docs-sidenav a:hover .glyphicon-chevron-right {
Mark Otto's avatar
Mark Otto committed
778
779
  opacity: .5;
}
780
781
782
.bs-docs-sidenav .active .glyphicon-chevron-right,
.bs-docs-sidenav .active a:hover .glyphicon-chevron-right {
  color: #fff;
783
  opacity: 1;
Mark Otto's avatar
Mark Otto committed
784
785
}
.bs-docs-sidenav.affix {
786
  top: 40px;
787
788
789
790
791
}
.bs-docs-sidenav.affix-bottom {
  position: absolute;
  top: auto;
  bottom: 270px;
Mark Otto's avatar
Mark Otto committed
792
793
794
795
796
}




Mark Otto's avatar
Mark Otto committed
797
/* Responsive
798
-------------------------------------------------- */
799

Mark Otto's avatar
Mark Otto committed
800
801
/* Desktop large
------------------------- */
Mark Otto's avatar
Mark Otto committed
802
@media (min-width: 1200px) {
Mark Otto's avatar
Mark Otto committed
803
804
805
  .bs-docs-container {
    max-width: 970px;
  }
Mark Otto's avatar
Mark Otto committed
806
807
808
  .bs-docs-sidenav {
    width: 258px;
  }
Mark Otto's avatar
Mark Otto committed
809
810
811
  .bs-docs-sidenav > li > a {
    width: 230px \9; /* Override the previous IE8-9 hack */
  }
Mark Otto's avatar
Mark Otto committed
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
}

/* Desktop
------------------------- */
@media (max-width: 980px) {
  /* Unfloat brand */
  body > .navbar-fixed-top .brand {
    float: left;
    margin-left: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Inline-block quick links for more spacing */
  .quick-links li {
    display: inline-block;
    margin: 5px;
  }
Mark Otto's avatar
Mark Otto committed
830
831
832
833

  /* When affixed, space properly */
  .bs-docs-sidenav {
    top: 0;
834
    width: 218px;
Mark Otto's avatar
Mark Otto committed
835
836
837
838
839
    margin-top: 30px;
    margin-right: 0;
  }
}

Mark Otto's avatar
Mark Otto committed
840
841
/* Tablet to desktop
------------------------- */
842
@media (min-width: 768px) and (max-width: 979px) {
Mark Otto's avatar
Mark Otto committed
843
844
845
846
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }
847
848
849
850
  /* Widen masthead and social buttons to fill body padding */
  .jumbotron {
    margin-top: -20px; /* Offset bottom margin on .navbar */
  }
Mark Otto's avatar
Mark Otto committed
851
852
853
  /* Adjust sidenav width */
  .bs-docs-sidenav {
    width: 166px;
Mark Otto's avatar
Mark Otto committed
854
    margin-top: 20px;
Mark Otto's avatar
Mark Otto committed
855
  }
Jacob Thornton's avatar
Jacob Thornton committed
856
857
858
  .bs-docs-sidenav.affix {
    top: 0;
  }
Mark Otto's avatar
Mark Otto committed
859
860
861
862
}

/* Tablet
------------------------- */
863
@media (max-width: 767px) {
Mark Otto's avatar
Mark Otto committed
864
865
866
867
868
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }

869
  /* Widen masthead and social buttons to fill body padding */
870
  .jumbotron {
871
872
873
874
875
876
877
878
879
880
881
882
    padding: 40px 20px;
    margin-top:   -20px; /* Offset bottom margin on .navbar */
    margin-right: -20px;
    margin-left:  -20px;
  }
  .masthead h1 {
    font-size: 90px;
  }
  .masthead p,
  .masthead .btn {
    font-size: 24px;
  }
883
884
885
  .marketing .span4 {
    margin-bottom: 40px;
  }
886
887
  .bs-docs-social {
    margin: 0 -20px;
Mark Otto's avatar
Mark Otto committed
888
889
890
891
892
893
894
  }

  /* Space out the show-grid examples */
  .show-grid [class*="span"] {
    margin-bottom: 5px;
  }

Mark Otto's avatar
Mark Otto committed
895
896
897
  /* Sidenav */
  .bs-docs-sidenav {
    width: auto;
Jacob Thornton's avatar
Jacob Thornton committed
898
    margin-bottom: 20px;
Mark Otto's avatar
Mark Otto committed
899
900
  }
  .bs-docs-sidenav.affix {
901
    position: static;
Mark Otto's avatar
Mark Otto committed
902
    width: auto;
903
    top: 0;
Mark Otto's avatar
Mark Otto committed
904
905
  }

Mark Otto's avatar
Mark Otto committed
906
  /* Unfloat the back to top link in footer */
907
908
909
910
911
912
  .footer {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
Mark Otto's avatar
Mark Otto committed
913
914
915
916
917
918
919
920
  .footer p {
    margin-bottom: 9px;
  }
}

/* Landscape phones
------------------------- */
@media (max-width: 480px) {
921
  /* Remove padding above jumbotron */
922
  body {
923
    padding-top: 0;
924
925
  }

926
  /* Change up some type stuff */
927
928
  h2 small {
    display: block;
929
  }
930

931
  /* Downsize the jumbotrons */
932
  .jumbotron h1 {
933
    font-size: 45px;
934
  }
935
936
  .jumbotron p,
  .jumbotron .btn {
937
    font-size: 18px;
938
  }
939
  .jumbotron .btn {
940
    display: block;
941
    margin: 0 auto;
942
  }
943

944
945
946
947
  /* center align subhead text like the masthead */
  .subhead h1,
  .subhead p {
    text-align: center;
948
949
  }

950
951
  /* Marketing on home */
  .marketing h1 {
952
953
954
955
    font-size: 30px;
  }
  .marketing-byline {
    font-size: 18px;
956
957
  }

958
959
960
961
  /* center example sites */
  .example-sites {
    margin-left: 0;
  }
962
  .example-sites > li {
963
964
    float: none;
    display: block;
965
    max-width: 280px;
966
    margin: 0 auto 18px;
967
    text-align: center;
968
  }
969
  .example-sites .thumbnail > img {
970
971
    max-width: 270px;
  }
972

973
  /* Do our best to make tables work in narrow viewports */
974
975
976
977
978
  table code {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
  }
979
980
981
982
983
984
985
986
987

  /* Modal example */
  .modal-example .modal {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
988

989
990
991
992
993
  /* Tighten up footer */
  .footer {
    padding-top: 20px;
    padding-bottom: 20px;
  }
994
}