docs.css 22.9 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
 */


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

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

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

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

Mark Otto's avatar
Mark Otto committed
82

Mark Otto's avatar
Mark Otto committed
83
84
85
86
87
/*
 * Main navigation
 *
 * Turn the `.navbar` at the top of the docs purple.
 */
Mark Otto's avatar
Mark Otto committed
88

Mark Otto's avatar
Mark Otto committed
89
.bs-docs-nav {
Mark Otto's avatar
Mark Otto committed
90
91
  background-color: #fff;
  border-color: #eee;
Mark Otto's avatar
Mark Otto committed
92
}
Mark Otto's avatar
Mark Otto committed
93
.bs-docs-nav .navbar-brand,
Mark Otto's avatar
Mark Otto committed
94
.bs-docs-nav .navbar-nav > li > a {
Mark Otto's avatar
Mark Otto committed
95
96
  color: #563d7c;
  font-weight: 500;
Mark Otto's avatar
Mark Otto committed
97
}
Mark Otto's avatar
Mark Otto committed
98
.bs-docs-nav .navbar-nav > li > a:hover,
Mark Otto's avatar
Mark Otto committed
99
100
.bs-docs-nav .navbar-nav > .active > a,
.bs-docs-nav .navbar-nav > .active > a:hover {
Mark Otto's avatar
Mark Otto committed
101
102
  color: #463265;
  background-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
103
}
Mark Otto's avatar
Mark Otto committed
104
105
.bs-docs-nav .navbar-toggle .icon-bar {
  background-color: #563d7c;
Mark Otto's avatar
Mark Otto committed
106
107
}
.bs-docs-nav .navbar-toggle:hover {
Mark Otto's avatar
Mark Otto committed
108
  background-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
109
110
}

Mark Otto's avatar
Mark Otto committed
111
112
113
114
115
116
117
118
119
120
121

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

.bs-footer {
  padding-top: 40px;
  padding-bottom: 30px;
  margin-top: 100px;
122
  color: #777;
123
124
  text-align: center;
  border-top: 1px solid #e5e5e5;
125
}
Mark Otto's avatar
Mark Otto committed
126
127
128
.footer-links {
  margin: 10px 0;
  padding-left: 0;
129
}
Mark Otto's avatar
Mark Otto committed
130
131
132
.footer-links li {
  display: inline;
  padding: 0 2px;
133
}
Mark Otto's avatar
Mark Otto committed
134
135
136
137
.footer-links li:first-child {
  padding-left: 0;
}

138
139
140
141
142
143
144
145
146
@media (min-width: 768px) {
  .bs-footer {
    text-align: left;
  }
  .bs-footer p {
    margin-bottom: 0;
  }
}

Mark Otto's avatar
Mark Otto committed
147
148
149
150
151
152
153
154
155
156

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

.bs-social {
  margin-top: 20px;
  margin-bottom: 20px;
157
  text-align: center;
Mark Otto's avatar
Mark Otto committed
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
}
.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;
}

182
@media (min-width: 768px) {
183
184
185
  .bs-social {
    text-align: left;
  }
Mark Otto's avatar
Mark Otto committed
186
187
188
  .bs-social-buttons li:first-child {
    padding-left: 0;
  }
189
190
}

Mark Otto's avatar
Mark Otto committed
191
192
193
194
195
196

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

Mark Otto's avatar
Mark Otto committed
198
199
200
201
202
.bs-docs-home {
  padding-top: 120px;
  background-color: #f9f9f9;
}

Mark Otto's avatar
Mark Otto committed
203
 /* Masthead (headings and download button) */
