docs.css 26.7 KB
Newer Older
1
/*csslint ids: false, overqualified-elements: false*/
2
/*!
3
 * Copyright 2011-2014 Twitter, Inc.
4
5
6
 *
 * Licensed under the Creative Commons Attribution 3.0 Unported License. For
 * details, see http://creativecommons.org/licenses/by/3.0/.
7
 */
8
9


Mark Otto's avatar
Mark Otto committed
10
11
12
/*
 * Bootstrap Documentation
 * Special styles for presenting Bootstrap's documentation and code examples.
Mark Otto's avatar
Mark Otto committed
13
14
15
16
17
18
19
20
21
22
23
24
 *
 * Table of contents:
 *
 * Scaffolding
 * Main navigation
 * Footer
 * Social buttons
 * Homepage
 * Page headers
 * Old docs callout
 * Ads
 * Side navigation
Mark Otto's avatar
Mark Otto committed
25
 * Docs sections
Mark Otto's avatar
Mark Otto committed
26
27
28
29
30
 * Callouts
 * Grid styles
 * Examples
 * Code snippets (highlight)
 * Responsive tests
Mark Otto's avatar
Mark Otto committed
31
 * Glyphicons
Mark Otto's avatar
Mark Otto committed
32
33
 * Customizer
 * Miscellaneous
Mark Otto's avatar
Mark Otto committed
34
35
 */

36
/*csslint ids: false, fallback-colors: false*/
Mark Otto's avatar
Mark Otto committed
37

Mark Otto's avatar
Mark Otto committed
38
39
40
41
42
/*
 * Scaffolding
 *
 * Update the basics of our documents to prep for docs content.
 */
Mark Otto's avatar
Mark Otto committed
43
44
45

body {
  position: relative; /* For scrollyspy */
Mark Otto's avatar
Mark Otto committed
46
  /*padding-top: 50px;  Account for fixed navbar */
Mark Otto's avatar
Mark Otto committed
47
48
}

Mark Otto's avatar
Mark Otto committed
49
50
51
52
53
54
55
/* Keep code small in tables on account of limited space */
.table code {
  font-size: 13px;
  font-weight: normal;
}

/* Outline button for use within the docs */
Mark Otto's avatar
Mark Otto committed
56
.btn-outline {
Mark Otto's avatar
Mark Otto committed
57
  color: #563d7c;
Mark Otto's avatar
Mark Otto committed
58
59
  background-color: transparent;
  border-color: #563d7c;
60
}
Mark Otto's avatar
Mark Otto committed
61
62
63
.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
64
  color: #fff;
Mark Otto's avatar
Mark Otto committed
65
66
  background-color: #563d7c;
  border-color: #563d7c;
67
68
}

Mark Otto's avatar
Mark Otto committed
69
70
/* Inverted outline button (white on dark) */
.btn-outline-inverse {
Mark Otto's avatar
Mark Otto committed
71
  color: #fff;
72
73
74
  background-color: transparent;
  border-color: #cdbfe3;
}
Mark Otto's avatar
Mark Otto committed
75
76
77
.btn-outline-inverse:hover,
.btn-outline-inverse:focus,
.btn-outline-inverse:active {
78
  color: #563d7c;
79
  text-shadow: none;
80
81
82
83
  background-color: #fff;
  border-color: #fff;
}

Mark Otto's avatar
Mark Otto committed
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/* Bootstrap "B" icon */
.bs-booticon {
  display: block;
  font-weight: 500;
  color: #fff;
  background-color: #563d7c;
  border-radius: 15%;
  cursor: default;
  text-align: center;
}
.bs-booticon-sm {
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 28px;
}
.bs-booticon-lg {
  width: 144px;
  height: 144px;
  font-size: 108px;
  line-height: 140px;
}
Mark Otto's avatar
Mark Otto committed
106
107
108
109
.bs-booticon-inverse {
  color: #563d7c;
  background-color: #fff;
}
Mark Otto's avatar
Mark Otto committed
110
111
.bs-booticon-outline {
  background-color: transparent;
Mark Otto's avatar
Mark Otto committed
112
  border: 1px solid #cdbfe3;
Mark Otto's avatar
Mark Otto committed
113
}
Mark Otto's avatar
Mark Otto committed
114

Mark Otto's avatar
Mark Otto committed
115

Mark Otto's avatar
Mark Otto committed
116
117
118
119
120
/*
 * Main navigation
 *
 * Turn the `.navbar` at the top of the docs purple.
 */
Mark Otto's avatar
Mark Otto committed
121

