docs.css 21.1 KB
Newer Older
Jacob Thornton's avatar
Jacob Thornton committed
1
2
3
/* Add additional stylesheets below
-------------------------------------------------- */
/*
4
5
  Bootstrap's documentation styles
  Special styles for presenting Bootstrap's documentation and examples
Jacob Thornton's avatar
Jacob Thornton committed
6
*/
7

8

Mark Otto's avatar
Mark Otto committed
9

Jacob Thornton's avatar
Jacob Thornton committed
10
11
/* Body and structure
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
12

Jacob Thornton's avatar
Jacob Thornton committed
13
14
body {
  position: relative;
15
  padding-top: 40px;
Jacob Thornton's avatar
Jacob Thornton committed
16
}
17

18
19
20
21
22
23
/* Code in headings */
h3 code {
  font-size: 14px;
  font-weight: normal;
}

Mark Otto's avatar
Mark Otto committed
24

Mark Otto's avatar
Mark Otto committed
25

Mark Otto's avatar
Mark Otto committed
26
27
28
/* Tweak navbar brand link to be super sleek
-------------------------------------------------- */

29
body > .navbar {
30
  font-size: 13px;
Mark Otto's avatar
Mark Otto committed
31
}
32

Mark Otto's avatar
Mark Otto committed
33
/* Change the docs' brand */
34
body > .navbar .brand {
Mark Otto's avatar
Mark Otto committed
35
36
37
38
39
40
41
42
43
44
45
  padding-right: 0;
  padding-left: 0;
  margin-left: 20px;
  float: right;
  font-weight: bold;
  color: #000;
  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
  -webkit-transition: all .2s linear;
     -moz-transition: all .2s linear;
          transition: all .2s linear;
}
46
body > .navbar .brand:hover {
Mark Otto's avatar
Mark Otto committed
47
  text-decoration: none;
48
  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
Mark Otto's avatar
Mark Otto committed
49
50
51
}


52
/* Sections
53
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
54

55
/* padding for in-page bookmarks and fixed navbar */
56
section {
57
  padding-top: 30px;
58
}
59
60
61
62
section > .page-header,
section > .lead {
  color: #5a5a5a;
}
63
64
65
section > ul li {
  margin-bottom: 5px;
}
66

Mark Otto's avatar
Mark Otto committed
67
68
69
70
71
/* Separators (hr) */
.bs-docs-separator {
  margin: 40px 0 39px;
}

72
73
74
/* Faded out hr */
hr.soften {
  height: 1px;
75
  margin: 70px 0;
76
77
78
79
  background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
80
81
82
  border: 0;
}

83

Mark Otto's avatar
Mark Otto committed
84

85
86
/* Jumbotrons
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
87
88
89

/* Base class
------------------------- */
90
.jumbotron {
91
  position: relative;
92
93
  padding: 40px 0;
  color: #fff;
Mark Otto's avatar
Mark Otto committed
94
  text-align: center;
95
  text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.075);
96
97
98
99
100
101
102
103
  background: #020031; /* Old browsers */
  background: -moz-linear-gradient(45deg,  #020031 0%, #6d3353 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#020031), color-stop(100%,#6d3353)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(45deg,  #020031 0%,#6d3353 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(45deg,  #020031 0%,#6d3353 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(45deg,  #020031 0%,#6d3353 100%); /* IE10+ */
  background: linear-gradient(45deg,  #020031 0%,#6d3353 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#020031', endColorstr='#6d3353',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
104
105
106
  -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
     -moz-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
          box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
107
}
108
.jumbotron h1 {
Mark Otto's avatar
Mark Otto committed
109
  font-size: 80px;
110
  font-weight: bold;
111
  letter-spacing: -1px;
112
  line-height: 1;
Jacob Thornton's avatar
Jacob Thornton committed
113
}
114
.jumbotron p {
115
  font-size: 24px;
116
  font-weight: 300;
117
  line-height: 1.25;
118
  margin-bottom: 30px;
119
}
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135

/* Link styles (used on .masthead-links as well) */
.jumbotron a {
  color: #fff;
  color: rgba(255,255,255,.5);
  -webkit-transition: all .2s ease-in-out;
     -moz-transition: all .2s ease-in-out;
          transition: all .2s ease-in-out;
}
.jumbotron a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.25);
}

