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



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

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

17
.bs-docs-container {
Mark Otto's avatar
Mark Otto committed
18
  max-width: 860px;
19
20
21
22
  padding-left: 15px;
  padding-right: 15px;
}

Mark Otto's avatar
Mark Otto committed
23
/*  */
Mark Otto's avatar
Mark Otto committed
24
.bs-docs-footer {
Mark Otto's avatar
Mark Otto committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  padding-left:  15px;
  padding-right: 15px;
}



/* Sections
-------------------------------------------------- */

/* Padding for in-page bookmarks */
section {
  padding-top: 30px;
}

/* Few stylistic typography tweaks */
section > .page-header,
section > .lead {
  color: #5a5a5a;
}
section > ul li {
  margin-bottom: 5px;
}



Mark Otto's avatar
Mark Otto committed
50
51
52
/* Navbar
-------------------------------------------------- */

Mark Otto's avatar
Mark Otto committed
53
54
.bs-docs-navbar {
  background-color: #333;
Mark Otto's avatar
Mark Otto committed
55
}
Mark Otto's avatar
Mark Otto committed
56
57
.bs-docs-navbar .navbar-brand {
  padding: 15px;
Mark Otto's avatar
Mark Otto committed
58
  font-size: 30px;
Mark Otto's avatar
Mark Otto committed
59
60
61
  margin-left: 0;
}
.bs-docs-navbar .nav {
Mark Otto's avatar
Mark Otto committed
62
63
  border-top: 1px solid #222;
  border-bottom: 1px solid #444;
Mark Otto's avatar
Mark Otto committed
64
65
66
67
}
.bs-docs-navbar .nav > li > a {
  width: 60px;
  text-align: center;
Mark Otto's avatar
Mark Otto committed
68
69
  border-top: 1px solid #444;
  border-bottom: 1px solid #222;
Mark Otto's avatar
Mark Otto committed
70
71
72
73
74
75
76
77
}
.bs-docs-navbar .glyphicon {
  display: block;
  font-size: 20px;
}
.bs-docs-navbar .nav .tooltip {
  white-space: nowrap;
}
Mark Otto's avatar
Mark Otto committed
78
79


Mark Otto's avatar
Mark Otto committed
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/* Jumbotrons
-------------------------------------------------- */

/* Base class */
.bs-docs-jumbotron {
  position: relative;
  margin-bottom: 20px;
  padding: 30px 15px;
  color: #fff;
  text-align: center;
  background-color: #b94a48;
}
.bs-docs-jumbotron h1 {
  font-size: 50px;
}

/* Link styles (used on .masthead-links as well) */
.bs-docs-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;
}
.bs-docs-jumbotron a:hover {
  color: #fff;
}

/* Download button */
.bs-docs-jumbotron .btn {
  padding: 18px 24px;
  font-size: 21px;
  color: #b94a48; /* redeclare to override the `.jumbotron a` */
  background-color: #fff;
}
.bs-docs-jumbotron .btn,
.bs-docs-jumbotron .btn:hover,
.bs-docs-jumbotron .btn:active {
  color: #b94a48; /* redeclare to override the `.jumbotron a` */
  background-color: #fff;
  border-color: #fff;
}

/* Masthead (docs home)
------------------------- */
.masthead h1 {
  line-height: 1;
}

/* Textual links in masthead */
.masthead-links {
  margin: 20px 0;
  list-style: none;
}
.masthead-links li {
  display: inline;
  padding: 0 10px;
  color: rgba(255,255,255,.25);
}



/* Marketing section of Overview
-------------------------------------------------- */

145
.bs-docs-marketing {
Mark Otto's avatar
Mark Otto committed
146
147
148
  text-align: center;
  color: #5a5a5a;
}
149
.bs-docs-marketing h1 {
Mark Otto's avatar
Mark Otto committed
150
151
152
153
  margin: 60px 0 10px;
  font-size: 50px;
  line-height: 1;
}
154
.bs-docs-marketing h2 {
Mark Otto's avatar
Mark Otto committed
155
156
  margin-bottom: 5px;
}
157
.bs-docs-marketing p {
Mark Otto's avatar
Mark Otto committed
158
159
160
  font-size: 16px;
  line-height: 1.4;
}
161
.bs-docs-marketing .marketing-byline {
Mark Otto's avatar
Mark Otto committed
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
  margin-bottom: 40px;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.25;
  color: #999;
}
.marketing-img {
  display: block;
  margin: 30px auto 10px;
  max-height: 145px;
}