Mark Otto's avatar
Mark Otto committed
122
.bs-docs-nav {
Mark Otto's avatar
Mark Otto committed
123
  margin-bottom: 0;
Mark Otto's avatar
Mark Otto committed
124
  background-color: #fff;
Mark Otto's avatar
Mark Otto committed
125
  border-bottom: 0;
Mark Otto's avatar
Mark Otto committed
126
127
128
}
.bs-home-nav .bs-nav-b {
  display: none;
Mark Otto's avatar
Mark Otto committed
129
}
Mark Otto's avatar
Mark Otto committed
130
.bs-docs-nav .navbar-brand,
Mark Otto's avatar
Mark Otto committed
131
.bs-docs-nav .navbar-nav > li > a {
Mark Otto's avatar
Mark Otto committed
132
133
  color: #563d7c;
  font-weight: 500;
Mark Otto's avatar
Mark Otto committed
134
}
Mark Otto's avatar
Mark Otto committed
135
.bs-docs-nav .navbar-nav > li > a:hover,
Mark Otto's avatar
Mark Otto committed
136
137
.bs-docs-nav .navbar-nav > .active > a,
.bs-docs-nav .navbar-nav > .active > a:hover {
Mark Otto's avatar
Mark Otto committed
138
139
  color: #463265;
  background-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
140
}
Mark Otto's avatar
Mark Otto committed
141
142
.bs-docs-nav .navbar-toggle .icon-bar {
  background-color: #563d7c;
Mark Otto's avatar
Mark Otto committed
143
}
144
.bs-docs-nav .navbar-header .navbar-toggle {
145
  border-color: #fff;
Mark Otto's avatar
Mark Otto committed
146
}
147
148
.bs-docs-nav .navbar-header .navbar-toggle:hover,
.bs-docs-nav .navbar-header .navbar-toggle:focus {
Mark Otto's avatar
Mark Otto committed
149
  background-color: #f9f9f9;
150
  border-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
151
152
}

Mark Otto's avatar
Mark Otto committed
153
154
155
156
157
158
159
160
161

/*
 * Footer
 *
 * Separated section of content at the bottom of all pages, save the homepage.
 */

.bs-footer {
  padding-top: 40px;
Mark Otto's avatar
Mark Otto committed
162
  padding-bottom: 40px;
Mark Otto's avatar
Mark Otto committed
163
  margin-top: 100px;
164
  color: #777;
165
166
  text-align: center;
  border-top: 1px solid #e5e5e5;
167
}
Mark Otto's avatar
Mark Otto committed
168
.footer-links {
Mark Otto's avatar
Mark Otto committed
169
  margin-top: 20px;
Mark Otto's avatar
Mark Otto committed
170
  padding-left: 0;
171
  color: #999;
172
}
Mark Otto's avatar
Mark Otto committed
173
174
175
.footer-links li {
  display: inline;
  padding: 0 2px;
176
}
Mark Otto's avatar
Mark Otto committed
177
178
179
180
.footer-links li:first-child {
  padding-left: 0;
}

181
182
183
184
185
186
@media (min-width: 768px) {
  .bs-footer p {
    margin-bottom: 0;
  }
}

Mark Otto's avatar
Mark Otto committed
187
188
189
190
191
192
193
194
195

/*
 * Social buttons
 *
 * Twitter and GitHub social action buttons (for homepage and footer).
 */

.bs-social {
  margin-bottom: 20px;
196
  text-align: center;
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
}
.bs-social-buttons {
  display: inline-block;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}
.bs-social-buttons li {
  display: inline-block;
  line-height: 1;
  padding: 5px 8px;
}
.bs-social-buttons .twitter-follow-button {
  width: 225px !important;
}
.bs-social-buttons .twitter-share-button {
  width: 98px !important;
}
/* Style the GitHub buttons via CSS instead of inline attributes */
.github-btn {
  border: 0;
  overflow: hidden;
}


/*
 * Homepage
 *
 * Tweaks to the custom homepage and the masthead (main jumbotron).
 */
Mark Otto's avatar
Mark Otto committed
227

Mark Otto's avatar
Mark Otto committed
228
 /* Masthead (headings and download button) */