Mark Otto's avatar
Mark Otto committed
204
.bs-masthead {
Mark Otto's avatar
Mark Otto committed
205
206
  position: relative;
  padding: 30px 15px;
Mark Otto's avatar
center    
Mark Otto committed
207
  text-align: center;
Mark Otto's avatar
Mark Otto committed
208
209
210
211
212
213
214
215
216
217
  /*text-shadow: 0 1px 0 rgba(0,0,0,.15);*/
}
/*
.bs-masthead:after {
  display: block;
  width: 144px;
  height: 1px;
  content: "";
  margin: 40px auto;
  background-color: #e5e5e5;
Mark Otto's avatar
Mark Otto committed
218
}
Mark Otto's avatar
Mark Otto committed
219
*/
220
.bs-masthead h1 {
Mark Otto's avatar
Mark Otto committed
221
222
  display: none;
  /*font-size: 50px;*/
Mark Otto's avatar
Mark Otto committed
223
  line-height: 1;
Mark Otto's avatar
Mark Otto committed
224
  color: #563d7c;
Mark Otto's avatar
Mark Otto committed
225
}
Mark Otto's avatar
Mark Otto committed
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
.bs-masthead .lead {
  font-size: 20px;
  margin-bottom: 40px;
}
.bs-masthead .btn-outline {
  width: 100%;
  /*margin: 5px;*/
  padding: 14px 24px;
  font-size: 20px;
}
.bs-masthead .btn-outline + .btn-outline {
  margin-top: 10px;
}

.bs-booticon {
  display: block;
  margin: -40px auto 30px;
  width: 144px;
  height: 144px;
  font-size: 108px;
  font-weight: 500;
  color: #563d7c;
  line-height: 140px;
  border: 1px solid #563d7c;
  border-radius: 15%;
Mark Otto's avatar
Mark Otto committed
251
252
}

Mark Otto's avatar
Mark Otto committed
253
/* Links to project-level content like the repo, Expo, etc */
254
.bs-masthead-links {
Mark Otto's avatar
Mark Otto committed
255
  margin-top: 20px;
Mark Otto's avatar
Mark Otto committed
256
  margin-bottom: 40px;
Mark Otto's avatar
Mark Otto committed
257
  padding-left: 0;
Mark Otto's avatar
Mark Otto committed
258
  list-style: none;
259
  text-align: center;
Mark Otto's avatar
Mark Otto committed
260
}
261
.bs-masthead-links li {
Mark Otto's avatar
Mark Otto committed
262
263
264
  display: inline-block;
  color: #777;
  padding: 0 10px;
Mark Otto's avatar
Mark Otto committed
265
}
Mark Otto's avatar
Mark Otto committed
266
267
268
269
270
271

.bs-masthead .popover {
  max-width: 260px;
  margin-top: -15px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
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
284
285
286
287
288
.bs-masthead .popover-content {
  padding: 15px;
  font-size: 16px;
  font-weight: 300;
  text-align: center;
}

@media (min-width: 480px) {
  .bs-masthead .btn-outline {
    width: auto;
    margin-left: 5px;
    margin-right: 5px;
  }
  .bs-masthead .btn-outline + .btn-outline {
    margin-top: 0;
  }
289
}
Mark Otto's avatar
Mark Otto committed
290

291
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
292
  .bs-masthead .lead {
Mark Otto's avatar
Mark Otto committed
293
    font-size: 24px;
Mark Otto's avatar
Mark Otto committed
294
295
296
297
  }
}

@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
298
  .bs-masthead {
Mark Otto's avatar
Mark Otto committed
299
300
    /*padding-top:    120px;*/
    /*padding-bottom: 120px;*/
Mark Otto's avatar
Mark Otto committed
301
  }
Mark Otto's avatar
Mark Otto committed
302
/*
Mark Otto's avatar
Mark Otto committed
303
304
305
  .bs-masthead h1 {
    font-size: 100px;
  }
Mark Otto's avatar
Mark Otto committed
306
*/
Mark Otto's avatar
Mark Otto committed
307
  .bs-masthead .lead {
Mark Otto's avatar
Mark Otto committed
308
309
    margin-left: 12.5%;
    margin-right: 12.5%;
Mark Otto's avatar
Mark Otto committed
310
311
    font-size: 30px;
  }
Mark Otto's avatar
Mark Otto committed
312
313
314
  .bs-masthead .btn-outline {
    /*width: auto;*/
    /*margin: 0 5px;*/
315
    padding: 18px 24px;
Mark Otto's avatar
Mark Otto committed
316
    /*font-size: 20px;*/
317
  }
Mark Otto's avatar
Mark Otto committed
318
319
  .bs-masthead-links {
    padding: 0;
320
    text-align: left;
Mark Otto's avatar
Mark Otto committed
321
  }
