docs.css 18.4 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;
16
  font-size: 14px;
Jacob Thornton's avatar
Jacob Thornton committed
17
}
18

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

Mark Otto's avatar
Mark Otto committed
25

Mark Otto's avatar
Mark Otto committed
26

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

30
31
32
33
body > .navbar-fixed-top {
  font-size: 13px;
}

Mark Otto's avatar
Mark Otto committed
34
/* Change the docs' brand */
Mark Otto's avatar
Mark Otto committed
35
body > .navbar-fixed-top .brand {
Mark Otto's avatar
Mark Otto committed
36
37
38
39
40
41
42
43
44
45
46
  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;
}
Mark Otto's avatar
Mark Otto committed
47
body > .navbar-fixed-top .brand:hover {
Mark Otto's avatar
Mark Otto committed
48
  text-decoration: none;
49
  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
50
51
52
}


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

56
/* padding for in-page bookmarks and fixed navbar */
57
58
59
section {
  padding-top: 60px;
}
60

Mark Otto's avatar
Mark Otto committed
61
62
63
64
65
/* Separators (hr) */
.bs-docs-separator {
  margin: 40px 0 39px;
}

66
67
68
/* Faded out hr */
hr.soften {
  height: 1px;
69
  margin: 70px 0;
70
71
72
73
  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));
74
75
76
  border: 0;
}

77

Mark Otto's avatar
Mark Otto committed
78

79
80
/* Jumbotrons
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
81
82
83

/* Base class
------------------------- */
84
.jumbotron {
85
  position: relative;
86
87
  padding: 40px 0;
  color: #fff;
Mark Otto's avatar
Mark Otto committed
88
  text-align: center;
89
90
91
92
93
94
95
96
97
  text-shadow: 0 1px 5px rgba(0,0,0,.25), 0 0 30px rgba(0,0,0,.075);
  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 */
98
99
100
  -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15), inset 0 -3px 7px rgba(0,0,0,.15);
     -moz-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15), inset 0 -3px 7px rgba(0,0,0,.15);
          box-shadow: inset 0 -1px 0 rgba(0,0,0,.15), inset 0 -3px 7px rgba(0,0,0,.15);
101

