docs.css 27.2 KB
Newer Older
Mark Otto's avatar
Mark Otto committed
1
/*csslint ids: false, overqualified-elements: false, fallback-colors: false*/
Mark Otto's avatar
spacing    
Mark Otto committed
2

3
/*!
4
 * Bootstrap Docs (http://getbootstrap.com)
5
 * Copyright 2011-2014 Twitter, Inc.
6
7
 * Licensed under the Creative Commons Attribution 3.0 Unported License. For
 * details, see http://creativecommons.org/licenses/by/3.0/.
8
 */
9
10


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

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

Mark Otto's avatar
Mark Otto committed
114

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

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

Mark Otto's avatar
Mark Otto committed
152
153
154
155
156
157
158

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

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

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

Mark Otto's avatar
Mark Otto committed
186
187
188
189
190
191
192

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

193
.bs-docs-social {
Mark Otto's avatar
Mark Otto committed
194
  margin-bottom: 20px;
195
  text-align: center;
Mark Otto's avatar
Mark Otto committed
196
}
197
.bs-docs-social-buttons {
Mark Otto's avatar
Mark Otto committed
198
199
200
201
202
  display: inline-block;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}
203
.bs-docs-social-buttons li {
Mark Otto's avatar
Mark Otto committed
204
205
206
207
  display: inline-block;
  line-height: 1;
  padding: 5px 8px;
}
208
.bs-docs-social-buttons .twitter-follow-button {
Mark Otto's avatar
Mark Otto committed
209
210
  width: 225px !important;
}
211
.bs-docs-social-buttons .twitter-share-button {
Mark Otto's avatar
Mark Otto committed
212
213
214
215
216
217
218
219
220
221
222
223
224
225
  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
226

Mark Otto's avatar
Mark Otto committed
227
/* Share masthead with page headers */
228
229
.bs-docs-masthead,
.bs-docs-header {
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
}
Mark Otto's avatar
Mark Otto committed
241
242

 /* Masthead (headings and download button) */
243
.bs-docs-masthead .bs-docs-booticon {
Mark Otto's avatar
Mark Otto committed
244
  margin: 0 auto 30px;
Mark Otto's avatar
Mark Otto committed
245
}
246
.bs-docs-masthead h1 {
Mark Otto's avatar
Mark Otto committed
247
  font-weight: 300;
Mark Otto's avatar
Mark Otto committed
248
  line-height: 1;
Mark Otto's avatar
Mark Otto committed
249
  color: #fff;
Mark Otto's avatar
Mark Otto committed
250
}
251
.bs-docs-masthead .lead {
Mark Otto's avatar
Mark Otto committed
252
  margin: 0 auto 30px;
Mark Otto's avatar
Mark Otto committed
253
  font-size: 20px;
Mark Otto's avatar
Mark Otto committed
254
  color: #fff;
Mark Otto's avatar
Mark Otto committed
255
}
256
257
258
259
260
.bs-docs-masthead .version {
  margin-top: -15px;
  margin-bottom: 30px;
  color: #9783b9;
}
261
.bs-docs-masthead .btn {
Mark Otto's avatar
Mark Otto committed
262
  width: 100%;
Mark Otto's avatar
Mark Otto committed
263
  padding: 15px 30px;
Mark Otto's avatar
Mark Otto committed
264
265
266
267
  font-size: 20px;
}

@media (min-width: 480px) {
268
  .bs-docs-masthead .btn {
Mark Otto's avatar
Mark Otto committed
269
270
    width: auto;
  }
271
}
Mark Otto's avatar
Mark Otto committed
272

273
@media (min-width: 768px) {
274
  .bs-docs-masthead {
Mark Otto's avatar
Mark Otto committed
275
276
277
    padding-top: 80px;
    padding-bottom: 80px;
  }
278
  .bs-docs-masthead h1 {
Mark Otto's avatar
Mark Otto committed
279
280
    font-size: 60px;
  }
281
  .bs-docs-masthead .lead {
Mark Otto's avatar
Mark Otto committed
282
    font-size: 24px;
Mark Otto's avatar
Mark Otto committed
283
284
285
286
  }
}

@media (min-width: 992px) {
287
  .bs-docs-masthead .lead {
Mark Otto's avatar
Mark Otto committed
288
    width: 80%;
Mark Otto's avatar
Mark Otto committed
289
290
    font-size: 30px;
  }
Mark Otto's avatar
Mark Otto committed
291
292
}

293

Mark Otto's avatar
Mark Otto committed
294
295
296
297
298
/*
 * Page headers
 *
 * Jumbotron-esque headers at the top of every page that's not the homepage.
 */
299

300
/* Page headers */
301
.bs-docs-header {
Mark Otto's avatar
Mark Otto committed
302
  margin-bottom: 40px;
303
  font-size: 20px;
Mark Otto's avatar
Mark Otto committed
304
}
305
.bs-docs-header h1 {
Mark Otto's avatar
Mark Otto committed
306
  margin-top: 0;
Mark Otto's avatar
Mark Otto committed
307
  color: #fff;
Mark Otto's avatar
Mark Otto committed
308
}
309
.bs-docs-header p {
Mark Otto's avatar
Mark Otto committed
310
  margin-bottom: 0;
Mark Otto's avatar
Mark Otto committed
311
  font-weight: 300;
Mark Otto's avatar
Mark Otto committed
312
  line-height: 1.4;
Mark Otto's avatar
Mark Otto committed
313
}
314
.bs-docs-header .container {
Mark Otto's avatar
Mark Otto committed
315
316
317
  position: relative;
}

318
@media (min-width: 768px) {
319
  .bs-docs-header {
Mark Otto's avatar
Mark Otto committed
320
321
    padding-top: 60px;
    padding-bottom: 60px;
Mark Otto's avatar
Mark Otto committed
322
    font-size: 24px;
Mark Otto's avatar
Mark Otto committed
323
324
    text-align: left;
  }
325
  .bs-docs-header h1 {
Mark Otto's avatar
Mark Otto committed
326
327
328
    font-size: 60px;
    line-height: 1;
  }
Mark Otto's avatar
Mark Otto committed
329
330
}

331
@media (min-width: 992px) {
332
333
  .bs-docs-header h1,
  .bs-docs-header p {
Mark Otto's avatar
Mark Otto committed
334
335
336
337
338
339
340
341
342
343
344
345
    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
346
347
.carbonad {
  width: auto !important;
Mark Otto's avatar
Mark Otto committed
348
  margin: 30px -30px -31px !important;
Mark Otto's avatar
Mark Otto committed
349
350
351
352
353
354
  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
355
356
  background: transparent !important;
  border: solid #866ab3 !important;
357
  border-width: 1px 0 !important;
Mark Otto's avatar
Mark Otto committed
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
}
.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
375
  color: inherit !important;
Mark Otto's avatar
Mark Otto committed
376
377
  text-align: left !important;
}
Mark Otto's avatar
Mark Otto committed
378
379
.carbonad-text a,
.carbonad-tag a {
Mark Otto's avatar
Mark Otto committed
380
  color: #fff !important;
Mark Otto's avatar
Mark Otto committed
381
}
Mark Otto's avatar
Mark Otto committed
382
383
384
.carbonad #azcarbon > img {
  display: none; /* hide what I assume are tracking images */
}
385

386
387
388
@media (min-width: 480px) {
  .carbonad {
    width: 330px !important;
Mark Otto's avatar
Mark Otto committed
389
    margin: 20px auto !important;
390
391
392
    border-radius: 4px;
    border-width: 1px !important;
  }
393
  .bs-docs-masthead .carbonad {
Mark Otto's avatar
Mark Otto committed
394
    margin: 50px auto 0 !important;
395
396
397
  }
}

398
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
399
  .carbonad {
Mark Otto's avatar
Mark Otto committed
400
401
    margin-left: 0 !important;
    margin-right: 0 !important;
Mark Otto's avatar
Mark Otto committed
402
403
404
  }
}

