docs.css 20.2 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;
Mark Otto's avatar
Mark Otto committed
15
  padding-top: 100px;
16
  font-size: 14px;
Mark Otto's avatar
Mark Otto committed
17
  background-color: #fff;
18
  background-image: url(../img/grid-20px.png);
19
  background-repeat: repeat-x;
Mark Otto's avatar
Mark Otto committed
20
  background-position: 0 40px;
Jacob Thornton's avatar
Jacob Thornton committed
21
}
22

Mark Otto's avatar
Mark Otto committed
23
24
25
/* Custom container for the narrow docs */
.bs-docs-container {
  max-width: 780px;
Mark Otto's avatar
Mark Otto committed
26
  margin: 0 auto;
27
28
}

Mark Otto's avatar
Mark Otto committed
29
30
/* Increase docs base type size and line-heights */
body {
31
32
  line-height: 20px;
}
Mark Otto's avatar
Mark Otto committed
33
34
p {
  margin-bottom: 15px;
35
}
Mark Otto's avatar
Mark Otto committed
36
37
li {
  line-height: 25px;
38
39
}

40
41
42
43
44
45
/* Code in headings */
h3 code {
  font-size: 14px;
  font-weight: normal;
}

Mark Otto's avatar
Mark Otto committed
46

Mark Otto's avatar
Mark Otto committed
47

Mark Otto's avatar
Mark Otto committed
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* Tweak navbar brand link to be super sleek
-------------------------------------------------- */

.navbar,
.subnav {
  font-size: 13px;
}
.navbar-fixed-top .brand {
  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;
}
.navbar-fixed-top .brand:hover {
  text-decoration: none;
}



Mark Otto's avatar
Mark Otto committed
73
74
75
/* Left nav
-------------------------------------------------- */

76
.bs-docs-nav {
Mark Otto's avatar
Mark Otto committed
77
  display: none;
78
79
80
81
82
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: scroll;
Mark Otto's avatar
Mark Otto committed
83
84
85
86
87
88
89
90
91
  width: 150px;
  padding: 25px;
  background-color: #dde2e9;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  -webkit-box-shadow: inset -10px 0 15px rgba(0,0,0,.15);
     -moz-box-shadow: inset -10px 0 15px rgba(0,0,0,.15);
          box-shadow: inset -10px 0 15px rgba(0,0,0,.15);
  background-color: #444;
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
92
93
94
95
96
97
98
99
100
}
.bs-docs-nav ul {
  margin-left: 0;
  margin-bottom: 15px;
}
.bs-docs-nav ul li {
  list-style: none;
  line-height: 1;
}
Mark Otto's avatar
Mark Otto committed
101
102
103
.bs-docs-nav a:hover {
  text-decoration: none;
}
104
105
.bs-docs-nav ul li a {
  display: block;
Mark Otto's avatar
Mark Otto committed
106
  width: 145px;
107
108
  padding: 0 30px;
  margin: 0 -30px;
Mark Otto's avatar
Mark Otto committed
109
110
111
112
  font-size: 12px;
  line-height: 22px;
  color: #444;
  color: #999;
113
114
}
.bs-docs-nav ul li a:hover {
Mark Otto's avatar
Mark Otto committed
115
  color: #333;
116
  color: #fff;
Mark Otto's avatar
Mark Otto committed
117
  background-color: rgba(0,0,0,.05);
118
119
120
121
}
.bs-docs-nav > ul > li > a {
  font-size: 14px;
  font-weight: bold;
Mark Otto's avatar
Mark Otto committed
122
123
  line-height: 24px;
  color: #333;
124
125
  color: #fff;
}
Mark Otto's avatar
Mark Otto committed
126
127

/* Logo wordmark */
128
129
130
131
132
133
134
135
.bs-docs-logo {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 20px;
}
.bs-docs-logo a {
Mark Otto's avatar
Mark Otto committed
136
137
138
  color: #a4b4cb;
  color: #333;
  text-shadow: 0 1px 0 #555;
139
}
Mark Otto's avatar
Mark Otto committed
140
141
142
.bs-docs-logo a:hover {
  color: #8e9db3;
  color: #222;
143
}
144

145

Mark Otto's avatar
Mark Otto committed
146

