docs.css 11.8 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

Jacob Thornton's avatar
Jacob Thornton committed
9
10
11
12
/* Body and structure
-------------------------------------------------- */
body {
  position: relative;
13
  padding-top: 90px;
14
  background-color: #fff;
15
16
  background-image: url(../img/grid-18px-masked.png);
  background-repeat: repeat-x;
Jacob Thornton's avatar
Jacob Thornton committed
17
}
18

19

20
/* Tweak navbar brand link to be super sleek
21
-------------------------------------------------- */
22
body > .navbar-fixed .brand {
23
24
  padding-right: 0;
  padding-left: 0;
25
  margin-left: 20px;
26
27
28
  float: right;
  font-weight: bold;
  color: #000;
29
  text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
30
}
31
body > .navbar-fixed .brand:hover {
32
33
  text-decoration: none;
}
34

35

36
37
/* Space out sub-sections more
-------------------------------------------------- */
38
39
40
section {
  padding-top: 60px;
}
41
.page-header {
42
  margin: 18px 0;
43
44
45
  border-bottom: 1px solid #eee;
}
.page-header h1 {
46
47
  margin-bottom: 17px;
  line-height: 1;
48
49
}

50

51
52
53
/* Jumbotrons
-------------------------------------------------- */
.jumbotron {
54
55
  position: relative;
  text-shadow: 0 1px 0 #fff;
56
}
57
.jumbotron h1 {
58
  margin-right: 40%;
59
  margin-bottom: 9px;
60
  font-size: 90px;
61
  letter-spacing: -1px;
62
  line-height: 1;
Jacob Thornton's avatar
Jacob Thornton committed
63
}
64
.jumbotron p {
65
66
67
  margin-right: 32%;
  margin-bottom: 20px;
  font-size: 25px;
68
  font-weight: 300;
69
  line-height: 36px;
70
}
Mark Otto's avatar
Mark Otto committed
71
.jumbotron .btn-large {
72
  font-size: 20px;
73
  padding: 14px 24px;
74
  margin-right: 5px;
75
76
77
78
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
79
80
81
82
.jumbotron .download-info {
  font-size: 16px;
  color: #999;
}
83
84

/* Benefits list in masthead */
85
86
87
88
.benefits {
  width: 250px;
  position: absolute;
  right: 0;
89
  bottom: 0;
90
91
92
93
94
95
96
97
}
.benefits ul {
  list-style: none;
  margin: 0;
}
.benefits li {
  font-size: 16px;
  font-weight: 300;
98
  line-height: 35px;
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
  color: #555;
}
.benefits li + li {
  border-top: 1px solid #f5f5f5;
}
.benefits h4 {
  color: #555;
}
.benefits span {
  position: relative;
  top: -2px;
  padding-right: 5px;
  color: #999;
}

114
115
116
117
/* Specific jumbotrons
------------------------- */
/* supporting docs pages */
.subhead {
118
119
  padding-bottom: 14px;
  border-bottom: 3px solid #e5e5e5;
120
121
122
}
.subhead h1,
.subhead p {
123
  margin-right: 0;
124
125
}
.subhead h1 {
126
  font-size: 45px;
127
128
129
}


130
131
132
/* Quick links
-------------------------------------------------- */
.quick-links {
133
  min-height: 30px;
134
  padding: 5px 20px;
135
  margin: 45px 0;
136
137
138
  list-style: none;
  text-align: center;
  background-color: #eee;
139
140
141
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
142
143
144
  -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
     -moz-box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
          box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
145
  overflow: hidden;
146
147
148
149
150
151
152
153
154
155
156
157
}
.quick-links li {
  display: inline;
  margin: 0 5px;
}
.quick-links .divider {
  color: #999;
}
.quick-links strong {
  font-weight: normal;
  color: #999;
}
Mark Otto's avatar
Mark Otto committed
158
.quick-links .github-btn,
159
160
161
162
163
164
165
.quick-links .tweet-btn,
.quick-links .follow-btn {
  position: relative;
  top: 5px;
}


166
167
168
/* Marketing section of Overview
-------------------------------------------------- */
.marketing .row {
169
  margin-bottom: 9px;
170
171
}
.marketing h1 {
172
173
174
175
  margin: 36px 0 27px;
  font-size: 36px;
  font-weight: 300;
  text-align: center;
176
177
178
179
180
181
}
.marketing h2,
.marketing h3 {
  font-weight: 300;
}
.marketing h2 {
182
  font-size: 22px;
183
184
185
186
}
.marketing p {
  margin-right: 10px;
}
187
.marketing .icon {
188
189
  float: left;
  margin: 7px 10px 0 0;
190
  opacity: .8;
191
}
192
193
194
195
.marketing .small-icon {
  float: left;
  margin: 4px 5px 0 0;
}
196
197


198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
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
253
254
255
256
257
258
259
260
261
/* Quickstart section for getting le code
-------------------------------------------------- */
.getting-started {
  background-color: #f5f5f5;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f5f5f5));
  background-image: -moz-linear-gradient(#f9f9f9, #f5f5f5);
  background-image: -ms-linear-gradient(#f9f9f9, #f5f5f5);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f9f9f9), color-stop(100%, #f5f5f5));
  background-image: -webkit-linear-gradient(#f9f9f9, #f5f5f5);
  background-image: -o-linear-gradient(#f9f9f9, #f5f5f5);
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f5f5f5', GradientType=0)";
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f5f5f5', GradientType=0);
  background-image: linear-gradient(#f9f9f9, #f5f5f5);
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
.getting-started {
  border-color: #eee;
}
.getting-started td {
  width: 33%;
  border-right: 1px solid #eee;
}
.getting-started td + td {
  border-left: 1px solid #fff;
}
.getting-started td:last-child {
  border-right: 0;
}
.quick-start {
  padding: 17px 20px;
}
.quick-start h3,
.quick-start p {
  line-height: 18px;
  text-align: center;
  margin-bottom: 9px;
}
.quick-start p {
  color: #777;
}
.quick-start .current-version,
.quick-start .current-version a {
  color: #999;
}
.quick-start form {
  margin-bottom: 0;
}
.quick-start textarea {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  line-height: 21px;
  white-space: nowrap;
  overflow: hidden;
  /* Makes inputs behave like true block-level elements */
  -webkit-box-sizing: border-box; /* Older Webkit */
     -moz-box-sizing: border-box; /* Older FF */
      -ms-box-sizing: border-box; /* IE8 */
          box-sizing: border-box; /* CSS3 spec*/
  /* Hacks for IE7 to make this work just okay enough to function */
262
  *width: 270px;
263
264
265
266
  *height: 24px;
}


267
268
269
/* Footer
-------------------------------------------------- */
.footer {
270
271
  margin-top: 45px;
  padding: 35px 0 36px;
272
  border-top: 1px solid #e5e5e5;
273
}
274
.footer p {
275
  margin-bottom: 0;
276
277
  color: #555;
}
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
.footer dl {
  margin-bottom: 0;
}
.footer dl dt {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
}
.footer dl dd + dt {
  margin-top: 18px;
}
.footer dl dd {
  margin-left: 0;
  font-size: 12px;
}
.footer dl a {
  color: #999;
}
.footer dl a:hover {
  color: #555;
}

300

301

Jacob Thornton's avatar
Jacob Thornton committed
302
303
304
/* Special grid styles
-------------------------------------------------- */
.show-grid {
305
  margin-top: 10px;
306
  margin-bottom: 20px;
Jacob Thornton's avatar
Jacob Thornton committed
307
}
308
.show-grid [class*="span"] {
309
  background-color: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
310
  text-align: center;
311
312
313
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
314
  min-height: 30px;
Jacob Thornton's avatar
Jacob Thornton committed
315
316
  line-height: 30px;
}
317
.show-grid:hover [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
318
  background: #ddd;
319
320
321
322
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
323
}
324
325
326
.show-grid .show-grid [class*="span"] {
  background-color: #ccc;
}
327
328


Jacob Thornton's avatar
Jacob Thornton committed
329
330
/* Render mini layout previews
-------------------------------------------------- */
331
.mini-layout {
332
  border: 1px solid #ddd;
333
334
335
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
336
337
338
  -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
339
}
340
.mini-layout {
341
  height: 240px;
342
343
344
345
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
346
347
348
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
349
}
350
.mini-layout .mini-layout-body {
351
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
352
  margin: 0 auto;
353
  width: 70%;
354
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
355
}
356
357
358
.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
359
360
  float: left;
}
361
.mini-layout.fluid .mini-layout-sidebar {
362
  background-color: #bbd8e9;
363
  width: 20%;
364
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
365
}
366
.mini-layout.fluid .mini-layout-body {
367
  width: 60%;
Jacob Thornton's avatar
Jacob Thornton committed
368
369
  margin-left: 10px;
}
370
371


Mark Otto's avatar
Mark Otto committed
372
373
/* Popover docs
-------------------------------------------------- */
374
.popover-well {
Mark Otto's avatar
Mark Otto committed
375
376
  min-height: 160px;
}
377
.popover-well .popover {
Mark Otto's avatar
Mark Otto committed
378
379
  display: block;
}
380
.popover-well .popover-wrapper {
Mark Otto's avatar
Mark Otto committed
381
382
383
  width: 50%;
  height: 160px;
  float: left;
Jacob Thornton's avatar
Jacob Thornton committed
384
  margin-left: 55px;
385
  position: relative;
Mark Otto's avatar
Mark Otto committed
386
}
387
.popover-well .popover-menu-wrapper {
Mark Otto's avatar
Mark Otto committed
388
  height: 80px;
Jacob Thornton's avatar
Jacob Thornton committed
389
}
390
.large-bird {
Jacob Thornton's avatar
Jacob Thornton committed
391
  margin: 5px 0 0 310px;
392
  opacity: .1;
Jacob Thornton's avatar
Jacob Thornton committed
393
394
}

395

396
/* Misc
Jacob Thornton's avatar
Jacob Thornton committed
397
-------------------------------------------------- */
398

399
pre.prettyprint {
Jacob Thornton's avatar
Jacob Thornton committed
400
  overflow: hidden;
401
402
}

403
404
405
406
.browser-support {
  max-width: 100%;
}

407
/* Make tables spaced out a bit more */
408
409
h2 + table,
h2 + .row {
410
  margin-top: 5px;
411
412
}

413
414
/* Example sites showcase */
.example-sites img {
415
  max-width: 290px;
416
}
417
.marketing-byline {
418
  margin: -18px 0 27px;
419
420
  font-size: 18px;
  font-weight: 300;
421
422
423
  color: #999;
  text-align: center;
}
424

425
426
427
428
429
430
.scrollspy-example {
  height: 200px;
  overflow: auto;
  position: relative;
}

431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
/* Remove bottom margin on example forms in wells */
form.well {
  margin-bottom: 0;
}

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

/* Form docs for horizontal forms */
.form-docs {
  padding-left: 10px;
}
.form-docs h3,
.form-docs p,
.form-docs li {
  color: #777;
}
.form-docs 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;
}

463
464
465
466
467
/* For input sizes, make them display block */
.docs-input-sizes input[type=text] {
  display: block;
  margin-bottom: 9px;
}
468

469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
/* Icons
------------------------- */
.the-icons i {
  display: block;
  margin-bottom: 5px;
  background-color: rgba(255,0,0,.25);
}
.the-icons i:after {
  display: block;
  content: attr(class);
  font-style: normal;
  margin-left: 20px;
  width: 100px;
}

484
485
486
487
488
#javascript input[type=checkbox] {
  position: relative;
  top: -1px;
  display: inline;
  margin-left: 6px;
489
490
}

491

492
493
/* Responsive Docs
-------------------------------------------------- */
494
@media (max-width: 480px) {
495

496
497
498
499
500
  /* Reduce padding above jumbotron */
  body {
    padding-top: 70px;
  }

501
502
503
504
  /* Change up some type stuff */
  h1 small {
    display: block;
    line-height: 20px;
505
  }
506
507
508
509
510
511
512
  /* More space between sections */
  h2 {
    margin-top: 27px;
  }
  h3 {
    margin-top: 18px;
  }
513

514
515
516
  /* Adjust the jumbotron */
  .jumbotron h1,
  .jumbotron p {
517
    text-align: center;
518
519
    margin-right: 0;
  }
520
  .jumbotron h1 {
521
    font-size: 45px;
522
523
524
525
526
527
528
    margin-right: 0;
  }
  .jumbotron p {
    margin-right: 0;
    font-size: 18px;
    line-height: 24px;
  }
529
  .jumbotron .btn {
530
    display: block;
531
532
    font-size: 18px;
    padding: 10px 14px;
533
534
535
536
537
538
    margin: 0 auto 10px;
  }

  /* Don't space out quick links so much */
  .quick-links {
    margin: 40px 0 0;
539
  }
540
541
542
543
544
545
546
547
548
  /* hide the bullets on mobile since our horizontal space is limited */
  .quick-links .divider {
    display: none;
  }

  /* center example sites */
  .example-sites {
    margin-left: 0;
  }
549
  .example-sites > li {
550
551
552
553
554
    float: none;
    display: block;
    max-width: 300px;
    margin: 0 auto 18px;
  }
555
556
557
  .example-sites img {
    max-width: 270px;
  }
558
559
560
561
562
563

  table code {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
  }
564
565
566
567
568
569
570
571
572
573
574
575
}


@media (max-width: 768px) {

  /* Adjust the jumbotron */
  .jumbotron .benefits {
    position: relative;
    width: auto;
    margin: 36px 0;
  }

576
577
578
579
580
581
582
583
  /* Popovers */
  .large-bird {
    display: none;
  }
  .popover-well .popover-wrapper {
    margin-left: 0;
  }

584
585
586
587
588
589
590
591
592
  /* Space out the show-grid examples */
  .show-grid [class*="span"] {
    margin-bottom: 5px;
  }

  /* Unfloat the back to top link in footer */
  .footer .pull-right {
    float: none;
  }
593
594
595
  .footer p {
    margin-bottom: 9px;
  }
596

597
}
598

599

Mark Otto's avatar
Mark Otto committed
600
601
602
603
604
605
606
607
608
@media (min-width: 480px) and (max-width: 768px) {

  /* Scale down the jumbotron content */
  .jumbotron h1 {
    font-size: 54px;
  }

  .jumbotron h1,
  .jumbotron p {
609
    margin-right: 0;
Mark Otto's avatar
Mark Otto committed
610
611
612
613
614
  }

}


615
616
617
618
619
620
621
622
623
624
@media (min-width: 768px) and (max-width: 940px) {

  /* Scale down the jumbotron content */
  .jumbotron h1 {
    font-size: 72px;
  }

  /* Provide enough space on right-hand side for benefits list */
  .jumbotron h1,
  .jumbotron p {
625
    margin-right: 40%;
626
627
  }
}
628