102
}
103
.jumbotron h1 {
Mark Otto's avatar
Mark Otto committed
104
  font-size: 80px;
105
  font-weight: bold;
106
  letter-spacing: -1px;
107
  line-height: 1;
Jacob Thornton's avatar
Jacob Thornton committed
108
}
109
.jumbotron p {
110
  font-size: 24px;
111
  font-weight: 300;
112
113
  line-height: 30px;
  margin-bottom: 30px;
114
}
115
.jumbotron .btn-large {
Mark Otto's avatar
Mark Otto committed
116
  font-size: 18px;
117
  font-weight: normal;
Mark Otto's avatar
Mark Otto committed
118
  padding: 13px 24px;
119
  margin-right: 10px;
120
121
122
123
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
124
125
126
.jumbotron .btn-large small {
  font-size: 14px;
}
127

Mark Otto's avatar
Mark Otto committed
128
129
/* Masthead (docs home)
------------------------- */
130
.masthead {
131
132
133
134
135
136
137
138
  padding: 50px 0 60px;
  margin-bottom: 0;
  color: #fff;
}
.masthead h1 {
  font-size: 120px;
  line-height: 1;
  letter-spacing: -2px;
139
140
}
.masthead p {
141
142
143
  font-size: 40px;
  font-weight: 200;
  line-height: 1.25;
Mark Otto's avatar
Mark Otto committed
144
145
}

146
147
148
149
150
151
152
153
154
/* Drop borders on buttons, improve shadows */
.masthead .btn {
  font-size: 24px;
  padding: 14px 24px;
  font-weight: 200;
  border: 0;
  -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
163
/* Textual links in masthead */
.masthead-links {
Mark Otto's avatar
Mark Otto committed
164
165
166
  margin: 0;
  list-style: none;
}
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
.masthead-links li {
  display: inline;
  padding: 0 10px;
  color: rgba(255,255,255,.25);
}
.masthead-links a {
  color: #fff;
  color: rgba(255,255,255,.5);
}
.masthead-links a:hover {
  color: #fff;
}

/* 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
195
}
196
.bs-docs-social-buttons li {
Mark Otto's avatar
Mark Otto committed
197
  display: inline-block;
198
  padding: 5px 8px;
Mark Otto's avatar
Mark Otto committed
199
  line-height: 1;
200
201
}

202
203
204
205
/* Subhead (other pages)
------------------------- */
.subhead {
  text-align: left;
206
  border-bottom: 1px solid #ddd;
207
208
209
210
}
.subhead h1 {
  font-size: 60px;
}
211
.subhead p {
212
  margin-bottom: 20px;
213
}
214
215
216
.subhead .navbar {
  display: none;
}
217

218

Mark Otto's avatar
Mark Otto committed
219

220
221
/* Marketing section of Overview
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
222

223
224
.marketing {
  text-align: center;
225
  color: #5a5a5a;
226
227
}
.marketing h1 {
228
229
  margin: 60px 0 10px;
  font-size: 60px;
230
  font-weight: 200;
231
232
  line-height: 1;
  letter-spacing: -1px;
233
}
Mark Otto's avatar
Mark Otto committed
234
.marketing h2 {
235
236
237
  font-weight: 200;
  margin-bottom: 5px;
}
238
.marketing p {
239
240
  font-size: 16px;
  line-height: 1.5;
241
}
242
.marketing .marketing-byline {
243
  margin-bottom: 40px;
244
  font-size: 20px;
245
  font-weight: 300;
246
  line-height: 25px;
247
  color: #999;
248
249
250
}
.marketing img {
  display: block;
251
  margin: 0 auto 30px;
252
}
253

254

Mark Otto's avatar
Mark Otto committed
255

256
257
/* Footer
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
258

259
.footer {
260
261
  padding: 70px 0;
  margin-top: 70px;
262
  border-top: 1px solid #e5e5e5;
Mark Otto's avatar
Mark Otto committed
263
  background-color: #f5f5f5;
264
}
265
.footer p {
266
  margin-bottom: 0;
267
  color: #777;
268
}
269
270
271
272
273
274
275
.footer-links {
  margin: 10px 0;
}
.footer-links li {
  display: inline;
  margin-right: 10px;
}
276

277

278

Jacob Thornton's avatar
Jacob Thornton committed
279
280
/* Special grid styles
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
281

Jacob Thornton's avatar
Jacob Thornton committed
282
.show-grid {
283
  margin-top: 10px;
284
  margin-bottom: 20px;
Jacob Thornton's avatar
Jacob Thornton committed
285
}
286
.show-grid [class*="span"] {
287
  background-color: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
288
  text-align: center;
289
290
291
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Mark Otto's avatar
Mark Otto committed
292
293
  min-height: 40px;
  line-height: 40px;
Jacob Thornton's avatar
Jacob Thornton committed
294
}
295
.show-grid:hover [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
296
  background: #ddd;
297
298
299
300
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
301
}
302
303
304
.show-grid .show-grid [class*="span"] {
  background-color: #ccc;
}
305
306


Mark Otto's avatar
Mark Otto committed
307
308

/* Mini layout previews
Jacob Thornton's avatar
Jacob Thornton committed
309
-------------------------------------------------- */
310
.mini-layout {
311
  border: 1px solid #ddd;
312
313
314
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
315
316
317
  -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
318
}
Mark Otto's avatar
Mark Otto committed
319
320
321
322
323
.mini-layout,
.mini-layout .mini-layout-body,
.mini-layout.fluid .mini-layout-sidebar {
  height: 300px;
}
324
325
326
327
328
.mini-layout {
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
329
330
331
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
332
}
333
.mini-layout .mini-layout-body {
334
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
335
  margin: 0 auto;
336
  width: 70%;
Jacob Thornton's avatar
Jacob Thornton committed
337
}
338
339
340
.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
341
342
  float: left;
}
343
.mini-layout.fluid .mini-layout-sidebar {
344
  background-color: #bbd8e9;
345
  width: 20%;
Jacob Thornton's avatar
Jacob Thornton committed
346
}
347
.mini-layout.fluid .mini-layout-body {
Mark Otto's avatar
Mark Otto committed
348
349
  width: 77.5%;
  margin-left: 2.5%;
Jacob Thornton's avatar
Jacob Thornton committed
350
}
351
352


353

354
/* Download page
355
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
356

357
358
.download .page-header {
  margin-top: 36px;
359
}
360
.page-header .toggle-all {
361
  margin-top: 5px;
362
363
364
}

/* Space out h3s when following a section */
365
366
367
368
369
.download h3 {
  margin-bottom: 5px;
}
.download-builder input + h3,
.download-builder .checkbox + h3 {
370
371
372
373
  margin-top: 9px;
}

/* Fields for variables */
374
.download-builder input[type=text] {
375
376
377
378
379
  margin-bottom: 9px;
  font-family: Menlo, Monaco, "Courier New", monospace;
  font-size: 12px;
  color: #d14;
}
380
.download-builder input[type=text]:focus {
381
382
383
  background-color: #fff;
}

384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
/* Custom, larger checkbox labels */
.download .checkbox {
  padding: 6px 10px 6px 25px;
  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;
}
402

403
404
405
406
407
/* Variables section */
#variables label {
  margin-bottom: 0;
}