147
148
/* Space out sub-sections more
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
149

150
151
152
section {
  padding-top: 60px;
}
153

Mark Otto's avatar
Mark Otto committed
154
155
156
157
158
159
/* Table of contents */
.bs-docs-contents li {
  line-height: 25px;
  color: #777;
}

Mark Otto's avatar
Mark Otto committed
160
161
162
163
164
/* Separators (hr) */
.bs-docs-separator {
  margin: 40px 0 39px;
}

165
166
167
168
/* Faded out hr */
hr.soften {
  height: 1px;
  margin: 54px 0;
169
170
171
172
  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));
173
174
175
  border: 0;
}

176

177
178
/* Jumbotrons
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
179
180
181

/* Base class
------------------------- */
182
.jumbotron {
183
  position: relative;
Mark Otto's avatar
Mark Otto committed
184
  text-align: center;
185
}
186
.jumbotron h1 {
187
  margin-bottom: 10px;
Mark Otto's avatar
Mark Otto committed
188
  font-size: 80px;
189
  font-weight: bold;
190
  letter-spacing: -1px;
191
  line-height: 1;
Jacob Thornton's avatar
Jacob Thornton committed
192
}
193
.jumbotron p {
Mark Otto's avatar
Mark Otto committed
194
  margin-bottom: 20px;
195
  font-weight: 300;
196
}
197
.jumbotron .btn-large {
Mark Otto's avatar
Mark Otto committed
198
  font-size: 18px;
199
  font-weight: normal;
Mark Otto's avatar
Mark Otto committed
200
  padding: 13px 24px;
201
  margin-right: 10px;
202
203
204
205
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
206
207
208
.jumbotron .btn-large small {
  font-size: 14px;
}
209

Mark Otto's avatar
Mark Otto committed
210
211
/* Masthead (docs home)
------------------------- */
212
.masthead {
Mark Otto's avatar
Mark Otto committed
213
214
  margin-top: 20px;
  margin-bottom: 80px;
215
216
217
218
219
}
.masthead h1,
.masthead p {
}
.masthead h1 {
Mark Otto's avatar
Mark Otto committed
220
  margin-bottom: 10px;
221
222
}
.masthead p {
223
  font-size: 30px;
Mark Otto's avatar
Mark Otto committed
224
225
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
251
252
  line-height: 40px;
}

/* Quick links
------------------------- */
.bs-links {
  margin: 40px 0 0;
  font-size: 12px;
}
.quick-links {
  min-height: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}
.quick-links:first-child {
  min-height: 0;
}
.quick-links li {
  display: inline;
  margin: 0 8px;
  color: #999;
}
.quick-links .github-btn,
.quick-links .tweet-btn,
.quick-links .follow-btn {
  position: relative;
  top: 5px;
253
254
255
}


Mark Otto's avatar
Mark Otto committed
256

257
258
259
260
/* Specific jumbotrons
------------------------- */
/* supporting docs pages */
.subhead {
Mark Otto's avatar
Mark Otto committed
261
  text-align: left;
262
263
}
.subhead h1 {
264
265
266
  font-size: 60px;
}
.subhead .lead {
Mark Otto's avatar
Mark Otto committed
267
  margin-bottom: 30px;
268
  line-height: 25px;
269
270
  font-size: 30px;
  line-height: 40px;
271
272
}

Mark Otto's avatar
Mark Otto committed
273
/* Subnav */
Mark Otto's avatar
Mark Otto committed
274
275
276
.subnav {
  width: 100%;
  height: 36px;
Mark Otto's avatar
Mark Otto committed
277
278
279
280
281
282
283
284
285
  background-color: #eeeeee; /* Old browsers */
  background-repeat: repeat-x; /* Repeat the gradient */
  background-image: -moz-linear-gradient(top, #f5f5f5 0%, #eeeeee 100%); /* FF3.6+ */
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */
  background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Chrome 10+,Safari 5.1+ */
  background-image: -ms-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* IE10+ */
  background-image: -o-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Opera 11.10+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
  background-image: linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* W3C */
286
  border: 1px solid #e5e5e5;
Mark Otto's avatar
Mark Otto committed
287
288
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
289
          border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
290
}
291
292
293
.subnav .nav {
  margin-bottom: 0;
}
294
.subnav .nav > li > a {
Mark Otto's avatar
Mark Otto committed
295
  margin: 0;
296
  padding-top:    11px;
Mark Otto's avatar
Mark Otto committed
297
  padding-bottom: 11px;
298
299
  border-left: 1px solid #f5f5f5;
  border-right: 1px solid #e5e5e5;
Mark Otto's avatar
Mark Otto committed
300
301
302
303
  -webkit-border-radius: 0;
     -moz-border-radius: 0;
          border-radius: 0;
}
304
305
306
307
.subnav .nav > .active > a,
.subnav .nav > .active > a:hover {
  padding-left: 13px;
  color: #777;
308
309
310
  background-color: #e9e9e9;
  border-right-color: #ddd;
  border-left: 0;
311
312
313
  -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
     -moz-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
          box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
Mark Otto's avatar
Mark Otto committed
314
}
315
316
317
318
319
320
.subnav .nav > .active > a .caret,
.subnav .nav > .active > a:hover .caret {
  border-top-color: #777;
}
.subnav .nav > li:first-child > a,
.subnav .nav > li:first-child > a:hover {
321
  border-left: 0;
322
  padding-left: 12px;
323
324
325
  -webkit-border-radius: 4px 0 0 4px;
     -moz-border-radius: 4px 0 0 4px;
          border-radius: 4px 0 0 4px;
326
}
327
.subnav .nav > li:last-child > a {
328
329
  border-right: 0;
}
330
331
332
333
334
.subnav .dropdown-menu {
  -webkit-border-radius: 0 0 4px 4px;
     -moz-border-radius: 0 0 4px 4px;
          border-radius: 0 0 4px 4px;
}
Mark Otto's avatar
Mark Otto committed
335

336
337
/* Fixed subnav on scroll, but only for 980px and up (sorry IE!) */
@media (min-width: 980px) {
338
339
340
341
342
  .subnav-fixed {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
343
    z-index: 1020; /* 10 less than .navbar-fixed to prevent any overlap */
344
345
346
347
348
349
350
351
    border-color: #d5d5d5;
    border-width: 0 0 1px; /* drop the border on the fixed edges */
    -webkit-border-radius: 0;
       -moz-border-radius: 0;
            border-radius: 0;
    -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
       -moz-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
            box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
352
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); /* IE6-9 */
353
354
  }
  .subnav-fixed .nav {
355
    max-width: 780px;
356
    margin: 0 auto;
Mark Otto's avatar
Mark Otto committed
357
    padding: 0 1px;
358
  }
359
360
361
362
363
364
  .subnav .nav > li:first-child > a,
  .subnav .nav > li:first-child > a:hover {
    -webkit-border-radius: 0;
       -moz-border-radius: 0;
            border-radius: 0;
  }
Jacob Thornton's avatar
Jacob Thornton committed
365
366
}

367

368
369


370
371
372
/* Marketing section of Overview
-------------------------------------------------- */
.marketing .row {
373
  margin-bottom: 9px;
374
375
}
.marketing h1 {
376
  margin: 36px 0 27px;
377
  font-size: 40px;
378
  font-weight: 300;
Mark Otto's avatar
Mark Otto committed
379
  text-align: center;
380
381
382
383
384
385
}
.marketing h2,
.marketing h3 {
  font-weight: 300;
}
.marketing h2 {
386
  font-size: 22px;
387
388
389
390
}
.marketing p {
  margin-right: 10px;
}
Mark Otto's avatar
Mark Otto committed
391
.marketing .bs-icon {
392
393
  float: left;
  margin: 7px 10px 0 0;
394
  opacity: .8;
395
}
Mark Otto's avatar
Mark Otto committed
396
.marketing .small-bs-icon {
397
398
399
  float: left;
  margin: 4px 5px 0 0;
}
400
401
402
403
404
405
.marketing-byline {
  margin: -18px 0 27px;
  font-size: 18px;
  font-weight: 300;
  line-height: 24px;
  color: #999;
Mark Otto's avatar
Mark Otto committed
406
  text-align: center;
407
}
408

409

410
411
412
/* Footer
-------------------------------------------------- */
.footer {
413
  padding: 35px 0 36px;
Mark Otto's avatar
Mark Otto committed
414
  margin-top: 45px;
415
  border-top: 1px solid #e5e5e5;
416
}
417
.footer p {
418
419
420
  font-size: 12px;
  line-height: 20px;
  margin-bottom: 0;
421
422
  color: #555;
}
423

424

425

Jacob Thornton's avatar
Jacob Thornton committed
426
427
428
/* Special grid styles
-------------------------------------------------- */
.show-grid {
429
  margin-top: 10px;
430
  margin-bottom: 20px;
Jacob Thornton's avatar
Jacob Thornton committed
431
}
432
.show-grid [class*="span"] {
433
  background-color: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
434
  text-align: center;
435
436
437
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Mark Otto's avatar
Mark Otto committed
438
439
  min-height: 40px;
  line-height: 40px;
Jacob Thornton's avatar
Jacob Thornton committed
440
}
441
.show-grid:hover [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
442
  background: #ddd;
443
444
445
446
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
447
}
448
449
450
.show-grid .show-grid [class*="span"] {
  background-color: #ccc;
}
451
452


Jacob Thornton's avatar
Jacob Thornton committed
453
454
/* Render mini layout previews
-------------------------------------------------- */
455
.mini-layout {
456
  border: 1px solid #ddd;
457
458
459
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
460
461
462
  -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
463
}
Mark Otto's avatar
Mark Otto committed
464
465
466
467
468
.mini-layout,
.mini-layout .mini-layout-body,
.mini-layout.fluid .mini-layout-sidebar {
  height: 300px;
}
469
470
471
472
473
.mini-layout {
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
474
475
476
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
477
}
478
.mini-layout .mini-layout-body {
479
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
480
  margin: 0 auto;
481
  width: 70%;
Jacob Thornton's avatar
Jacob Thornton committed
482
}
483
484
485
.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
486
487
  float: left;
}
488
.mini-layout.fluid .mini-layout-sidebar {
489
  background-color: #bbd8e9;
490
  width: 20%;
Jacob Thornton's avatar
Jacob Thornton committed
491
}
492
.mini-layout.fluid .mini-layout-body {
Mark Otto's avatar
Mark Otto committed
493
494
  width: 77.5%;
  margin-left: 2.5%;
Jacob Thornton's avatar
Jacob Thornton committed
495
}
496
497


