docs.css 20.5 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
118
  line-height: 30px;
  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
}

Mark Otto's avatar
Mark Otto committed
181
182
/* Masthead (docs home)
------------------------- */
183
.masthead {
184
  padding: 70px 0 80px;
185
186
187
188
189
190
191
  margin-bottom: 0;
  color: #fff;
}
.masthead h1 {
  font-size: 120px;
  line-height: 1;
  letter-spacing: -2px;
192
193
}
.masthead p {
194
195
196
  font-size: 40px;
  font-weight: 200;
  line-height: 1.25;
Mark Otto's avatar
Mark Otto committed
197
198
}

199
200
/* Textual links in masthead */
.masthead-links {
Mark Otto's avatar
Mark Otto committed
201
202
203
  margin: 0;
  list-style: none;
}
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
.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
225
}
226
.bs-docs-social-buttons li {
Mark Otto's avatar
Mark Otto committed
227
  display: inline-block;
228
  padding: 5px 8px;
Mark Otto's avatar
Mark Otto committed
229
  line-height: 1;
Mark Otto's avatar
Mark Otto committed
230
231
  *display: inline;
  *zoom: 1;
232
233
}

234
235
236
237
/* Subhead (other pages)
------------------------- */
.subhead {
  text-align: left;
238
  border-bottom: 1px solid #ddd;
239
240
241
242
}
.subhead h1 {
  font-size: 60px;
}
243
.subhead p {
244
  margin-bottom: 20px;
245
}
246
247
248
.subhead .navbar {
  display: none;
}
249

250

Mark Otto's avatar
Mark Otto committed
251

252
253
/* Marketing section of Overview
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
254

255
256
.marketing {
  text-align: center;
257
  color: #5a5a5a;
258
259
}
.marketing h1 {
260
261
  margin: 60px 0 10px;
  font-size: 60px;
262
  font-weight: 200;
263
264
  line-height: 1;
  letter-spacing: -1px;
265
}
Mark Otto's avatar
Mark Otto committed
266
.marketing h2 {
267
268
269
  font-weight: 200;
  margin-bottom: 5px;
}
270
.marketing p {
271
272
  font-size: 16px;
  line-height: 1.5;
273
}
274
.marketing .marketing-byline {
275
  margin-bottom: 40px;
276
  font-size: 20px;
277
  font-weight: 300;
278
  line-height: 25px;
279
  color: #999;
280
281
282
}
.marketing img {
  display: block;
283
  margin: 0 auto 30px;
284
}
285

286

Mark Otto's avatar
Mark Otto committed
287

288
289
/* Footer
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
290

291
.footer {
292
293
  padding: 70px 0;
  margin-top: 70px;
294
  border-top: 1px solid #e5e5e5;
Mark Otto's avatar
Mark Otto committed
295
  background-color: #f5f5f5;
296
}
297
.footer p {
298
  margin-bottom: 0;
299
  color: #777;
300
}
301
302
303
304
305
306
307
.footer-links {
  margin: 10px 0;
}
.footer-links li {
  display: inline;
  margin-right: 10px;
}
308

309

310

Jacob Thornton's avatar
Jacob Thornton committed
311
312
/* Special grid styles
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
313

Jacob Thornton's avatar
Jacob Thornton committed
314
.show-grid {
315
  margin-top: 10px;
316
  margin-bottom: 20px;
Jacob Thornton's avatar
Jacob Thornton committed
317
}
318
.show-grid [class*="span"] {
319
  background-color: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
320
  text-align: center;
321
322
323
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Mark Otto's avatar
Mark Otto committed
324
325
  min-height: 40px;
  line-height: 40px;
Jacob Thornton's avatar
Jacob Thornton committed
326
}
327
.show-grid:hover [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
328
  background: #ddd;
329
330
331
332
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
333
}
334
335
336
.show-grid .show-grid [class*="span"] {
  background-color: #ccc;
}
337
338


Mark Otto's avatar
Mark Otto committed
339
340

/* Mini layout previews
Jacob Thornton's avatar
Jacob Thornton committed
341
-------------------------------------------------- */
342
.mini-layout {
343
  border: 1px solid #ddd;
344
345
346
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
347
348
349
  -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
350
}
Mark Otto's avatar
Mark Otto committed
351
352
353
354
355
.mini-layout,
.mini-layout .mini-layout-body,
.mini-layout.fluid .mini-layout-sidebar {
  height: 300px;
}
356
357
358
359
360
.mini-layout {
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
361
362
363
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
364
}
365
.mini-layout .mini-layout-body {
366
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
367
  margin: 0 auto;
368
  width: 70%;
Jacob Thornton's avatar
Jacob Thornton committed
369
}
370
371
372
.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
373
374
  float: left;
}
375
.mini-layout.fluid .mini-layout-sidebar {
376
  background-color: #bbd8e9;
377
  width: 20%;
Jacob Thornton's avatar
Jacob Thornton committed
378
}
379
.mini-layout.fluid .mini-layout-body {
Mark Otto's avatar
Mark Otto committed
380
381
  width: 77.5%;
  margin-left: 2.5%;
Jacob Thornton's avatar
Jacob Thornton committed
382
}
383
384