/* Download button */
.masthead .btn {
136
  padding: 19px 24px;
137
138
139
140
  font-size: 24px;
  font-weight: 200;
  color: #fff; /* redeclare to override the `.jumbotron a` */
  border: 0;
141
142
143
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
144
145
146
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
     -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
Mark Otto's avatar
Mark Otto committed
147
148
149
  -webkit-transition: none;
     -moz-transition: none;
          transition: none;
150
151
152
153
154
}
.masthead .btn:hover {
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
     -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
155
}
156
157
158
159
.masthead .btn:active {
  -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
     -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
          box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
160
}
161

162

Mark Otto's avatar
Mark Otto committed
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/* Pattern overlay
------------------------- */
.jumbotron .container {
  position: relative;
  z-index: 2;
}
.jumbotron:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
Mark Otto's avatar
Mark Otto committed
177
  background: url(../img/bs-docs-masthead-pattern.png) repeat center center;
Mark Otto's avatar
Mark Otto committed
178
  opacity: .4;
Mark Otto's avatar
Mark Otto committed
179
}
180
181
182
183
184
185
186
187
188
189
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1) {

  .jumbotron:after {
    background-size: 150px 150px;
  }

}
Mark Otto's avatar
Mark Otto committed
190

Mark Otto's avatar
Mark Otto committed
191
192
/* Masthead (docs home)
------------------------- */
193
.masthead {
194
  padding: 70px 0 80px;
195
196
197
198
199
200
201
  margin-bottom: 0;
  color: #fff;
}
.masthead h1 {
  font-size: 120px;
  line-height: 1;
  letter-spacing: -2px;
202
203
}
.masthead p {
204
205
206
  font-size: 40px;
  font-weight: 200;
  line-height: 1.25;
Mark Otto's avatar
Mark Otto committed
207
208
}

209
210
/* Textual links in masthead */
.masthead-links {
Mark Otto's avatar
Mark Otto committed
211
212
213
  margin: 0;
  list-style: none;
}
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
.masthead-links li {
  display: inline;
  padding: 0 10px;
  color: rgba(255,255,255,.25);
}

/* Social proof buttons from GitHub & Twitter */
.bs-docs-social {
  padding: 15px 0;
  text-align: center;
  background-color: #f5f5f5;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #ddd;
}

/* Quick links on Home */
.bs-docs-social-buttons {
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
Mark Otto's avatar
Mark Otto committed
235
}
236
.bs-docs-social-buttons li {
Mark Otto's avatar
Mark Otto committed
237
  display: inline-block;
238
  padding: 5px 8px;
Mark Otto's avatar
Mark Otto committed
239
  line-height: 1;
Mark Otto's avatar
Mark Otto committed
240
241
  *display: inline;
  *zoom: 1;
242
243
}

244
245
246
247
/* Subhead (other pages)
------------------------- */
.subhead {
  text-align: left;
248
  border-bottom: 1px solid #ddd;
249
250
251
252
}
.subhead h1 {
  font-size: 60px;
}
253
.subhead p {
254
  margin-bottom: 20px;
255
}
256
257
258
.subhead .navbar {
  display: none;
}
259

260

Mark Otto's avatar
Mark Otto committed
261