Mark Otto's avatar
Mark Otto committed
498
499
/* Popover docs
-------------------------------------------------- */
500
.popover-well {
Mark Otto's avatar
Mark Otto committed
501
502
  min-height: 160px;
}
503
.popover-well .popover {
Mark Otto's avatar
Mark Otto committed
504
505
  display: block;
}
506
.popover-well .popover-wrapper {
Mark Otto's avatar
Mark Otto committed
507
508
509
  width: 50%;
  height: 160px;
  float: left;
Jacob Thornton's avatar
Jacob Thornton committed
510
  margin-left: 55px;
511
  position: relative;
Mark Otto's avatar
Mark Otto committed
512
}
513
.popover-well .popover-menu-wrapper {
Mark Otto's avatar
Mark Otto committed
514
  height: 80px;
Jacob Thornton's avatar
Jacob Thornton committed
515
}
516
.large-bird {
Jacob Thornton's avatar
Jacob Thornton committed
517
  margin: 5px 0 0 310px;
518
  opacity: .1;
Jacob Thornton's avatar
Jacob Thornton committed
519
520
}

521

522
/* Download page
523
-------------------------------------------------- */
524
525
.download .page-header {
  margin-top: 36px;
526
}
527
.page-header .toggle-all {
528
  margin-top: 5px;
529
530
531
}

