docs.css 24.5 KB
Newer Older
1
2
/*!
 * Copyright 2013 Twitter, Inc.
3
4
5
 *
 * Licensed under the Creative Commons Attribution 3.0 Unported License. For
 * details, see http://creativecommons.org/licenses/by/3.0/.
6
 */
7
8


Mark Otto's avatar
Mark Otto committed
9
10
11
/*
 * Bootstrap Documentation
 * Special styles for presenting Bootstrap's documentation and code examples.
Mark Otto's avatar
Mark Otto committed
12
13
14
15
16
17
18
19
20
21
22
23
 *
 * 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
24
 * Docs sections
Mark Otto's avatar
Mark Otto committed
25
26
27
28
29
 * Callouts
 * Grid styles
 * Examples
 * Code snippets (highlight)
 * Responsive tests
Mark Otto's avatar
Mark Otto committed
30
 * Glyphicons
Mark Otto's avatar
Mark Otto committed
31
32
 * Customizer
 * Miscellaneous
Mark Otto's avatar
Mark Otto committed
33
34
 */

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

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

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

Mark Otto's avatar
Mark Otto committed
48
49
50
51
52
53
54
/* 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
55
.btn-outline {
Mark Otto's avatar
Mark Otto committed
56
  color: #563d7c;
Mark Otto's avatar
Mark Otto committed
57
58
  background-color: transparent;
  border-color: #563d7c;
59
}
Mark Otto's avatar
Mark Otto committed
60
61
62
.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
63
  color: #fff;
Mark Otto's avatar
Mark Otto committed
64
65
  background-color: #563d7c;
  border-color: #563d7c;
66
67
}

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

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

Mark Otto's avatar
Mark Otto committed
107
108
109
110
111
/*
 * Main navigation
 *
 * Turn the `.navbar` at the top of the docs purple.
 */
Mark Otto's avatar
Mark Otto committed
112

Mark Otto's avatar
Mark Otto committed
113
.bs-docs-nav {
Mark Otto's avatar
Mark Otto committed
114
  background-color: #fff;
Mark Otto's avatar
Mark Otto committed
115
  border-color: #e5e5e5;
Mark Otto's avatar
tweaks    
Mark Otto committed
116
  box-shadow: 0 0 10px rgba(0,0,0,.05);
Mark Otto's avatar
Mark Otto committed
117
}
Mark Otto's avatar
Mark Otto committed
118
.bs-docs-nav .navbar-brand,
Mark Otto's avatar
Mark Otto committed
119
.bs-docs-nav .navbar-nav > li > a {
Mark Otto's avatar
Mark Otto committed
120
121
  color: #563d7c;
  font-weight: 500;
Mark Otto's avatar
Mark Otto committed
122
}
Mark Otto's avatar
Mark Otto committed
123
.bs-docs-nav .navbar-nav > li > a:hover,
Mark Otto's avatar
Mark Otto committed
124
125
.bs-docs-nav .navbar-nav > .active > a,
.bs-docs-nav .navbar-nav > .active > a:hover {
Mark Otto's avatar
Mark Otto committed
126
127
  color: #463265;
  background-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
128
}
Mark Otto's avatar
Mark Otto committed
129
130
.bs-docs-nav .navbar-toggle .icon-bar {
  background-color: #563d7c;
Mark Otto's avatar
Mark Otto committed
131
132
}
.bs-docs-nav .navbar-toggle:hover {
Mark Otto's avatar
Mark Otto committed
133
  background-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
134
135
}

Mark Otto's avatar
Mark Otto committed
136
137
138
139
140
141
142
143
144

