Skip to content

Commit b4c8949

Browse files
committed
address issue twbs#414 and fix up a number of docs loose ends
1 parent 648c468 commit b4c8949

File tree

5 files changed

+24
-54
lines changed

5 files changed

+24
-54
lines changed

docs/assets/css/docs.css

+12-46
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body {
1515
background-repeat: repeat-x;
1616
}
1717

18-
/* Tweak topbar brand link to be super sleek
18+
/* Tweak navbar brand link to be super sleek
1919
-------------------------------------------------- */
2020
body > .navbar-fixed .brand {
2121
padding-right: 0;
@@ -29,6 +29,12 @@ body > .navbar-fixed .brand:hover {
2929
text-decoration: none;
3030
}
3131

32+
/* Space out sub-sections more
33+
-------------------------------------------------- */
34+
.page-header {
35+
margin-top: 36px;
36+
}
37+
3238
/* Jumbotrons
3339
-------------------------------------------------- */
3440
.jumbotron {
@@ -92,12 +98,12 @@ body > .navbar-fixed .brand:hover {
9298
color: #999;
9399
}
94100

95-
96101
/* Specific jumbotrons
97102
------------------------- */
98103
/* supporting docs pages */
99104
.subhead {
100105
padding-bottom: 14px;
106+
margin-bottom: 45px;
101107
border-bottom: 3px solid #e5e5e5;
102108
}
103109
.subhead h1,
@@ -224,46 +230,6 @@ body > .navbar-fixed .brand:hover {
224230
}
225231

226232

227-
/* Topbar special styles
228-
-------------------------------------------------- */
229-
.topbar-wrapper {
230-
position: relative;
231-
height: 40px;
232-
margin: 5px 0 15px;
233-
}
234-
.topbar-wrapper .topbar {
235-
position: absolute;
236-
margin: 0 -20px;
237-
}
238-
.topbar-wrapper .topbar .topbar-inner {
239-
padding-left: 20px;
240-
padding-right: 20px;
241-
-webkit-border-radius: 4px;
242-
-moz-border-radius: 4px;
243-
border-radius: 4px;
244-
}
245-
246-
/* Topbar in js docs
247-
------------------------- */
248-
#bootstrap-js .topbar-wrapper {
249-
z-index: 1;
250-
}
251-
#bootstrap-js .topbar-wrapper .topbar {
252-
position: absolute;
253-
margin: 0 -20px;
254-
}
255-
#bootstrap-js .topbar-wrapper .topbar .topbar-inner {
256-
padding-left: 20px;
257-
padding-right: 20px;
258-
-webkit-border-radius: 4px;
259-
-moz-border-radius: 4px;
260-
border-radius: 4px;
261-
}
262-
#bootstrap-js .topbar-wrapper .container {
263-
width: auto;
264-
}
265-
266-
267233
/* Popover docs
268234
-------------------------------------------------- */
269235
.popover-well {
@@ -288,15 +254,13 @@ img.large-bird {
288254
}
289255

290256

291-
/* Pretty Print
257+
/* Misc
292258
-------------------------------------------------- */
259+
293260
pre.prettyprint {
294261
overflow: hidden;
295262
}
296263

297-
298-
/* Wells
299-
-------------------------------------------------- */
300264
.well form {
301265
margin-bottom: 0;
302266
}
@@ -311,6 +275,7 @@ h2 + table {
311275
margin-top: 5px;
312276
}
313277

278+
314279
/* Responsive Docs
315280
-------------------------------------------------- */
316281
@media (max-width: 480px) {
@@ -385,6 +350,7 @@ h2 + table {
385350

386351
}
387352

353+
388354
@media (min-width: 768px) and (max-width: 940px) {
389355

390356
/* Scale down the jumbotron content */

docs/base-css.html

+9-5
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ <h2>Blockquotes</h2>
197197
<h2>Lists</h2>
198198
<div class="row">
199199
<div class="span3">
200-
<h4>Unordered <code>&lt;ul&gt;</code></h4>
200+
<h4>Unordered</h4>
201+
<p><code>&lt;ul&gt;</code></p>
201202
<ul>
202203
<li>Lorem ipsum dolor sit amet</li>
203204
<li>Consectetur adipiscing elit</li>
@@ -217,7 +218,8 @@ <h4>Unordered <code>&lt;ul&gt;</code></h4>
217218
</ul>
218219
</div>
219220
<div class="span3">
220-
<h4>Unstyled <code>&lt;ul.unstyled&gt;</code></h4>
221+
<h4>Unstyled</h4>
222+
<p><code>&lt;ul class="unstyled"&gt;</code></p>
221223
<ul class="unstyled">
222224
<li>Lorem ipsum dolor sit amet</li>
223225
<li>Consectetur adipiscing elit</li>
@@ -237,7 +239,8 @@ <h4>Unstyled <code>&lt;ul.unstyled&gt;</code></h4>
237239
</ul>
238240
</div>
239241
<div class="span3">
240-
<h4>Ordered <code>&lt;ol&gt;</code></h4>
242+
<h4>Ordered</h4>
243+
<p><code>&lt;ol&gt;</code></p>
241244
<ol>
242245
<li>Lorem ipsum dolor sit amet</li>
243246
<li>Consectetur adipiscing elit</li>
@@ -250,7 +253,8 @@ <h4>Ordered <code>&lt;ol&gt;</code></h4>
250253
</ol>
251254
</div>
252255
<div class="span3">
253-
<h4>Description <code>&lt;dl&gt;</code></h4>
256+
<h4>Description</h4>
257+
<p><code>&lt;dl&gt;</code></p>
254258
<dl>
255259
<dt>Description lists</dt>
256260
<dd>A description list is perfect for defining terms.</dd>
@@ -286,7 +290,7 @@ <h2>Code <small>Inline and block</small></h2>
286290
&lt;h1&gt;Heading&lt;/h1&gt;
287291
&lt;p&gt;Something right here...&lt;/p&gt;
288292
&lt;/div&gt;</pre>
289-
<p><strong>Note:</strong> Be sure to keep code within <code>pre</code> tags as close to the left as possible; it will render all tabs.</p>
293+
<p><strong>Note:</strong> Be sure to keep code within <code>&lt;pre&gt;</code> tags as close to the left as possible; it will render all tabs.</p>
290294
</td>
291295
</tr>
292296
<tr>

docs/components.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ <h4>Example code</h4>
548548
<div class="row">
549549
<div class="span3">
550550
<h2>Block messages</h2>
551-
<p><code>.alert-message.block-message</code></p>
551+
<p><code>&lt;div class="alert-message block-message"&gt;</code></p>
552552
<p>For messages that require a bit of explanation, we have paragraph style alerts. These are perfect for bubbling up longer error messages, warning a user of a pending action, or just presenting information for more emphasis on the page.</p>
553553
<p><a class="btn js-btn" href="./javascript.html#alerts">Get the javascript &raquo;</a></p>
554554
</div>

docs/less.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ <h3>Ways to compile</h3>
185185
</tr>
186186
<td>Javascript</td>
187187
<td>
188-
<p><a href="http://lesscss.org/">Download the latest Less.js</a> and include the path to it (and Bootstrap) in the <code>head</code>.</p>
188+
<p><a href="http://lesscss.org/">Download the latest Less.js</a> and include the path to it (and Bootstrap) in the <code>&lt;head&gt;</code>.</p>
189189
<pre class="prettyprint">
190190
&lt;link rel="stylesheet/less" href="/path/to/bootstrap.less"&gt;
191191
&lt;script src="/path/to/less.js"&gt;&lt;/script&gt;

docs/scaffolding.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ <h2>Fixed layout</h2>
234234
</div><!-- /col -->
235235
<div class="span6">
236236
<h2>Fluid layout</h2>
237-
<p>An alternative, flexible fluid page structure with min- and max-widths and a left-hand sidebar. Great for apps and docs.</p>
237+
<p><code>&lt;div class="fluid-container"&gt;</code> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.</p>
238238
<div class="mini-layout fluid">
239239
<div class="mini-layout-sidebar"></div>
240240
<div class="mini-layout-body"></div>

0 commit comments

Comments
 (0)