docs.css 14 KB
Newer Older
Mark Otto's avatar
Mark Otto committed
1
2
3
4
5
6
7
8
9
10
11
12
/*
 * Bootstrap Documentation
 * Special styles for presenting Bootstrap's documentation and code examples.
 */



/* Key scaffolding
-------------------------------------------------- */

body {
  position: relative; /* For scrollyspy */
13
  /* We add the padding to the body for >768px only */
Mark Otto's avatar
Mark Otto committed
14
15
}

Mark Otto's avatar
Mark Otto committed
16
17
18
19
20
21
22
23
24
25
26
/* Top nav and header */
.bs-docs-nav {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}
.bs-docs-nav .navbar-brand {
  color: #b94a48;
}



27
28
29
30
31
hr {
  margin-top: 30px;
  margin-bottom: 30px;
}

32
33


34
35
36
37
.bs-docs-dl-options h4 {
  margin-top: 15px;
  margin-bottom: 5px;
}
38

Mark Otto's avatar
Mark Otto committed
39
/*
40
41
.bs-docs-container,
.bs-home-container {
42
43
44
  padding-left: 15px;
  padding-right: 15px;
}
Mark Otto's avatar
Mark Otto committed
45
*/
46

47
48
49
50
51
52
53
/* Side notes for calling out things */
.bs-docs-sidenote {
  margin: 20px 0;
  padding: 15px 30px 15px 15px;
  background-color: #fcf2f2;
  border-left: 5px solid #df7c7b;
}
54
55
56
.bs-docs-sidenote h4 {
  margin-top: 0;
}
57
58
59
.bs-docs-sidenote p:last-child {
  margin-bottom: 0;
}
60
61
.bs-docs-sidenote code,
.bs-docs-sidenote .highlight {
62
63
  background-color: #fff;
}
Mark Otto's avatar
Mark Otto committed
64
65
66



67
/* Homepage masthead
Mark Otto's avatar
Mark Otto committed
68
69
-------------------------------------------------- */

70
.bs-masthead {
Mark Otto's avatar
Mark Otto committed
71
72
73
  position: relative;
  margin-bottom: 20px;
  padding: 30px 15px;
Mark Otto's avatar
center    
Mark Otto committed
74
  text-align: center;
Mark Otto's avatar
Mark Otto committed
75
}
76
.bs-masthead h1 {
Mark Otto's avatar
Mark Otto committed
77
  font-size: 50px;
Mark Otto's avatar
Mark Otto committed
78
  line-height: 1;
Mark Otto's avatar
Mark Otto committed
79
80
81
}

/* Download button */
82
.bs-masthead .btn {
Mark Otto's avatar
Mark Otto committed
83
84
  margin-top: 5px;
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
85
86
87
88
  padding: 18px 24px;
  font-size: 21px;
  color: #b94a48; /* redeclare to override the `.jumbotron a` */
  background-color: #fff;
Mark Otto's avatar
Mark Otto committed
89
  border-color: #e5e5e5;
Mark Otto's avatar
Mark Otto committed
90
}
91
92
.bs-masthead .btn:hover,
.bs-masthead .btn:active {
Mark Otto's avatar
Mark Otto committed
93
94
95
  color: #fff; /* redeclare to override the `.jumbotron a` */
  background-color: #b94a48;
  border-color: #b94a48;
Mark Otto's avatar
Mark Otto committed
96
97
}

98
99
/* Textual links */
.bs-masthead-links {
Mark Otto's avatar
Mark Otto committed
100
101
102
  margin: 20px 0;
  list-style: none;
}
103
.bs-masthead-links li {
Mark Otto's avatar
Mark Otto committed
104
105
106
  display: inline;
  color: #999;
}
107
.bs-masthead-links li + li {
Mark Otto's avatar
Mark Otto committed
108
  margin-left: 20px;
Mark Otto's avatar
Mark Otto committed
109
110
111
112
}



113
/* Docs pages and sections
Mark Otto's avatar
Mark Otto committed
114
115
-------------------------------------------------- */

