docs.css 7.66 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
/* Body and structure
-------------------------------------------------- */
body {
11
  background-color: #fff;
Jacob Thornton's avatar
Jacob Thornton committed
12
13
14
  position: relative;
}
section {
15
  padding-top: 60px;
Jacob Thornton's avatar
Jacob Thornton committed
16
}
17
18
19
section > .row {
  margin-bottom: 10px;
}
20
21
22
23
24
25


/* Jumbotrons
-------------------------------------------------- */
.jumbotron {
  padding-top: 40px;
Jacob Thornton's avatar
Jacob Thornton committed
26
}
27
.jumbotron .inner {
28
  background: transparent url(../img/grid-18px.png) top center;
29
  padding: 45px 0;
30
31
32
  -webkit-box-shadow: inset 0 10px 30px rgba(0,0,0,.3);
     -moz-box-shadow: inset 0 10px 30px rgba(0,0,0,.3);
          box-shadow: inset 0 10px 30px rgba(0,0,0,.3);
Jacob Thornton's avatar
Jacob Thornton committed
33
}
34
35
36
.jumbotron h1,
.jumbotron p {
  margin-bottom: 9px;
37
38
  color: #fff;
  text-align: center;
39
  text-shadow: 0 1px 1px rgba(0,0,0,.3);
40
}
41
.jumbotron h1 {
42
43
  font-size: 54px;
  line-height: 1;
44
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
Jacob Thornton's avatar
Jacob Thornton committed
45
}
46
.jumbotron p {
47
48
  font-weight: 300;
}
49
.jumbotron .lead {
50
  font-size: 20px;
51
  line-height: 27px;
Jacob Thornton's avatar
Jacob Thornton committed
52
}
53
54
55
56
57
58
59
60
61
62
63
64
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
101
102
103
104
105
106
107
108
109
110
111
.jumbotron p a {
  color: #fff;
  font-weight: bold;
}

/* Specific jumbotrons
------------------------- */
/* main docs page */
.masthead {
  background-color: #049cd9;
  background-repeat: no-repeat;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9));
  background-image: -webkit-linear-gradient(#004D9F, #049cd9);
  background-image: -moz-linear-gradient(#004D9F, #049cd9);
  background-image: -o-linear-gradient(top, #004D9F, #049cd9);
  background-image: -khtml-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9));
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#004D9F', endColorstr='#049cd9', GradientType=0); /* IE8 and down */
}
/* 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 {
  background-color: #eee;
  padding: 30px 0;
  text-shadow: 0 1px 0 #fff;
  border-top: 1px solid #e5e5e5;
  -webkit-box-shadow: inset 0 5px 15px rgba(0,0,0,.025);
     -moz-box-shadow: inset 0 5px 15px rgba(0,0,0,.025);
          box-shadow: inset 0 5px 15px rgba(0,0,0,.025);
}
.footer p {
  color: #555;
}

112

113
114
/* Quickstart section for getting le code
-------------------------------------------------- */
115
.quickstart {
116
117
118
119
120
121
122
123
124
125
126
  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);
127
128
129
  border-top: 1px solid #fff;
  border-bottom: 1px solid #eee;
}
130
131
132
133
.quickstart .container {
  margin-bottom: 0;
}
.quickstart .row {
134
  margin: 0 -20px;
135
  -webkit-box-shadow: 1px 0 0 #f9f9f9;
136
137
     -moz-box-shadow: 1px 0 0 #f9f9f9;
          box-shadow: 1px 0 0 #f9f9f9;
138
}
139
.quickstart [class*="span"] {
140
  width: 285px;
141
  height: 117px;
142
143
144
  margin-left: 0;
  padding: 17px 20px 26px;
  border-left: 1px solid #eee;
145
  -webkit-box-shadow: inset 1px 0 0 #f9f9f9;
146
147
     -moz-box-shadow: inset 1px 0 0 #f9f9f9;
          box-shadow: inset 1px 0 0 #f9f9f9;
148
}
149
.quickstart [class*="span"]:last-child {
150
151
  border-right: 1px solid #eee;
  width: 286px;
152
}
153
154
.quickstart h6,
.quickstart p {
155
156
157
  line-height: 18px;
  text-align: center;
  margin-bottom: 9px;
158
  color: #333;
159
}
Mark Otto's avatar
Mark Otto committed
160
161
162
163
.quickstart .current-version,
.quickstart .current-version a {
  color: #999;
}
164
.quickstart h6 {
165
  color: #999;
166
}
167
.quickstart textarea {
168
169
  display: block;
  width: 275px;
170
  height: auto;
171
  margin: 0 0 9px;
172
  line-height: 21px;
173
174
  white-space: nowrap;
  overflow: hidden;
Mark Otto's avatar
Mark Otto committed
175
}
176

Jacob Thornton's avatar
Jacob Thornton committed
177