405
@media (min-width: 992px) {
Mark Otto's avatar
Mark Otto committed
406
407
  .carbonad {
    position: absolute;
Mark Otto's avatar
Mark Otto committed
408
    top: 0;
409
    right: 15px; /* 15px instead of 0 since box-sizing */
Mark Otto's avatar
Mark Otto committed
410
    margin: 0 !important;
Mark Otto's avatar
Mark Otto committed
411
412
413
    padding: 15px !important;
    width: 330px !important;
  }
414
  .bs-docs-masthead .carbonad {
415
    position: static;
Mark Otto's avatar
Mark Otto committed
416
417
  }
}
418

Mark Otto's avatar
Mark Otto committed
419
420
421
422
423
424
425

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

426
.bs-docs-featurette {
Mark Otto's avatar
Mark Otto committed
427
428
  padding-top:    40px;
  padding-bottom: 40px;
Mark Otto's avatar
Mark Otto committed
429
430
431
432
433
434
435
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  text-align: center;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
}
436
.bs-docs-featurette + .bs-docs-footer {
Mark Otto's avatar
Mark Otto committed
437
438
439
440
  margin-top: 0;
  border-top: 0;
}

441
.bs-docs-featurette-title {
Mark Otto's avatar
Mark Otto committed
442
  font-size: 30px;
Mark Otto's avatar
Mark Otto committed
443
444
445
446
  font-weight: normal;
  color: #333;
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
447
448
449
.half-rule {
  width: 100px;
  margin: 40px auto;
Mark Otto's avatar
Mark Otto committed
450
}
451
.bs-docs-featurette h3 {
Mark Otto's avatar
Mark Otto committed
452
453
  font-weight: normal;
  color: #333;
Mark Otto's avatar
Mark Otto committed
454
455
  margin-bottom: 5px;
}
456
.bs-docs-featurette-img {
Mark Otto's avatar
Mark Otto committed
457
458
459
  display: block;
  margin-bottom: 20px;
  color: #333;
Mark Otto's avatar
Mark Otto committed
460
}
461
.bs-docs-featurette-img:hover {
Mark Otto's avatar
Mark Otto committed
462
463
464
  text-decoration: none;
  color: #428bca;
}
465
.bs-docs-featurette-img img {
Mark Otto's avatar
Mark Otto committed
466
467
468
469
470
  display: block;
  margin-bottom: 15px;
}

/* Featured sites */
471
.bs-docs-featured-sites {
Mark Otto's avatar
Mark Otto committed
472
473
474
  margin-left: -1px;
  margin-right: -1px;
}
475
.bs-docs-featured-sites .col-sm-3 {
Mark Otto's avatar
Mark Otto committed
476
477
478
479
480
  padding-left: 1px;
  padding-right: 1px;
}

@media (min-width: 480px) {
481
  .bs-docs-featurette .img-responsive {
Mark Otto's avatar
Mark Otto committed
482
483
484
485
    margin-top: 30px;
  }
}
@media (min-width: 768px) {
486
  .bs-docs-featurette {
Mark Otto's avatar
Mark Otto committed
487
488
489
    padding-top:    100px;
    padding-bottom: 100px;
  }
490
  .bs-docs-featurette-title {
Mark Otto's avatar
Mark Otto committed
491
492
    font-size: 40px;
  }
493
  .bs-docs-featurette .lead {
Mark Otto's avatar
Mark Otto committed
494
495
496
497
    margin-left:  auto;
    margin-right: auto;
    max-width: 80%;
  }
498
  .bs-docs-featured-sites .col-sm-3:first-child img {
Mark Otto's avatar
Mark Otto committed
499
500
501
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }
502
  .bs-docs-featured-sites .col-sm-3:last-child img {
Mark Otto's avatar
Mark Otto committed
503
504
505
506
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }

507
  .bs-docs-featurette .img-responsive {
Mark Otto's avatar
Mark Otto committed
508
509
    margin-top: 0;
  }
Mark Otto's avatar
Mark Otto committed
510
511
}

Mark Otto's avatar
Mark Otto committed
512
513
514
515
516
517
518

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

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

/* First level of nav */
531
.bs-docs-sidenav {
Mark Otto's avatar
Mark Otto committed
532
533
  margin-top: 20px;
  margin-bottom: 20px;
Mark Otto's avatar
Mark Otto committed
534
}
535
536

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

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

585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
/* Back to top (hidden on mobile) */
.back-to-top {
  display: none;
  margin-top: 10px;
  margin-left: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #999;
}
.back-to-top:hover {
  text-decoration: none;
  color: #563d7c;
}

@media (min-width: 768px) {
  .back-to-top {
    display: block;
  }
}

Mark Otto's avatar
Mark Otto committed
606
/* Show and affix the side nav when space allows it */
607
@media (min-width: 992px) {
608
  .bs-docs-sidebar .nav > .active > ul {
Mark Otto's avatar
Mark Otto committed
609
610
611
    display: block;
  }
  /* Widen the fixed sidebar */
612
613
  .bs-docs-sidebar.affix,
  .bs-docs-sidebar.affix-bottom {
Mark Otto's avatar
Mark Otto committed
614
615
    width: 213px;
  }
616
  .bs-docs-sidebar.affix {
Mark Otto's avatar
Mark Otto committed
617
    position: fixed; /* Undo the static from mobile first approach */
Mark Otto's avatar
Mark Otto committed
618
    top: 20px;
Mark Otto's avatar
Mark Otto committed
619
  }
620
  .bs-docs-sidebar.affix-bottom {
Mark Otto's avatar
Mark Otto committed
621
622
    position: absolute; /* Undo the static from mobile first approach */
  }
623
624
  .bs-docs-sidebar.affix-bottom .bs-docs-sidenav,
  .bs-docs-sidebar.affix .bs-docs-sidenav {
Mark Otto's avatar
Mark Otto committed
625
626
627
628
    margin-top: 0;
    margin-bottom: 0;
  }
}
629
@media (min-width: 1200px) {
Mark Otto's avatar
Mark Otto committed
630
  /* Widen the fixed sidebar again */
631
632
  .bs-docs-sidebar.affix-bottom,
  .bs-docs-sidebar.affix {
Mark Otto's avatar
Mark Otto committed
633
634
635
636
637
638
639
640
641
642
643
    width: 263px;
  }
}


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

644
/* Space things out */
645
646
.bs-docs-section {
  margin-bottom: 60px;
Mark Otto's avatar
Mark Otto committed
647
}
648
649
650
.bs-docs-section:last-child {
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
651

652
h1[id] {
Mark Otto's avatar
Mark Otto committed
653
  margin-top: 0;
654
  padding-top: 20px;
655
656
}

657

Mark Otto's avatar
Mark Otto committed
658
659
660
661
662
663
/*
 * 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
664

Mark Otto's avatar
Mark Otto committed
665
/* Common styles for all types */
Mark Otto's avatar
Mark Otto committed
666
.bs-callout {
Mark Otto's avatar
Mark Otto committed
667
  margin: 20px 0;
Mark Otto's avatar
Mark Otto committed
668
669
  padding: 20px;
  border-left: 3px solid #eee;
Mark Otto's avatar
Mark Otto committed
670
}
Mark Otto's avatar
Mark Otto committed
671
.bs-callout h4 {
Mark Otto's avatar
Mark Otto committed
672
  margin-top: 0;
Mark Otto's avatar
Mark Otto committed
673
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
674
}
Mark Otto's avatar
Mark Otto committed
675
.bs-callout p:last-child {
Mark Otto's avatar
Mark Otto committed
676
677
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
678
679
680
681
.bs-callout code {
  background-color: #fff;
  border-radius: 3px;
}
Mark Otto's avatar
Mark Otto committed
682

Mark Otto's avatar
Mark Otto committed
683
/* Variations */
684
.bs-callout-danger {
Mark Otto's avatar
Mark Otto committed
685
  background-color: #fdf7f7;
Mark Otto's avatar
Mark Otto committed
686
  border-color: #d9534f;
Mark Otto's avatar
Mark Otto committed
687
688
}
.bs-callout-danger h4 {
Mark Otto's avatar
Mark Otto committed
689
  color: #d9534f;
690
691
}
.bs-callout-warning {
Mark Otto's avatar
Mark Otto committed
692
693
  background-color: #fcf8f2;
  border-color: #f0ad4e;
Mark Otto's avatar
Mark Otto committed
694
695
}
.bs-callout-warning h4 {
Mark Otto's avatar
Mark Otto committed
696
  color: #f0ad4e;
697
698
}
.bs-callout-info {
Mark Otto's avatar
Mark Otto committed
699
  background-color: #f4f8fa;
Mark Otto's avatar
Mark Otto committed
700
  border-color: #5bc0de;
Mark Otto's avatar
Mark Otto committed
701
702
}
.bs-callout-info h4 {
Mark Otto's avatar
Mark Otto committed
703
  color: #5bc0de;
Mark Otto's avatar
Mark Otto committed
704
705
706
}


707
708
709
710
711
712
713
714
715
716
717
718
/*
 * 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;
Mark Otto's avatar
Mark Otto committed
719
720
  width:  60px;
  height: 60px;
721
722
723
  margin: 0 5px;
  border-radius: 3px;
}
Mark Otto's avatar
Mark Otto committed
724

Mark Otto's avatar
Mark Otto committed
725
726
727
728
729
730
731
@media (min-width: 768px) {
  .color-swatch {
    width:  100px;
    height: 100px;
  }
}

Mark Otto's avatar
Mark Otto committed
732
/* Framework colors */
733
734
735
736
737
738
739
740
741
742
743
.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
744
745
746
747
748
749
/* 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; }

750

Mark Otto's avatar
Mark Otto committed
751
752
753
754
755
756
757
758
759
760
761
762
763
764
/*
 * 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;
}
765
.bs-team .github-btn {
Mark Otto's avatar
Mark Otto committed
766
767
  float: right;
  margin-top: 6px;
Mark Otto's avatar
Mark Otto committed
768
  width: 180px;
769
  height: 20px;
Mark Otto's avatar
Mark Otto committed
770
771
772
773
774
775
}
.bs-team img {
  float: left;
  width: 32px;
  margin-right: 10px;
  border-radius: 4px;
776
777
}

Mark Otto's avatar
Mark Otto committed
778

Mark Otto's avatar
Mark Otto committed
779
780
781
782
783
784
/*
 * Grid examples
 *
 * Highlight the grid columns within the docs so folks can see their padding,
 * alignment, sizing, etc.
 */
785
786
787
788

.show-grid {
  margin-bottom: 15px;
}
Mark Otto's avatar
Mark Otto committed
789
.show-grid [class^="col-"] {
790
791
792
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #eee;
Mark Otto's avatar
Mark Otto committed
793
  background-color: rgba(86,61,124,.15);
794
  border: 1px solid #ddd;
Mark Otto's avatar
Mark Otto committed
795
  border: 1px solid rgba(86,61,124,.2);
796
797
798
}


Mark Otto's avatar
Mark Otto committed
799
800
801
802
803
804
/*
 * Examples
 *
 * Isolated sections of example content for each component or feature. Usually
 * followed by a code snippet.
 */
805

Mark Otto's avatar
Mark Otto committed
806
.bs-example {
Mark Otto's avatar
Mark Otto committed
807
  position: relative;
808
  padding: 45px 15px 15px;
Mark Otto's avatar
Mark Otto committed
809
  margin: 0 -15px 15px;
810
811
812
813
814
  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
815
816
}
/* Echo out a label for the example */
Mark Otto's avatar
Mark Otto committed
817
.bs-example:after {
Mark Otto's avatar
Mark Otto committed
818
819
  content: "Example";
  position: absolute;
820
821
  top:  15px;
  left: 15px;
Mark Otto's avatar
Mark Otto committed
822
823
  font-size: 12px;
  font-weight: bold;
824
825
826
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1px;
Mark Otto's avatar
Mark Otto committed
827
828
}

Mark Otto's avatar
Mark Otto committed
829
/* Tweak display of the code snippets when following an example */
Mark Otto's avatar
Mark Otto committed
830
.bs-example + .highlight {
Mark Otto's avatar
Mark Otto committed
831
  margin: -15px -15px 15px;
Mark Otto's avatar
Mark Otto committed
832
833
  border-radius: 0;
  border-width: 0 0 1px;
Mark Otto's avatar
Mark Otto committed
834
835
}

Mark Otto's avatar
Mark Otto committed
836
/* Make the examples and snippets not full-width */
837
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
  .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;
  }
}

857
858
859
860
861
/* Undo width of container */
.bs-example .container {
  width: auto;
}

Mark Otto's avatar
Mark Otto committed
862
/* Tweak content of examples for optimum awesome */
Mark Otto's avatar
Mark Otto committed
863
864
865
866
.bs-example > p:last-child,
.bs-example > ul:last-child,
.bs-example > ol:last-child,
.bs-example > blockquote:last-child,
867
.bs-example > .form-control:last-child,
Mark Otto's avatar
Mark Otto committed
868
.bs-example > .table:last-child,
869
.bs-example > .navbar:last-child,
Mark Otto's avatar
Mark Otto committed
870
871
872
873
.bs-example > .jumbotron:last-child,
.bs-example > .alert:last-child,
.bs-example > .panel:last-child,
.bs-example > .list-group:last-child,
874
.bs-example > .well:last-child,
875
876
.bs-example > .progress:last-child,
.bs-example > .table-responsive:last-child > .table {
Mark Otto's avatar
Mark Otto committed
877
878
  margin-bottom: 0;
}
879
.bs-example > p > .close {
Mark Otto's avatar
Mark Otto committed
880
881
  float: none;
}
Mark Otto's avatar
Mark Otto committed
882

883
/* Typography */
Mark Otto's avatar
Mark Otto committed
884
.bs-example-type .table .type-info {
885
886
887
  color: #999;
  vertical-align: middle;
}
888
.bs-example-type .table td {
889
890
891
  padding: 15px 0;
  border-color: #eee;
}
892
.bs-example-type .table tr:first-child td {
893
894
  border-top: 0;
}
Mark Otto's avatar
Mark Otto committed
895
896
897
898
899
900
.bs-example-type h1,
.bs-example-type h2,
.bs-example-type h3,
.bs-example-type h4,
.bs-example-type h5,
.bs-example-type h6 {
901
902
903
  margin: 0;
}

904
905
906
907
908
/* Contextual background colors */
.bs-example-bg-classes p {
  padding: 15px;
}

909
910
911
912
913
914
915
/* Images */
.bs-example > .img-circle,
.bs-example > .img-rounded,
.bs-example > .img-thumbnail {
  margin: 5px;
}

916
917
918
919
920
/* Tables */
.bs-example > .table-responsive > .table {
  background-color: #fff;
}

921
/* Buttons */
922
923
.bs-example > .btn,
.bs-example > .btn-group {
924
925
926
  margin-top: 5px;
  margin-bottom: 5px;
}
927
928
.bs-example > .btn-toolbar + .btn-toolbar {
  margin-top: 10px;
929
}
930

931
/* Forms */
932
.bs-example-control-sizing select,
933
934
935
.bs-example-control-sizing input[type="text"] + input[type="text"] {
  margin-top: 10px;
}
936
937
938
.bs-example-form .input-group {
  margin-bottom: 10px;
}
Mark Otto's avatar
Mark Otto committed
939
940
941
.bs-example > textarea.form-control {
  resize: vertical;
}
942

Mark Otto's avatar
Mark Otto committed
943
/* List groups */
Mark Otto's avatar
Mark Otto committed
944
.bs-example > .list-group {
Mark Otto's avatar
Mark Otto committed
945
946
  max-width: 400px;
}
947

Mark Otto's avatar
Mark Otto committed
948
/* Navbars */
949
950
951
.bs-example .navbar:last-child {
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
952
953
954
955
956
957
.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
958
959
960
961
.bs-navbar-top-example .navbar-header,
.bs-navbar-bottom-example .navbar-header {
  margin-left: 0;
}
Mark Otto's avatar
Mark Otto committed
962
963
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
964
  position: relative;
Mark Otto's avatar
Mark Otto committed
965
966
967
968
  margin-left: 0;
  margin-right: 0;
}
.bs-navbar-top-example {
969
  padding-bottom: 45px;
Mark Otto's avatar
Mark Otto committed
970
971
972
}
.bs-navbar-top-example:after {
  top: auto;
973
  bottom: 15px;
974
}
975
976
.bs-navbar-top-example .navbar-fixed-top {
  top: -1px;
Mark Otto's avatar
Mark Otto committed
977
978
}
.bs-navbar-bottom-example {
979
980
  padding-top: 45px;
}
981
982
.bs-navbar-bottom-example .navbar-fixed-bottom {
  bottom: -1px;
Mark Otto's avatar
Mark Otto committed
983
984
985
986
}
.bs-navbar-bottom-example .navbar {
  margin-bottom: 0;
}
987
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
988
989
990
991
  .bs-navbar-top-example .navbar-fixed-top,
  .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }
992
993
994
995
996
997
998
999
  .bs-navbar-top-example {
    border-radius: 0 0 4px 4px;
  }
  .bs-navbar-bottom-example {
    border-radius: 4px 4px 0 0;
  }
}

1000
/* Pagination */
For faster browsing, not all history is shown. View entire blame