116
117
118
119
120
121
/* Page headers */
.bs-docs-header {
  margin-bottom: 20px;
  padding-top: 30px;
  color: #b94a48;
  border-bottom: 5px solid #b94a48;
Mark Otto's avatar
Mark Otto committed
122
}
123
124
125
126

/* Padding for in-page bookmarks */
.bs-docs-section {
  padding-top: 30px;
Mark Otto's avatar
Mark Otto committed
127
128
129
130
131
132
133
}



/* Sidenav
-------------------------------------------------- */

Mark Otto's avatar
Mark Otto committed
134
135
/* Nav: first level */
.bs-docs-sidebar > .nav {
Mark Otto's avatar
Mark Otto committed
136
137
138
139
140
141
142
  margin-top: 20px;
  margin-bottom: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
  text-shadow: 0 1px 0 #fff;
  background-color: #f5f5f5;
  border-radius: 5px;
Mark Otto's avatar
Mark Otto committed
143
}
Mark Otto's avatar
Mark Otto committed
144
145
.bs-docs-sidebar .nav > li > a {
  display: block;
146
  color: #666;
Mark Otto's avatar
Mark Otto committed
147
  padding: 4px 25px;
148
}
Mark Otto's avatar
Mark Otto committed
149
150
151
.bs-docs-sidebar .nav > li > a:hover,
.bs-docs-sidebar .nav > li > a:focus {
  text-decoration: none;
152
  border-right: 1px solid #d5d5d5;
Mark Otto's avatar
Mark Otto committed
153
}
Mark Otto's avatar
Mark Otto committed
154
155
156
.bs-docs-sidebar .nav > .active > a,
.bs-docs-sidebar .nav > .active:hover > a,
.bs-docs-sidebar .nav > .active:focus > a {
157
  font-weight: 500;
Mark Otto's avatar
dat red    
Mark Otto committed
158
  color: #b94a48;
159
  background-color: transparent;
Mark Otto's avatar
dat red    
Mark Otto committed
160
  border-right: 1px solid #b94a48;
Mark Otto's avatar
Mark Otto committed
161
162
}

Mark Otto's avatar
Mark Otto committed
163
164
165
166
167
168
169
170
171
172
173
/* Nav: second level (shown on .active) */
.bs-docs-sidebar .nav .nav {
  display: none;
  margin-bottom: 5px;
}
.bs-docs-sidebar .nav > .active > ul {
  display: block;
}
.bs-docs-sidebar .nav .nav > li > a {
  padding-top: 2px;
  padding-bottom: 2px;
Mark Otto's avatar
Mark Otto committed
174
  padding-left: 40px;
Mark Otto's avatar
Mark Otto committed
175
176
177
  font-size: 90%;
}

Mark Otto's avatar
Mark Otto committed
178
.bs-docs-sidenav-heading {
179
  margin: 0 0 25px;
180
181
182
}
.bs-docs-sidenav-heading a {
  display: block;
Mark Otto's avatar
Mark Otto committed
183
  padding: 15px 25px;
Mark Otto's avatar
dat red    
Mark Otto committed
184
  color: #b94a48;
Mark Otto's avatar
Mark Otto committed
185
186
187
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 0 #fff;
}
188
.bs-docs-sidenav-heading a:hover {
Mark Otto's avatar
dat red    
Mark Otto committed
189
  color: #a3403e;
190
191
  text-decoration: none;
}
Mark Otto's avatar
Mark Otto committed
192

193
194
195
196
/* Section headings for groups of links */
.bs-docs-sidenav > li > .nav-header {
  margin-top: 20px;
  margin-bottom: 5px;
197
198
199
  font-size: 14px;
  font-weight: 500;
  color: #333;
Mark Otto's avatar
Mark Otto committed
200
}
201
202
203
204
.bs-docs-sidenav > .active > .nav-header,
.bs-docs-sidenav > .active > .nav-header:hover {
  color: #333;
  border-color: #333;
Mark Otto's avatar
Mark Otto committed
205
206
}