408
409
/* Giant download button */
.download-btn {
410
  margin: 36px 0 108px;
411
}
412
413
#download p,
#download h4 {
414
  max-width: 50%;
415
  margin: 0 auto;
416
  color: #999;
417
  text-align: center;
418
}
419
#download h4 {
420
  margin-bottom: 0;
421
}
422
#download p {
423
424
  margin-bottom: 18px;
}
425
.download-btn .btn {
426
427
428
429
  display: block;
  width: auto;
  padding: 19px 24px;
  margin-bottom: 27px;
430
  font-size: 30px;
Mark Otto's avatar
Mark Otto committed
431
  line-height: 1;
432
433
434
435
  text-align: center;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
436
437
438
439
}



440
/* Misc
Jacob Thornton's avatar
Jacob Thornton committed
441
-------------------------------------------------- */
442

443
/* Make tables spaced out a bit more */
444
h2 + table,
445
446
h3 + table,
h4 + table,
447
h2 + .row {
448
  margin-top: 5px;
449
450
}

451
/* Example sites showcase */
Mark Otto's avatar
Mark Otto committed
452
.example-sites {
453
  xmargin-left: 20px;
Mark Otto's avatar
Mark Otto committed
454
}
455
.example-sites img {
Mark Otto's avatar
Mark Otto committed
456
  max-width: 100%;
457
  margin: 0 auto;
458
459
}

460
461
462
463
464
465
.scrollspy-example {
  height: 200px;
  overflow: auto;
  position: relative;
}

466
467
468
469
470
471
472
473
474
475

/* 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;
}

476
/* For input sizes, make them display block */
477
.docs-input-sizes select,
478
479
480
481
.docs-input-sizes input[type=text] {
  display: block;
  margin-bottom: 9px;
}
482

483
484
/* Icons
------------------------- */
485
.the-icons {
486
487
  margin-left: 0;
  list-style: none;
488
}
489
.the-icons li {
Mark Otto's avatar
Mark Otto committed
490
491
  float: left;
  width: 25%;
492
493
  line-height: 25px;
}
494
.the-icons i:hover {
495
496
  background-color: rgba(255,0,0,.25);
}
497

498
499
/* Eaxmples page
------------------------- */
Mark Otto's avatar
Mark Otto committed
500
501
502
503
.bootstrap-examples p {
  font-size: 13px;
  line-height: 18px;
}
504
505
506
507
508
.bootstrap-examples .thumbnail {
  margin-bottom: 9px;
  background-color: #fff;
}

Mark Otto's avatar
Mark Otto committed
509
510
511
512
513
514


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