/*
 * 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
145
  padding-bottom: 40px;
Mark Otto's avatar
Mark Otto committed
146
  margin-top: 100px;
147
  color: #777;
148
149
  text-align: center;
  border-top: 1px solid #e5e5e5;
150
}
Mark Otto's avatar
Mark Otto committed
151
.footer-links {
Mark Otto's avatar
Mark Otto committed
152
  margin-top: 20px;
Mark Otto's avatar
Mark Otto committed
153
  padding-left: 0;
154
  color: #999;
155
}
Mark Otto's avatar
Mark Otto committed
156
157
158
.footer-links li {
  display: inline;
  padding: 0 2px;
159
}
Mark Otto's avatar
Mark Otto committed
160
161
162
163
.footer-links li:first-child {
  padding-left: 0;
}

164
165
166
167
168
169
@media (min-width: 768px) {
  .bs-footer p {
    margin-bottom: 0;
  }
}

Mark Otto's avatar
Mark Otto committed
170
171
172
173
174
175
176
177
178

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

.bs-social {
  margin-bottom: 20px;
179
  text-align: center;
Mark Otto's avatar
Mark Otto committed
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
}
.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
210

Mark Otto's avatar
Mark Otto committed
211
212
213
214
.bs-docs-home {
  background-color: #f9f9f9;
}

Mark Otto's avatar
Mark Otto committed
215
 /* Masthead (headings and download button) */
Mark Otto's avatar
Mark Otto committed
216
.bs-masthead {
Mark Otto's avatar
Mark Otto committed
217
218
  position: relative;
  padding: 30px 15px;
Mark Otto's avatar
center    
Mark Otto committed
219
  text-align: center;
Mark Otto's avatar
Mark Otto committed
220
221
222
223
  border-bottom: 1px solid #e5e5e5;
}
.bs-masthead .bs-booticon {
  margin: 0 auto 30px;
Mark Otto's avatar
Mark Otto committed
224
}
225
.bs-masthead h1 {
Mark Otto's avatar
Mark Otto committed
226
  font-weight: 300;
Mark Otto's avatar
Mark Otto committed
227
  line-height: 1;
Mark Otto's avatar
Mark Otto committed
228
}
Mark Otto's avatar
Mark Otto committed
229
.bs-masthead .lead {
230
  margin-bottom: 30px;
Mark Otto's avatar
Mark Otto committed
231
232
  font-size: 20px;
  color: #555;
Mark Otto's avatar
Mark Otto committed
233
234
235
236
237
238
239
240
241
242
243
}
.bs-masthead .btn-outline {
  width: 100%;
  padding: 14px 24px;
  font-size: 20px;
}

@media (min-width: 480px) {
  .bs-masthead .btn-outline {
    width: auto;
  }
244
}
Mark Otto's avatar
Mark Otto committed
245

246
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
247
248
249
250
  .bs-masthead {
    padding-top: 80px;
    padding-bottom: 80px;
  }
Mark Otto's avatar
Mark Otto committed
251
252
253
  .bs-masthead h1 {
    font-size: 60px;
  }
Mark Otto's avatar
Mark Otto committed
254
  .bs-masthead .lead {
Mark Otto's avatar
Mark Otto committed
255
    font-size: 24px;
Mark Otto's avatar
Mark Otto committed
256
257
258
259
  }
}

@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
260
261
262
  .bs-masthead .lead {
    font-size: 30px;
  }
Mark Otto's avatar
Mark Otto committed
263
  .bs-masthead .btn-outline {
264
265
    padding: 18px 24px;
  }
Mark Otto's avatar
Mark Otto committed
266
267
}

268

Mark Otto's avatar
Mark Otto committed
269
270
271
272
273
/*
 * Page headers
 *
 * Jumbotron-esque headers at the top of every page that's not the homepage.
 */
274

275
/* Page headers */
Mark Otto's avatar
Mark Otto committed
276
.bs-header {
Mark Otto's avatar
Mark Otto committed
277
  padding: 30px 15px 40px; /* side padding builds on .container 15px, so 30px */
278
  font-size: 20px;
Mark Otto's avatar
Mark Otto committed
279
  text-align: center;
Mark Otto's avatar
Mark Otto committed
280
281
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
Mark Otto's avatar
Mark Otto committed
282
}
Mark Otto's avatar
Mark Otto committed
283
.bs-header h1 {
Mark Otto's avatar
Mark Otto committed
284
  color: #563d7c;
Mark Otto's avatar
Mark Otto committed
285
}
Mark Otto's avatar
Mark Otto committed
286
.bs-header p {
Mark Otto's avatar
Mark Otto committed
287
288
  font-weight: 300;
  line-height: 1.5;
Mark Otto's avatar
Mark Otto committed
289
}
Mark Otto's avatar
Mark Otto committed
290
291
292
293
.bs-header .container {
  position: relative;
}