Mark Otto's avatar
Mark Otto committed
322
323
}

324

Mark Otto's avatar
Mark Otto committed
325
326
327
328
329
/*
 * Page headers
 *
 * Jumbotron-esque headers at the top of every page that's not the homepage.
 */
330

331
/* Page headers */
Mark Otto's avatar
Mark Otto committed
332
.bs-header {
Mark Otto's avatar
Mark Otto committed
333
  padding: 30px 15px 40px; /* side padding builds on .container 15px, so 30px */
Mark Otto's avatar
Mark Otto committed
334
  font-size: 16px;
Mark Otto's avatar
Mark Otto committed
335
  text-align: center;
Mark Otto's avatar
Mark Otto committed
336
337
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
Mark Otto's avatar
Mark Otto committed
338
}
Mark Otto's avatar
Mark Otto committed
339
.bs-header h1 {
Mark Otto's avatar
Mark Otto committed
340
  color: #563d7c;
Mark Otto's avatar
Mark Otto committed
341
}
Mark Otto's avatar
Mark Otto committed
342
.bs-header p {
Mark Otto's avatar
Mark Otto committed
343
344
  font-weight: 300;
  line-height: 1.5;
Mark Otto's avatar
Mark Otto committed
345
}
Mark Otto's avatar
Mark Otto committed
346
347
348
349
.bs-header .container {
  position: relative;
}

350
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
351
352
353
354
355
356
357
358
  .bs-header {
    font-size: 21px;
    text-align: left;
  }
  .bs-header h1 {
    font-size: 60px;
    line-height: 1;
  }
Mark Otto's avatar
Mark Otto committed
359
360
}

361
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
362
363
364
365
366
367
368
369
370
371
372
373
374
375
  .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
376
377
378
379
380
381
382
383
384
.carbonad {
  width: auto !important;
  margin: 50px -30px -40px !important;
  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
385
386
387
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
}
.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
405
  color: #999 !important;
Mark Otto's avatar
Mark Otto committed
406
407
  text-align: left !important;
}
Mark Otto's avatar
Mark Otto committed
408
409
.carbonad-text a,
.carbonad-tag a {
Mark Otto's avatar
Mark Otto committed
410
  color: #563d7c !important;
Mark Otto's avatar
Mark Otto committed
411
}
Mark Otto's avatar
Mark Otto committed
412
413
414
.carbonad #azcarbon > img {
  display: none; /* hide what I assume are tracking images */
}
415

416
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
417
418
419
420
421
  .carbonad {
    margin: 0 !important;
  }
}

422
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
423
424
425
  .carbonad {
    position: absolute;
    top: 20px;
426
    right: 15px; /* 15px instead of 0 since box-sizing */
Mark Otto's avatar
Mark Otto committed
427
428
429
430
431
    padding: 15px !important;
    width: 330px !important;
  }
}

Mark Otto's avatar
Mark Otto committed
432
433
/* Homepage variations */
.bs-docs-home .carbonad {
Mark Otto's avatar
Mark Otto committed
434
435
  border-width: 1px 0 !important;
  border-radius: 0;
Mark Otto's avatar
Mark Otto committed
436
437
  margin: 0 -15px 40px !important;
}
438
@media (min-width: 480px) {
Mark Otto's avatar
Mark Otto committed
439
440
441
442
  .bs-docs-home .carbonad {
    width: 330px !important;
    margin: 0 auto 40px !important;
    border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
443
    border-width: 1px !important;
Mark Otto's avatar
Mark Otto committed
444
445
  }
}
446
@media (min-width: 768px) {
447
448
449
450
451
452
  .bs-docs-home .bs-social {
    margin-bottom: 10px;
  }
  .bs-docs-home .bs-masthead-links {
    margin-top: 10px;
  }
Mark Otto's avatar
Mark Otto committed
453
454
455
456
  .bs-docs-home .bs-social,
  .bs-docs-home .bs-masthead-links {
    text-align: center;
  }
Mark Otto's avatar
Mark Otto committed
457
}
458
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
459
460
461
462
  .bs-docs-home .carbonad {
    position: static;
  }
}
463
@media (min-width: 1170px) {
Mark Otto's avatar
Mark Otto committed
464
465
466
467
468
  .bs-docs-home .carbonad {
    margin-top: -25px !important;
  }
}