Mark Otto's avatar
Mark Otto committed
207
208
209
210
211
212
213
214
215
216
217
/* Increase spacing between page nav and other pages */
.bs-docs-sidenav .nav-divider {
  margin-top: 25px;
  margin-bottom: 25px;
}

.bs-docs-sidebar.affix {
  top: 50px;
  width: 270px;
}

Mark Otto's avatar
Mark Otto committed
218

219

220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
/* Special grid styles
-------------------------------------------------- */

.show-grid {
  margin-bottom: 15px;
}
.show-grid .col {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #eee;
  border: 1px solid #ddd;
}
.show-grid .col:hover {
  background-color: #ddd;
}



Mark Otto's avatar
Mark Otto committed
238
239
240
241
242
243
244
245
246
/* Bootstrap code examples
-------------------------------------------------- */

/* Base class */
.bs-docs-example {
  position: relative;
  padding: 39px 14px 14px;
  margin-bottom: -1px;
  border: 1px solid #ddd;
247
248
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
Mark Otto's avatar
Mark Otto committed
249
250
251
252
253
254
255
256
257
258
259
260
261
}
/* Echo out a label for the example */
.bs-docs-example:after {
  content: "Example";
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  color: #9da0a4;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
262
263
  border-top-left-radius: 4px;
  border-bottom-right-radius: 4px;
Mark Otto's avatar
Mark Otto committed
264
265
266
}

/* Tweak display of the examples */
267
268
.bs-docs-example + .prettyprint,
.bs-docs-example + .highlight {
Mark Otto's avatar
Mark Otto committed
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Tweak content of examples for optimum awesome */
.bs-docs-example > p:last-child,
.bs-docs-example > ul:last-child,
.bs-docs-example > ol:last-child,
.bs-docs-example > blockquote:last-child,
.bs-docs-example > input:last-child,
.bs-docs-example > select:last-child,
.bs-docs-example > textarea:last-child,
.bs-docs-example > .table:last-child,
.bs-docs-example > .jumbotron:last-child,
284
285
.bs-docs-example > .alert:last-child,
.bs-docs-example > .panel:last-child,
Mark Otto's avatar
Mark Otto committed
286
.bs-docs-example > .list-group:last-child,
287
.bs-docs-example > .well:last-child {
Mark Otto's avatar
Mark Otto committed
288
289
290
  margin-bottom: 0;
}

291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
/* Typography */
.bs-docs-example-type .table td {
  color: #999;
  vertical-align: middle;
  border-color: ;
}
.bs-docs-example-type .table td,
.bs-docs-example-type .table th {
  padding: 15px 0;
  border-color: #eee;
}
.bs-docs-example-type .table tr:first-child td,
.bs-docs-example-type .table tr:first-child th {
  border-top: 0;
}
.bs-docs-example-type h1,
.bs-docs-example-type h2,
.bs-docs-example-type h3,
.bs-docs-example-type h4,
.bs-docs-example-type h5,
.bs-docs-example-type h6 {
  margin: 0;
}

Mark Otto's avatar
Mark Otto committed
315
316
317
318
/* List groups */
.bs-docs-example > .list-group {
  max-width: 400px;
}
319

Mark Otto's avatar
Mark Otto committed
320
321
322
323
324
/* Navbar examples */
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
325
  min-height: 110px;
Mark Otto's avatar
Mark Otto committed
326
327
328
329
  overflow: hidden; /* cut the drop shadows off */
}
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
330
  position: relative;
Mark Otto's avatar
Mark Otto committed
331
332
333
  margin-left: 0;
  margin-right: 0;
}
334
335
336
337
338
339
.bs-navbar-top-example .navbar-fixed-top {
  top: -1px;
}
.bs-navbar-bottom-example .navbar-fixed-bottom {
  bottom: -1px;
}
Mark Otto's avatar
Mark Otto committed
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
.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;
}

/* Example modals */
.bs-docs-example-modal {
  background-color: #f5f5f5;
}
.bs-docs-example-modal .modal {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  z-index: 1;
  display: block;
}
.bs-docs-example-modal .modal-dialog {
  left: auto;
  margin-left: auto;
  margin-right: auto;
}