262
263
/* Marketing section of Overview
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
264

265
266
.marketing {
  text-align: center;
267
  color: #5a5a5a;
268
269
}
.marketing h1 {
270
271
  margin: 60px 0 10px;
  font-size: 60px;
272
  font-weight: 200;
273
274
  line-height: 1;
  letter-spacing: -1px;
275
}
Mark Otto's avatar
Mark Otto committed
276
.marketing h2 {
277
278
279
  font-weight: 200;
  margin-bottom: 5px;
}
280
.marketing p {
281
282
  font-size: 16px;
  line-height: 1.5;
283
}
284
.marketing .marketing-byline {
285
  margin-bottom: 40px;
286
  font-size: 20px;
287
  font-weight: 300;
288
  line-height: 1.25;
289
  color: #999;
290
}
Mark Otto's avatar
Mark Otto committed
291
.marketing-img {
292
  display: block;
293
  margin: 0 auto 30px;
Mark Otto's avatar
Mark Otto committed
294
  max-height: 145px;
295
}
296

297

Mark Otto's avatar
Mark Otto committed
298

299
300
/* Footer
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
301

302
.footer {
Mark Otto's avatar
Mark Otto committed
303
304
  text-align: center;
  padding: 30px 0;
305
  margin-top: 70px;
306
  border-top: 1px solid #e5e5e5;
Mark Otto's avatar
Mark Otto committed
307
  background-color: #f5f5f5;
308
}
309
.footer p {
310
  margin-bottom: 0;
311
  color: #777;
312
}
313
314
315
316
317
.footer-links {
  margin: 10px 0;
}
.footer-links li {
  display: inline;
318
319
320
321
  padding: 0 2px;
}
.footer-links li:first-child {
  padding-left: 0;
322
}
323

324

325

Jacob Thornton's avatar
Jacob Thornton committed
326
327
/* Special grid styles
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
328

Jacob Thornton's avatar
Jacob Thornton committed
329
.show-grid {
330
  margin-top: 10px;
331
  margin-bottom: 20px;
Jacob Thornton's avatar
Jacob Thornton committed
332
}
333
.show-grid [class*="span"] {
334
  background-color: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
335
  text-align: center;
336
337
338
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Mark Otto's avatar
Mark Otto committed
339
340
  min-height: 40px;
  line-height: 40px;
Jacob Thornton's avatar
Jacob Thornton committed
341
}
342
.show-grid:hover [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
343
  background: #ddd;
344
345
346
347
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
348
}
349
.show-grid .show-grid [class*="span"] {
Mark Otto's avatar
Mark Otto committed
350
351
352
  margin-top: 5px;
}
.show-grid [class*="span"] [class*="span"] {
353
354
  background-color: #ccc;
}
Mark Otto's avatar
Mark Otto committed
355
356
357
.show-grid [class*="span"] [class*="span"] [class*="span"] {
  background-color: #999;
}
358
359


Mark Otto's avatar
Mark Otto committed
360
361

/* Mini layout previews
Jacob Thornton's avatar
Jacob Thornton committed
362
-------------------------------------------------- */
363
.mini-layout {
364
  border: 1px solid #ddd;
365
366
367
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
368
369
370
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075);
     -moz-box-shadow: 0 1px 2px rgba(0,0,0,.075);
          box-shadow: 0 1px 2px rgba(0,0,0,.075);
Jacob Thornton's avatar
Jacob Thornton committed
371
}
Mark Otto's avatar
Mark Otto committed
372
373
374
375
376
.mini-layout,
.mini-layout .mini-layout-body,
.mini-layout.fluid .mini-layout-sidebar {
  height: 300px;
}
377
378
379
380
381
.mini-layout {
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
382
383
384
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
385
}
386
.mini-layout .mini-layout-body {
387
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
388
  margin: 0 auto;
389
  width: 70%;
Jacob Thornton's avatar
Jacob Thornton committed
390
}
391
392
393
.mini-layout.fluid .mini-layout-sidebar,
.mini-layout.fluid .mini-layout-header,
.mini-layout.fluid .mini-layout-body {
Jacob Thornton's avatar
Jacob Thornton committed
394
395
  float: left;
}
396
.mini-layout.fluid .mini-layout-sidebar {
397
  background-color: #bbd8e9;
398
  width: 20%;
Jacob Thornton's avatar
Jacob Thornton committed
399
}
400
.mini-layout.fluid .mini-layout-body {
Mark Otto's avatar
Mark Otto committed
401
402
  width: 77.5%;
  margin-left: 2.5%;
Jacob Thornton's avatar
Jacob Thornton committed
403
}
404
405


406

407
/* Download page
408
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
409

410
411
.download .page-header {
  margin-top: 36px;
412
}
413
.page-header .toggle-all {
414
  margin-top: 5px;
415
416
417
}

/* Space out h3s when following a section */
418
419
420
421
422
.download h3 {
  margin-bottom: 5px;
}
.download-builder input + h3,
.download-builder .checkbox + h3 {
423
424
425
426
  margin-top: 9px;
}

