aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-09-10 21:05:23 -0700
committerMark Otto <[email protected]>2011-09-10 21:05:23 -0700
commit00b7dff3595d340be61894a0674800f8ed02b4ab (patch)
treedd316a830389b86526c01ea8d26e8ed36cda8dd8 /docs
parent091402760903ed0f2393c09c315fd91e8b6579fe (diff)
downloadbootstrap-00b7dff3595d340be61894a0674800f8ed02b4ab.tar.xz
bootstrap-00b7dff3595d340be61894a0674800f8ed02b4ab.zip
overhaul docs CSS since it was scalable, converted docs mastheads and footers to classes and HTML5 elements, add masthead to js docs page but make it slate so it looks cool and stands out
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/css/docs.css168
-rw-r--r--docs/index.html37
-rw-r--r--docs/javascript.html17
3 files changed, 136 insertions, 86 deletions
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css
index 187fc7984..896557f27 100644
--- a/docs/assets/css/docs.css
+++ b/docs/assets/css/docs.css
@@ -4,6 +4,7 @@
Bootstrap's documentation styles
Special styles for presenting Bootstrap's documentation and examples
*/
+
/* Body and structure
-------------------------------------------------- */
body {
@@ -16,56 +17,101 @@ section {
section > .row {
margin-bottom: 10px;
}
-#masthead, #footer {
- 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 */
+
+
+/* Jumbotrons
+-------------------------------------------------- */
+.jumbotron {
+ padding-top: 40px;
}
-#masthead div.inner, #footer div.inner {
+.jumbotron .inner {
background: transparent url(../img/grid-18px.png) top center;
padding: 45px 0;
- -webkit-box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
- -moz-box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
- box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
-}
-#masthead h1,
-#footer h1,
-#masthead p,
-#footer p {
- color: #fff;
- text-shadow: 0 1px 1px rgba(0,0,0,.3);
+ -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);
}
-#masthead p a,
-#footer p a {
+.jumbotron h1,
+.jumbotron p {
+ margin-bottom: 9px;
color: #fff;
- font-weight: bold;
-}
-#masthead {
- padding-top: 40px;
-}
-#masthead h1,
-#masthead p {
text-align: center;
- margin-bottom: 9px;
+ text-shadow: 0 1px 1px rgba(0,0,0,.3);
}
-#masthead h1 {
+.jumbotron h1 {
font-size: 54px;
line-height: 1;
text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
-#masthead p {
+.jumbotron p {
font-weight: 300;
}
-#masthead p.lead {
+.jumbotron .lead {
font-size: 20px;
line-height: 27px;
}
+.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;
+}
+
+/* Quickstart section for getting le code
+-------------------------------------------------- */
.quickstart {
background-color: #f5f5f5;
background-repeat: repeat-x;
@@ -127,16 +173,7 @@ section > .row {
white-space: nowrap;
overflow: hidden;
}
-#footer {
- margin-top: 80px;
-}
-#footer p {
- margin-bottom: 0;
- color: rgba(255,255,255,.8)
-}
-#footer p.right {
- float: right;
-}
+
/* Special grid styles
-------------------------------------------------- */
@@ -162,6 +199,8 @@ section > .row {
margin-top: 0;
margin-bottom: 0;
}
+
+
/* Render mini layout previews
-------------------------------------------------- */
.diagram,
@@ -208,18 +247,20 @@ section > .row {
width: 300px;
margin-left: 10px;
}
+
+
/* Topbar special styles
-------------------------------------------------- */
-div.topbar-wrapper {
+.topbar-wrapper {
position: relative;
height: 40px;
margin: 5px 0 15px;
}
-div.topbar-wrapper div.topbar {
+.topbar-wrapper .topbar {
position: absolute;
margin: 0 -20px;
}
-div.topbar-wrapper div.topbar .topbar-inner {
+.topbar-wrapper .topbar .topbar-inner {
padding-left: 20px;
padding-right: 20px;
-webkit-border-radius: 4px;
@@ -227,61 +268,50 @@ div.topbar-wrapper div.topbar .topbar-inner {
border-radius: 4px;
}
-/* Topbar special styles for js
--------------------------------------------------- */
-#bootstrap-js div.topbar-wrapper {
- position: relative;
- height: 40px;
- margin: 5px 0 15px;
- z-index: 1;
-}
-
-#bootstrap-js div.topbar-wrapper div.topbar {
+/* Topbar in js docs
+------------------------- */
+#bootstrap-js .topbar-wrapper .topbar {
position: absolute;
margin: 0 -20px;
}
-
-#bootstrap-js div.topbar-wrapper div.topbar .fill {
+#bootstrap-js .topbar-wrapper .topbar .topbar-inner {
padding-left: 20px;
padding-right: 20px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
-
-#bootstrap-js div.topbar-wrapper .container {
+#bootstrap-js .topbar-wrapper .container {
width: auto;
}
+
/* Popover docs
-------------------------------------------------- */
-div.popover-well {
+.popover-well {
min-height: 160px;
}
-
-div.popover-well div.popover {
+.popover-well .popover {
display: block;
}
-
-div.popover-well div.popover-wrapper {
+.popover-well .popover-wrapper {
width: 50%;
height: 160px;
float: left;
margin-left: 55px;
position: relative;
}
-
-div.popover-well div.popover-menu-wrapper {
+.popover-well .popover-menu-wrapper {
height: 80px;
}
-
img.large-bird {
margin: 5px 0 0 310px;
opacity: .1;
}
+
/* Pretty Print
-------------------------------------------------- */
-PRE.prettyprint {
+pre.prettyprint {
overflow: hidden;
} \ No newline at end of file
diff --git a/docs/index.html b/docs/index.html
index ebac6f71c..0f233d3d3 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -61,7 +61,7 @@
<!-- Masthead (blueprinty thing)
================================================== -->
- <div id="masthead">
+ <header class="jumbotron masthead">
<div class="inner">
<div class="container">
<h1>Bootstrap, from Twitter</h1>
@@ -72,7 +72,7 @@
<p><strong>Nerd alert:</strong> Bootstrap is <a href="#less" title="Read about using Bootstrap with Less">built with Less</a> and was designed to work out of the gate with modern browsers in mind.</p>
</div><!-- /container -->
</div>
- </div>
+ </header>
<!-- Quickstart options
================================================== -->
@@ -1516,13 +1516,14 @@ Lorem ipsum dolar sit amet illo error <a href="#" title="below">ipsum</a> verita
</div>
<div class="row">
<div class="span4">
+ <h2>Getting started</h2>
<p>Integrating javascript with the Bootstrap library is super easy. Below we go over the basics and provide you with some awesome plugins to get you started!</p>
+ <hr>
+ <p><a class="btn primary" href="./javascript.html">Skip to Bootstrap plugins &raquo;</a></p>
</div>
<div class="span12">
- <h2>Getting started</h2>
- <p>We've set out to make your interactive work with Bootstrap even more simple, offering several lightweight plugins for things like modals, tooltips, and other dynamic components. These plugins have been coded up to work with either <a href="http://jquery.com/" target="_blank">jQuery</a> or <a href="http://ender.no.de" target="_blank">Ender</a>, but we encourage you to extend and modify them to fit your development needs!</p>
- <h2>Do I need javascript?</h2>
- <p>The short answer is <strong>no</strong>... of course not! However, for those who need it, we've provided the plugins below to help you understand how to integrate bootstrap with javascript and to give you a quick lightweight option for dropping something in and getting the basic functionality right away! For more information on these plugins and to see demos of them in action, please refer to our <a href="./javascript.html">plugin documentation page</a>.</p>
+ <h3>What's included</h3>
+ <p>Bring some of Bootstrap's primary components to life with new custom plugins that work with <a href="http://jquery.com/" target="_blank">jQuery</a> and <a href="http://ender.no.de" target="_blank">Ender</a>. We encourage you to extend and modify them to fit your specific development needs.</p>
<table class="zebra-striped">
<thead>
<tr>
@@ -1557,6 +1558,10 @@ Lorem ipsum dolar sit amet illo error <a href="#" title="below">ipsum</a> verita
</tr>
</tbody>
</table>
+ <h3>Is javascript necessary?</h3>
+ <p><strong>Nope!</strong> Bootstrap is designed first and foremost to be a CSS library. This javascript provides a basic interactive layer on top of the included styles.</p>
+ <p>However, for those who do need javascript, we've provided the plugins above to help you understand how to integrate Bootstrap with javascript and to give you a quick, lightweight option for the basic functionality right away.</p>
+ <p>For more information and to see some live demos, please refer to our <a href="./javascript.html">plugin documentation page</a>.</p>
</div>
</div>
@@ -1709,19 +1714,19 @@ Lorem ipsum dolar sit amet illo error <a href="#" title="below">ipsum</a> verita
</section>
+
+
</div><!-- /container -->
- <div id="footer">
- <div class="inner">
- <div class="container">
- <p class="right"><a href="#">Back to top</a></p>
- <p>
- Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.<br />
- Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>.
- </p>
- </div>
+ <footer class="footer">
+ <div class="container">
+ <p class="pull-right"><a href="#">Back to top</a></p>
+ <p>
+ Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.<br />
+ Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>.
+ </p>
</div>
- </div>
+ </footer>
</body>
</html>
diff --git a/docs/javascript.html b/docs/javascript.html
index 47cd34414..dbb4d1458 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -44,6 +44,7 @@
<div class="container">
<h3><a href="#">Bootstrap JS</a></h3>
<ul>
+ <li><a href="#overview">Overview</a></li>
<li><a href="#modal">Modals</a></li>
<li><a href="#dropdown">Dropdown</a></li>
<li><a href="#tabs">Tabs</a></li>
@@ -55,6 +56,20 @@
</div>
</div>
+ <!-- Masthead (blueprinty thing)
+ ================================================== -->
+ <header class="jumbotron subhead" id="overview">
+ <div class="inner">
+ <div class="container">
+ <h1>Javascript for Bootstrap</h1>
+ <p class="lead">
+ Bring Bootstrap's components to life with new, custom plugins that work with <a href="http://jquery.com/" target="_blank">jQuery</a> and <a href="http://ender.no.de" target="_blank">Ender</a>.
+ </p>
+ <p><a href="./index.html">&larr; Back to Bootstrap home</a></p>
+ </div><!-- /container -->
+ </div>
+ </header>
+
<div class="container">
<!-- Modal
@@ -175,7 +190,7 @@ $('#modal-content')
</script>
<div class="topbar-wrapper">
<div id="topbar-example" class="topbar">
- <div class="fill">
+ <div class="topbar-inner">
<div class="container">
<h3><a href="#">Project Name</a></h3>
<ul>