Mark Otto's avatar
Mark Otto committed
380
381
382
383
384
385
386
387
388
/* Example dropdowns */
.bs-docs-example > .dropdown > .dropdown-menu,
.bs-docs-example-submenu > .pull-left > .dropup > .dropdown-menu,
.bs-docs-example-submenu > .pull-left > .dropdown > .dropdown-menu {
  position: static;
  display: block;
  margin-bottom: 5px;
}
.bs-docs-example-submenu {
389
  min-height: 230px;
Mark Otto's avatar
Mark Otto committed
390
391
392
393
}
.bs-docs-example-submenu > .pull-left + .pull-left {
  margin-left: 20px;
}
Mark Otto's avatar
Mark Otto committed
394

395
396
397
398
399
/* Example tabbable tabs */
.bs-docs-example-tabs .nav-tabs {
  margin-bottom: 15px;
}

400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
/* 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;
}

/* Popovers */
.bs-docs-example-popover {
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
.bs-docs-example-popover .popover {
  position: relative;
  display: block;
  float: left;
  width: 260px;
  margin: 20px;
}

Mark Otto's avatar
Mark Otto committed
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456

/* Example templates
-------------------------------------------------- */

.bs-docs-examples h4 {
  margin-bottom: 5px;
}
.bs-docs-examples p {
  margin-bottom: 20px;
}



/* Icons
-------------------------------------------------- */

.the-icons {
  padding-bottom: 1px;
  margin-left: 0;
  list-style: none;
  margin-bottom: 20px;
  overflow: hidden;
}
.the-icons li {
  float: left;
  width: 100px;
  height: 110px;
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  -webkit-box-sizing: border-box;
Mark Otto's avatar
Mark Otto committed
457
458
     -moz-box-sizing: border-box;
          box-sizing: border-box;
Mark Otto's avatar
Mark Otto committed
459
460
  margin: 0 -1px -1px 0;
}
461
.the-icons .glyphicon {
Mark Otto's avatar
Mark Otto committed
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
  display: block;
  margin: 5px auto;
  vertical-align: middle;
  margin-right: 3px;
  font-size: 24px;
}
.the-icons li:hover {
  background-color: rgba(255,0,0,.1);
}



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

/* Related: responsive utilities tables */
.table code {
  font-size: 13px;
  font-weight: normal;
}

/* Utility classes table
------------------------- */
.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;
}



/* Footer
-------------------------------------------------- */

552
.bs-docs-footer {
553
554
  padding-top: 30px;
  padding-bottom: 30px;
Mark Otto's avatar
Mark Otto committed
555
556
557
  margin-top: 100px;
  border-top: 1px solid #e5e5e5;
}
558
.bs-docs-footer p {
Mark Otto's avatar
Mark Otto committed
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
  margin-bottom: 0;
  color: #777;
}
.footer-links {
  margin: 10px 0;
}
.footer-links li {
  display: inline;
  padding: 0 2px;
}
.footer-links li:first-child {
  padding-left: 0;
}

/* Social proof buttons from GitHub & Twitter */
.bs-docs-social {
Mark Otto's avatar
center    
Mark Otto committed
575
  margin-top: 80px;
Mark Otto's avatar
Mark Otto committed
576
577
578
579
580
581
582
583
584
585
586
587
  margin-bottom: 20px;
}
/* Quick links on Home */
.bs-docs-social-buttons {
  display: inline-block;
  margin: 0;
  list-style: none;
}
.bs-docs-social-buttons li {
  display: inline-block;
  line-height: 1;
}
Mark Otto's avatar
Mark Otto committed
588
589
590
.bs-docs-social-buttons li + li {
  margin-left: 15px;
}
Mark Otto's avatar
Mark Otto committed
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
.bs-docs-social-buttons .twitter-follow-button {
  width: 225px !important;
}
.bs-docs-social-buttons .twitter-share-button {
  width: 98px !important;
}



/* Misc docs stuff
-------------------------------------------------- */