294
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
295
296
297
298
299
300
301
  .bs-header {
    text-align: left;
  }
  .bs-header h1 {
    font-size: 60px;
    line-height: 1;
  }
Mark Otto's avatar
Mark Otto committed
302
303
}

304
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
305
306
307
308
309
310
311
312
313
314
315
316
317
318
  .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
319
320
.carbonad {
  width: auto !important;
321
  margin: 20px -30px -41px !important;
Mark Otto's avatar
Mark Otto committed
322
323
324
325
326
327
  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
328
  background: #fff !important;
329
330
  border: solid #e5e5e5 !important;
  border-width: 1px 0 !important;
Mark Otto's avatar
Mark Otto committed
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
}
.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
348
  color: #999 !important;
Mark Otto's avatar
Mark Otto committed
349
350
  text-align: left !important;
}
Mark Otto's avatar
Mark Otto committed
351
352
.carbonad-text a,
.carbonad-tag a {
Mark Otto's avatar
Mark Otto committed
353
  color: #563d7c !important;
Mark Otto's avatar
Mark Otto committed
354
}
Mark Otto's avatar
Mark Otto committed
355
356
357
.carbonad #azcarbon > img {
  display: none; /* hide what I assume are tracking images */
}
358

359
360
/* Homepage variation */
.bs-docs-home .carbonad {
Mark Otto's avatar
Mark Otto committed
361
  margin: 0 -30px -31px !important;
362
363
364
365
366
367
368
369
370
371
}

@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
372
    margin: 50px auto 0 !important;
373
374
375
  }
}

376
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
377
378
379
380
381
  .carbonad {
    margin: 0 !important;
  }
}

382
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
383
384
385
  .carbonad {
    position: absolute;
    top: 20px;
386
    right: 15px; /* 15px instead of 0 since box-sizing */
Mark Otto's avatar
Mark Otto committed
387
388
389
    padding: 15px !important;
    width: 330px !important;
  }
Mark Otto's avatar
Mark Otto committed
390
  .bs-docs-home .carbonad {
391
    position: static;
Mark Otto's avatar
Mark Otto committed
392
393
  }
}
394

Mark Otto's avatar
Mark Otto committed
395
396
397
398
399
400
401
402

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