/* Base class */
515
516
517
518
519
.bs-docs-example {
  position: relative;
  margin: 15px 0;
  padding: 39px 19px 14px;
  background-color: #fff;
520
  border: 1px solid #ddd;
521
522
523
524
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
Mark Otto's avatar
Mark Otto committed
525
526

/* Echo out a label for the example */
527
528
529
530
531
532
533
534
535
.bs-docs-example:after {
  content: "Example";
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  background-color: #f5f5f5;
536
  border: 1px solid #ddd;
537
538
539
540
541
  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
542
543

/* Remove spacing between an example and it's code */
544
545
546
547
.bs-docs-example + .prettyprint {
  margin-top: -20px;
  padding-top: 15px;
}
Mark Otto's avatar
Mark Otto committed
548
549
550

/* Tweak examples
------------------------- */
551
.bs-docs-example > p:last-child {
552
553
  margin-bottom: 0;
}
554
555
556
.bs-docs-example .table,
.bs-docs-example .progress,
.bs-docs-example .well,
Mark Otto's avatar
Mark Otto committed
557
.bs-docs-example .alert,
Mark Otto's avatar
Mark Otto committed
558
.bs-docs-example .hero-unit,
Mark Otto's avatar
Mark Otto committed
559
.bs-docs-example .pagination,
560
.bs-docs-example .navbar,
561
.bs-docs-example > .nav,
Mark Otto's avatar
Mark Otto committed
562
.bs-docs-example blockquote {
Mark Otto's avatar
Mark Otto committed
563
564
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
565
566
567
.bs-docs-example .pagination {
  margin-top: 0;
}
Mark Otto's avatar
Mark Otto committed
568
569
570
571
572
573
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
  height: 90px;
}
Mark Otto's avatar
Mark Otto committed
574
575
576
577
578
.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
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
.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
599
600
601
form.bs-docs-example {
  padding-bottom: 19px;
}
602
603
604
605
606
.bs-docs-example .lead {
  font-size: 18px;
  line-height: 24px;
}

607
608
609
610
611
612
613
614
615
616
617
/* 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;
}

618
619
620
621
622
623
624
625
626
/* Popovers */
.bs-docs-example-popover {
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
.bs-docs-example-popover .popover {
  position: relative;
  display: block;
  float: left;
627
628
  width: 260px;
  margin: 20px;
629
630
631
}


Mark Otto's avatar
Mark Otto committed
632
633
634
635
636

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

/* Utility classes table
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
------------------------- */
.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;
}

700

701

Mark Otto's avatar
Mark Otto committed
702
/* Responsive
703
-------------------------------------------------- */
704

Mark Otto's avatar
Mark Otto committed
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
/* Desktop large
------------------------- */
@media (min-width: 1210px) {
  .bs-docs-container {
    max-width: 970px;
  }
}

/* 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;
  }
}

/* Tablet to desktop
------------------------- */
@media (min-width: 768px) and (max-width: 980px) {
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }
738
  /* Widen masthead and social buttons to fill body padding */
739
  .jumbotron {
740
741
    margin-top:   -20px; /* Offset bottom margin on .navbar */
  }
Mark Otto's avatar
Mark Otto committed
742
743
744
745
746
747
748
749
750
751
}

/* Tablet
------------------------- */
@media (max-width: 768px) {
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }

752
  /* Widen masthead and social buttons to fill body padding */
753
  .jumbotron {
754
755
756
757
758
759
760
761
762
763
764
765
    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;
  }
766
767
768
  .marketing .span4 {
    margin-bottom: 40px;
  }
769
770
  .bs-docs-social {
    margin: 0 -20px;
Mark Otto's avatar
Mark Otto committed
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
  }

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

  /* Unfloat the back to top link in footer */
  .footer p {
    margin-bottom: 9px;
  }
}

/* Landscape phones
------------------------- */
@media (max-width: 480px) {
787
  /* Remove padding above jumbotron */
788
  body {
789
    padding-top: 0;
790
791
  }

792
  /* Change up some type stuff */
793
794
  h2 small {
    display: block;
795
  }
796

797
  /* Downsize the jumbotrons */
798
  .jumbotron h1 {
799
    font-size: 60px;
800
  }
801
802
803
  .jumbotron p,
  .jumbotron .btn {
    font-size: 20px;
804
  }
805
  .jumbotron .btn {
806
    display: block;
807
    margin: 0 auto;
808
  }
809

810
811
812
813
  /* center align subhead text like the masthead */
  .subhead h1,
  .subhead p {
    text-align: center;
814
815
  }

816
817
818
819
820
  /* Marketing on home */
  .marketing h1 {
    font-size: 40px;
  }

821
822
823
824
  /* center example sites */
  .example-sites {
    margin-left: 0;
  }
825
  .example-sites > li {
826
827
    float: none;
    display: block;
828
    max-width: 280px;
829
    margin: 0 auto 18px;
830
    text-align: center;
831
  }
832
  .example-sites .thumbnail > img {
833
834
    max-width: 270px;
  }
835

836
  /* Do our best to make tables work in narrow viewports */
837
838
839
840
841
  table code {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
  }
842
843
844
845
846
847
848
849
850

  /* Modal example */
  .modal-example .modal {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
851

852
853
854
855
  /* Unfloat the back to top in footer to prevent odd text wrapping */
  .footer .pull-right {
    float: none;
  }
856
}
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917



/* Docs side .nav-list
------------------------- */
.span3 {
  min-height: 1px;
}
.bs-docs-sidenav {
  margin-top: 40px;
  padding: 0;
  margin-right: 10px;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
.bs-docs-sidenav > li > a {
  margin: 0;
  font-size: 14px;
  padding: 9px 14px;
  border-top: 1px solid #eee;
}
.bs-docs-sidenav > li:first-child > a {
  border-top: 0;
  -webkit-border-radius: 5px 5px 0 0;
     -moz-border-radius: 5px 5px 0 0;
          border-radius: 5px 5px 0 0;
}
.bs-docs-sidenav > li:last-child > a {
  -webkit-border-radius: 0 0 5px 5px;
     -moz-border-radius: 0 0 5px 5px;
          border-radius: 0 0 5px 5px;
}
/* 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;
}
.bs-docs-sidenav .active .icon-chevron-right {
  background-image: url(../img/glyphicons-halflings-white.png);
  opacity: .75;
}

@media (max-width: 979px) {

  .bs-docs-sidenav {
    margin-top: 30px;
    margin-right: 0;
  }

}