/* Space out h3s when following a section */
532
533
534
535
536
.download h3 {
  margin-bottom: 5px;
}
.download-builder input + h3,
.download-builder .checkbox + h3 {
537
538
539
540
  margin-top: 9px;
}

/* Fields for variables */
541
.download-builder input[type=text] {
542
543
544
545
546
  margin-bottom: 9px;
  font-family: Menlo, Monaco, "Courier New", monospace;
  font-size: 12px;
  color: #d14;
}
547
.download-builder input[type=text]:focus {
548
549
550
  background-color: #fff;
}

551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
/* 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;
}
569

570
571
572
573
574
/* Variables section */
#variables label {
  margin-bottom: 0;
}

575
576
/* Giant download button */
.download-btn {
577
  margin: 36px 0 108px;
578
}
579
580
#download p,
#download h4 {
581
  max-width: 50%;
582
  margin: 0 auto;
583
  color: #999;
584
  text-align: center;
585
}
586
#download h4 {
587
  margin-bottom: 0;
588
}
589
#download p {
590
591
  margin-bottom: 18px;
}
592
.download-btn .btn {
593
594
595
596
  display: block;
  width: auto;
  padding: 19px 24px;
  margin-bottom: 27px;
597
  font-size: 30px;
Mark Otto's avatar
Mark Otto committed
598
  line-height: 1;
599
600
601
602
  text-align: center;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
603
604
605
606
}



