docs.css 6.76 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
section > .row {
  margin-bottom: 10px;
}
23

24
25
26
27
28
29
30
31
32
33
34
/* 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;
}
35
36
37
38

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

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

99
100
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

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


128
129
130
131
132
133
134
135
/* Quick links
-------------------------------------------------- */
.quick-links {
  padding: 5px 20px;
  margin: 60px 0;
  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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
}
.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;
}


159
160
161
162
163
/* Footer
-------------------------------------------------- */
.footer {
  padding: 30px 0;
  border-top: 1px solid #e5e5e5;
164
}
165
166
167
168
.footer p {
  color: #555;
}

169

Jacob Thornton's avatar
Jacob Thornton committed
170
171
172
/* Special grid styles
-------------------------------------------------- */
.show-grid {
173
174
  margin-top: 10px;
  margin-bottom: 10px;
Jacob Thornton's avatar
Jacob Thornton committed
175
}
176
.show-grid [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
177
  background: #eee;
Jacob Thornton's avatar
Jacob Thornton committed
178
  text-align: center;
179
180
181
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
182
  min-height: 30px;
Jacob Thornton's avatar
Jacob Thornton committed
183
184
  line-height: 30px;
}
185
.show-grid:hover [class*="span"] {
Jacob Thornton's avatar
Jacob Thornton committed
186
  background: #ddd;
187
188
189
190
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
191
}
192
193
194
.show-grid .show-grid [class*="span"] {
  background-color: #ccc;
}
195
196


Jacob Thornton's avatar
Jacob Thornton committed
197
198
/* Render mini layout previews
-------------------------------------------------- */
199
.mini-layout {
200
  border: 1px solid #ddd;
201
202
203
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
204
205
206
  -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
207
}
208
.mini-layout {
209
  height: 240px;
210
211
212
213
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
214
215
216
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
217
}
218
.mini-layout .mini-layout-body {
219
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
220
  margin: 0 auto;
221
  width: 70%;
222
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
223
}
224
225
226
.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
227
228
  float: left;
}
229
.mini-layout.fluid .mini-layout-sidebar {
230
  background-color: #bbd8e9;
231
  width: 20%;
232
  height: 240px;
Jacob Thornton's avatar
Jacob Thornton committed
233
}
234
.mini-layout.fluid .mini-layout-body {
235
  width: 60%;
Jacob Thornton's avatar
Jacob Thornton committed
236
237
  margin-left: 10px;
}
238
239


Jacob Thornton's avatar
Jacob Thornton committed
240
241
/* Topbar special styles
-------------------------------------------------- */
242
.topbar-wrapper {
Jacob Thornton's avatar
Jacob Thornton committed
243
244
245
246
  position: relative;
  height: 40px;
  margin: 5px 0 15px;
}
247
.topbar-wrapper .topbar {
Jacob Thornton's avatar
Jacob Thornton committed
248
249
  position: absolute;
  margin: 0 -20px;
250
}
251
.topbar-wrapper .topbar .topbar-inner {
Jacob Thornton's avatar
Jacob Thornton committed
252
253
  padding-left: 20px;
  padding-right: 20px;
254
255
256
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
257
258
}

259
260
/* Topbar in js docs
------------------------- */
261
262
263
#bootstrap-js .topbar-wrapper {
  z-index: 1;
}
264
#bootstrap-js .topbar-wrapper .topbar {
265
266
267
  position: absolute;
  margin: 0 -20px;
}
268
#bootstrap-js .topbar-wrapper .topbar .topbar-inner {
269
270
271
272
273
274
  padding-left: 20px;
  padding-right: 20px;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
275
#bootstrap-js .topbar-wrapper .container {
276
277
278
  width: auto;
}

279

Mark Otto's avatar
Mark Otto committed
280
281
/* Popover docs
-------------------------------------------------- */
282
.popover-well {
Mark Otto's avatar
Mark Otto committed
283
284
  min-height: 160px;
}
285
.popover-well .popover {
Mark Otto's avatar
Mark Otto committed
286
287
  display: block;
}
288
.popover-well .popover-wrapper {
Mark Otto's avatar
Mark Otto committed
289
290
291
  width: 50%;
  height: 160px;
  float: left;
Jacob Thornton's avatar
Jacob Thornton committed
292
  margin-left: 55px;
293
  position: relative;
Mark Otto's avatar
Mark Otto committed
294
}
295
.popover-well .popover-menu-wrapper {
Mark Otto's avatar
Mark Otto committed
296
  height: 80px;
Jacob Thornton's avatar
Jacob Thornton committed
297
298
299
}
img.large-bird {
  margin: 5px 0 0 310px;
300
  opacity: .1;
Jacob Thornton's avatar
Jacob Thornton committed
301
302
}

303

Jacob Thornton's avatar
Jacob Thornton committed
304
305
/* Pretty Print
-------------------------------------------------- */
306
pre.prettyprint {
Jacob Thornton's avatar
Jacob Thornton committed
307
  overflow: hidden;
308
309
310
311
312
313
314
315
}


/* Wells
-------------------------------------------------- */
.well form {
  margin-bottom: 0;
}
316
317


318
319
320
321
.browser-support {
  max-width: 100%;
}

322
323
/* Responsive Docs
-------------------------------------------------- */
324
@media (max-width: 480px) {
325
326
327
328
329

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

330
331
332
  .large-bird {
    display: none;
  }
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347

  .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;
  }
348
}
349
350
351
352
353
354
355
356

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