385

386
/* Download page
387
-------------------------------------------------- */
Mark Otto's avatar
Mark Otto committed
388

389
390
.download .page-header {
  margin-top: 36px;
391
}
392
.page-header .toggle-all {
393
  margin-top: 5px;
394
395
396
}

/* Space out h3s when following a section */
397
398
399
400
401
.download h3 {
  margin-bottom: 5px;
}
.download-builder input + h3,
.download-builder .checkbox + h3 {
402
403
404
405
  margin-top: 9px;
}

/* Fields for variables */
406
.download-builder input[type=text] {
407
408
409
410
411
  margin-bottom: 9px;
  font-family: Menlo, Monaco, "Courier New", monospace;
  font-size: 12px;
  color: #d14;
}
412
.download-builder input[type=text]:focus {
413
414
415
  background-color: #fff;
}

416
417
418
/* Custom, larger checkbox labels */
.download .checkbox {
  padding: 6px 10px 6px 25px;
419
420
  font-size: 13px;
  line-height: 18px;
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
  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;
}
436

437
438
439
440
441
/* Variables section */
#variables label {
  margin-bottom: 0;
}

442
443
/* Giant download button */
.download-btn {
444
  margin: 36px 0 108px;
445
}
446
447
#download p,
#download h4 {
448
  max-width: 50%;
449
  margin: 0 auto;
450
  color: #999;
451
  text-align: center;
452
}
453
#download h4 {
454
  margin-bottom: 0;
455
}
456
#download p {
457
458
  margin-bottom: 18px;
}
459
.download-btn .btn {
460
461
462
463
  display: block;
  width: auto;
  padding: 19px 24px;
  margin-bottom: 27px;
464
  font-size: 30px;
Mark Otto's avatar
Mark Otto committed
465
  line-height: 1;
466
467
468
469
  text-align: center;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
470
471
472
473
}



474
/* Misc
Jacob Thornton's avatar
Jacob Thornton committed
475
-------------------------------------------------- */
476

477
/* Make tables spaced out a bit more */
478
h2 + table,
479
480
h3 + table,
h4 + table,
481
h2 + .row {
482
  margin-top: 5px;
483
484
}

485
/* Example sites showcase */
Mark Otto's avatar
Mark Otto committed
486
.example-sites {
487
  xmargin-left: 20px;
Mark Otto's avatar
Mark Otto committed
488
}
489
.example-sites img {
Mark Otto's avatar
Mark Otto committed
490
  max-width: 100%;
491
  margin: 0 auto;
492
493
}

494
495
496
497
498
499
.scrollspy-example {
  height: 200px;
  overflow: auto;
  position: relative;
}

500
501
502
503
504
505
506
507
508
509

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

510
/* For input sizes, make them display block */
511
.docs-input-sizes select,
512
513
514
515
.docs-input-sizes input[type=text] {
  display: block;
  margin-bottom: 9px;
}
516

517
518
/* Icons
------------------------- */
519
.the-icons {
520
521
  margin-left: 0;
  list-style: none;
522
}
523
.the-icons li {
Mark Otto's avatar
Mark Otto committed
524
525
  float: left;
  width: 25%;
526
527
  line-height: 25px;
}
528
.the-icons i:hover {
529
530
  background-color: rgba(255,0,0,.25);
}
531

532
/* Example page
533
------------------------- */
Mark Otto's avatar
Mark Otto committed
534
535
536
537
.bootstrap-examples p {
  font-size: 13px;
  line-height: 18px;
}
538
539
540
541
542
.bootstrap-examples .thumbnail {
  margin-bottom: 9px;
  background-color: #fff;
}

