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

Jacob Thornton's avatar
Jacob Thornton committed
8
9
10
11
/* Body and structure
-------------------------------------------------- */
body {
  position: relative;
12
  padding-top: 100px;
13
  background-color: #fff;
Jacob Thornton's avatar
Jacob Thornton committed
14
15
}
section {
16
  padding-top: 60px;
Jacob Thornton's avatar
Jacob Thornton committed
17
}
18
19
20
section > .row {
  margin-bottom: 10px;
}
21

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

/* Jumbotrons
-------------------------------------------------- */
.jumbotron {
37
38
39
40
  position: relative;
  padding-bottom: 58px;
  margin-bottom: 50px;
  border-bottom: 2px solid #eee;
41
}
42
43
.jumbotron h1,
.jumbotron p {
44
45
  margin-bottom: 10px;
  text-shadow: 0 1px 0 #fff;
46
}
47
.jumbotron h1 {
48
  font-size: 90px;
49
  line-height: 1;
50
51
  margin-right: 40%;
  letter-spacing: -1px;
Jacob Thornton's avatar
Jacob Thornton committed
52
}
53
.jumbotron p {
54
  font-weight: 300;
55
  margin-right: 32%;
56
}
57
.jumbotron .lead {
58
59
60
  margin-bottom: 20px;
  font-size: 25px;
  line-height: 35px;
Jacob Thornton's avatar
Jacob Thornton committed
61
}
62
63
64
.jumbotron p a {
  font-weight: bold;
}
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.jumbotron .btn {
  font-size: 20px;
  padding: 12px 24px;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
.benefits {
  width: 250px;
  position: absolute;
  right: 0;
  bottom: 60px;
}
.benefits ul {
  list-style: none;
  margin: 0;
}
.benefits li {
  font-size: 16px;
  font-weight: 300;
  line-height: 40px;
  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;
}

101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134

/* Specific jumbotrons
------------------------- */
/* supporting docs pages */
.subhead {
  background-color: #767d80;
  background-repeat: no-repeat;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#565d60), to(#767d80));
  background-image: -webkit-linear-gradient(#565d60, #767d80);
  background-image: -moz-linear-gradient(#565d60, #767d80);
  background-image: -o-linear-gradient(top, #565d60, #767d80);
  background-image: -khtml-gradient(linear, left top, left bottom, from(#565d60), to(#767d80));
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#565d60', endColorstr='#767d80', GradientType=0); /* IE8 and down */
}
.subhead .inner {
  padding: 36px 0 27px;
}
.subhead h1,
.subhead p {
  text-align: left;
}
.subhead h1 {
  font-size: 40px;
}
.subhead p a {
  font-weight: normal;
}


/* Footer
-------------------------------------------------- */
.footer {
  padding: 30px 0;
  border-top: 1px solid #e5e5e5;
135
}
136
137
138
139
.footer p {
  color: #555;
}

140

141
142
/* Quickstart section for getting le code
-------------------------------------------------- */
143
.quickstart {
144
145
146
147
148
149
150
151
152
153
154
  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);
155
156
157
  border-top: 1px solid #fff;
  border-bottom: 1px solid #eee;
}
158
159
160
161
.quickstart .container {
  margin-bottom: 0;
}
.quickstart .row {
162
  margin: 0 -20px;
163
  -webkit-box-shadow: 1px 0 0 #f9f9f9;
164
165
     -moz-box-shadow: 1px 0 0 #f9f9f9;
          box-shadow: 1px 0 0 #f9f9f9;
166
}
167
.quickstart [class*="span"] {
168
  width: 285px;
169
  height: 117px;
170
171
172
  margin-left: 0;
  padding: 17px 20px 26px;
  border-left: 1px solid #eee;
173
  -webkit-box-shadow: inset 1px 0 0 #f9f9f9;
174
175
     -moz-box-shadow: inset 1px 0 0 #f9f9f9;
          box-shadow: inset 1px 0 0 #f9f9f9;
176
}
177
.quickstart [class*="span"]:last-child {
178
179
  border-right: 1px solid #eee;
  width: 286px;
180
}
181
182
.quickstart h6,
.quickstart p {
183
184
185
  line-height: 18px;
  text-align: center;
  margin-bottom: 9px;
186
  color: #333;
187
}
Mark Otto's avatar
Mark Otto committed
188
189
190
191
.quickstart .current-version,
.quickstart .current-version a {
  color: #999;
}
192
.quickstart h6 {
193
  color: #999;
194
}
195
.quickstart textarea {
196
197
  display: block;
  width: 275px;
198
  height: auto;
199
  margin: 0 0 9px;
200
  line-height: 21px;
201
202
  white-space: nowrap;
  overflow: hidden;
Mark Otto's avatar
Mark Otto committed
203
}
204

Jacob Thornton's avatar
Jacob Thornton committed
205

Jacob Thornton's avatar
Jacob Thornton committed
206
207
208
/* Special grid styles
-------------------------------------------------- */
.show-grid {
209
210
  margin-top: 10px;
  margin-bottom: 10px;
Jacob Thornton's avatar
Jacob Thornton committed
211
}
212
.show-grid [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
213
  background: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
214
  text-align: center;
215
216
217
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
218
  min-height: 30px;
Jacob Thornton's avatar
Jacob Thornton committed
219
220
  line-height: 30px;
}
221
.show-grid:hover [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
222
  background: #ddd;
223
224
225
226
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
227
}
228
229
230
.show-grid .show-grid [class*="span"] {
  background-color: #ccc;
}
231
232


Jacob Thornton's avatar
Jacob Thornton committed
233
234
/* Render mini layout previews
-------------------------------------------------- */
235
.mini-layout {
236
  border: 1px solid #ddd;
237
238
239
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
240
241
242
  -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
243
}
244
.mini-layout {
245
  height: 240px;
246
247
248
249
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
250
251
252
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
253
}
254
.mini-layout .mini-layout-body {
255
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
256
  margin: 0 auto;
257
  width: 70%;
258
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
259
}
260
261
262
.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
263
264
  float: left;
}
265
.mini-layout.fluid .mini-layout-sidebar {
266
  background-color: #bbd8e9;
267
  width: 20%;
268
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
269
}
270
.mini-layout.fluid .mini-layout-body {
271
  width: 60%;
Jacob Thornton's avatar
Jacob Thornton committed
272
273
  margin-left: 10px;
}
274
275


Jacob Thornton's avatar
Jacob Thornton committed
276
277
/* Topbar special styles
-------------------------------------------------- */
278
.topbar-wrapper {
Jacob Thornton's avatar
Jacob Thornton committed
279
280
281
282
  position: relative;
  height: 40px;
  margin: 5px 0 15px;
}
283
.topbar-wrapper .topbar {
Jacob Thornton's avatar
Jacob Thornton committed
284
285
  position: absolute;
  margin: 0 -20px;
286
}
287
.topbar-wrapper .topbar .topbar-inner {
Jacob Thornton's avatar
Jacob Thornton committed
288
289
  padding-left: 20px;
  padding-right: 20px;
290
291
292
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
293
294
}

295
296
/* Topbar in js docs
------------------------- */
297
298
299
#bootstrap-js .topbar-wrapper {
  z-index: 1;
}
300
#bootstrap-js .topbar-wrapper .topbar {
301
302
303
  position: absolute;
  margin: 0 -20px;
}
304
#bootstrap-js .topbar-wrapper .topbar .topbar-inner {
305
306
307
308
309
310
  padding-left: 20px;
  padding-right: 20px;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
311
#bootstrap-js .topbar-wrapper .container {
312
313
314
  width: auto;
}

315

Mark Otto's avatar
Mark Otto committed
316
317
/* Popover docs
-------------------------------------------------- */
318
.popover-well {
Mark Otto's avatar
Mark Otto committed
319
320
  min-height: 160px;
}
321
.popover-well .popover {
Mark Otto's avatar
Mark Otto committed
322
323
  display: block;
}
324
.popover-well .popover-wrapper {
Mark Otto's avatar
Mark Otto committed
325
326
327
  width: 50%;
  height: 160px;
  float: left;
Jacob Thornton's avatar
Jacob Thornton committed
328
  margin-left: 55px;
329
  position: relative;
Mark Otto's avatar
Mark Otto committed
330
}
331
.popover-well .popover-menu-wrapper {
Mark Otto's avatar
Mark Otto committed
332
  height: 80px;
Jacob Thornton's avatar
Jacob Thornton committed
333
334
335
}
img.large-bird {
  margin: 5px 0 0 310px;
336
  opacity: .1;
Jacob Thornton's avatar
Jacob Thornton committed
337
338
}

339

Jacob Thornton's avatar
Jacob Thornton committed
340
341
/* Pretty Print
-------------------------------------------------- */
342
pre.prettyprint {
Jacob Thornton's avatar
Jacob Thornton committed
343
  overflow: hidden;
344
345
346
347
348
349
350
351
}


/* Wells
-------------------------------------------------- */
.well form {
  margin-bottom: 0;
}
352
353


354
355
356
357
.browser-support {
  max-width: 100%;
}

358
359
/* Responsive Docs
-------------------------------------------------- */
360
361
362
363
364
@media (max-width: 480px) {
  .large-bird {
    display: none;
  }
}
365
366
367
368
369
370
371
372

@media (min-width: 768px) and (max-width: 900px) {
  .footer,
  .jumbotron {
    min-width: 748px;
  }
}