Mark Otto's avatar
Mark Otto committed
469
470
471
472
473
474
475

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

477
478
479
480
481
482
483
484
485
/* 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
486
487
  padding-top:    10px;
  padding-bottom: 10px;
Mark Otto's avatar
Mark Otto committed
488
  text-shadow: 0 1px 0 #fff;
Mark Otto's avatar
Mark Otto committed
489
  background-color: #f7f5fa;
Mark Otto's avatar
Mark Otto committed
490
  border-radius: 5px;
Mark Otto's avatar
Mark Otto committed
491
}
492
493
494

/* All levels of nav */
.bs-sidebar .nav > li > a {
Mark Otto's avatar
Mark Otto committed
495
  display: block;
Mark Otto's avatar
Mark Otto committed
496
  color: #716b7a;
Mark Otto's avatar
Mark Otto committed
497
  padding: 5px 20px;
498
}
499
500
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
Mark Otto's avatar
Mark Otto committed
501
  text-decoration: none;
Mark Otto's avatar
Mark Otto committed
502
503
  background-color: #e5e3e9;
  border-right: 1px solid #dbd8e0;
Mark Otto's avatar
Mark Otto committed
504
}
505
506
507
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
Mark Otto's avatar
Mark Otto committed
508
  font-weight: bold;
Mark Otto's avatar
Mark Otto committed
509
  color: #563d7c;
510
  background-color: transparent;
Mark Otto's avatar
Mark Otto committed
511
  border-right: 1px solid #563d7c;
Mark Otto's avatar
Mark Otto committed
512
513
}

Mark Otto's avatar
Mark Otto committed
514
/* Nav: second level (shown on .active) */
515
.bs-sidebar .nav .nav {
516
  display: none; /* Hide by default, but at >768px, show it */
Mark Otto's avatar
Mark Otto committed
517
  margin-bottom: 8px;
Mark Otto's avatar
Mark Otto committed
518
}
519
.bs-sidebar .nav .nav > li > a {
Mark Otto's avatar
Mark Otto committed
520
521
  padding-top:    3px;
  padding-bottom: 3px;
Mark Otto's avatar
Mark Otto committed
522
  padding-left: 30px;
Mark Otto's avatar
Mark Otto committed
523
524
525
  font-size: 90%;
}

Mark Otto's avatar
Mark Otto committed
526
/* Show and affix the side nav when space allows it */
527
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
  .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;
  }
}
549
@media (min-width: 1200px) {
Mark Otto's avatar
Mark Otto committed
550
551
552
553
554
555
556
557
558
559
560
561
562
563
  /* Widen the fixed sidebar again */
  .bs-sidebar.affix-bottom,
  .bs-sidebar.affix {
    width: 263px;
  }
}


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

564
/* Space things out */
Mark Otto's avatar
Mark Otto committed
565
.bs-docs-section + .bs-docs-section {
566
  padding-top: 40px;
Mark Otto's avatar
Mark Otto committed
567
}
Mark Otto's avatar
Mark Otto committed
568

Mark Otto's avatar
Mark Otto committed
569
/* Janky fix for preventing navbar from overlapping */
570
h1[id] {
571
  padding-top: 80px;
572
  margin-top: -45px;
573
574
}

575

Mark Otto's avatar
Mark Otto committed
576
577
578
579
580
581
/*
 * 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
582

Mark Otto's avatar
Mark Otto committed
583
/* Common styles for all types */
Mark Otto's avatar
Mark Otto committed
584
.bs-callout {
Mark Otto's avatar
Mark Otto committed
585
  margin: 20px 0;
Mark Otto's avatar
Mark Otto committed
586
587
  padding: 20px;
  border-left: 3px solid #eee;
Mark Otto's avatar
Mark Otto committed
588
}
Mark Otto's avatar
Mark Otto committed
589
.bs-callout h4 {
Mark Otto's avatar
Mark Otto committed
590
  margin-top: 0;
Mark Otto's avatar
Mark Otto committed
591
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
592
}
Mark Otto's avatar
Mark Otto committed
593
.bs-callout p:last-child {
Mark Otto's avatar
Mark Otto committed
594
595
596
  margin-bottom: 0;
}