Mark Otto's avatar
Mark Otto committed
543
544
545
546
547
548


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

/* Base class */
549
550
551
552
.bs-docs-example {
  position: relative;
  margin: 15px 0;
  padding: 39px 19px 14px;
Mark Otto's avatar
Mark Otto committed
553
  *padding-top: 19px;
554
  background-color: #fff;
555
  border: 1px solid #ddd;
556
557
558
559
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
Mark Otto's avatar
Mark Otto committed
560
561

/* Echo out a label for the example */
562
563
564
565
566
567
568
569
570
.bs-docs-example:after {
  content: "Example";
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  background-color: #f5f5f5;
571
  border: 1px solid #ddd;
572
573
574
575
576
  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
577
578

/* Remove spacing between an example and it's code */
579
580
581
582
.bs-docs-example + .prettyprint {
  margin-top: -20px;
  padding-top: 15px;
}
Mark Otto's avatar
Mark Otto committed
583
584
585

/* Tweak examples
------------------------- */
586
.bs-docs-example > p:last-child {
587
588
  margin-bottom: 0;
}
589
590
591
.bs-docs-example .table,
.bs-docs-example .progress,
.bs-docs-example .well,
Mark Otto's avatar
Mark Otto committed
592
.bs-docs-example .alert,
Mark Otto's avatar
Mark Otto committed
593
.bs-docs-example .hero-unit,
Mark Otto's avatar
Mark Otto committed
594
.bs-docs-example .pagination,
595
.bs-docs-example .navbar,
596
.bs-docs-example > .nav,
Mark Otto's avatar
Mark Otto committed
597
.bs-docs-example blockquote {
Mark Otto's avatar
Mark Otto committed
598
599
  margin-bottom: 5px;
}
Mark Otto's avatar
Mark Otto committed
600
601
602
.bs-docs-example .pagination {
  margin-top: 0;
}
Mark Otto's avatar
Mark Otto committed
603
604
605
606
607
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
  height: 90px;
Mark Otto's avatar
Mark Otto committed
608
  overflow: hidden; /* cut the drop shadows off */
Mark Otto's avatar
Mark Otto committed
609
}
Mark Otto's avatar
Mark Otto committed
610
611
612
613
614
.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
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
.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
635
636
637
form.bs-docs-example {
  padding-bottom: 19px;
}
638

639
640
641
642
643
644
/* Images */
.bs-docs-example-images img {
  margin: 10px;
  display: inline-block;
}

645
646
647
648
649
650
651
652
653
654
655
/* 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;
}

656
657
658
659
660
661
662
663
664
/* Popovers */
.bs-docs-example-popover {
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
.bs-docs-example-popover .popover {
  position: relative;
  display: block;
  float: left;
665
666
  width: 260px;
  margin: 20px;
667
668
669
}


Mark Otto's avatar
Mark Otto committed
670
671
672
673
674

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

/* Utility classes table
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
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
------------------------- */
.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;
}

738

739

Mark Otto's avatar
Mark Otto committed
740
741
742
743
/* Sidenav for Docs
-------------------------------------------------- */

.bs-docs-sidenav {
744
  width: 228px;
Jacob Thornton's avatar
Jacob Thornton committed
745
  margin: 30px 0 0;
Mark Otto's avatar
Mark Otto committed
746
747
748
749
750
751
752
753
754
755
756
757
758
  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;
  *width: 190px;
  margin: 0 0 -1px;
Mark Otto's avatar
Mark Otto committed
759
  padding: 8px 14px;
Mark Otto's avatar
Mark Otto committed
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
  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;
775
776
  padding: 9px 15px;
  border: 0;
777
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
778
779
780
  -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
781
782
783
784
785
786
787
788
789
790
791
792
793
794
}
/* 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;
}
795
796
.bs-docs-sidenav .active .icon-chevron-right,
.bs-docs-sidenav .active a:hover .icon-chevron-right {
Mark Otto's avatar
Mark Otto committed
797
  background-image: url(../img/glyphicons-halflings-white.png);
798
  opacity: 1;
Mark Otto's avatar
Mark Otto committed
799
800
}
.bs-docs-sidenav.affix {
801
  top: 40px;
802
803
804
805
806
}
.bs-docs-sidenav.affix-bottom {
  position: absolute;
  top: auto;
  bottom: 270px;
Mark Otto's avatar
Mark Otto committed
807
808
809
810
811
}




Mark Otto's avatar
Mark Otto committed
812
/* Responsive
813
-------------------------------------------------- */
814

Mark Otto's avatar
Mark Otto committed
815
816
/* Desktop large
------------------------- */
Mark Otto's avatar
Mark Otto committed
817
@media (min-width: 1200px) {
Mark Otto's avatar
Mark Otto committed
818
819
820
  .bs-docs-container {
    max-width: 970px;
  }
Mark Otto's avatar
Mark Otto committed
821
822
823
  .bs-docs-sidenav {
    width: 258px;
  }
Mark Otto's avatar
Mark Otto committed
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
}

/* 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
842
843
844
845
846
847
848
849
850

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

Mark Otto's avatar
Mark Otto committed
851
852
853
854
855
856
857
/* Tablet to desktop
------------------------- */
@media (min-width: 768px) and (max-width: 980px) {
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }
858
859
860
861
  /* 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
862
863
864
  /* Adjust sidenav width */
  .bs-docs-sidenav {
    width: 166px;
Mark Otto's avatar
Mark Otto committed
865
    margin-top: 20px;
Mark Otto's avatar
Mark Otto committed
866
  }
Jacob Thornton's avatar
Jacob Thornton committed
867
868
869
  .bs-docs-sidenav.affix {
    top: 0;
  }
Mark Otto's avatar
Mark Otto committed
870
871
872
873
}

