docs.css 9.2 KB
Newer Older
1
2
3
4
/*
 * Bootstrap Documentation
 * Special styles for presenting Bootstrap's documentation and code examples.
 */
Mark Otto's avatar
Mark Otto committed
5
6
7



8
9
10
11
12
/* Key scaffolding
-------------------------------------------------- */

body {
  position: relative; /* For scrollyspy */
13
  padding-top: 62px; /* Default height of navbar */
14
15
16
}

/*  */
Mark Otto's avatar
Mark Otto committed
17
18
body > .container,
.footer .container {
Mark Otto's avatar
Mark Otto committed
19
20
21
22
  padding-left:  15px;
  padding-right: 15px;
}

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43


/* Sections
-------------------------------------------------- */

/* Padding for in-page bookmarks */
section {
  padding-top: 30px;
}

/* Few stylistic typography tweaks */
section > .page-header,
section > .lead {
  color: #5a5a5a;
}
section > ul li {
  margin-bottom: 5px;
}



Mark Otto's avatar
Mark Otto committed
44
45
46
/* Jumbotrons
-------------------------------------------------- */

47
/* Base class */
Mark Otto's avatar
Mark Otto committed
48
49
.bs-docs-jumbotron {
  position: relative;
50
51
  margin-bottom: 20px;
  padding: 30px 15px;
Mark Otto's avatar
Mark Otto committed
52
  color: #fff;
53
  text-align: center;
Mark Otto's avatar
Mark Otto committed
54
55
56
  background-color: #b94a48;
}
.bs-docs-jumbotron h1 {
57
  font-size: 50px;
Mark Otto's avatar
Mark Otto committed
58
}
59
60
61
62
63
64
65
66
67
68
69

/* Link styles (used on .masthead-links as well) */
.bs-docs-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;
}
.bs-docs-jumbotron a:hover {
  color: #fff;
70
71
}

72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* Download button */
.bs-docs-jumbotron .btn {
  padding: 18px 24px;
  font-size: 21px;
  color: #b94a48; /* redeclare to override the `.jumbotron a` */
  background-color: #fff;
}
.bs-docs-jumbotron .btn,
.bs-docs-jumbotron .btn:hover,
.bs-docs-jumbotron .btn:active {
  color: #b94a48; /* redeclare to override the `.jumbotron a` */
  background-color: #fff;
  border-color: #fff;
}
86

87
88
89
/* Masthead (docs home)
------------------------- */
.masthead h1 {
Mark Otto's avatar
Mark Otto committed
90
  line-height: 1;
91
}
92

93
94
95
96
97
98
99
100
101
102
/* Textual links in masthead */
.masthead-links {
  margin: 20px 0;
  list-style: none;
}
.masthead-links li {
  display: inline;
  padding: 0 10px;
  color: rgba(255,255,255,.25);
}
103
104
105



106
107
108
109
110
111
112
113
114
/* Marketing section of Overview
-------------------------------------------------- */

.marketing {
  text-align: center;
  color: #5a5a5a;
}
.marketing h1 {
  margin: 60px 0 10px;
Mark Otto's avatar
Mark Otto committed
115
  font-size: 50px;
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
  line-height: 1;
}
.marketing h2 {
  margin-bottom: 5px;
}
.marketing p {
  font-size: 16px;
  line-height: 1.4;
}
.marketing .marketing-byline {
  margin-bottom: 40px;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.25;
  color: #999;
}
.marketing-img {
  display: block;
  margin: 30px auto 10px;
  max-height: 145px;
}


139

140
141
/* Special grid styles
-------------------------------------------------- */
142

143
144
145
.show-grid {
  margin-bottom: 15px;
}
146
147
148
149
150
151
152
153
.show-grid [class^="span"] {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #eee;
  border: 1px solid #ddd;
}


Mark Otto's avatar
Mark Otto committed
154

155
156
157
/* Sidenav
-------------------------------------------------- */

158
/* Base styles are not affixable given mobile-first */
159
160
.bs-docs-sidenav {
  margin: 20px 0 0;
161
162
163
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
164
}
165
166
167
168
169
170
.bs-docs-sidenav.affix {
  position: static;
  top: 0;
}

/* Chevrons within each link */
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
.bs-docs-sidenav .glyphicon-chevron-right {
  float: right;
  margin-top: 1px;
  margin-right: -6px;
  opacity: .25;
  color: #000;
}
.bs-docs-sidenav a:hover .glyphicon-chevron-right {
  opacity: .5;
}
.bs-docs-sidenav .active .glyphicon-chevron-right,
.bs-docs-sidenav .active a:hover .glyphicon-chevron-right {
  color: #fff;
  opacity: 1;
}
186

Mark Otto's avatar
Mark Otto committed
187

188

189
190
191
192
193
194
/* Bootstrap code examples
-------------------------------------------------- */

/* Base class */
.bs-docs-example {
  position: relative;
195
  padding: 39px 14px 14px;
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
  margin-bottom: -1px;
  border: 1px solid #ddd;
}
/* Echo out a label for the example */
.bs-docs-example:after {
  content: "Example";
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  color: #9da0a4;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
}

