0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

yo dawg i heard you liked mastheads

This commit is contained in:
Mark Otto 2011-06-29 17:10:53 -07:00
parent 936d7acb31
commit f47b576574
3 changed files with 95 additions and 21 deletions

View File

@ -26,8 +26,8 @@ section {
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#0056b0', EndColorStr='#049cd9', GradientType=0))";
}
#masthead div.inner, #footer div.inner {
background: transparent url(../img/grid-18px.png) 0 -1px;
padding: 36px 0;
background: transparent url(../img/grid-18px.png) top center;
padding: 54px 0;
-webkit-box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.25);
-moz-box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.25);
box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.25);
@ -48,12 +48,16 @@ section {
margin-bottom: -40px;
}
#masthead h1 {
margin-bottom: 0;
font-size: 54px;
line-height: 1;
text-align: center;
margin-bottom: 9px;
}
#masthead p.lead {
font-size: 18px;
font-size: 20px;
font-weight: 300;
line-height: 27px;
text-align: center;
margin: 0;
}
#masthead a.btn {
@ -66,10 +70,10 @@ section {
background-image: -khtml-gradient(linear, left top, left bottom, from(#7a43b6), to(#552e7e));
filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#7a43b6', EndColorStr='#552e7e', GradientType=0);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#7a43b6', EndColorStr='#552e7e', GradientType=0))";
display: block;
padding-top: 5px;
padding-bottom: 4px;
margin-bottom: 18px;
text-align: center;
font-weight: bold;
font-weight: normal;
border: 0;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.4);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.4);
@ -88,10 +92,60 @@ section {
#masthead small a {
color: #fff;
}
div.quickstart {
/* background-color: rgba(0,0,0,.1); */
margin-top: 36px;
}
div.quickstart div.columns {
/* background-color: rgba(0,0,0,.1); */
width: 280px;
height: 100px;
padding: 9px 10px;
}
div.quickstart div.columns:last-child {
border-right: none;
/* padding-right: 20px; */
}
div.quickstart h6,
div.quickstart p {
line-height: 18px;
text-align: center;
margin-bottom: 9px;
}
div.quickstart h6 {
color: #fff;
}
div.quickstart form textarea {
line-height: 21px;
border: 0;
display: block;
width: 270px;
height: 21px;
margin: 0 0 9px;
padding: 3px 5px;
background-color: rgba(0,0,0,.3);
-webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.15);
-moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.15);
box-shadow: inset 0 1px 3px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.15);
color: #fff;
color: rgba(255,255,255,.5);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
div.quickstart form textarea:focus {
background-color: #fff;
color: #333;
-webkit-box-shadow: 0 0 5px rgba(255,255,255,.25);
-moz-box-shadow: 0 0 5px rgba(255,255,255,.25);
box-shadow: 0 0 5px rgba(255,255,255,.25);
}
/*
div.quick-start {
background-color: rgba(0,0,0,.25);
padding: 18px 20px;
margin: 27px 0 -36px;
padding: 0 20px;
margin: 36px 0 0;
}
div.quick-start h4,
div.quick-start p,
@ -118,6 +172,7 @@ div.quick-start form input {
height: 21px;
line-height: 21px;
}
*/
#footer {
margin-top: 80px;
}

View File

@ -25,7 +25,7 @@
<img src="assets/img/twitter-logo-no-bird.png" alt="Twitter" /> <span>bootstrap</span>
</a></h3>
<ul>
<li><a href="#getting-started">Getting started</a></li>
<li><a href="#masthead">Overview</a></li>
<li><a href="#grid-system">Grid</a></li>
<li><a href="#layouts">Layouts</a></li>
<li><a href="#typography">Typography</a></li>
@ -42,10 +42,13 @@
<div id="masthead">
<div class="inner">
<div class="container">
<!--
<div class="row">
<div class="span11 columns">
-->
<h1>Twitter Bootstrap</h1>
<p class="lead">Bootstrap is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more.</p>
<!--
</div>
<div class="span5 columns">
<a href="" class="btn large primary">Download Bootstrap ZIP &raquo;</a>
@ -55,16 +58,32 @@
</small>
</div>
</div>
</div>
<div class="quick-start">
<div class="container">
<p>Copy and paste for a quick start:</p>
-->
<div class="row quickstart">
<div class="span5 columns">
<h6>Hotlink the CSS</h6>
<p>For the quickest and easiest start, just copy this snippet into your webpage.</p>
<form>
<input type="text" value='&lt;link type="text/css" href="http://twitter.github.com/bootstrap-1.0.0.css" media="all" /&gt;' />
<textarea>&lt;link type="text/css" href="http://twitter.github.com/bootstrap-1.0.0.css</textarea>
</form>
<p><a href="">Using LESS?</a></p>
</div>
<div class="span5 columns">
<h6>Use it with LESS</h6>
<p>A fan of using LESS.js? No problem, just clone the repo and add these lines:</p>
<form>
<textarea>&lt;link type="text/css" href="http://twitter.github.com/bootstrap-1.0.0.css
&lt;link type="text/css" href="http://twitter.github.com/bootstrap-1.0.0.css</textarea>
</form>
</div>
<div class="span5 columns">
<h6>Fork on GitHub</h6>
<p>Download, fork, pull, and more with the official Bootstrap repo on Github.</p>
<p><a href="" class="btn primary">Bootstrap on GitHub &raquo;</a></p>
</div>
</div>
</div> <!-- /container -->
</div>
</div>

View File

@ -21,7 +21,7 @@ p {
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
font-weight: 500;
font-weight: bold;
color: @grayDark;
small {
color: @grayLight;