.bs-featurette {
Mark Otto's avatar
Mark Otto committed
403
404
  padding-top:    40px;
  padding-bottom: 40px;
Mark Otto's avatar
Mark Otto committed
405
406
407
408
409
410
411
412
413
414
415
416
417
  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
418
  font-size: 30px;
Mark Otto's avatar
Mark Otto committed
419
420
421
422
  font-weight: normal;
  color: #333;
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
423
424
425
.half-rule {
  width: 100px;
  margin: 40px auto;
Mark Otto's avatar
Mark Otto committed
426
427
}
.bs-featurette h3 {
Mark Otto's avatar
Mark Otto committed
428
429
  font-weight: normal;
  color: #333;
Mark Otto's avatar
Mark Otto committed
430
431
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
432
433
434
435
.bs-featurette-img {
  display: block;
  margin-bottom: 20px;
  color: #333;
Mark Otto's avatar
Mark Otto committed
436
}
Mark Otto's avatar
Mark Otto committed
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
.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
486
487
}

Mark Otto's avatar
Mark Otto committed
488
489
490
491
492
493
494

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

496
497
498
499
/* By default it's not affixed in mobile views, so undo that */
.bs-sidebar.affix {
  position: static;
}
Mark Otto's avatar
Mark Otto committed
500
501
@media (min-width: 768px) {
  .bs-sidebar {
Mark Otto's avatar
tweaks    
Mark Otto committed
502
    padding-left: 20px;
Mark Otto's avatar
Mark Otto committed
503
504
  }
}
505
506
507
508
509

/* First level of nav */
.bs-sidenav {
  margin-top: 30px;
  margin-bottom: 30px;
Mark Otto's avatar
Mark Otto committed
510
511
  padding-top: 5px;
  padding-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
512
}
513
514
515

/* All levels of nav */
.bs-sidebar .nav > li > a {
Mark Otto's avatar
Mark Otto committed
516
  display: block;
Mark Otto's avatar
tweaks    
Mark Otto committed
517
  font-size: 13px;
Mark Otto's avatar
Mark Otto committed
518
519
  font-weight: 500;
  color: #999;
Mark Otto's avatar
tweaks    
Mark Otto committed
520
  padding: 4px 20px;
521
}
522
523
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
Mark Otto's avatar
Mark Otto committed
524
525
  padding-left: 19px;
  color: #563d7c;
Mark Otto's avatar
Mark Otto committed
526
  text-decoration: none;
Mark Otto's avatar
Mark Otto committed
527
528
  background-color: transparent;
  border-left: 1px solid #563d7c;
Mark Otto's avatar
Mark Otto committed
529
}
530
531
532
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
Mark Otto's avatar
Mark Otto committed
533
  padding-left: 18px;
Mark Otto's avatar
Mark Otto committed
534
  font-weight: bold;
Mark Otto's avatar
Mark Otto committed
535
  color: #563d7c;
536
  background-color: transparent;
Mark Otto's avatar
Mark Otto committed
537
  border-left: 2px solid #563d7c;
Mark Otto's avatar
Mark Otto committed
538
539
}

Mark Otto's avatar
Mark Otto committed
540
/* Nav: second level (shown on .active) */
541
.bs-sidebar .nav .nav {
542
  display: none; /* Hide by default, but at >768px, show it */
Mark Otto's avatar
Mark Otto committed
543
  padding-bottom: 10px;
Mark Otto's avatar
Mark Otto committed
544
}
545
.bs-sidebar .nav .nav > li > a {
Mark Otto's avatar
tweaks    
Mark Otto committed
546
547
  padding-top:    2px;
  padding-bottom: 2px;
Mark Otto's avatar
Mark Otto committed
548
  padding-left: 30px;
Mark Otto's avatar
tweaks    
Mark Otto committed
549
  font-size: 12px;
Mark Otto's avatar
Mark Otto committed
550
551
552
553
554
555
556
557
558
559
560
  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
561
562
}

Mark Otto's avatar
Mark Otto committed
563
/* Show and affix the side nav when space allows it */
564
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
  .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 */
    top: 80px;
  }
  .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;
  }
}
586
@media (min-width: 1200px) {
Mark Otto's avatar
Mark Otto committed
587
588
589
590
591
592
593
594
595
596
597
598
599
600
  /* Widen the fixed sidebar again */
  .bs-sidebar.affix-bottom,
  .bs-sidebar.affix {
    width: 263px;
  }
}


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

601
/* Space things out */
Mark Otto's avatar
Mark Otto committed
602
.bs-docs-section + .bs-docs-section {
603
  padding-top: 40px;
Mark Otto's avatar
Mark Otto committed
604
}
Mark Otto's avatar
Mark Otto committed
605

Mark Otto's avatar
Mark Otto committed
606
/* Janky fix for preventing navbar from overlapping */
607
h1[id] {
608
  padding-top: 80px;
609
  margin-top: -45px;
610
611
}

612