Mark Otto's avatar
Mark Otto committed
229
.bs-masthead {
Mark Otto's avatar
Mark Otto committed
230
231
  position: relative;
  padding: 30px 15px;
Mark Otto's avatar
Mark Otto committed
232
  color: #cdbfe3;
Mark Otto's avatar
center    
Mark Otto committed
233
  text-align: center;
Mark Otto's avatar
Mark Otto committed
234
235
236
237
238
239
  text-shadow: 0 1px 0 rgba(0,0,0,.1);
  background-color: #6f5499;
  background-image: -webkit-linear-gradient(top, #563d7c 0%, #6f5499 100%);
  background-image: linear-gradient(to bottom, #563d7c 0%, #6f5499 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#563d7c', endColorstr='#6F5499', GradientType=0);
Mark Otto's avatar
Mark Otto committed
240
241
242
}
.bs-masthead .bs-booticon {
  margin: 0 auto 30px;
Mark Otto's avatar
Mark Otto committed
243
}
244
.bs-masthead h1 {
Mark Otto's avatar
Mark Otto committed
245
  font-weight: 300;
Mark Otto's avatar
Mark Otto committed
246
  line-height: 1;
Mark Otto's avatar
Mark Otto committed
247
  color: #fff;
Mark Otto's avatar
Mark Otto committed
248
}
Mark Otto's avatar
Mark Otto committed
249
.bs-masthead .lead {
Mark Otto's avatar
Mark Otto committed
250
  margin: 0 auto 30px;
Mark Otto's avatar
Mark Otto committed
251
  font-size: 20px;
Mark Otto's avatar
Mark Otto committed
252
  color: #fff;
Mark Otto's avatar
Mark Otto committed
253
}
Mark Otto's avatar
Mark Otto committed
254
.bs-masthead .btn {
Mark Otto's avatar
Mark Otto committed
255
  width: 100%;
Mark Otto's avatar
Mark Otto committed
256
  padding: 15px 30px;
Mark Otto's avatar
Mark Otto committed
257
258
259
260
  font-size: 20px;
}

@media (min-width: 480px) {
Mark Otto's avatar
Mark Otto committed
261
  .bs-masthead .btn {
Mark Otto's avatar
Mark Otto committed
262
263
    width: auto;
  }
264
}
Mark Otto's avatar
Mark Otto committed
265

266
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
267
268
269
270
  .bs-masthead {
    padding-top: 80px;
    padding-bottom: 80px;
  }
Mark Otto's avatar
Mark Otto committed
271
272
273
  .bs-masthead h1 {
    font-size: 60px;
  }
Mark Otto's avatar
Mark Otto committed
274
  .bs-masthead .lead {
Mark Otto's avatar
Mark Otto committed
275
    font-size: 24px;
Mark Otto's avatar
Mark Otto committed
276
277
278
279
  }
}

@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
280
  .bs-masthead .lead {
Mark Otto's avatar
Mark Otto committed
281
    width: 80%;
Mark Otto's avatar
Mark Otto committed
282
283
    font-size: 30px;
  }
Mark Otto's avatar
Mark Otto committed
284
285
}

286

Mark Otto's avatar
Mark Otto committed
287
288
289
290
291
/*
 * Page headers
 *
 * Jumbotron-esque headers at the top of every page that's not the homepage.
 */
292

293
/* Page headers */
Mark Otto's avatar
Mark Otto committed
294
.bs-header {
Mark Otto's avatar
Mark Otto committed
295
  padding: 30px 15px 40px; /* side padding builds on .container 15px, so 30px */
296
  font-size: 20px;
Mark Otto's avatar
Mark Otto committed
297
  text-align: center;
Mark Otto's avatar
Mark Otto committed
298
  background-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
299
  border-top: 1px solid #eee;
Mark Otto's avatar
Mark Otto committed
300
  border-bottom: 1px solid #eee;
Mark Otto's avatar
Mark Otto committed
301
}
Mark Otto's avatar
Mark Otto committed
302
.bs-header h1 {
Mark Otto's avatar
Mark Otto committed
303
  color: #563d7c;
Mark Otto's avatar
Mark Otto committed
304
}
Mark Otto's avatar
Mark Otto committed
305
.bs-header p {
Mark Otto's avatar
Mark Otto committed
306
307
  font-weight: 300;
  line-height: 1.5;
Mark Otto's avatar
Mark Otto committed
308
}
Mark Otto's avatar
Mark Otto committed
309
310
311
312
.bs-header .container {
  position: relative;
}

313
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
314
315
316
317
318
319
320
  .bs-header {
    text-align: left;
  }
  .bs-header h1 {
    font-size: 60px;
    line-height: 1;
  }
Mark Otto's avatar
Mark Otto committed
321
322
}

323
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
324
325
326
327
328
329
330
331
332
333
334
335
336
337
  .bs-header h1,
  .bs-header p {
    margin-right: 380px;
  }
}


/*
 * Carbon ads
 *
 * Single display ad that shows on all pages (except homepage) in page headers.
 * The hella `!important` is required for any pre-set property.
 */