/* Tablet
------------------------- */
874
@media (max-width: 767px) {
Mark Otto's avatar
Mark Otto committed
875
876
877
878
879
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }

880
  /* Widen masthead and social buttons to fill body padding */
881
  .jumbotron {
882
883
884
885
886
887
888
889
890
891
892
893
    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;
  }
894
895
896
  .marketing .span4 {
    margin-bottom: 40px;
  }
897
898
  .bs-docs-social {
    margin: 0 -20px;
Mark Otto's avatar
Mark Otto committed
899
900
901
902
903
904
905
  }

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

Mark Otto's avatar
Mark Otto committed
906
907
908
  /* Sidenav */
  .bs-docs-sidenav {
    width: auto;
Jacob Thornton's avatar
Jacob Thornton committed
909
    margin-bottom: 20px;
Mark Otto's avatar
Mark Otto committed
910
911
  }
  .bs-docs-sidenav.affix {
912
    position: static;
Mark Otto's avatar
Mark Otto committed
913
    width: auto;
914
    top: 0;
Mark Otto's avatar
Mark Otto committed
915
916
  }

Mark Otto's avatar
Mark Otto committed
917
  /* Unfloat the back to top link in footer */
918
919
920
921
922
923
  .footer {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
Mark Otto's avatar
Mark Otto committed
924
925
926
927
928
929
930
931
  .footer p {
    margin-bottom: 9px;
  }
}

/* Landscape phones
------------------------- */
@media (max-width: 480px) {
932
  /* Remove padding above jumbotron */
933
  body {
934
    padding-top: 0;
935
936
  }

937
  /* Change up some type stuff */
938
939
  h2 small {
    display: block;
940
  }
941

942
  /* Downsize the jumbotrons */
943
  .jumbotron h1 {
944
    font-size: 60px;
945
  }
946
947
948
  .jumbotron p,
  .jumbotron .btn {
    font-size: 20px;
949
  }
950
  .jumbotron .btn {
951
    display: block;
952
    margin: 0 auto;
953
  }
954

955
956
957
958
  /* center align subhead text like the masthead */
  .subhead h1,
  .subhead p {
    text-align: center;
959
960
  }

961
962
963
964
965
  /* Marketing on home */
  .marketing h1 {
    font-size: 40px;
  }

966
967
968
969
  /* center example sites */
  .example-sites {
    margin-left: 0;
  }
970
  .example-sites > li {
971
972
    float: none;
    display: block;
973
    max-width: 280px;
974
    margin: 0 auto 18px;
975
    text-align: center;
976
  }
977
  .example-sites .thumbnail > img {
978
979
    max-width: 270px;
  }
980

981
  /* Do our best to make tables work in narrow viewports */
982
983
984
985
986
  table code {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
  }
987
988
989
990
991
992
993
994
995

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

997
998
999
1000
  /* Unfloat the back to top in footer to prevent odd text wrapping */
  .footer .pull-right {
    float: none;
  }
For faster browsing, not all history is shown. View entire blame