Mark Otto's avatar
Mark Otto committed
613
614
615
616
617
618
/*
 * 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
619

Mark Otto's avatar
Mark Otto committed
620
/* Common styles for all types */
Mark Otto's avatar
Mark Otto committed
621
.bs-callout {
Mark Otto's avatar
Mark Otto committed
622
  margin: 20px 0;
Mark Otto's avatar
Mark Otto committed
623
624
  padding: 20px;
  border-left: 3px solid #eee;
Mark Otto's avatar
Mark Otto committed
625
}
Mark Otto's avatar
Mark Otto committed
626
.bs-callout h4 {
Mark Otto's avatar
Mark Otto committed
627
  margin-top: 0;
Mark Otto's avatar
Mark Otto committed
628
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
629
}
Mark Otto's avatar
Mark Otto committed
630
.bs-callout p:last-child {
Mark Otto's avatar
Mark Otto committed
631
632
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
633
634
635
636
.bs-callout code {
  background-color: #fff;
  border-radius: 3px;
}
Mark Otto's avatar
Mark Otto committed
637

Mark Otto's avatar
Mark Otto committed
638
/* Variations */
639
.bs-callout-danger {
Mark Otto's avatar
Mark Otto committed
640
  background-color: #fdf7f7;
Mark Otto's avatar
Mark Otto committed
641
  border-color: #d9534f;
Mark Otto's avatar
Mark Otto committed
642
643
}
.bs-callout-danger h4 {
Mark Otto's avatar
Mark Otto committed
644
  color: #d9534f;
645
646
}
.bs-callout-warning {
Mark Otto's avatar
Mark Otto committed
647
648
  background-color: #fcf8f2;
  border-color: #f0ad4e;
Mark Otto's avatar
Mark Otto committed
649
650
}
.bs-callout-warning h4 {
Mark Otto's avatar
Mark Otto committed
651
  color: #f0ad4e;
652
653
}
.bs-callout-info {
Mark Otto's avatar
Mark Otto committed
654
  background-color: #f4f8fa;
Mark Otto's avatar
Mark Otto committed
655
  border-color: #5bc0de;
Mark Otto's avatar
Mark Otto committed
656
657
}
.bs-callout-info h4 {
Mark Otto's avatar
Mark Otto committed
658
  color: #5bc0de;
Mark Otto's avatar
Mark Otto committed
659
660
661
}


662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
/*
 * 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;
}
.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
691
692
693
694
695
696
697
698
699
700
701
702
703
704
/*
 * 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;
}
705
.bs-team .github-btn {
Mark Otto's avatar
Mark Otto committed
706
707
  float: right;
  margin-top: 6px;
Mark Otto's avatar
Mark Otto committed
708
  width: 180px;
709
  height: 20px;
Mark Otto's avatar
Mark Otto committed
710
711
712
713
714
715
}
.bs-team img {
  float: left;
  width: 32px;
  margin-right: 10px;
  border-radius: 4px;
716
717
}

Mark Otto's avatar
Mark Otto committed
718

Mark Otto's avatar
Mark Otto committed
719
720
721
722
723
724
/*
 * Grid examples
 *
 * Highlight the grid columns within the docs so folks can see their padding,
 * alignment, sizing, etc.
 */
725
726
727
728

.show-grid {
  margin-bottom: 15px;
}
Mark Otto's avatar
Mark Otto committed
729
.show-grid [class^="col-"] {
730
731
732
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #eee;
Mark Otto's avatar
Mark Otto committed
733
  background-color: rgba(86,61,124,.15);
734
  border: 1px solid #ddd;
Mark Otto's avatar
Mark Otto committed
735
  border: 1px solid rgba(86,61,124,.2);
736
737
738
}


Mark Otto's avatar
Mark Otto committed
739
740
741
742
743
744
/*
 * Examples
 *
 * Isolated sections of example content for each component or feature. Usually
 * followed by a code snippet.
 */
745

Mark Otto's avatar
Mark Otto committed
746
.bs-example {
Mark Otto's avatar
Mark Otto committed
747
  position: relative;
748
  padding: 45px 15px 15px;
Mark Otto's avatar
Mark Otto committed
749
  margin: 0 -15px 15px;
750
751
752
753
754
  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
755
756
}
/* Echo out a label for the example */
Mark Otto's avatar
Mark Otto committed
757
.bs-example:after {
Mark Otto's avatar
Mark Otto committed
758
759
  content: "Example";
  position: absolute;
760
761
  top:  15px;
  left: 15px;
Mark Otto's avatar
Mark Otto committed
762
763
  font-size: 12px;
  font-weight: bold;
764
765
766
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1px;
Mark Otto's avatar
Mark Otto committed
767
768
}

Mark Otto's avatar
Mark Otto committed
769
/* Tweak display of the code snippets when following an example */
Mark Otto's avatar
Mark Otto committed
770
.bs-example + .highlight {
Mark Otto's avatar
Mark Otto committed
771
  margin: -15px -15px 15px;
Mark Otto's avatar
Mark Otto committed
772
773
  border-radius: 0;
  border-width: 0 0 1px;
Mark Otto's avatar
Mark Otto committed
774
775
}

Mark Otto's avatar
Mark Otto committed
776
/* Make the examples and snippets not full-width */
777
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
  .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;
  }
}