Mark Otto's avatar
Mark Otto committed
338
339
.carbonad {
  width: auto !important;
340
  margin: 20px -30px -41px !important;
Mark Otto's avatar
Mark Otto committed
341
342
343
344
345
346
  padding: 20px !important;
  overflow: hidden; /* clearfix */
  height: auto !important;
  font-size: 13px !important;
  line-height: 16px !important;
  text-align: left;
Mark Otto's avatar
Mark Otto committed
347
  background: #fff !important;
348
349
  border: solid #e5e5e5 !important;
  border-width: 1px 0 !important;
Mark Otto's avatar
Mark Otto committed
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
}
.carbonad-img {
  margin: 0 !important;
}
.carbonad-text,
.carbonad-tag {
  float: none !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin-left: 145px !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.carbonad-text {
  padding-top: 0 !important;
}
.carbonad-tag {
Mark Otto's avatar
Mark Otto committed
367
  color: #999 !important;
Mark Otto's avatar
Mark Otto committed
368
369
  text-align: left !important;
}
Mark Otto's avatar
Mark Otto committed
370
371
.carbonad-text a,
.carbonad-tag a {
Mark Otto's avatar
Mark Otto committed
372
  color: #563d7c !important;
Mark Otto's avatar
Mark Otto committed
373
}
Mark Otto's avatar
Mark Otto committed
374
375
376
.carbonad #azcarbon > img {
  display: none; /* hide what I assume are tracking images */
}
377

378
379
/* Homepage variation */
.bs-docs-home .carbonad {
Mark Otto's avatar
Mark Otto committed
380
  background-color: transparent !important;
Mark Otto's avatar
Mark Otto committed
381
  margin: 0 -30px -31px !important;
Mark Otto's avatar
Mark Otto committed
382
383
384
385
  border-color: #866ab3 !important;
}
.bs-docs-home .carbonad-tag {
  color: inherit !important;
386
}
Mark Otto's avatar
Mark Otto committed
387
388
389
390
391
.bs-docs-home .carbonad-text a,
.bs-docs-home .carbonad-tag a {
  color: #fff !important;
}

392
393
394
395
396
397
398
399
400

@media (min-width: 480px) {
  .carbonad {
    width: 330px !important;
    margin: 20px auto 0 !important;
    border-radius: 4px;
    border-width: 1px !important;
  }
  .bs-docs-home .carbonad {
Mark Otto's avatar
Mark Otto committed
401
    margin: 50px auto 0 !important;
402
403
404
  }
}

405
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
406
407
408
409
410
  .carbonad {
    margin: 0 !important;
  }
}

411
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
412
413
414
  .carbonad {
    position: absolute;
    top: 20px;
415
    right: 15px; /* 15px instead of 0 since box-sizing */
Mark Otto's avatar
Mark Otto committed
416
417
418
    padding: 15px !important;
    width: 330px !important;
  }
Mark Otto's avatar
Mark Otto committed
419
  .bs-docs-home .carbonad {
420
    position: static;
Mark Otto's avatar
Mark Otto committed
421
422
  }
}
423

Mark Otto's avatar
Mark Otto committed
424
425
426
427
428
429
430
431

/*
 * Homepage featurettes
 *
 * Reasons to use Bootstrap, entries from the Expo, and more.
 */

