docs.css 14.5 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 */
Mark Otto's avatar
Mark Otto committed
13
  padding-top: 50px; /* Account for fixed navbar */
Mark Otto's avatar
Mark Otto committed
14
15
}

Mark Otto's avatar
Mark Otto committed
16
17
18
19
20


/* Top nav and header
-------------------------------------------------- */

Mark Otto's avatar
Mark Otto committed
21
.bs-docs-nav {
Mark Otto's avatar
Mark Otto committed
22
  background-color: #b94a48;
Mark Otto's avatar
Mark Otto committed
23
}
Mark Otto's avatar
Mark Otto committed
24
25
26
.bs-docs-nav .navbar-brand {
  color: #fff;
}
Mark Otto's avatar
Mark Otto committed
27
.bs-docs-nav .navbar-nav > li > a {
28
  color: #e6cac8;
Mark Otto's avatar
Mark Otto committed
29
30
}
.bs-docs-nav .navbar-nav > li > a:hover {
Mark Otto's avatar
Mark Otto committed
31
32
  color: #fff;
}
Mark Otto's avatar
Mark Otto committed
33
34
.bs-docs-nav .navbar-nav > .active > a,
.bs-docs-nav .navbar-nav > .active > a:hover {
Mark Otto's avatar
Mark Otto committed
35
  color: #fff;
Mark Otto's avatar
Mark Otto committed
36
37
  background-color: #993c3a;
}
Mark Otto's avatar
Mark Otto committed
38
.bs-docs-nav .navbar-toggle {
Mark Otto's avatar
Mark Otto committed
39
40
41
42
43
  border-color: #b94a48;
}
.bs-docs-nav .navbar-toggle:hover {
  background-color: #993c3a;
  border-color: #993c3a;
Mark Otto's avatar
Mark Otto committed
44
45
46
}


Mark Otto's avatar
Mark Otto committed
47

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

51
.bs-masthead {
Mark Otto's avatar
Mark Otto committed
52
53
54
  position: relative;
  margin-bottom: 20px;
  padding: 30px 15px;
Mark Otto's avatar
center    
Mark Otto committed
55
  text-align: center;
Mark Otto's avatar
Mark Otto committed
56
}
57
.bs-masthead h1 {
Mark Otto's avatar
Mark Otto committed
58
  font-size: 50px;
Mark Otto's avatar
Mark Otto committed
59
  line-height: 1;
Mark Otto's avatar
Mark Otto committed
60
}
Mark Otto's avatar
Mark Otto committed
61
62
63
.bs-masthead .bs-social {
  margin-top: 80px;
}
Mark Otto's avatar
Mark Otto committed
64
65

/* Download button */
66
.bs-masthead .btn {
Mark Otto's avatar
Mark Otto committed
67
68
  margin-top: 5px;
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
69
70
71
72
  padding: 18px 24px;
  font-size: 21px;
  color: #b94a48; /* redeclare to override the `.jumbotron a` */
  background-color: #fff;
Mark Otto's avatar
Mark Otto committed
73
  border-color: #e5e5e5;
Mark Otto's avatar
Mark Otto committed
74
}
75
76
.bs-masthead .btn:hover,
.bs-masthead .btn:active {
Mark Otto's avatar
Mark Otto committed
77
78
79
  color: #fff; /* redeclare to override the `.jumbotron a` */
  background-color: #b94a48;
  border-color: #b94a48;
Mark Otto's avatar
Mark Otto committed
80
81
}

82
83
/* Textual links */
.bs-masthead-links {
Mark Otto's avatar
Mark Otto committed
84
85
86
  margin: 20px 0;
  list-style: none;
}
87
.bs-masthead-links li {
Mark Otto's avatar
Mark Otto committed
88
89
90
  display: inline;
  color: #999;
}
91
.bs-masthead-links li + li {
Mark Otto's avatar
Mark Otto committed
92
  margin-left: 20px;
Mark Otto's avatar
Mark Otto committed
93
94
95
96
}



97
98
99
/* Customize and Download button
-------------------------------------------------- */

100
101
102
103
104
105
106
107
108
109
110
.bs-customizer {

}
.bs-customizer .toggle {
  float: right;
}
.bs-customizer label {
  margin-top: 10px;
}


111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
.bs-customize-download {
  text-align:center;
}
.bs-customize-download .btn {
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 18px 24px;
  font-size: 21px;
  color: #b94a48;
  background-color: #fff;
  border-color: #b94a48;
}
.bs-customize-download .btn:hover,
.bs-customize-download .btn:active {
  color: #fff;
  background-color: #b94a48;
}