/* Special grid styles
-------------------------------------------------- */

.show-grid {
  margin-bottom: 15px;
}
Mark Otto's avatar
Mark Otto committed
182
.show-grid [class*="col-span-"] {
Mark Otto's avatar
Mark Otto committed
183
184
185
186
187
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #eee;
  border: 1px solid #ddd;
}
Mark Otto's avatar
Mark Otto committed
188
.show-grid [class*="col-span-"]:hover {
Mark Otto's avatar
Mark Otto committed
189
190
191
192
193
194
195
196
  background-color: #ddd;
}



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

Mark Otto's avatar
Mark Otto committed
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
.bs-docs-sidebar {
  position: fixed;
  top: 0;
  left: 60px;
  bottom: 0;
  width: 240px;
  background-color: #f5f5f5;
  border-right: 1px solid #e5e5e5;
}
.bs-docs-sidenav > li > a {
  color: #555;
  padding: 8px 20px;
}
.bs-docs-sidenav > .active > a,
.bs-docs-sidenav > .active:hover > a,
.bs-docs-sidenav > .active:focus > a {
  color: #fff;
  background-color: #428bca;
}

.bs-docs-sidenav-heading {
  margin: 0;
  padding: 15px 20px;
  color: #999;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 0 #fff;
}

.bs-docs-navbar:after,
.bs-docs-sidebar:after {
  position: absolute;
  top: -20px;
  right: 0;
  bottom: -20px;
  left: -10px;
  z-index: 10;
  display: block;
  content: " ";
  box-shadow: inset -5px 0 25px rgba(0,0,0,.05);
}
.bs-docs-navbar .container,
.bs-docs-sidenav {
  position: relative;
  z-index: 15;
}