.bs-featurette {
Mark Otto's avatar
Mark Otto committed
432
433
  padding-top:    40px;
  padding-bottom: 40px;
Mark Otto's avatar
Mark Otto committed
434
435
436
437
438
439
440
441
442
443
444
445
446
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  text-align: center;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.bs-featurette + .bs-footer {
  margin-top: 0;
  border-top: 0;
}

.bs-featurette-title {
Mark Otto's avatar
Mark Otto committed
447
  font-size: 30px;
Mark Otto's avatar
Mark Otto committed
448
449
450
451
  font-weight: normal;
  color: #333;
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
452
453
454
.half-rule {
  width: 100px;
  margin: 40px auto;
Mark Otto's avatar
Mark Otto committed
455
456
}
.bs-featurette h3 {
Mark Otto's avatar
Mark Otto committed
457
458
  font-weight: normal;
  color: #333;
Mark Otto's avatar
Mark Otto committed
459
460
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
461
462
463
464
.bs-featurette-img {
  display: block;
  margin-bottom: 20px;
  color: #333;
Mark Otto's avatar
Mark Otto committed
465
}
Mark Otto's avatar
Mark Otto committed
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
.bs-featurette-img:hover {
  text-decoration: none;
  color: #428bca;
}
.bs-featurette-img img {
  display: block;
  margin-bottom: 15px;
}

/* Featured sites */
.bs-featured-sites {
  margin-left: -1px;
  margin-right: -1px;
}
.bs-featured-sites .col-sm-3 {
  padding-left: 1px;
  padding-right: 1px;
}

@media (min-width: 480px) {
  .bs-featurette .img-responsive {
    margin-top: 30px;
  }
}
@media (min-width: 768px) {
  .bs-featurette {
    padding-top:    100px;
    padding-bottom: 100px;
  }
  .bs-featurette-title {
    font-size: 40px;
  }
  .bs-featurette .lead {
    margin-left:  auto;
    margin-right: auto;
    max-width: 80%;
  }
  .bs-featured-sites .col-sm-3:first-child img {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }
  .bs-featured-sites .col-sm-3:last-child img {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }

  .bs-featurette .img-responsive {
    margin-top: 0;
  }
Mark Otto's avatar
Mark Otto committed
515
516
}

Mark Otto's avatar
Mark Otto committed
517
518
519
520
521
522
523

/*
 * Side navigation
 *
 * Scrollspy and affixed enhanced navigation to highlight sections and secondary
 * sections of docs content.
 */
Mark Otto's avatar
Mark Otto committed
524

525
526
527
528
/* By default it's not affixed in mobile views, so undo that */
.bs-sidebar.affix {
  position: static;
}
Mark Otto's avatar
Mark Otto committed
529
530
@media (min-width: 768px) {
  .bs-sidebar {
Mark Otto's avatar
tweaks    
Mark Otto committed
531
    padding-left: 20px;
Mark Otto's avatar
Mark Otto committed
532
533
  }
}
534
535
536

/* First level of nav */
.bs-sidenav {
Mark Otto's avatar
Mark Otto committed
537
538
  margin-top: 20px;
  margin-bottom: 20px;
Mark Otto's avatar
Mark Otto committed
539
540
  padding-top: 5px;
  padding-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
541
}
542
543
544

/* All levels of nav */
.bs-sidebar .nav > li > a {
Mark Otto's avatar
Mark Otto committed
545
  display: block;
Mark Otto's avatar
tweaks    
Mark Otto committed
546
  font-size: 13px;
Mark Otto's avatar
Mark Otto committed
547
548
  font-weight: 500;
  color: #999;
Mark Otto's avatar
tweaks    
Mark Otto committed
549
  padding: 4px 20px;
550
}
551
552
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
Mark Otto's avatar
Mark Otto committed
553
554
  padding-left: 19px;
  color: #563d7c;
Mark Otto's avatar
Mark Otto committed
555
  text-decoration: none;
Mark Otto's avatar
Mark Otto committed
556
557
  background-color: transparent;
  border-left: 1px solid #563d7c;
Mark Otto's avatar
Mark Otto committed
558
}
559
560
561
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
Mark Otto's avatar
Mark Otto committed
562
  padding-left: 18px;
Mark Otto's avatar
Mark Otto committed
563
  font-weight: bold;
Mark Otto's avatar
Mark Otto committed
564
  color: #563d7c;
565
  background-color: transparent;
Mark Otto's avatar
Mark Otto committed
566
  border-left: 2px solid #563d7c;
Mark Otto's avatar
Mark Otto committed
567
568
}

Mark Otto's avatar
Mark Otto committed
569
/* Nav: second level (shown on .active) */
570
.bs-sidebar .nav .nav {
571
  display: none; /* Hide by default, but at >768px, show it */
Mark Otto's avatar
Mark Otto committed
572
  padding-bottom: 10px;
Mark Otto's avatar
Mark Otto committed
573
}
574
.bs-sidebar .nav .nav > li > a {
Mark Otto's avatar
tweaks    
Mark Otto committed
575
576
  padding-top:    2px;
  padding-bottom: 2px;
Mark Otto's avatar
Mark Otto committed
577
  padding-left: 30px;
Mark Otto's avatar
tweaks    
Mark Otto committed
578
  font-size: 12px;
Mark Otto's avatar
Mark Otto committed
579
580
581
582
583
584
585
586
587
588
589
  font-weight: normal;
}
.bs-sidebar .nav .nav > li > a:hover,
.bs-sidebar .nav .nav > li > a:focus {
  padding-left: 29px;
}
.bs-sidebar .nav .nav > .active > a,
.bs-sidebar .nav .nav > .active:hover > a,
.bs-sidebar .nav .nav > .active:focus > a {
  font-weight: 500;
  padding-left: 28px;
Mark Otto's avatar
Mark Otto committed
590
591
}

Mark Otto's avatar
Mark Otto committed
592
/* Show and affix the side nav when space allows it */
593
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
594
595
596
597
598
599
600
601
602
603
  .bs-sidebar .nav > .active > ul {
    display: block;
  }
  /* Widen the fixed sidebar */
  .bs-sidebar.affix,
  .bs-sidebar.affix-bottom {
    width: 213px;
  }
  .bs-sidebar.affix {
    position: fixed; /* Undo the static from mobile first approach */
Mark Otto's avatar
Mark Otto committed
604
    top: 20px;
Mark Otto's avatar
Mark Otto committed
605
606
607
608
609
610
611
612
613
614
  }
  .bs-sidebar.affix-bottom {
    position: absolute; /* Undo the static from mobile first approach */
  }
  .bs-sidebar.affix-bottom .bs-sidenav,
  .bs-sidebar.affix .bs-sidenav {
    margin-top: 0;
    margin-bottom: 0;
  }
}
615
@media (min-width: 1200px) {
Mark Otto's avatar
Mark Otto committed
616
617
618
619
620
621
622
623
624
625
626
627
628
629
  /* Widen the fixed sidebar again */
  .bs-sidebar.affix-bottom,
  .bs-sidebar.affix {
    width: 263px;
  }
}