Mark Otto's avatar
Mark Otto committed
597
/* Variations */
598
.bs-callout-danger {
Mark Otto's avatar
Mark Otto committed
599
600
601
602
603
  background-color: #fdf7f7;
  border-color: #eed3d7;
}
.bs-callout-danger h4 {
  color: #b94a48;
604
605
}
.bs-callout-warning {
Mark Otto's avatar
Mark Otto committed
606
607
608
609
610
  background-color: #faf8f0;
  border-color: #faebcc;
}
.bs-callout-warning h4 {
  color: #c09853;
611
612
}
.bs-callout-info {
Mark Otto's avatar
Mark Otto committed
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
  background-color: #f4f8fa;
  border-color: #bce8f1;
}
.bs-callout-info h4 {
  color: #3a87ad;
}


/*
 * 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;
}
635
.bs-team .github-btn {
Mark Otto's avatar
Mark Otto committed
636
637
  float: right;
  margin-top: 6px;
638
639
  width: 120px;
  height: 20px;
Mark Otto's avatar
Mark Otto committed
640
641
642
643
644
645
}
.bs-team img {
  float: left;
  width: 32px;
  margin-right: 10px;
  border-radius: 4px;
646
647
}

Mark Otto's avatar
Mark Otto committed
648

Mark Otto's avatar
Mark Otto committed
649
650
651
652
653
654
/*
 * Grid examples
 *
 * Highlight the grid columns within the docs so folks can see their padding,
 * alignment, sizing, etc.
 */
655
656
657
658

.show-grid {
  margin-bottom: 15px;
}
Mark Otto's avatar
Mark Otto committed
659
.show-grid [class^="col-"] {
660
661
662
663
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #eee;
  border: 1px solid #ddd;
Mark Otto's avatar
Mark Otto committed
664
665
  background-color: rgba(86,61,124,.15);
  border: 1px solid rgba(86,61,124,.2);
666
667
668
}


Mark Otto's avatar
Mark Otto committed
669
670
671
672
673
674
/*
 * Examples
 *
 * Isolated sections of example content for each component or feature. Usually
 * followed by a code snippet.
 */
675

Mark Otto's avatar
Mark Otto committed
676
.bs-example {
Mark Otto's avatar
Mark Otto committed
677
  position: relative;
678
  padding: 45px 15px 15px;
Mark Otto's avatar
Mark Otto committed
679
  margin: 0 -15px 15px;
680
681
682
683
684
  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
685
686
}
/* Echo out a label for the example */
Mark Otto's avatar
Mark Otto committed
687
.bs-example:after {
Mark Otto's avatar
Mark Otto committed
688
689
  content: "Example";
  position: absolute;
690
691
  top:  15px;
  left: 15px;
Mark Otto's avatar
Mark Otto committed
692
693
  font-size: 12px;
  font-weight: bold;
694
695
696
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1px;
Mark Otto's avatar
Mark Otto committed
697
698
}

Mark Otto's avatar
Mark Otto committed
699
/* Tweak display of the code snippets when following an example */
Mark Otto's avatar
Mark Otto committed
700
.bs-example + .highlight {
Mark Otto's avatar
Mark Otto committed
701
  margin: -15px -15px 15px;
Mark Otto's avatar
Mark Otto committed
702
703
  border-radius: 0;
  border-width: 0 0 1px;
Mark Otto's avatar
Mark Otto committed
704
705
}

Mark Otto's avatar
Mark Otto committed
706
/* Make the examples and snippets not full-width */
707
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
  .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;
  }
}

727
728
729
730
731
/* Undo width of container */
.bs-example .container {
  width: auto;
}