607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
/* Color swatches on LESS docs page
-------------------------------------------------- */
/* Sets the width of the td */
.swatch-col {
  width: 30px;
}
/* Le swatch */
.swatch {
  display: inline-block;
  width: 30px;
  height: 20px;
  margin: -6px 0;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
}
/* For white swatches, give a border */
.swatch-bordered {
  width: 28px;
  height: 18px;
  border: 1px solid #eee;
}


631
/* Misc
Jacob Thornton's avatar
Jacob Thornton committed
632
-------------------------------------------------- */
633

634
/* Make tables spaced out a bit more */
635
h2 + table,
636
637
h3 + table,
h4 + table,
638
h2 + .row {
639
  margin-top: 5px;
640
641
}

642
/* Example sites showcase */
Mark Otto's avatar
Mark Otto committed
643
644
645
.example-sites {
  margin-left: 20px;
}
646
.example-sites img {
Mark Otto's avatar
Mark Otto committed
647
  max-width: 100%;
648
  margin: 0 auto;
649
650
}

651
652
653
654
655
656
.scrollspy-example {
  height: 200px;
  overflow: auto;
  position: relative;
}

657
658
/* Remove bottom margin on example forms in wells */
form.well {
659
  padding: 14px;
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
}

/* Tighten up spacing */
.well hr {
  margin: 18px 0;
}

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

676
/* For input sizes, make them display block */
677
.docs-input-sizes select,
678
679
680
681
.docs-input-sizes input[type=text] {
  display: block;
  margin-bottom: 9px;
}
682

683
684
/* Icons
------------------------- */
685
.the-icons {
686
687
  margin-left: 0;
  list-style: none;
688
}
689
.the-icons i:hover {
690
691
  background-color: rgba(255,0,0,.25);
}
692

693
694
695
696
697
698
699
/* Eaxmples page
------------------------- */
.bootstrap-examples .thumbnail {
  margin-bottom: 9px;
  background-color: #fff;
}

