docs.css 6.39 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: 90px;
13
  background-color: #fff;
14
15
  background-image: url(../img/grid-18px-masked.png);
  background-repeat: repeat-x;
Jacob Thornton's avatar
Jacob Thornton committed
16
17
}
section {
18
  padding-top: 60px;
Jacob Thornton's avatar
Jacob Thornton committed
19
}
20

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

/* Jumbotrons
-------------------------------------------------- */
.jumbotron {
36
37
  position: relative;
  text-shadow: 0 1px 0 #fff;
38
}
39
.jumbotron h1 {
40
  margin-right: 40%;
41
42
  margin-bottom: 10px;
  font-size: 90px;
43
  letter-spacing: -1px;
44
  line-height: 1;
Jacob Thornton's avatar
Jacob Thornton committed
45
}
46
.jumbotron p {
47
48
49
  margin-right: 32%;
  margin-bottom: 20px;
  font-size: 25px;
50
  font-weight: 300;
51
  line-height: 36px;
52
}
53
54
.jumbotron .btn {
  font-size: 20px;
55
  padding: 14px 24px;
56
  margin-right: 5px;
57
58
59
60
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
61
62
63
64
.jumbotron .download-info {
  font-size: 16px;
  color: #999;
}
65
66

/* Benefits list in masthead */
67
68
69
70
.benefits {
  width: 250px;
  position: absolute;
  right: 0;
71
  bottom: 0;
72
73
74
75
76
77
78
79
}
.benefits ul {
  list-style: none;
  margin: 0;
}
.benefits li {
  font-size: 16px;
  font-weight: 300;
80
  line-height: 35px;
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
  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;
}

96
97
98
99
100

/* Specific jumbotrons
------------------------- */
/* supporting docs pages */
.subhead {
101
102
  padding-bottom: 18px;
  border-bottom: 3px solid #eee;
103
104
105
}
.subhead h1,
.subhead p {
106
  margin-right: 0;
107
108
109
110
111
112
}
.subhead h1 {
  font-size: 40px;
}


113
114
115
116
117
118
119
120
/* Quick links
-------------------------------------------------- */
.quick-links {
  padding: 5px 20px;
  margin: 60px 0;
  list-style: none;
  text-align: center;
  background-color: #eee;
121
122
123
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
124
125
126
  -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);
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
}
.quick-links li {
  display: inline;
  margin: 0 5px;
  line-height: 30px;
}
.quick-links .divider {
  color: #999;
}
.quick-links strong {
  font-weight: normal;
  color: #999;
}
.quick-links .tweet-btn,
.quick-links .follow-btn {
  position: relative;
  top: 5px;
}


147
148
149
150
151
/* Footer
-------------------------------------------------- */
.footer {
  padding: 30px 0;
  border-top: 1px solid #e5e5e5;
152
}
153
154
155
156
.footer p {
  color: #555;
}

157

Jacob Thornton's avatar
Jacob Thornton committed
158
159
160
/* Special grid styles
-------------------------------------------------- */
.show-grid {
161
  margin-top: 10px;
162
  margin-bottom: 20px;
Jacob Thornton's avatar
Jacob Thornton committed
163
}
164
.show-grid [class*="span"] {
165
  background-color: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
166
  text-align: center;
167
168
169
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
170
  min-height: 30px;
Jacob Thornton's avatar
Jacob Thornton committed
171
172
  line-height: 30px;
}
173
.show-grid:hover [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
174
  background: #ddd;
175
176
177
178
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
179
}
180
181
182
.show-grid .show-grid [class*="span"] {
  background-color: #ccc;
}
183
184