Mark Otto's avatar
Mark Otto committed
244
245
/* Base styles are not affixable given mobile-first */
.bs-docs-sidenav {
Mark Otto's avatar
Mark Otto committed
246
  margin: 0;
Mark Otto's avatar
Mark Otto committed
247
248
249
250
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
Mark Otto's avatar
Mark Otto committed
251
/*.bs-docs-sidenav.affix {
Mark Otto's avatar
Mark Otto committed
252
253
  position: static;
  top: 0;
Mark Otto's avatar
Mark Otto committed
254
}*/
Mark Otto's avatar
Mark Otto committed
255
256

/* Chevrons within each link */
Mark Otto's avatar
Mark Otto committed
257
/*.bs-docs-sidenav .glyphicon-chevron-right {
Mark Otto's avatar
Mark Otto committed
258
259
260
261
262
263
264
265
266
267
268
269
270
271
  float: right;
  margin-top: 1px;
  margin-right: -6px;
  opacity: .25;
  color: #000;
}
.bs-docs-sidenav a:hover .glyphicon-chevron-right {
  opacity: .5;
}
.bs-docs-sidenav .active .glyphicon-chevron-right,
.bs-docs-sidenav .active a:hover .glyphicon-chevron-right {
  color: #fff;
  opacity: 1;
}
Mark Otto's avatar
Mark Otto committed
272
*/
Mark Otto's avatar
Mark Otto committed
273
274
275
276
277
278
279
280
281
282
283


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

/* Base class */
.bs-docs-example {
  position: relative;
  padding: 39px 14px 14px;
  margin-bottom: -1px;
  border: 1px solid #ddd;
284
285
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
Mark Otto's avatar
Mark Otto committed
286
287
288
289
290
291
292
293
294
295
296
297
298
}
/* 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;
299
300
  border-top-left-radius: 4px;
  border-bottom-right-radius: 4px;
Mark Otto's avatar
Mark Otto committed
301
302
303
}

/* Tweak display of the examples */
304
305
.bs-docs-example + .prettyprint,
.bs-docs-example + .highlight {
Mark Otto's avatar
Mark Otto committed
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.prettyprint .linenums {
  /*margin-left: 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,
.bs-docs-example > .alert:last-child {
  margin-bottom: 0;
}

328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
/* 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
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
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
/* Navbar examples */
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
  height: 90px;
  overflow: hidden; /* cut the drop shadows off */
}
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
  margin-left: 0;
  margin-right: 0;
}
.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
406
407
408
409
410
411
412
413
414
415
416
417
418
419
/* 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 {
  min-height: 180px;
}
.bs-docs-example-submenu > .pull-left + .pull-left {
  margin-left: 20px;
}
Mark Otto's avatar
Mark Otto committed
420

421
422
423
424
425
/* Example tabbable tabs */
.bs-docs-example-tabs .nav-tabs {
  margin-bottom: 15px;
}

Mark Otto's avatar
Mark Otto committed
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
457
458

/* 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
459
460
     -moz-box-sizing: border-box;
          box-sizing: border-box;
Mark Otto's avatar
Mark Otto committed
461
462
  margin: 0 -1px -1px 0;
}
463
.the-icons .glyphicon {
Mark Otto's avatar
Mark Otto committed
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
552
553
  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
-------------------------------------------------- */

554
.bs-docs-footer {
Mark Otto's avatar
Mark Otto committed
555
  text-align: center;
556
557
  padding-top: 30px;
  padding-bottom: 30px;
Mark Otto's avatar
Mark Otto committed
558
559
560
  margin-top: 100px;
  border-top: 1px solid #e5e5e5;
}
561
.bs-docs-footer p {
Mark Otto's avatar
Mark Otto committed
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
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
620
621
622
  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 {
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;
}
/* Quick links on Home */
.bs-docs-social-buttons {
  display: inline-block;
  margin: 0;
  padding: 0 10px;
  list-style: none;
}
.bs-docs-social-buttons li {
  display: inline-block;
  padding: 5px 8px;
  line-height: 1;
}
.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;
}

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

Mark Otto's avatar
Mark Otto committed
649
650
651
652
653
654


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

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


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

663
664
665
666
667
668
669
670
671
672
/* 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
673
674
675
/* Tablets and up */
@media screen and (min-width: 768px) {

676
  /* Account for fixed navbar (which is static to start) */
Mark Otto's avatar
Mark Otto committed
677
  body {
Mark Otto's avatar
Mark Otto committed
678
679
    /*padding-top: 50px;*/ /* Default height of navbar */
    padding-top: 0;
Mark Otto's avatar
Mark Otto committed
680
    padding-left: 300px;
Mark Otto's avatar
Mark Otto committed
681
682
  }

683
684
685
686
687
688
  /* Undo custom padding */
  .bs-docs-container {
    padding-left: 0;
    padding-right: 0;
  }

Mark Otto's avatar
Mark Otto committed
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
  /* Tweak display of docs jumbotrons */
  .masthead {
    padding-top:    100px;
    padding-bottom: 100px;
  }
  .masthead h1 {
    font-size: 100px;
  }
  .masthead p {
    font-size: 30px;
    margin-left: 10%;
    margin-right: 10%;
  }
  .subhead {
    padding-top:    60px;
    padding-bottom: 60px;
    text-align: left;
  }

  /* From here, start to affix the nav because we keep columns here */
  .bs-docs-sidenav.affix {
    position: fixed;
Mark Otto's avatar
Mark Otto committed
711
    top: 20px;
Mark Otto's avatar
Mark Otto committed
712
713
714
715
716
717
718
719
720
721
722
723
724
  }
  .bs-docs-sidenav {
    width: 170px;
  }
  .bs-docs-sidenav.affix-bottom {
    position: absolute;
    top: auto;
    bottom: 270px;
  }
}

/* Tablets/desktops and up */
@media screen and (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
725
726
727
728
729
730

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

Mark Otto's avatar
Mark Otto committed
731
  .bs-docs-sidenav {
Mark Otto's avatar
Mark Otto committed
732
    width: 240px;
Mark Otto's avatar
Mark Otto committed
733
734
735
736
737
  }
}

/* Large desktops and up */
@media screen and (min-width: 1200px) {
Mark Otto's avatar
Mark Otto committed
738
739
/*  .bs-docs-sidenav {
    width: 240px;
Mark Otto's avatar
Mark Otto committed
740
  }
Mark Otto's avatar
Mark Otto committed
741
*/}