797
798
799
800
801
/* Undo width of container */
.bs-example .container {
  width: auto;
}

Mark Otto's avatar
Mark Otto committed
802
/* Tweak content of examples for optimum awesome */
Mark Otto's avatar
Mark Otto committed
803
804
805
806
.bs-example > p:last-child,
.bs-example > ul:last-child,
.bs-example > ol:last-child,
.bs-example > blockquote:last-child,
807
.bs-example > .form-control:last-child,
Mark Otto's avatar
Mark Otto committed
808
.bs-example > .table:last-child,
809
.bs-example > .navbar:last-child,
Mark Otto's avatar
Mark Otto committed
810
811
812
813
.bs-example > .jumbotron:last-child,
.bs-example > .alert:last-child,
.bs-example > .panel:last-child,
.bs-example > .list-group:last-child,
814
.bs-example > .well:last-child,
815
816
.bs-example > .progress:last-child,
.bs-example > .table-responsive:last-child > .table {
Mark Otto's avatar
Mark Otto committed
817
818
  margin-bottom: 0;
}
819
.bs-example > p > .close {
Mark Otto's avatar
Mark Otto committed
820
821
  float: none;
}
Mark Otto's avatar
Mark Otto committed
822

823
/* Typography */
Mark Otto's avatar
Mark Otto committed
824
.bs-example-type .table .type-info {
825
826
827
  color: #999;
  vertical-align: middle;
}
828
.bs-example-type .table td {
829
830
831
  padding: 15px 0;
  border-color: #eee;
}
832
.bs-example-type .table tr:first-child td {
833
834
  border-top: 0;
}
Mark Otto's avatar
Mark Otto committed
835
836
837
838
839
840
.bs-example-type h1,
.bs-example-type h2,
.bs-example-type h3,
.bs-example-type h4,
.bs-example-type h5,
.bs-example-type h6 {
841
842
843
  margin: 0;
}

844
845
846
847
848
/* Contextual background colors */
.bs-example-bg-classes p {
  padding: 15px;
}

849
850
851
852
853
854
855
/* Images */
.bs-example > .img-circle,
.bs-example > .img-rounded,
.bs-example > .img-thumbnail {
  margin: 5px;
}

856
857
858
859
860
/* Tables */
.bs-example > .table-responsive > .table {
  background-color: #fff;
}

861
/* Buttons */
862
863
.bs-example > .btn,
.bs-example > .btn-group {
864
865
866
  margin-top: 5px;
  margin-bottom: 5px;
}
867
868
.bs-example > .btn-toolbar + .btn-toolbar {
  margin-top: 10px;
869
}
870

871
/* Forms */
872
.bs-example-control-sizing select,
873
874
875
.bs-example-control-sizing input[type="text"] + input[type="text"] {
  margin-top: 10px;
}
876
877
878
.bs-example-form .input-group {
  margin-bottom: 10px;
}
Mark Otto's avatar
Mark Otto committed
879
880
881
.bs-example > textarea.form-control {
  resize: vertical;
}
882