/*
 * Docs sections
 *
 * Content blocks for each component or feature.
 */

630
/* Space things out */
Mark Otto's avatar
Mark Otto committed
631
.bs-docs-section + .bs-docs-section {
632
  padding-top: 40px;
Mark Otto's avatar
Mark Otto committed
633
}
Mark Otto's avatar
Mark Otto committed
634

Mark Otto's avatar
Mark Otto committed
635
/* Janky fix for preventing navbar from overlapping */
636
h1[id] {
637
  padding-top: 80px;
638
  margin-top: -45px;
639
640
}

641

Mark Otto's avatar
Mark Otto committed
642
643
644
645
646
647
/*
 * Callouts
 *
 * Not quite alerts, but custom and helpful notes for folks reading the docs.
 * Requires a base and modifier class.
 */
Mark Otto's avatar
Mark Otto committed
648

Mark Otto's avatar
Mark Otto committed
649
/* Common styles for all types */
Mark Otto's avatar
Mark Otto committed
650
.bs-callout {
Mark Otto's avatar
Mark Otto committed
651
  margin: 20px 0;
Mark Otto's avatar
Mark Otto committed
652
653
  padding: 20px;
  border-left: 3px solid #eee;
Mark Otto's avatar
Mark Otto committed
654
}
Mark Otto's avatar
Mark Otto committed
655
.bs-callout h4 {
Mark Otto's avatar
Mark Otto committed
656
  margin-top: 0;
Mark Otto's avatar
Mark Otto committed
657
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
658
}
Mark Otto's avatar
Mark Otto committed
659
.bs-callout p:last-child {
Mark Otto's avatar
Mark Otto committed
660
661
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
662
663
664
665
.bs-callout code {
  background-color: #fff;
  border-radius: 3px;
}
Mark Otto's avatar
Mark Otto committed
666

Mark Otto's avatar
Mark Otto committed
667
/* Variations */
668
.bs-callout-danger {
Mark Otto's avatar
Mark Otto committed
669
  background-color: #fdf7f7;
Mark Otto's avatar
Mark Otto committed
670
  border-color: #d9534f;
Mark Otto's avatar
Mark Otto committed
671
672
}
.bs-callout-danger h4 {
Mark Otto's avatar
Mark Otto committed
673
  color: #d9534f;
674
675
}
.bs-callout-warning {
Mark Otto's avatar
Mark Otto committed
676
677
  background-color: #fcf8f2;
  border-color: #f0ad4e;
Mark Otto's avatar
Mark Otto committed
678
679
}
.bs-callout-warning h4 {
Mark Otto's avatar
Mark Otto committed
680
  color: #f0ad4e;
681
682
}
.bs-callout-info {
Mark Otto's avatar
Mark Otto committed
683
  background-color: #f4f8fa;
Mark Otto's avatar
Mark Otto committed
684
  border-color: #5bc0de;
Mark Otto's avatar
Mark Otto committed
685
686
}
.bs-callout-info h4 {
Mark Otto's avatar
Mark Otto committed
687
  color: #5bc0de;
Mark Otto's avatar
Mark Otto committed
688
689
690
}


691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
/*
 * Color swatches
 *
 * Color swatches and associated values for our grayscale and brand colors.
 */

.color-swatches {
  margin: 0 -5px;
  overflow: hidden; /* clearfix */
}
.color-swatch {
  float: left;
  width:  100px;
  height: 100px;
  margin: 0 5px;
  border-radius: 3px;
}
Mark Otto's avatar
Mark Otto committed
708
709

/* Framework colors */
710
711
712
713
714
715
716
717
718
719
720
.color-swatches .gray-darker   { background-color: #222; }
.color-swatches .gray-dark     { background-color: #333; }
.color-swatches .gray          { background-color: #555; }
.color-swatches .gray-light    { background-color: #999; }
.color-swatches .gray-lighter  { background-color: #eee; }
.color-swatches .brand-primary { background-color: #428bca; }
.color-swatches .brand-success { background-color: #5cb85c; }
.color-swatches .brand-warning { background-color: #f0ad4e; }
.color-swatches .brand-danger  { background-color: #d9534f; }
.color-swatches .brand-info    { background-color: #5bc0de; }

Mark Otto's avatar
Mark Otto committed
721
722
723
724
725
726
/* Docs colors */
.color-swatches .bs-purple          { background-color: #563d7c; }
.color-swatches .bs-purple-light    { background-color: #c7bfd3; }
.color-swatches .bs-purple-lighter  { background-color: #e5e1ea; }
.color-swatches .bs-gray            { background-color: #f9f9f9; }

727

Mark Otto's avatar
Mark Otto committed
728
729
730
731
732
733
734
735
736
737
738
739
740
741
/*
 * Team members
 *
 * Avatars, names, and usernames for core team.
 */

.bs-team .team-member {
  color: #555;
  line-height: 32px;
}
.bs-team .team-member:hover {
  color: #333;
  text-decoration: none;
}
742
.bs-team .github-btn {
Mark Otto's avatar
Mark Otto committed
743
744
  float: right;
  margin-top: 6px;
Mark Otto's avatar
Mark Otto committed
745
  width: 180px;
746
  height: 20px;
Mark Otto's avatar
Mark Otto committed
747
748
749
750
751
752
}
.bs-team img {
  float: left;
  width: 32px;
  margin-right: 10px;
  border-radius: 4px;
753
754
}

Mark Otto's avatar
Mark Otto committed
755

Mark Otto's avatar
Mark Otto committed
756
757
758
759
760
761
/*
 * Grid examples
 *
 * Highlight the grid columns within the docs so folks can see their padding,
 * alignment, sizing, etc.
 */
762
763
764
765

.show-grid {
  margin-bottom: 15px;
}
Mark Otto's avatar
Mark Otto committed
766
.show-grid [class^="col-"] {
767
768
769
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #eee;
Mark Otto's avatar
Mark Otto committed
770
  background-color: rgba(86,61,124,.15);
771
  border: 1px solid #ddd;
Mark Otto's avatar
Mark Otto committed
772
  border: 1px solid rgba(86,61,124,.2);
773
774
775
}


Mark Otto's avatar
Mark Otto committed
776
777
778
779
780
781
/*
 * Examples
 *
 * Isolated sections of example content for each component or feature. Usually
 * followed by a code snippet.
 */
782

Mark Otto's avatar
Mark Otto committed
783
.bs-example {
Mark Otto's avatar
Mark Otto committed
784
  position: relative;
785
  padding: 45px 15px 15px;
Mark Otto's avatar
Mark Otto committed
786
  margin: 0 -15px 15px;
787
788
789
790
791
  background-color: #fafafa;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
  border-color: #e5e5e5 #eee #eee;
  border-style: solid;
  border-width: 1px 0;
Mark Otto's avatar
Mark Otto committed
792
793
}
/* Echo out a label for the example */
Mark Otto's avatar
Mark Otto committed
794
.bs-example:after {
Mark Otto's avatar
Mark Otto committed
795
796
  content: "Example";
  position: absolute;
797
798
  top:  15px;
  left: 15px;
Mark Otto's avatar
Mark Otto committed
799
800
  font-size: 12px;
  font-weight: bold;
801
802
803
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1px;
Mark Otto's avatar
Mark Otto committed
804
805
}

Mark Otto's avatar
Mark Otto committed
806
/* Tweak display of the code snippets when following an example */
Mark Otto's avatar
Mark Otto committed
807
.bs-example + .highlight {
Mark Otto's avatar
Mark Otto committed
808
  margin: -15px -15px 15px;
Mark Otto's avatar
Mark Otto committed
809
810
  border-radius: 0;
  border-width: 0 0 1px;
Mark Otto's avatar
Mark Otto committed
811
812
}

Mark Otto's avatar
Mark Otto committed
813
/* Make the examples and snippets not full-width */
814
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
  .bs-example {
    margin-left: 0;
    margin-right: 0;
    background-color: #fff;
    border-width: 1px;
    border-color: #ddd;
    border-radius: 4px 4px 0 0;
    box-shadow: none;
  }
  .bs-example + .highlight {
    margin-top: -16px;
    margin-left: 0;
    margin-right: 0;
    border-width: 1px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }
}

834
835
836
837
838
/* Undo width of container */
.bs-example .container {
  width: auto;
}

Mark Otto's avatar
Mark Otto committed
839
/* Tweak content of examples for optimum awesome */
Mark Otto's avatar
Mark Otto committed
840
841
842
843
.bs-example > p:last-child,
.bs-example > ul:last-child,
.bs-example > ol:last-child,
.bs-example > blockquote:last-child,
844
.bs-example > .form-control:last-child,
Mark Otto's avatar
Mark Otto committed
845
.bs-example > .table:last-child,
846
.bs-example > .navbar:last-child,
Mark Otto's avatar
Mark Otto committed
847
848
849
850
.bs-example > .jumbotron:last-child,
.bs-example > .alert:last-child,
.bs-example > .panel:last-child,
.bs-example > .list-group:last-child,
851
.bs-example > .well:last-child,
852
853
.bs-example > .progress:last-child,
.bs-example > .table-responsive:last-child > .table {
Mark Otto's avatar
Mark Otto committed
854
855
  margin-bottom: 0;
}
856
.bs-example > p > .close {
Mark Otto's avatar
Mark Otto committed
857
858
  float: none;
}
Mark Otto's avatar
Mark Otto committed
859

860
/* Typography */
Mark Otto's avatar
Mark Otto committed
861
.bs-example-type .table .type-info {
862
863
864
  color: #999;
  vertical-align: middle;
}
865
.bs-example-type .table td {
866
867
868
  padding: 15px 0;
  border-color: #eee;
}
869
.bs-example-type .table tr:first-child td {
870
871
  border-top: 0;
}
Mark Otto's avatar
Mark Otto committed
872
873
874
875
876
877
.bs-example-type h1,
.bs-example-type h2,
.bs-example-type h3,
.bs-example-type h4,
.bs-example-type h5,
.bs-example-type h6 {
878
879
880
  margin: 0;
}

881
882
883
884
885
/* Contextual background colors */
.bs-example-bg-classes p {
  padding: 15px;
}

886
887
888
889
890
891
892
/* Images */
.bs-example > .img-circle,
.bs-example > .img-rounded,
.bs-example > .img-thumbnail {
  margin: 5px;
}

893
894
895
896
897
/* Tables */
.bs-example > .table-responsive > .table {
  background-color: #fff;
}

898
/* Buttons */
899
900
.bs-example > .btn,
.bs-example > .btn-group {
901
902
903
  margin-top: 5px;
  margin-bottom: 5px;
}
904
905
.bs-example > .btn-toolbar + .btn-toolbar {
  margin-top: 10px;
906
}
907

908
/* Forms */
909
.bs-example-control-sizing select,
910
911
912
.bs-example-control-sizing input[type="text"] + input[type="text"] {
  margin-top: 10px;
}
913
914
915
.bs-example-form .input-group {
  margin-bottom: 10px;
}
Mark Otto's avatar
Mark Otto committed
916
917
918
.bs-example > textarea.form-control {
  resize: vertical;
}
919

Mark Otto's avatar
Mark Otto committed
920
/* List groups */
Mark Otto's avatar
Mark Otto committed
921
.bs-example > .list-group {
Mark Otto's avatar
Mark Otto committed
922
923
  max-width: 400px;
}
924

Mark Otto's avatar
Mark Otto committed
925
/* Navbars */
926
927
928
.bs-example .navbar:last-child {
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
929
930
931
932
933
934
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
  overflow: hidden; /* cut the drop shadows off */
}
Mark Otto's avatar
Mark Otto committed
935
936
937
938
.bs-navbar-top-example .navbar-header,
.bs-navbar-bottom-example .navbar-header {
  margin-left: 0;
}
Mark Otto's avatar
Mark Otto committed
939
940
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
941
  position: relative;
Mark Otto's avatar
Mark Otto committed
942
943
944
945
  margin-left: 0;
  margin-right: 0;
}
.bs-navbar-top-example {
946
  padding-bottom: 45px;
Mark Otto's avatar
Mark Otto committed
947
948
949
}
.bs-navbar-top-example:after {
  top: auto;
950
  bottom: 15px;
951
}
952
953
.bs-navbar-top-example .navbar-fixed-top {
  top: -1px;
Mark Otto's avatar
Mark Otto committed
954
955
}
.bs-navbar-bottom-example {
956
957
  padding-top: 45px;
}
958
959
.bs-navbar-bottom-example .navbar-fixed-bottom {
  bottom: -1px;
Mark Otto's avatar
Mark Otto committed
960
961
962
963
}
.bs-navbar-bottom-example .navbar {
  margin-bottom: 0;
}
964
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
965
966
967
968
  .bs-navbar-top-example .navbar-fixed-top,
  .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }
969
970
971
972
973
974
975
976
  .bs-navbar-top-example {
    border-radius: 0 0 4px 4px;
  }
  .bs-navbar-bottom-example {
    border-radius: 4px 4px 0 0;
  }
}

977
978
979
980
981
982
/* Pagination */
.bs-example .pagination {
  margin-top: 10px;
  margin-bottom: 10px;
}

Mark Otto's avatar
Mark Otto committed
983
984
985
986
987
/* Pager */
.bs-example > .pager {
  margin-top: 0;
}

Mark Otto's avatar
Mark Otto committed
988
/* Example modals */
Mark Otto's avatar
Mark Otto committed
989
.bs-example-modal {
Mark Otto's avatar
Mark Otto committed
990
991
  background-color: #f5f5f5;
}
Mark Otto's avatar
Mark Otto committed
992
.bs-example-modal .modal {
Mark Otto's avatar
Mark Otto committed
993
994
995
996
997
998
999
1000
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  z-index: 1;
  display: block;
}
For faster browsing, not all history is shown. View entire blame