/* Fields for variables */
427
.download-builder input[type=text] {
428
429
430
431
432
  margin-bottom: 9px;
  font-family: Menlo, Monaco, "Courier New", monospace;
  font-size: 12px;
  color: #d14;
}
433
.download-builder input[type=text]:focus {
434
435
436
  background-color: #fff;
}

437
438
439
/* Custom, larger checkbox labels */
.download .checkbox {
  padding: 6px 10px 6px 25px;
440
441
  font-size: 13px;
  line-height: 18px;
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
  color: #555;
  background-color: #f9f9f9;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
  cursor: pointer;
}
.download .checkbox:hover {
  color: #333;
  background-color: #f5f5f5;
}
.download .checkbox small {
  font-size: 12px;
  color: #777;
}
457

458
459
460
461
462
/* Variables section */
#variables label {
  margin-bottom: 0;
}

463
464
/* Giant download button */
.download-btn {
465
  margin: 36px 0 108px;
466
}
467
468
#download p,
#download h4 {
469
  max-width: 50%;
470
  margin: 0 auto;
471
  color: #999;
472
  text-align: center;
473
}
474
#download h4 {
475
  margin-bottom: 0;
476
}
477
#download p {
478
479
  margin-bottom: 18px;
}
480
.download-btn .btn {
481
482
483
484
  display: block;
  width: auto;
  padding: 19px 24px;
  margin-bottom: 27px;
485
  font-size: 30px;
Mark Otto's avatar
Mark Otto committed
486
  line-height: 1;
487
488
489
490
  text-align: center;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
491
492
493
494
}



495
/* Misc
Jacob Thornton's avatar
Jacob Thornton committed
496
-------------------------------------------------- */
497

498
/* Make tables spaced out a bit more */
499
h2 + table,
500
501
h3 + table,
h4 + table,
502
h2 + .row {
503
  margin-top: 5px;
504
505
}

506
/* Example sites showcase */
Mark Otto's avatar
Mark Otto committed
507
.example-sites {
508
  xmargin-left: 20px;
Mark Otto's avatar
Mark Otto committed
509
}
510
.example-sites img {
Mark Otto's avatar
Mark Otto committed
511
  max-width: 100%;
512
  margin: 0 auto;
513
514
}

515
516
517
518
519
520
.scrollspy-example {
  height: 200px;
  overflow: auto;
  position: relative;
}

521
522
523
524
525
526
527
528
529
530

/* Fake the :focus state to demo it */
.focused {
  border-color: rgba(82,168,236,.8);
  -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
     -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
          box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
  outline: 0;
}

531
/* For input sizes, make them display block */
532
.docs-input-sizes select,
533
534
535
536
.docs-input-sizes input[type=text] {
  display: block;
  margin-bottom: 9px;
}
537

538
539
/* Icons
------------------------- */
540
.the-icons {
541
542
  margin-left: 0;
  list-style: none;
543
}
544
.the-icons li {
Mark Otto's avatar
Mark Otto committed
545
546
  float: left;
  width: 25%;
547
548
  line-height: 25px;
}
549
.the-icons i:hover {
550
551
  background-color: rgba(255,0,0,.25);
}
552

553
/* Example page
554
------------------------- */
Mark Otto's avatar
Mark Otto committed
555
556
557
558
.bootstrap-examples p {
  font-size: 13px;
  line-height: 18px;
}
559
560
561
562
563
.bootstrap-examples .thumbnail {
  margin-bottom: 9px;
  background-color: #fff;
}

Mark Otto's avatar
Mark Otto committed
564
565
566
567
568
569


/* Bootstrap code examples
-------------------------------------------------- */