Mark Otto's avatar
Mark Otto committed
883
/* List groups */
Mark Otto's avatar
Mark Otto committed
884
.bs-example > .list-group {
Mark Otto's avatar
Mark Otto committed
885
886
  max-width: 400px;
}
887

Mark Otto's avatar
Mark Otto committed
888
/* Navbars */
889
890
891
.bs-example .navbar:last-child {
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
892
893
894
895
896
897
.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
898
899
900
901
.bs-navbar-top-example .navbar-header,
.bs-navbar-bottom-example .navbar-header {
  margin-left: 0;
}
Mark Otto's avatar
Mark Otto committed
902
903
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
904
  position: relative;
Mark Otto's avatar
Mark Otto committed
905
906
907
908
  margin-left: 0;
  margin-right: 0;
}
.bs-navbar-top-example {
909
  padding-bottom: 45px;
Mark Otto's avatar
Mark Otto committed
910
911
912
}
.bs-navbar-top-example:after {
  top: auto;
913
  bottom: 15px;
914
}
915
916
.bs-navbar-top-example .navbar-fixed-top {
  top: -1px;
Mark Otto's avatar
Mark Otto committed
917
918
}
.bs-navbar-bottom-example {
919
920
  padding-top: 45px;
}
921
922
.bs-navbar-bottom-example .navbar-fixed-bottom {
  bottom: -1px;
Mark Otto's avatar
Mark Otto committed
923
924
925
926
}
.bs-navbar-bottom-example .navbar {
  margin-bottom: 0;
}
927
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
928
929
930
931
  .bs-navbar-top-example .navbar-fixed-top,
  .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }
932
933
934
935
936
937
938
939
  .bs-navbar-top-example {
    border-radius: 0 0 4px 4px;
  }
  .bs-navbar-bottom-example {
    border-radius: 4px 4px 0 0;
  }
}

940
941
942
943
944
945
/* Pagination */
.bs-example .pagination {
  margin-top: 10px;
  margin-bottom: 10px;
}

Mark Otto's avatar
Mark Otto committed
946
947
948
949
950
/* Pager */
.bs-example > .pager {
  margin-top: 0;
}

Mark Otto's avatar
Mark Otto committed
951
/* Example modals */
Mark Otto's avatar
Mark Otto committed
952
.bs-example-modal {
Mark Otto's avatar
Mark Otto committed
953
954
  background-color: #f5f5f5;
}
Mark Otto's avatar
Mark Otto committed
955
.bs-example-modal .modal {
Mark Otto's avatar
Mark Otto committed
956
957
958
959
960
961
962
963
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  z-index: 1;
  display: block;
}
Mark Otto's avatar
Mark Otto committed
964
.bs-example-modal .modal-dialog {
Mark Otto's avatar
Mark Otto committed
965
966
967
968
969
  left: auto;
  margin-left: auto;
  margin-right: auto;
}

Mark Otto's avatar
Mark Otto committed
970
/* Example dropdowns */
Mark Otto's avatar
Mark Otto committed
971
.bs-example > .dropdown > .dropdown-menu {
Mark Otto's avatar
Mark Otto committed
972
973
974
975
  position: static;
  display: block;
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
976

977
/* Example tabbable tabs */
Mark Otto's avatar
Mark Otto committed
978
.bs-example-tabs .nav-tabs {
979
980
981
  margin-bottom: 15px;
}

982
/* Tooltips */
983
.bs-example-tooltips {
984
985
  text-align: center;
}
986
987
988
989
.bs-example-tooltips > .btn {
  margin-top: 5px;
  margin-bottom: 5px;
}
990
991

/* Popovers */
Mark Otto's avatar
Mark Otto committed
992
.bs-example-popover {
993
994
995
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
Mark Otto's avatar
Mark Otto committed
996
.bs-example-popover .popover {
997
998
999
1000
  position: relative;
  display: block;
  float: left;
  width: 260px;
For faster browsing, not all history is shown. View entire blame