Mark Otto's avatar
Mark Otto committed
732
/* Tweak content of examples for optimum awesome */
Mark Otto's avatar
Mark Otto committed
733
734
735
736
.bs-example > p:last-child,
.bs-example > ul:last-child,
.bs-example > ol:last-child,
.bs-example > blockquote:last-child,
737
.bs-example > .form-control:last-child,
Mark Otto's avatar
Mark Otto committed
738
.bs-example > .table:last-child,
739
.bs-example > .navbar:last-child,
Mark Otto's avatar
Mark Otto committed
740
741
742
743
.bs-example > .jumbotron:last-child,
.bs-example > .alert:last-child,
.bs-example > .panel:last-child,
.bs-example > .list-group:last-child,
744
.bs-example > .well:last-child,
745
746
.bs-example > .progress:last-child,
.bs-example > .table-responsive:last-child > .table {
Mark Otto's avatar
Mark Otto committed
747
748
  margin-bottom: 0;
}
749
.bs-example > p > .close {
Mark Otto's avatar
Mark Otto committed
750
751
  float: none;
}
Mark Otto's avatar
Mark Otto committed
752

753
/* Typography */
754
.bs-example-type .table .info {
755
756
757
  color: #999;
  vertical-align: middle;
}
758
.bs-example-type .table td {
759
760
761
  padding: 15px 0;
  border-color: #eee;
}
762
.bs-example-type .table tr:first-child td {
763
764
  border-top: 0;
}
Mark Otto's avatar
Mark Otto committed
765
766
767
768
769
770
.bs-example-type h1,
.bs-example-type h2,
.bs-example-type h3,
.bs-example-type h4,
.bs-example-type h5,
.bs-example-type h6 {
771
772
773
  margin: 0;
}

774
775
776
777
778
779
780
/* Images */
.bs-example > .img-circle,
.bs-example > .img-rounded,
.bs-example > .img-thumbnail {
  margin: 5px;
}

781
782
783
784
785
/* Tables */
.bs-example > .table-responsive > .table {
  background-color: #fff;
}

786
/* Buttons */
787
788
.bs-example > .btn,
.bs-example > .btn-group {
789
790
791
  margin-top: 5px;
  margin-bottom: 5px;
}
792
793
.bs-example > .btn-toolbar + .btn-toolbar {
  margin-top: 10px;
794
}
795

796
/* Forms */
797
.bs-example-control-sizing select,
798
799
800
.bs-example-control-sizing input[type="text"] + input[type="text"] {
  margin-top: 10px;
}
801
802
803
.bs-example-form .input-group {
  margin-bottom: 10px;
}
Mark Otto's avatar
Mark Otto committed
804
805
806
.bs-example > textarea.form-control {
  resize: vertical;
}
807

Mark Otto's avatar
Mark Otto committed
808
/* List groups */
Mark Otto's avatar
Mark Otto committed
809
.bs-example > .list-group {
Mark Otto's avatar
Mark Otto committed
810
811
  max-width: 400px;
}
812

Mark Otto's avatar
Mark Otto committed
813
/* Navbars */
814
815
816
.bs-example .navbar:last-child {
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
817
818
819
820
821
822
.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
823
824
825
826
.bs-navbar-top-example .navbar-header,
.bs-navbar-bottom-example .navbar-header {
  margin-left: 0;
}
Mark Otto's avatar
Mark Otto committed
827
828
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
829
  position: relative;
Mark Otto's avatar
Mark Otto committed
830
831
832
833
  margin-left: 0;
  margin-right: 0;
}
.bs-navbar-top-example {
834
  padding-bottom: 45px;
Mark Otto's avatar
Mark Otto committed
835
836
837
}
.bs-navbar-top-example:after {
  top: auto;
838
  bottom: 15px;
839
}
840
841
.bs-navbar-top-example .navbar-fixed-top {
  top: -1px;
Mark Otto's avatar
Mark Otto committed
842
843
}
.bs-navbar-bottom-example {
844
845
  padding-top: 45px;
}
846
847
.bs-navbar-bottom-example .navbar-fixed-bottom {
  bottom: -1px;
Mark Otto's avatar
Mark Otto committed
848
849
850
851
}
.bs-navbar-bottom-example .navbar {
  margin-bottom: 0;
}
852
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
853
854
855
856
  .bs-navbar-top-example .navbar-fixed-top,
  .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }
857
858
859
860
861
862
863
864
  .bs-navbar-top-example {
    border-radius: 0 0 4px 4px;
  }
  .bs-navbar-bottom-example {
    border-radius: 4px 4px 0 0;
  }
}