Jacob Thornton's avatar
Jacob Thornton committed
178
179
180
/* Special grid styles
-------------------------------------------------- */
.show-grid {
181
182
  margin-top: 10px;
  margin-bottom: 10px;
Jacob Thornton's avatar
Jacob Thornton committed
183
}
184
.show-grid [class*="span"] {
185
  background-color: #eee;
186
  background-color: rgba(0,0,0,.1);
Jacob Thornton's avatar
Jacob Thornton committed
187
  text-align: center;
188
189
190
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
191
  min-height: 30px;
Jacob Thornton's avatar
Jacob Thornton committed
192
193
  line-height: 30px;
}
194
.show-grid:hover [class*="span"] {
195
196
197
198
199
200
  background-color: #ddd;
  background-color: rgba(0,0,0,.2);
}
.show-grid .show-grid {
  margin-top: 0;
  margin-bottom: 0;
Jacob Thornton's avatar
Jacob Thornton committed
201
}
202
203


Jacob Thornton's avatar
Jacob Thornton committed
204
205
/* Render mini layout previews
-------------------------------------------------- */
206
207
.diagram,
.mini-layout {
208
  border: 1px solid #ddd;
209
210
211
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
212
213
214
  -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
215
}
216
.diagram {
217
  height: 140px;
218
219
220
221
222
223
224
225
  padding: 4px;
}
.mini-layout {
  height: 340px;
  margin-bottom: 20px;
  padding: 9px;
}
.mini-layout div {
226
227
228
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
Jacob Thornton's avatar
Jacob Thornton committed
229
}
230
.mini-layout .mini-layout-body {
231
  background-color: #dceaf4;
Jacob Thornton's avatar
Jacob Thornton committed
232
  margin: 0 auto;
233
  width: 340px;
Jacob Thornton's avatar
Jacob Thornton committed
234
235
  height: 340px;
}
236
237
238
.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
239
240
  float: left;
}
241
.mini-layout.fluid .mini-layout-sidebar {
242
  background-color: #bbd8e9;
Jacob Thornton's avatar
Jacob Thornton committed
243
244
245
  width: 90px;
  height: 340px;
}
246
.mini-layout.fluid .mini-layout-body {
247
  width: 300px;
Jacob Thornton's avatar
Jacob Thornton committed
248
249
  margin-left: 10px;
}
250
251


Jacob Thornton's avatar
Jacob Thornton committed
252
253
/* Topbar special styles
-------------------------------------------------- */
254
.topbar-wrapper {
Jacob Thornton's avatar
Jacob Thornton committed
255
256
257
258
  position: relative;
  height: 40px;
  margin: 5px 0 15px;
}
259
.topbar-wrapper .topbar {
Jacob Thornton's avatar
Jacob Thornton committed
260
261
  position: absolute;
  margin: 0 -20px;
262
}
263
.topbar-wrapper .topbar .topbar-inner {
Jacob Thornton's avatar
Jacob Thornton committed
264
265
  padding-left: 20px;
  padding-right: 20px;
266
267
268
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
269
270
}

271
272
273
/* Topbar in js docs
------------------------- */
#bootstrap-js .topbar-wrapper .topbar {
274
275
276
  position: absolute;
  margin: 0 -20px;
}
277
#bootstrap-js .topbar-wrapper .topbar .topbar-inner {
278
279
280
281
282
283
  padding-left: 20px;
  padding-right: 20px;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}
284
#bootstrap-js .topbar-wrapper .container {
285
286
287
  width: auto;
}

288

Mark Otto's avatar
Mark Otto committed
289
290
/* Popover docs
-------------------------------------------------- */
291
.popover-well {
Mark Otto's avatar
Mark Otto committed
292
293
  min-height: 160px;
}
294
.popover-well .popover {
Mark Otto's avatar
Mark Otto committed
295
296
  display: block;
}
297
.popover-well .popover-wrapper {
Mark Otto's avatar
Mark Otto committed
298
299
300
  width: 50%;
  height: 160px;
  float: left;
Jacob Thornton's avatar
Jacob Thornton committed
301
  margin-left: 55px;
302
  position: relative;
Mark Otto's avatar
Mark Otto committed
303
}
304
.popover-well .popover-menu-wrapper {
Mark Otto's avatar
Mark Otto committed
305
  height: 80px;
Jacob Thornton's avatar
Jacob Thornton committed
306
307
308
}
img.large-bird {
  margin: 5px 0 0 310px;
309
  opacity: .1;
Jacob Thornton's avatar
Jacob Thornton committed
310
311
}

312

Jacob Thornton's avatar
Jacob Thornton committed
313
314
/* Pretty Print
-------------------------------------------------- */
315
pre.prettyprint {
Jacob Thornton's avatar
Jacob Thornton committed
316
  overflow: hidden;
317
}