131
/* Docs pages and sections
Mark Otto's avatar
Mark Otto committed
132
133
-------------------------------------------------- */

134
/* Page headers */
Mark Otto's avatar
Mark Otto committed
135
.bs-header {
Mark Otto's avatar
Mark Otto committed
136
  padding: 30px 30px 40px;
Mark Otto's avatar
Mark Otto committed
137
138
  font-size: 16px;
  color: #5a5a5a;
Mark Otto's avatar
Mark Otto committed
139
  text-align: center;
Mark Otto's avatar
Mark Otto committed
140
141
  border-bottom: 1px solid #ddd;
}
Mark Otto's avatar
Mark Otto committed
142
.bs-header h1 {
143
  color: #b94a48;
Mark Otto's avatar
Mark Otto committed
144
}
Mark Otto's avatar
Mark Otto committed
145
.bs-header p {
Mark Otto's avatar
Mark Otto committed
146
147
  font-weight: 300;
  line-height: 1.5;
Mark Otto's avatar
Mark Otto committed
148
}
149
150
151
152

/* Padding for in-page bookmarks */
.bs-docs-section {
  padding-top: 30px;
Mark Otto's avatar
Mark Otto committed
153
154
155
156
}



157
/* Docs sidebar
Mark Otto's avatar
Mark Otto committed
158
159
-------------------------------------------------- */

160
161
162
163
164
165
166
167
168
/* By default it's not affixed in mobile views, so undo that */
.bs-sidebar.affix {
  position: static;
}

/* First level of nav */
.bs-sidenav {
  margin-top: 30px;
  margin-bottom: 30px;
Mark Otto's avatar
Mark Otto committed
169
170
171
172
173
  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
174
}
175
176
177

/* All levels of nav */
.bs-sidebar .nav > li > a {
Mark Otto's avatar
Mark Otto committed
178
  display: block;
179
  color: #666;
180
  padding: 4px 20px;
181
}
182
183
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
Mark Otto's avatar
Mark Otto committed
184
  text-decoration: none;
185
  border-right: 1px solid #d5d5d5;
Mark Otto's avatar
Mark Otto committed
186
}
187
188
189
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
190
  font-weight: 500;
Mark Otto's avatar
dat red    
Mark Otto committed
191
  color: #b94a48;
192
  background-color: transparent;
Mark Otto's avatar
dat red    
Mark Otto committed
193
  border-right: 1px solid #b94a48;
Mark Otto's avatar
Mark Otto committed
194
195
}

Mark Otto's avatar
Mark Otto committed
196
/* Nav: second level (shown on .active) */
197
.bs-sidebar .nav .nav {
Mark Otto's avatar
Mark Otto committed
198
199
200
  display: none;
  margin-bottom: 5px;
}
201
.bs-sidebar .nav > .active > ul {
Mark Otto's avatar
Mark Otto committed
202
203
  display: block;
}
204
.bs-sidebar .nav .nav > li > a {
Mark Otto's avatar
Mark Otto committed
205
206
  padding-top: 2px;
  padding-bottom: 2px;
Mark Otto's avatar
Mark Otto committed
207
  padding-left: 30px;
Mark Otto's avatar
Mark Otto committed
208
209
210
  font-size: 90%;
}

Mark Otto's avatar
Mark Otto committed
211

212

Mark Otto's avatar
Mark Otto committed
213
214
215
/* Side notes for calling out things
-------------------------------------------------- */