Jacob Thornton's avatar
Jacob Thornton committed
185
186
/* Render mini layout previews
-------------------------------------------------- */
187
.mini-layout {
188
  border: 1px solid #ddd;
189
190
191
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
192
193
194
  -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
195
}
196
.mini-layout {
197
  height: 240px;
198
199
200
201
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
202
203
204
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
205
}
206
.mini-layout .mini-layout-body {
207
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
208
  margin: 0 auto;
209
  width: 70%;
210
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
211
}
212
213
214
.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
215
216
  float: left;
}
217
.mini-layout.fluid .mini-layout-sidebar {
218
  background-color: #bbd8e9;
219
  width: 20%;
220
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
221
}
222
.mini-layout.fluid .mini-layout-body {
223
  width: 60%;
Jacob Thornton's avatar
Jacob Thornton committed
224
225
  margin-left: 10px;
}
226
227


Jacob Thornton's avatar
Jacob Thornton committed
228
229
/* Topbar special styles
-------------------------------------------------- */
230
.topbar-wrapper {
Jacob Thornton's avatar
Jacob Thornton committed
231
232
233
234
  position: relative;
  height: 40px;
  margin: 5px 0 15px;
}
235
.topbar-wrapper .topbar {
Jacob Thornton's avatar
Jacob Thornton committed
236
237
  position: absolute;
  margin: 0 -20px;
238
}
239
.topbar-wrapper .topbar .topbar-inner {
Jacob Thornton's avatar
Jacob Thornton committed
240
241
  padding-left: 20px;
  padding-right: 20px;
242
243
244
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
245
246
}

247
248
/* Topbar in js docs
------------------------- */
249
250
251
#bootstrap-js .topbar-wrapper {
  z-index: 1;
}
252
#bootstrap-js .topbar-wrapper .topbar {
253
254
255
  position: absolute;
  margin: 0 -20px;
}
256
#bootstrap-js .topbar-wrapper .topbar .topbar-inner {
257
258
259
260
261
262
  padding-left: 20px;
  padding-right: 20px;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
263
#bootstrap-js .topbar-wrapper .container {
264
265
266
  width: auto;
}

267

Mark Otto's avatar
Mark Otto committed
268
269
/* Popover docs
-------------------------------------------------- */
270
.popover-well {
Mark Otto's avatar
Mark Otto committed
271
272
  min-height: 160px;
}
273
.popover-well .popover {
Mark Otto's avatar
Mark Otto committed
274
275
  display: block;
}
276
.popover-well .popover-wrapper {
Mark Otto's avatar
Mark Otto committed
277
278
279
  width: 50%;
  height: 160px;
  float: left;
Jacob Thornton's avatar
Jacob Thornton committed
280
  margin-left: 55px;
281
  position: relative;
Mark Otto's avatar
Mark Otto committed
282
}
283
.popover-well .popover-menu-wrapper {
Mark Otto's avatar
Mark Otto committed
284
  height: 80px;
Jacob Thornton's avatar
Jacob Thornton committed
285
286
287
}
img.large-bird {
  margin: 5px 0 0 310px;
288
  opacity: .1;
Jacob Thornton's avatar
Jacob Thornton committed
289
290
}

291

Jacob Thornton's avatar
Jacob Thornton committed
292
293
/* Pretty Print
-------------------------------------------------- */
294
pre.prettyprint {
Jacob Thornton's avatar
Jacob Thornton committed
295
  overflow: hidden;
296
297
298
299
300
301
302
303
}


/* Wells
-------------------------------------------------- */
.well form {
  margin-bottom: 0;
}
304
305


306
307
308
309
.browser-support {
  max-width: 100%;
}

310
311
312
313
314
/* Make tables spaced out a bit more */
h2 + table {
  margin-top: 10px;
}

315
316
/* Responsive Docs
-------------------------------------------------- */
317
@media (max-width: 480px) {
318
319
320
321
322

  body > .navbar-fixed .nav {
    display: none;
  }

323
324
325
  .large-bird {
    display: none;
  }
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340

  .jumbotron h1 {
    font-size: 36px;
    margin-right: 0;
  }
  .jumbotron p {
    margin-right: 0;
    font-size: 18px;
    line-height: 24px;
  }
  .jumbotron .benefits {
    position: relative;
    width: auto;
    margin: 36px 0;
  }
341
}
342
343
344
345
346
347
348
349

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