/* Pseudo :focus state for showing how it looks in the docs */
input.focused {
  border-color: rgba(82,168,236,.8);
  outline: 0;
  outline: thin dotted \9; /* IE6-9 */
  -moz-box-shadow: 0 0 8px rgba(82,168,236,.6);
       box-shadow: 0 0 8px rgba(82,168,236,.6);
}

/* Scrollspy demo on fixed height div */
.scrollspy-example {
  position: relative;
  height: 200px;
  margin-top: 10px;
  overflow: auto;
}

620
.highlight {
621
  padding: 9px 14px;
622
  margin-bottom: 14px;
623
624
625
  background-color: #f7f7f9;
  border: 1px solid #e1e1e8;
  border-radius: 4px;
626
627
628
629
630
631
}
.highlight pre {
  padding: 0;
  margin-bottom: 0;
  background-color: transparent;
  border: 0;
632
  white-space: nowrap;
633
634
}
.highlight pre code {
635
636
637
638
639
  font-size: inherit;
  color: #333; /* Effectively the base text color */
}
.highlight pre .lineno {
  display: inline-block;
640
  width: 22px;
641
642
643
644
  padding-right: 5px;
  margin-right: 10px;
  text-align: right;
  color: #bebec5;
645
646
}

Mark Otto's avatar
Mark Otto committed
647
648
649
650
651
652


/* Docs gallery
-------------------------------------------------- */

.bs-docs-gallery .thumbnail {
653
654
  max-width: 400px;
  margin: 0 auto 20px;
Mark Otto's avatar
Mark Otto committed
655
656
657
658
659
660
}


/* Responsive variations
-------------------------------------------------- */

661
662
663
664
665
666
667
668
669
670
/* Hide code snippets on mobile devices */
@media screen and (max-width: 480px) {
  .bs-docs-example {
    border-radius: 4px;
  }
  .highlight {
    display: none;
  }
}

Mark Otto's avatar
Mark Otto committed
671
672
/* Tablets and up */
@media screen and (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
673
674
675
  body {
    padding-top: 50px;
  }
Mark Otto's avatar
Mark Otto committed
676

677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
  /* Back to top link */
  .bs-docs-top {
    float: left;
    padding: 7px 15px;
    font-weight: 500;
    color: #999;
    background-color: #eee;
    border-radius: 4px;
  }
  .bs-docs-top:hover {
    color: #fff;
    text-decoration: none;
    background-color: #999;
  }
  .bs-docs-top.affix {
    position: fixed;
    right:  15px;
    bottom: 15px;
  }

Mark Otto's avatar
Mark Otto committed
697
  .bs-docs-header h1 {
698
699
700
701
    font-size: 80px;
    line-height: 1;
  }

702
  /* Undo custom padding */
Mark Otto's avatar
Mark Otto committed
703
  .bs-docs-container {
704
705
706
707
    padding-left: 0;
    padding-right: 0;
  }

708
709
710
711
712
  /* Show the docs nav */
  .bs-docs-sidebar {
    display: block;
  }

Mark Otto's avatar
Mark Otto committed
713
  /* Tweak display of docs jumbotrons */
714
  .bs-masthead {
Mark Otto's avatar
Mark Otto committed
715
716
717
    padding-top:    100px;
    padding-bottom: 100px;
  }
718
  .bs-masthead h1 {
Mark Otto's avatar
Mark Otto committed
719
720
    font-size: 100px;
  }
721
  .bs-masthead p {
Mark Otto's avatar
center    
Mark Otto committed
722
723
    margin-left: 15%;
    margin-right: 15%;
Mark Otto's avatar
Mark Otto committed
724
725
726
    font-size: 30px;
  }

727
728
729
730
731
  .bs-navbar-top-example .navbar-fixed-top,
  .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }

Mark Otto's avatar
Mark Otto committed
732
733
734
735
}

/* Tablets/desktops and up */
@media screen and (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
736
737
738
739
740
741

  /* Icons */
  .the-icons li {
    width: 12.5%;
  }

Mark Otto's avatar
Mark Otto committed
742
743
744
745
}

/* Large desktops and up */
@media screen and (min-width: 1200px) {
746
747

}