Mark Otto's avatar
Mark Otto committed
216
.bs-callout {
Mark Otto's avatar
Mark Otto committed
217
218
219
220
221
  margin: 20px 0;
  padding: 15px 30px 15px 15px;
  background-color: #fcf2f2;
  border-left: 5px solid #df7c7b;
}
Mark Otto's avatar
Mark Otto committed
222
.bs-callout h4 {
Mark Otto's avatar
Mark Otto committed
223
224
  margin-top: 0;
}
Mark Otto's avatar
Mark Otto committed
225
.bs-callout p:last-child {
Mark Otto's avatar
Mark Otto committed
226
227
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
228
229
.bs-callout code,
.bs-callout .highlight {
Mark Otto's avatar
Mark Otto committed
230
231
232
233
234
  background-color: #fff;
}



235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
/* 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
253
254
255
256
/* Bootstrap code examples
-------------------------------------------------- */

/* Base class */
Mark Otto's avatar
Mark Otto committed
257
.bs-example {
Mark Otto's avatar
Mark Otto committed
258
259
260
261
  position: relative;
  padding: 39px 14px 14px;
  margin-bottom: -1px;
  border: 1px solid #ddd;
262
263
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
Mark Otto's avatar
Mark Otto committed
264
265
}
/* Echo out a label for the example */
Mark Otto's avatar
Mark Otto committed
266
.bs-example:after {
Mark Otto's avatar
Mark Otto committed
267
268
269
270
271
272
273
274
275
276
  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;
277
278
  border-top-left-radius: 4px;
  border-bottom-right-radius: 4px;
Mark Otto's avatar
Mark Otto committed
279
280
281
}

/* Tweak display of the examples */
Mark Otto's avatar
Mark Otto committed
282
283
.bs-example + .prettyprint,
.bs-example + .highlight {
Mark Otto's avatar
Mark Otto committed
284
285
286
287
288
289
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Tweak content of examples for optimum awesome */
Mark Otto's avatar
Mark Otto committed
290
291
292
293
294
295
296
297
.bs-example > p:last-child,
.bs-example > ul:last-child,
.bs-example > ol:last-child,
.bs-example > blockquote:last-child,
.bs-example > input:last-child,
.bs-example > select:last-child,
.bs-example > textarea:last-child,
.bs-example > .table:last-child,
298
.bs-example > .navbar:last-child
Mark Otto's avatar
Mark Otto committed
299
300
301
302
303
.bs-example > .jumbotron:last-child,
.bs-example > .alert:last-child,
.bs-example > .panel:last-child,
.bs-example > .list-group:last-child,
.bs-example > .well:last-child {
Mark Otto's avatar
Mark Otto committed
304
305
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
306
307
308
.bs-example > .close {
  float: none;
}
Mark Otto's avatar
Mark Otto committed
309

310
/* Typography */
Mark Otto's avatar
Mark Otto committed
311
.bs-example-type .table td {
312
313
314
315
  color: #999;
  vertical-align: middle;
  border-color: ;
}
Mark Otto's avatar
Mark Otto committed
316
317
.bs-example-type .table td,
.bs-example-type .table th {
318
319
320
  padding: 15px 0;
  border-color: #eee;
}
Mark Otto's avatar
Mark Otto committed
321
322
.bs-example-type .table tr:first-child td,
.bs-example-type .table tr:first-child th {
323
324
  border-top: 0;
}
Mark Otto's avatar
Mark Otto committed
325
326
327
328
329
330
.bs-example-type h1,
.bs-example-type h2,
.bs-example-type h3,
.bs-example-type h4,
.bs-example-type h5,
.bs-example-type h6 {
331
332
333
  margin: 0;
}

334
/* Forms */
335
336
337
.bs-example.form-inline select,
.bs-example.form-inline input[type="text"],
.bs-example.form-inline input[type="password"] {
338
339
  width: 180px;
}
340
341
342
343
.bs-example-control-sizing input[type="text"] + input[type="text"] {
  margin-top: 10px;
}

Mark Otto's avatar
Mark Otto committed
344
/* List groups */
Mark Otto's avatar
Mark Otto committed
345
.bs-example > .list-group {
Mark Otto's avatar
Mark Otto committed
346
347
  max-width: 400px;
}
348

Mark Otto's avatar
Mark Otto committed
349
350
351
352
353
/* Navbar examples */
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
354
  min-height: 110px;
Mark Otto's avatar
Mark Otto committed
355
356
357
358
  overflow: hidden; /* cut the drop shadows off */
}
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
359
  position: relative;
Mark Otto's avatar
Mark Otto committed
360
361
362
  margin-left: 0;
  margin-right: 0;
}
363
364
365
366
367
368
.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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
.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 */
Mark Otto's avatar
Mark Otto committed
391
.bs-example-modal {
Mark Otto's avatar
Mark Otto committed
392
393
  background-color: #f5f5f5;
}
Mark Otto's avatar
Mark Otto committed
394
.bs-example-modal .modal {
Mark Otto's avatar
Mark Otto committed
395
396
397
398
399
400
401
402
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  z-index: 1;
  display: block;
}
Mark Otto's avatar
Mark Otto committed
403
.bs-example-modal .modal-dialog {
Mark Otto's avatar
Mark Otto committed
404
405
406
407
408
  left: auto;
  margin-left: auto;
  margin-right: auto;
}

Mark Otto's avatar
Mark Otto committed
409
/* Example dropdowns */
Mark Otto's avatar
Mark Otto committed
410
411
412
.bs-example > .dropdown > .dropdown-menu,
.bs-example-submenu > .pull-left > .dropup > .dropdown-menu,
.bs-example-submenu > .pull-left > .dropdown > .dropdown-menu {
Mark Otto's avatar
Mark Otto committed
413
414
415
416
  position: static;
  display: block;
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
417
.bs-example-submenu {
418
  min-height: 230px;
Mark Otto's avatar
Mark Otto committed
419
}
Mark Otto's avatar
Mark Otto committed
420
.bs-example-submenu > .pull-left + .pull-left {
Mark Otto's avatar
Mark Otto committed
421
422
  margin-left: 20px;
}
Mark Otto's avatar
Mark Otto committed
423

424
/* Example tabbable tabs */
Mark Otto's avatar
Mark Otto committed
425
.bs-example-tabs .nav-tabs {
426
427
428
  margin-bottom: 15px;
}

429
/* Tooltips */
430
.bs-example-tooltips {
431
432
433
434
  text-align: center;
  margin: 0 0 10px;
  list-style: none;
}
435
.bs-example-tooltips li {
436
437
438
439
440
  display: inline;
  padding: 0 10px;
}

/* Popovers */
Mark Otto's avatar
Mark Otto committed
441
.bs-example-popover {
442
443
444
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
Mark Otto's avatar
Mark Otto committed
445
.bs-example-popover .popover {
446
447
448
449
450
451
452
  position: relative;
  display: block;
  float: left;
  width: 260px;
  margin: 20px;
}

Mark Otto's avatar
Mark Otto committed
453

Mark Otto's avatar
Mark Otto committed
454

Mark Otto's avatar
Mark Otto committed
455
456
457
/* Example templates
-------------------------------------------------- */

Mark Otto's avatar
Mark Otto committed
458
.bs-examples h4 {
Mark Otto's avatar
Mark Otto committed
459
460
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
461
.bs-examples p {
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
  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
487
488
     -moz-box-sizing: border-box;
          box-sizing: border-box;
Mark Otto's avatar
Mark Otto committed
489
490
  margin: 0 -1px -1px 0;
}
491
.the-icons .glyphicon {
Mark Otto's avatar
Mark Otto committed
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%;
}
.responsive-utilities-test li + li {
  margin-left: 10px;
}
.responsive-utilities-test span {
552
  padding: 15px 10px;
553
554
555
556
  font-size: 14px;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
557
  border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
558
}
559
560
561
562
563
564
565
.responsive-utilities-test.visible-on [class*="hidden"],
.responsive-utilities-test.hidden-on [class*="visible"] {
  color: #999;
  border: 1px solid #ddd;
}
.responsive-utilities-test.visible-on [class*="visible"],
.responsive-utilities-test.hidden-on [class*="hidden"] {
Mark Otto's avatar
Mark Otto committed
566
567
568
569
570
571
572
573
574
575
  color: #468847;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
}



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

576
.bs-footer {
Mark Otto's avatar
Mark Otto committed
577
  padding-top: 40px;
578
  padding-bottom: 30px;
Mark Otto's avatar
Mark Otto committed
579
  margin-top: 100px;
Mark Otto's avatar
Mark Otto committed
580
  text-align: center;
Mark Otto's avatar
Mark Otto committed
581
582
  border-top: 1px solid #e5e5e5;
}
583
.bs-footer p {
Mark Otto's avatar
Mark Otto committed
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
  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 */
Mark Otto's avatar
Mark Otto committed
599
.bs-social {
Mark Otto's avatar
Mark Otto committed
600
601
  margin-bottom: 20px;
}
Mark Otto's avatar
Mark Otto committed
602
.bs-social-buttons {
Mark Otto's avatar
Mark Otto committed
603
604
605
606
  display: inline-block;
  margin: 0;
  list-style: none;
}
Mark Otto's avatar
Mark Otto committed
607
.bs-social-buttons li {
Mark Otto's avatar
Mark Otto committed
608
609
610
  display: inline-block;
  line-height: 1;
}
Mark Otto's avatar
Mark Otto committed
611
.bs-social-buttons li + li {
Mark Otto's avatar
Mark Otto committed
612
613
  margin-left: 15px;
}
Mark Otto's avatar
Mark Otto committed
614
.bs-social-buttons .twitter-follow-button {
Mark Otto's avatar
Mark Otto committed
615
616
  width: 225px !important;
}
Mark Otto's avatar
Mark Otto committed
617
.bs-social-buttons .twitter-share-button {
Mark Otto's avatar
Mark Otto committed
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
  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;
}

643
.highlight {
644
  padding: 9px 14px;
645
  margin-bottom: 14px;
646
647
648
  background-color: #f7f7f9;
  border: 1px solid #e1e1e8;
  border-radius: 4px;
649
650
651
}
.highlight pre {
  padding: 0;
Mark Otto's avatar
Mark Otto committed
652
  margin-top: 0;
653
654
655
  margin-bottom: 0;
  background-color: transparent;
  border: 0;
656
  white-space: nowrap;
657
658
}
.highlight pre code {
659
660
661
662
663
  font-size: inherit;
  color: #333; /* Effectively the base text color */
}
.highlight pre .lineno {
  display: inline-block;
664
  width: 22px;
665
666
667
668
  padding-right: 5px;
  margin-right: 10px;
  text-align: right;
  color: #bebec5;
669
670
}

Mark Otto's avatar
Mark Otto committed
671
672
673
674
/* Better spacing on download options in getting started */
.bs-docs-dl-options h4 {
  margin-top: 15px;
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
675
676
}

677
678
679
680
/* Hide the top link initially */
.bs-top {
  display: none;
}
Mark Otto's avatar
Mark Otto committed
681

Mark Otto's avatar
Mark Otto committed
682

Mark Otto's avatar
Mark Otto committed
683
684
685
/* Responsive variations
-------------------------------------------------- */

686
687
/* Hide code snippets on mobile devices */
@media screen and (max-width: 480px) {
Mark Otto's avatar
Mark Otto committed
688
  .bs-example {
689
690
691
692
693
694
695
    border-radius: 4px;
  }
  .highlight {
    display: none;
  }
}

Mark Otto's avatar
Mark Otto committed
696
697
698
/* Tablets and up */
@media screen and (min-width: 768px) {

699
700
701
702
703
704
705
  /* Reaffix the fixed sidebar */
  .bs-sidebar.affix {
    position: fixed; /* Undo the static from mobile-first approach */
    top: 50px;
    width: 160px;
  }

706
  /* Back to top link */
Mark Otto's avatar
Mark Otto committed
707
  .bs-top {
708
    display: block; /* Unhide */
709
710
711
712
713
714
715
    float: left;
    padding: 7px 15px;
    font-weight: 500;
    color: #999;
    background-color: #eee;
    border-radius: 4px;
  }
Mark Otto's avatar
Mark Otto committed
716
  .bs-top:hover {
717
718
719
720
    color: #fff;
    text-decoration: none;
    background-color: #999;
  }
Mark Otto's avatar
Mark Otto committed
721
  .bs-top.affix {
722
723
724
725
726
    position: fixed;
    right:  15px;
    bottom: 15px;
  }

Mark Otto's avatar
Mark Otto committed
727
  .bs-header {
Mark Otto's avatar
Mark Otto committed
728
    font-size: 21px;
Mark Otto's avatar
Mark Otto committed
729
    text-align: left;
Mark Otto's avatar
Mark Otto committed
730
  }
Mark Otto's avatar
Mark Otto committed
731
  .bs-header h1 {
Mark Otto's avatar
Mark Otto committed
732
    font-size: 60px;
733
734
735
    line-height: 1;
  }

736
  /* Show the docs nav */
737
  .bs-sidebar {
738
739
740
    display: block;
  }

Mark Otto's avatar
Mark Otto committed
741
  /* Tweak display of docs jumbotrons */
742
  .bs-masthead {
Mark Otto's avatar
Mark Otto committed
743
744
745
    padding-top:    100px;
    padding-bottom: 100px;
  }
746
  .bs-masthead h1 {
Mark Otto's avatar
Mark Otto committed
747
748
    font-size: 100px;
  }
749
  .bs-masthead p {
Mark Otto's avatar
center    
Mark Otto committed
750
751
    margin-left: 15%;
    margin-right: 15%;
Mark Otto's avatar
Mark Otto committed
752
753
754
    font-size: 30px;
  }

755
756
757
758
759
  .bs-navbar-top-example .navbar-fixed-top,
  .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }

Mark Otto's avatar
Mark Otto committed
760
761
762
763
}

/* Tablets/desktops and up */
@media screen and (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
764

765
766
767
768
769
  /* Widen the fixed sidebar */
  .bs-sidebar.affix {
    width: 213px;
  }

Mark Otto's avatar
Mark Otto committed
770
771
772
773
774
  /* Icons */
  .the-icons li {
    width: 12.5%;
  }

Mark Otto's avatar
Mark Otto committed
775
776
777
778
}

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

780
781
782
783
784
  /* Widen the fixed sidebar again */
  .bs-sidebar.affix {
    width: 270px;
  }

785
}