700
701
702
703
704
705
706
/* Docs examples
------------------------- */
.bs-docs-example {
  position: relative;
  margin: 15px 0;
  padding: 39px 19px 14px;
  background-color: #fff;
707
  border: 1px solid #ddd;
708
709
710
711
712
713
714
715
716
717
718
719
720
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
.bs-docs-example:after {
  content: "Example";
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  background-color: #f5f5f5;
721
  border: 1px solid #ddd;
722
723
724
725
726
727
728
729
730
731
732
733
734
735
  color: #9da0a4;
  -webkit-border-radius: 4px 0 4px 0;
     -moz-border-radius: 4px 0 4px 0;
          border-radius: 4px 0 4px 0;
}
.bs-docs-example + .prettyprint {
  margin-top: -20px;
  padding-top: 15px;
}
.bs-docs-example,
.bs-docs-example > p {
  font-size: 13px;
  line-height: 18px;
}
Mark Otto's avatar
Mark Otto committed
736
737
738
.bs-docs-example p {
  margin-bottom: 9px;
}
739
740
741
.bs-docs-example p:last-child {
  margin-bottom: 0;
}
742
743
744
.bs-docs-example .table,
.bs-docs-example .progress,
.bs-docs-example .well,
Mark Otto's avatar
Mark Otto committed
745
.bs-docs-example .alert,
Mark Otto's avatar
Mark Otto committed
746
747
.bs-docs-example .hero-unit,
.bs-docs-example .pagination {
Mark Otto's avatar
Mark Otto committed
748
749
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
750
751
752
.bs-docs-example .pagination {
  margin-top: 0;
}
Mark Otto's avatar
Mark Otto committed
753
754
755
form.bs-docs-example {
  padding-bottom: 19px;
}
756
757
758
759
.bs-docs-example .lead {
  font-size: 18px;
  line-height: 24px;
}
Mark Otto's avatar
Mark Otto committed
760
761
762
.bs-docs-example li {
  line-height: 18px;
}
763

764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
/* Responsive table
------------------------- */
.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;
}

828

829

830
831
/* Responsive Docs
-------------------------------------------------- */
832
@media (max-width: 480px) {
833

834
835
836
837
838
  /* Reduce padding above jumbotron */
  body {
    padding-top: 70px;
  }

839
  /* Change up some type stuff */
840
841
842
  h2 {
    margin-top: 27px;
  }
843
844
845
846
  h2 small {
    display: block;
    line-height: 18px;
  }
847
848
849
  h3 {
    margin-top: 18px;
  }
850

851
852
853
854
855
  /* icons */
  .marketing .bs-icon {
    margin: 0;
  }

856
857
858
  /* Adjust the jumbotron */
  .jumbotron h1,
  .jumbotron p {
859
    text-align: center;
860
861
    margin-right: 0;
  }
862
  .jumbotron h1 {
863
    font-size: 45px;
864
865
866
867
    margin-right: 0;
  }
  .jumbotron p {
    margin-right: 0;
868
    margin-left: 0;
869
870
871
    font-size: 18px;
    line-height: 24px;
  }
872
  .jumbotron .btn {
873
    display: block;
874
875
    font-size: 18px;
    padding: 10px 14px;
876
877
    margin: 0 auto 10px;
  }
878
879
880
881
  /* Masthead (home page jumbotron) */
  .masthead {
    padding-top: 0;
  }
882
883
884
885

  /* Don't space out quick links so much */
  .quick-links {
    margin: 40px 0 0;
886
  }
887
888
889
890
891
892
893
894
895
  /* hide the bullets on mobile since our horizontal space is limited */
  .quick-links .divider {
    display: none;
  }

  /* center example sites */
  .example-sites {
    margin-left: 0;
  }
896
  .example-sites > li {
897
898
    float: none;
    display: block;
899
    max-width: 280px;
900
    margin: 0 auto 18px;
901
    text-align: center;
902
  }
903
  .example-sites .thumbnail > img {
904
905
    max-width: 270px;
  }
906
907
908
909
910
911

  table code {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
  }
912
913
914
915
916
917
918
919
920

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

922
923
924
925
926
}


@media (max-width: 768px) {

927
928
929
930
931
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }

932
933
934
  /* Jumbotron buttons */
  .jumbotron .btn {
    margin-bottom: 10px;
935
av  }
936

937
  /* Subnav */
938
  .subnav {
939
940
941
942
    position: static;
    top: auto;
    z-index: auto;
    width: auto;
943
    height: auto;
944
    background: #fff; /* whole background property since we use a background-image for gradient */
945
946
947
948
    -webkit-box-shadow: none;
       -moz-box-shadow: none;
            box-shadow: none;
  }
949
950
951
  .subnav .nav > li {
    float: none;
  }
952
  .subnav .nav > li > a {
953
954
    border: 0;
  }
Mark Otto's avatar
Mark Otto committed
955
  .subnav .nav > li + li > a {
956
    border-top: 1px solid #e5e5e5;
957
  }
Mark Otto's avatar
Mark Otto committed
958
959
960
961
962
963
964
  .subnav .nav > li:first-child > a,
  .subnav .nav > li:first-child > a:hover {
      -webkit-border-radius: 4px 4px 0 0;
         -moz-border-radius: 4px 4px 0 0;
              border-radius: 4px 4px 0 0;
  }

965
966
967
968
969
970
971
972
  /* Popovers */
  .large-bird {
    display: none;
  }
  .popover-well .popover-wrapper {
    margin-left: 0;
  }

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

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

983
}
984

985

Mark Otto's avatar
Mark Otto committed
986
987
988
989
990
991
992
@media (min-width: 480px) and (max-width: 768px) {

  /* Scale down the jumbotron content */
  .jumbotron h1 {
    font-size: 54px;
  }
  .jumbotron p {
993
    margin-right: 0;
994
    margin-left: 0;
Mark Otto's avatar
Mark Otto committed
995
996
997
998
999
  }

}


1000
@media (min-width: 768px) and (max-width: 980px) {
For faster browsing, not all history is shown. View entire blame