/* Base class */
570
571
572
573
.bs-docs-example {
  position: relative;
  margin: 15px 0;
  padding: 39px 19px 14px;
Mark Otto's avatar
Mark Otto committed
574
  *padding-top: 19px;
575
  background-color: #fff;
576
  border: 1px solid #ddd;
577
578
579
580
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
Mark Otto's avatar
Mark Otto committed
581
582

/* Echo out a label for the example */
583
584
585
586
587
588
589
590
591
.bs-docs-example:after {
  content: "Example";
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  background-color: #f5f5f5;
592
  border: 1px solid #ddd;
593
594
595
596
597
  color: #9da0a4;
  -webkit-border-radius: 4px 0 4px 0;
     -moz-border-radius: 4px 0 4px 0;
          border-radius: 4px 0 4px 0;
}
Mark Otto's avatar
Mark Otto committed
598
599

/* Remove spacing between an example and it's code */
600
601
602
603
.bs-docs-example + .prettyprint {
  margin-top: -20px;
  padding-top: 15px;
}
Mark Otto's avatar
Mark Otto committed
604
605
606

/* Tweak examples
------------------------- */
607
.bs-docs-example > p:last-child {
608
609
  margin-bottom: 0;
}
610
611
612
.bs-docs-example .table,
.bs-docs-example .progress,
.bs-docs-example .well,
Mark Otto's avatar
Mark Otto committed
613
.bs-docs-example .alert,
Mark Otto's avatar
Mark Otto committed
614
.bs-docs-example .hero-unit,
Mark Otto's avatar
Mark Otto committed
615
.bs-docs-example .pagination,
616
.bs-docs-example .navbar,
617
.bs-docs-example > .nav,
Mark Otto's avatar
Mark Otto committed
618
.bs-docs-example blockquote {
Mark Otto's avatar
Mark Otto committed
619
620
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
621
622
623
.bs-docs-example .pagination {
  margin-top: 0;
}
Mark Otto's avatar
Mark Otto committed
624
625
626
627
628
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
  height: 90px;
Mark Otto's avatar
Mark Otto committed
629
  overflow: hidden; /* cut the drop shadows off */
Mark Otto's avatar
Mark Otto committed
630
}
Mark Otto's avatar
Mark Otto committed
631
632
633
634
635
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
  margin-left: 0;
  margin-right: 0;
}
Mark Otto's avatar
Mark Otto committed
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
.bs-navbar-top-example {
  -webkit-border-radius: 0 0 4px 4px;
     -moz-border-radius: 0 0 4px 4px;
          border-radius: 0 0 4px 4px;
}
.bs-navbar-top-example:after {
  top: auto;
  bottom: -1px;
  -webkit-border-radius: 0 4px 0 4px;
     -moz-border-radius: 0 4px 0 4px;
          border-radius: 0 4px 0 4px;
}
.bs-navbar-bottom-example {
  -webkit-border-radius: 4px 4px 0 0;
     -moz-border-radius: 4px 4px 0 0;
          border-radius: 4px 4px 0 0;
}
.bs-navbar-bottom-example .navbar {
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
656
657
658
form.bs-docs-example {
  padding-bottom: 19px;
}
659

660
661
662
663
664
665
/* Images */
.bs-docs-example-images img {
  margin: 10px;
  display: inline-block;
}

666
667
668
669
670
671
672
673
674
675
676
/* Tooltips */
.bs-docs-tooltip-examples {
  text-align: center;
  margin: 0 0 10px;
  list-style: none;
}
.bs-docs-tooltip-examples li {
  display: inline;
  padding: 0 10px;
}

677
678
679
680
681
682
683
684
685
/* Popovers */
.bs-docs-example-popover {
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
.bs-docs-example-popover .popover {
  position: relative;
  display: block;
  float: left;
686
687
  width: 260px;
  margin: 20px;
688
689
690
}


Mark Otto's avatar
Mark Otto committed
691
692
693
694
695

/* Responsive docs
-------------------------------------------------- */

/* Utility classes table
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
------------------------- */
.responsive-utilities th small {
  display: block;
  font-weight: normal;
  color: #999;
}
.responsive-utilities tbody th {
  font-weight: normal;
}
.responsive-utilities td {
  text-align: center;
}
.responsive-utilities td.is-visible {
  color: #468847;
  background-color: #dff0d8 !important;
}
.responsive-utilities td.is-hidden {
  color: #ccc;
  background-color: #f9f9f9 !important;
}

/* Responsive tests
------------------------- */
.responsive-utilities-test {
  margin-top: 5px;
  margin-left: 0;
  list-style: none;
  overflow: hidden; /* clear floats */
}
.responsive-utilities-test li {
  position: relative;
  float: left;
  width: 25%;
  height: 43px;
  font-size: 14px;
  font-weight: bold;
  line-height: 43px;
  color: #999;
  text-align: center;
  border: 1px solid #ddd;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
.responsive-utilities-test li + li {
  margin-left: 10px;
}
.responsive-utilities-test span {
  position: absolute;
  top:    -1px;
  left:   -1px;
  right:  -1px;
  bottom: -1px;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
.responsive-utilities-test span {
  color: #468847;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
}

759

760

Mark Otto's avatar
Mark Otto committed
761
762
763
764
/* Sidenav for Docs
-------------------------------------------------- */

.bs-docs-sidenav {
765
  width: 228px;
Jacob Thornton's avatar
Jacob Thornton committed
766
  margin: 30px 0 0;
Mark Otto's avatar
Mark Otto committed
767
768
769
770
771
772
773
774
775
776
777
  padding: 0;
  background-color: #fff;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
  -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.065);
     -moz-box-shadow: 0 1px 4px rgba(0,0,0,.065);
          box-shadow: 0 1px 4px rgba(0,0,0,.065);
}
.bs-docs-sidenav > li > a {
  display: block;
Mark Otto's avatar
Mark Otto committed
778
  width: 190px \9;
Mark Otto's avatar
Mark Otto committed
779
  margin: 0 0 -1px;
Mark Otto's avatar
Mark Otto committed
780
  padding: 8px 14px;
Mark Otto's avatar
Mark Otto committed
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
  border: 1px solid #e5e5e5;
}
.bs-docs-sidenav > li:first-child > a {
  -webkit-border-radius: 6px 6px 0 0;
     -moz-border-radius: 6px 6px 0 0;
          border-radius: 6px 6px 0 0;
}
.bs-docs-sidenav > li:last-child > a {
  -webkit-border-radius: 0 0 6px 6px;
     -moz-border-radius: 0 0 6px 6px;
          border-radius: 0 0 6px 6px;
}
.bs-docs-sidenav > .active > a {
  position: relative;
  z-index: 2;
796
797
  padding: 9px 15px;
  border: 0;
798
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
799
800
801
  -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
     -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
          box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
Mark Otto's avatar
Mark Otto committed
802
803
804
805
806
807
808
809
810
811
812
813
814
815
}
/* Chevrons */
.bs-docs-sidenav .icon-chevron-right {
  float: right;
  margin-top: 2px;
  margin-right: -6px;
  opacity: .25;
}
.bs-docs-sidenav > li > a:hover {
  background-color: #f5f5f5;
}
.bs-docs-sidenav a:hover .icon-chevron-right {
  opacity: .5;
}
816
817
.bs-docs-sidenav .active .icon-chevron-right,
.bs-docs-sidenav .active a:hover .icon-chevron-right {
Mark Otto's avatar
Mark Otto committed
818
  background-image: url(../img/glyphicons-halflings-white.png);
819
  opacity: 1;
Mark Otto's avatar
Mark Otto committed
820
821
}
.bs-docs-sidenav.affix {
822
  top: 40px;
823
824
825
826
827
}
.bs-docs-sidenav.affix-bottom {
  position: absolute;
  top: auto;
  bottom: 270px;
Mark Otto's avatar
Mark Otto committed
828
829
830
831
832
}




Mark Otto's avatar
Mark Otto committed
833
/* Responsive
834
-------------------------------------------------- */
835

Mark Otto's avatar
Mark Otto committed
836
837
/* Desktop large
------------------------- */
Mark Otto's avatar
Mark Otto committed
838
@media (min-width: 1200px) {
Mark Otto's avatar
Mark Otto committed
839
840
841
  .bs-docs-container {
    max-width: 970px;
  }
Mark Otto's avatar
Mark Otto committed
842
843
844
  .bs-docs-sidenav {
    width: 258px;
  }
Mark Otto's avatar
Mark Otto committed
845
846
847
  .bs-docs-sidenav > li > a {
    width: 230px \9; /* Override the previous IE8-9 hack */
  }
Mark Otto's avatar
Mark Otto committed
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
}

/* Desktop
------------------------- */
@media (max-width: 980px) {
  /* Unfloat brand */
  body > .navbar-fixed-top .brand {
    float: left;
    margin-left: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Inline-block quick links for more spacing */
  .quick-links li {
    display: inline-block;
    margin: 5px;
  }
Mark Otto's avatar
Mark Otto committed
866
867
868
869
870
871
872
873
874

  /* When affixed, space properly */
  .bs-docs-sidenav {
    top: 0;
    margin-top: 30px;
    margin-right: 0;
  }
}

Mark Otto's avatar
Mark Otto committed
875
876
877
878
879
880
881
/* Tablet to desktop
------------------------- */
@media (min-width: 768px) and (max-width: 980px) {
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }
882
883
884
885
  /* Widen masthead and social buttons to fill body padding */
  .jumbotron {
    margin-top: -20px; /* Offset bottom margin on .navbar */
  }
Mark Otto's avatar
Mark Otto committed
886
887
888
  /* Adjust sidenav width */
  .bs-docs-sidenav {
    width: 166px;
Mark Otto's avatar
Mark Otto committed
889
    margin-top: 20px;
Mark Otto's avatar
Mark Otto committed
890
  }
Jacob Thornton's avatar
Jacob Thornton committed
891
892
893
  .bs-docs-sidenav.affix {
    top: 0;
  }
Mark Otto's avatar
Mark Otto committed
894
895
896
897
}

/* Tablet
------------------------- */
898
@media (max-width: 767px) {
Mark Otto's avatar
Mark Otto committed
899
900
901
902
903
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }

904
  /* Widen masthead and social buttons to fill body padding */
905
  .jumbotron {
906
907
908
909
910
911
912
913
914
915
916
917
    padding: 40px 20px;
    margin-top:   -20px; /* Offset bottom margin on .navbar */
    margin-right: -20px;
    margin-left:  -20px;
  }
  .masthead h1 {
    font-size: 90px;
  }
  .masthead p,
  .masthead .btn {
    font-size: 24px;
  }
918
919
920
  .marketing .span4 {
    margin-bottom: 40px;
  }
921
922
  .bs-docs-social {
    margin: 0 -20px;
Mark Otto's avatar
Mark Otto committed
923
924
925
926
927
928
929
  }

  /* Space out the show-grid examples */
  .show-grid [class*="span"] {
    margin-bottom: 5px;
  }

Mark Otto's avatar
Mark Otto committed
930
931
932
  /* Sidenav */
  .bs-docs-sidenav {
    width: auto;
Jacob Thornton's avatar
Jacob Thornton committed
933
    margin-bottom: 20px;
Mark Otto's avatar
Mark Otto committed
934
935
  }
  .bs-docs-sidenav.affix {
936
    position: static;
Mark Otto's avatar
Mark Otto committed
937
    width: auto;
938
    top: 0;
Mark Otto's avatar
Mark Otto committed
939
940
  }

Mark Otto's avatar
Mark Otto committed
941
  /* Unfloat the back to top link in footer */
942
943
944
945
946
947
  .footer {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
Mark Otto's avatar
Mark Otto committed
948
949
950
951
952
953
954
955
  .footer p {
    margin-bottom: 9px;
  }
}

/* Landscape phones
------------------------- */
@media (max-width: 480px) {
956
  /* Remove padding above jumbotron */
957
  body {
958
    padding-top: 0;
959
960
  }

961
  /* Change up some type stuff */
962
963
  h2 small {
    display: block;
964
  }
965

966
  /* Downsize the jumbotrons */
967
  .jumbotron h1 {
968
    font-size: 45px;
969
  }
970
971
  .jumbotron p,
  .jumbotron .btn {
972
    font-size: 18px;
973
  }
974
  .jumbotron .btn {
975
    display: block;
976
    margin: 0 auto;
977
  }
978

979
980
981
982
  /* center align subhead text like the masthead */
  .subhead h1,
  .subhead p {
    text-align: center;
983
984
  }

985
986
  /* Marketing on home */
  .marketing h1 {
987
988
989
990
    font-size: 30px;
  }
  .marketing-byline {
    font-size: 18px;
991
992
  }

993
994
995
996
  /* center example sites */
  .example-sites {
    margin-left: 0;
  }
997
  .example-sites > li {
998
999
    float: none;
    display: block;
1000
    max-width: 280px;
For faster browsing, not all history is shown. View entire blame