docs.css 11.6 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
38
/* Space out sub-sections more
-------------------------------------------------- */
.page-header {
39
  margin: 45px 0 18px;
40
41
42
  border-bottom: 1px solid #eee;
}
.page-header h1 {
43
44
  margin-bottom: 17px;
  line-height: 1;
45
46
}

47

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

/* Benefits list in masthead */
82
83
84
85
.benefits {
  width: 250px;
  position: absolute;
  right: 0;
86
  bottom: 0;
87
88
89
90
91
92
93
94
}
.benefits ul {
  list-style: none;
  margin: 0;
}
.benefits li {
  font-size: 16px;
  font-weight: 300;
95
  line-height: 35px;
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
  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;
}

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


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


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


195
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
262
263
/* 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 */
  *width: 90%;
  *height: 24px;
}


264
265
266
/* Footer
-------------------------------------------------- */
.footer {
267
268
  margin-top: 45px;
  padding: 35px 0 36px;
269
  border-top: 1px solid #e5e5e5;
270
}
271
.footer p {
272
  margin-bottom: 0;
273
274
  color: #555;
}
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
.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;
}

297

298

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


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


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

392

393
/* Misc
Jacob Thornton's avatar
Jacob Thornton committed
394
-------------------------------------------------- */
395

396
pre.prettyprint {
Jacob Thornton's avatar
Jacob Thornton committed
397
  overflow: hidden;
398
399
}

400
401
402
403
.browser-support {
  max-width: 100%;
}

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

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

422
423
424
425
426
427
.scrollspy-example {
  height: 200px;
  overflow: auto;
  position: relative;
}

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

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

466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
/* Icons
------------------------- */
.the-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
/* Responsive Docs
-------------------------------------------------- */
487
@media (max-width: 480px) {
488

489
490
491
492
493
  /* Reduce padding above jumbotron */
  body {
    padding-top: 70px;
  }

494
495
496
497
  /* Change up some type stuff */
  h1 small {
    display: block;
    line-height: 20px;
498
  }
499
500
501
502
503
504
505
  /* More space between sections */
  h2 {
    margin-top: 27px;
  }
  h3 {
    margin-top: 18px;
  }
506

507
508
509
  /* Adjust the jumbotron */
  .jumbotron h1,
  .jumbotron p {
510
    text-align: center;
511
512
    margin-right: 0;
  }
513
  .jumbotron h1 {
514
    font-size: 45px;
515
516
517
518
519
520
521
    margin-right: 0;
  }
  .jumbotron p {
    margin-right: 0;
    font-size: 18px;
    line-height: 24px;
  }
522
  .jumbotron .btn {
523
    display: block;
524
525
    font-size: 18px;
    padding: 10px 14px;
526
527
528
529
530
531
    margin: 0 auto 10px;
  }

  /* Don't space out quick links so much */
  .quick-links {
    margin: 40px 0 0;
532
  }
533
534
535
536
537
538
539
540
541
  /* hide the bullets on mobile since our horizontal space is limited */
  .quick-links .divider {
    display: none;
  }

  /* center example sites */
  .example-sites {
    margin-left: 0;
  }
542
  .example-sites > li {
543
544
545
546
547
    float: none;
    display: block;
    max-width: 300px;
    margin: 0 auto 18px;
  }
548
549
550
  .example-sites img {
    max-width: 270px;
  }
551
552
553
554
555
556

  table code {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
  }
557
558
559
560
561
562
563
564
565
566
567
568
}


@media (max-width: 768px) {

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

569
570
571
572
573
574
575
576
  /* Popovers */
  .large-bird {
    display: none;
  }
  .popover-well .popover-wrapper {
    margin-left: 0;
  }

577
578
579
580
581
582
583
584
585
  /* 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;
  }
586
587
588
  .footer p {
    margin-bottom: 9px;
  }
589

590
}
591

592

Mark Otto's avatar
Mark Otto committed
593
594
595
596
597
598
599
600
601
@media (min-width: 480px) and (max-width: 768px) {

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

  .jumbotron h1,
  .jumbotron p {
602
    margin-right: 0;
Mark Otto's avatar
Mark Otto committed
603
604
605
606
607
  }

}


608
609
610
611
612
613
614
615
616
617
@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 {
618
    margin-right: 40%;
619
620
  }
}
621