865
866
867
868
869
870
/* Pagination */
.bs-example .pagination {
  margin-top: 10px;
  margin-bottom: 10px;
}

Mark Otto's avatar
Mark Otto committed
871
872
873
874
875
/* Pager */
.bs-example > .pager {
  margin-top: 0;
}

Mark Otto's avatar
Mark Otto committed
876
/* Example modals */
Mark Otto's avatar
Mark Otto committed
877
.bs-example-modal {
Mark Otto's avatar
Mark Otto committed
878
879
  background-color: #f5f5f5;
}
Mark Otto's avatar
Mark Otto committed
880
.bs-example-modal .modal {
Mark Otto's avatar
Mark Otto committed
881
882
883
884
885
886
887
888
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  z-index: 1;
  display: block;
}
Mark Otto's avatar
Mark Otto committed
889
.bs-example-modal .modal-dialog {
Mark Otto's avatar
Mark Otto committed
890
891
892
893
894
  left: auto;
  margin-left: auto;
  margin-right: auto;
}

Mark Otto's avatar
Mark Otto committed
895
/* Example dropdowns */
Mark Otto's avatar
Mark Otto committed
896
.bs-example > .dropdown > .dropdown-menu {
Mark Otto's avatar
Mark Otto committed
897
898
899
900
  position: static;
  display: block;
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
901

902
/* Example tabbable tabs */
Mark Otto's avatar
Mark Otto committed
903
.bs-example-tabs .nav-tabs {
904
905
906
  margin-bottom: 15px;
}

907
/* Tooltips */
908
.bs-example-tooltips {
909
910
  text-align: center;
}
911
912
913
914
.bs-example-tooltips > .btn {
  margin-top: 5px;
  margin-bottom: 5px;
}
915
916

/* Popovers */
Mark Otto's avatar
Mark Otto committed
917
.bs-example-popover {
918
919
920
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
Mark Otto's avatar
Mark Otto committed
921
.bs-example-popover .popover {
922
923
924
925
926
927
928
  position: relative;
  display: block;
  float: left;
  width: 260px;
  margin: 20px;
}

Mark Otto's avatar
Mark Otto committed
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
/* Scrollspy demo on fixed height div */
.scrollspy-example {
  position: relative;
  height: 200px;
  margin-top: 10px;
  overflow: auto;
}


/*
 * Code snippets
 *
 * Generated via Pygments and Jekyll, these are snippets of HTML, CSS, and JS.
 */

.highlight {
  display: none; /* hidden by default, until >480px */
  padding: 9px 14px;
  margin-bottom: 14px;
  background-color: #f7f7f9;
  border: 1px solid #e1e1e8;
  border-radius: 4px;
}
.highlight pre {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  background-color: transparent;
  border: 0;
  white-space: nowrap;
}
.highlight pre code {
  font-size: inherit;
  color: #333; /* Effectively the base text color */
}
.highlight pre .lineno {
  display: inline-block;
  width: 22px;
  padding-right: 5px;
  margin-right: 10px;
  text-align: right;
  color: #bebec5;
}

/* Show code snippets when we have the space */
974
@media (min-width: 481px) {
Mark Otto's avatar
Mark Otto committed
975
976
977
978
  .highlight {
    display: block;
  }
}
Mark Otto's avatar
Mark Otto committed
979

Mark Otto's avatar
Mark Otto committed
980
981
982
983
984
985

/*
 * Responsive tests
 *
 * Generate a set of tests to show the responsive utilities in action.
 */
Mark Otto's avatar
Mark Otto committed
986

987
/* Responsive (scrollable) doc tables */
988
.table-responsive .highlight pre {
989
990
991
  white-space: normal;
}

Mark Otto's avatar
Mark Otto committed
992
/* Utility classes table  */
Mark Otto's avatar
Mark Otto committed
993
.bs-table th small,
Mark Otto's avatar
Mark Otto committed
994
995
996
997
998
999
1000
.responsive-utilities th small {
  display: block;
  font-weight: normal;
  color: #999;
}
.responsive-utilities tbody th {
  font-weight: normal;
For faster browsing, not all history is shown. View entire blame