/* Tweak display of the examples */
.bs-docs-example + .prettyprint {
  margin-top: 0;
Mark Otto's avatar
Mark Otto committed
216
217
  border-top-left-radius: 0;
  border-top-right-radius: 0;
218
219
}
.prettyprint .linenums {
Mark Otto's avatar
Mark Otto committed
220
  /*margin-left: 0;*/
221
222
223
}

/* Tweak content of examples for optimum awesome */
224
225
226
.bs-docs-example > p:last-child,
.bs-docs-example > ul:last-child,
.bs-docs-example > ol:last-child,
Mark Otto's avatar
Mark Otto committed
227
.bs-docs-example > blockquote:last-child,
Mark Otto's avatar
Mark Otto committed
228
229
.bs-docs-example > input:last-child,
.bs-docs-example > select:last-child,
Mark Otto's avatar
Mark Otto committed
230
231
.bs-docs-example > textarea:last-child,
.bs-docs-example > .table:last-child,
232
233
.bs-docs-example > .jumbotron:last-child,
.bs-docs-example > .alert:last-child {
234
235
236
  margin-bottom: 0;
}

Mark Otto's avatar
Mark Otto committed
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
264
265
266
267
268
269
270
/* Navbar examples */
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
  height: 90px;
  overflow: hidden; /* cut the drop shadows off */
}
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
  margin-left: 0;
  margin-right: 0;
}
.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;
}

271

Mark Otto's avatar
Mark Otto committed
272

273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
/* Icons
-------------------------------------------------- */

.the-icons {
  padding-bottom: 1px;
  margin-left: 0;
  list-style: none;
  margin-bottom: 20px;
  overflow: hidden;
}
.the-icons li {
  float: left;
  width: 100px;
  height: 110px;
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  -webkit-box-sizing: border-box;
  margin: 0 -1px -1px 0;
}
.the-icons [class^="glyphicon-"] {
  display: block;
  margin: 5px auto;
  vertical-align: middle;
  margin-right: 3px;
  font-size: 24px;
}
.the-icons li:hover {
  background-color: rgba(255,0,0,.1);
}



Mark Otto's avatar
Mark Otto committed
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
/* Responsive docs
-------------------------------------------------- */

/* Related: responsive utilities tables */
.table code {
  font-size: 13px;
  font-weight: normal;
}

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



Mark Otto's avatar
Mark Otto committed
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
/* Footer
-------------------------------------------------- */

.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 100px;
  border-top: 1px solid #e5e5e5;
}
.footer p {
  margin-bottom: 0;
  color: #777;
}
.footer-links {
  margin: 10px 0;
}
.footer-links li {
  display: inline;
  padding: 0 2px;
}
.footer-links li:first-child {
  padding-left: 0;
}

/* Social proof buttons from GitHub & Twitter */
.bs-docs-social {
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;
}
/* Quick links on Home */
.bs-docs-social-buttons {
  display: inline-block;
  margin: 0;
  padding: 0 10px;
  list-style: none;
}
.bs-docs-social-buttons li {
  display: inline-block;
  padding: 5px 8px;
  line-height: 1;
}
.bs-docs-social-buttons .twitter-follow-button {
  width: 225px !important;
}
.bs-docs-social-buttons .twitter-share-button {
  width: 98px !important;
}
Mark Otto's avatar
Mark Otto committed
431
432
433
434
435
436
437
438



/* Responsive variations
-------------------------------------------------- */

/* Tablets and up */
@media screen and (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
439

Mark Otto's avatar
Mark Otto committed
440
441
442
443
444
445
  /* Account for fixed navbar */
  body {
    padding-top: 44px;
  }

  /* Tweak display of docs jumbotrons */
Mark Otto's avatar
Mark Otto committed
446
  .masthead {
Mark Otto's avatar
Mark Otto committed
447
448
449
450
    padding-top:    100px;
    padding-bottom: 100px;
  }
  .masthead h1 {
451
    font-size: 100px;
Mark Otto's avatar
Mark Otto committed
452
453
  }
  .masthead p {
454
455
456
    font-size: 30px;
    margin-left: 10%;
    margin-right: 10%;
Mark Otto's avatar
Mark Otto committed
457
458
  }
  .subhead {
Mark Otto's avatar
Mark Otto committed
459
460
    padding-top:    60px;
    padding-bottom: 60px;
Mark Otto's avatar
Mark Otto committed
461
462
463
464
465
466
467
468
469
470
471
    text-align: left;
  }

  /* From here, start to affix the nav because we keep columns here */
  .bs-docs-sidenav.affix {
    position: fixed;
    top: 54px;
  }
  .bs-docs-sidenav {
    width: 170px;
  }
Mark Otto's avatar
Mark Otto committed
472
473
474
475
476
  .bs-docs-sidenav.affix-bottom {
    position: absolute;
    top: auto;
    bottom: 270px;
  }
Mark Otto's avatar
Mark Otto committed
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
}

/* Tablets/desktops and up */
@media screen and (min-width: 992px) {
  .bs-docs-sidenav {
    width: 220px;
  }
}

/* Large desktops and up */
@media screen and (min-width: 1200px) {
  .bs-docs-sidenav {
    width: 260px;
  }
}