1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-23 13:43:11 +02:00

tweak homepage copy and layout

This commit is contained in:
Mark Otto
2015-08-05 00:05:05 -07:00
parent 95b0ec18f4
commit b728fe2bbd
5 changed files with 51 additions and 40 deletions

View File

@@ -254,11 +254,14 @@
.bd-masthead { .bd-masthead {
position: relative; position: relative;
padding: 0.75rem; padding: 0.75rem;
text-align: center; } color: #8e869d;
text-align: center;
background: -webkit-linear-gradient(to bottom, #2a2730, #3c3845);
background: linear-gradient(to bottom, #2a2730, #3c3845); }
.bd-masthead .bd-booticon { .bd-masthead .bd-booticon {
margin: 0 auto 2rem; margin: 0 auto 2rem;
color: #563d7c; color: #9062d7;
border-color: #563d7c; } border-color: #9062d7; }
.bd-masthead h1 { .bd-masthead h1 {
font-weight: 300; font-weight: 300;
line-height: 1; } line-height: 1; }
@@ -275,16 +278,17 @@
padding: 1rem 2rem; padding: 1rem 2rem;
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 500; font-weight: 500;
color: #55595c; color: #ffe484;
border-color: #55595c; } border-color: #ffe484; }
.bd-masthead .btn:hover { .bd-masthead .btn:hover {
color: #fff; color: #2a2730;
background-color: #55595c; } background-color: #ffe484;
border-color: #ffe484; }
.bd-masthead .carbonad { .bd-masthead .carbonad {
margin-bottom: -2rem !important; } margin-bottom: -2rem !important; }
@media (min-width: 34em) { @media (min-width: 34em) {
.bd-masthead { .bd-masthead {
padding-top: 2rem; padding-top: 8rem;
padding-bottom: 2rem; } padding-bottom: 2rem; }
.bd-masthead .btn { .bd-masthead .btn {
width: auto; } width: auto; }
@@ -312,7 +316,6 @@
font-size: 1rem; font-size: 1rem;
line-height: 1.5; line-height: 1.5;
color: #555; color: #555;
text-align: center;
background-color: #fff; background-color: #fff;
border-top: 1px solid #eee; } border-top: 1px solid #eee; }
.bd-featurette .highlight { .bd-featurette .highlight {
@@ -323,10 +326,13 @@
font-size: 2rem; font-size: 2rem;
font-weight: normal; font-weight: normal;
color: #333; } color: #333; }
.bd-featurette-title + .lead {
font-size: 1.5rem;
margin-bottom: 2rem; }
.half-rule { .half-rule {
width: 6rem; width: 6rem;
margin: 2.5rem auto; } margin: 2.5rem 0; }
.bd-featurette h4 { .bd-featurette h4 {
margin-top: 1rem; margin-top: 1rem;
@@ -358,9 +364,7 @@
.bd-featurette-title { .bd-featurette-title {
font-size: 2.5rem; } font-size: 2.5rem; }
.bd-featurette .lead { .bd-featurette .lead {
max-width: 80%; max-width: 80%; }
margin-right: auto;
margin-left: auto; }
.bd-featurette .img-responsive { .bd-featurette .img-responsive {
margin-top: 0; } } margin-top: 0; } }

File diff suppressed because one or more lines are too long

View File

@@ -92,12 +92,15 @@
.bd-masthead { .bd-masthead {
position: relative; position: relative;
padding: ($grid-gutter-width / 2); padding: ($grid-gutter-width / 2);
color: $bd-graphite-light;
text-align: center; text-align: center;
background: -webkit-linear-gradient(to bottom, $bd-graphite, lighten($bd-graphite, 7.5%));
background: linear-gradient(to bottom, $bd-graphite, lighten($bd-graphite, 7.5%));
.bd-booticon { .bd-booticon {
margin: 0 auto 2rem; margin: 0 auto 2rem;
color: $bd-purple; color: $bd-purple-bright;
border-color: $bd-purple; border-color: $bd-purple-bright;
} }
h1 { h1 {
@@ -122,12 +125,13 @@
padding: 1rem 2rem; padding: 1rem 2rem;
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 500; font-weight: 500;
color: $gray; color: $bd-yellow;
border-color: $gray; border-color: $bd-yellow;
&:hover { &:hover {
color: #fff; color: $bd-graphite;
background-color: $gray; background-color: $bd-yellow;
border-color: $bd-yellow;
} }
} }
@@ -136,7 +140,7 @@
} }
@include media-breakpoint-up(sm) { @include media-breakpoint-up(sm) {
padding-top: 2rem; padding-top: 8rem;
padding-bottom: 2rem; padding-bottom: 2rem;
.btn { .btn {
@@ -187,7 +191,7 @@
font-size: 1rem; font-size: 1rem;
line-height: 1.5; line-height: 1.5;
color: #555; color: #555;
text-align: center; // text-align: center;
background-color: #fff; background-color: #fff;
border-top: 1px solid #eee; border-top: 1px solid #eee;
@@ -201,10 +205,15 @@
font-size: 2rem; font-size: 2rem;
font-weight: normal; font-weight: normal;
color: #333; color: #333;
+ .lead {
font-size: 1.5rem;
margin-bottom: 2rem;
}
} }
.half-rule { .half-rule {
width: 6rem; width: 6rem;
margin: 2.5rem auto; margin: 2.5rem 0;
} }
.bd-featurette h4 { .bd-featurette h4 {
margin-top: 1rem; margin-top: 1rem;
@@ -241,8 +250,8 @@
} }
.bd-featurette .lead { .bd-featurette .lead {
max-width: 80%; max-width: 80%;
margin-right: auto; // margin-right: auto;
margin-left: auto; // margin-left: auto;
} }
.bd-featurette .img-responsive { .bd-featurette .img-responsive {
margin-top: 0; margin-top: 0;

View File

@@ -28,6 +28,7 @@
// Local docs variables // Local docs variables
$bd-purple: #563d7c; $bd-purple: #563d7c;
$bd-purple-bright: lighten(saturate($bd-purple, 25%), 25%);
$bd-purple-light: #cdbfe3; $bd-purple-light: #cdbfe3;
$bd-graphite: #2a2730; $bd-graphite: #2a2730;
$bd-graphite-light: lighten($bd-graphite, 40%); $bd-graphite-light: lighten($bd-graphite, 40%);

View File

@@ -18,32 +18,29 @@ title: Bootstrap · The world's most popular mobile-first and responsive f
<div class="bd-featurette"> <div class="bd-featurette">
<div class="container"> <div class="container">
<h2 class="bs-docs-featurette-title">Easy to get started.</h2> <h2 class="bd-featurette-title">Easy to get started.</h2>
<p class="lead">Quickly include Bootstrap's CSS and JS into any project. Use your favorite package manager, download the source, or use the <a href="#">Bootstrap CDN</a>.</p> <p class="lead">Quickly include Bootstrap's CSS and JS into any project. Use your favorite package manager, download the source, or use the <a href="#">Bootstrap CDN</a>.</p>
<hr class="half-rule"> <!-- <hr class="half-rule"> -->
<div class="row"> <div class="row">
<div class="col-sm-4"> <div class="col-sm-6">
<h4>Package managers</h4> <h4>Managed dependencies</h4>
<p>Include Bootstrap's source Sass and JavaScript files via Bower, Composer, Meteor, or npm.</p> <p>Include Bootstrap's source Sass and JavaScript files via Bower, Composer, Meteor, or npm. Package managed installs don't include documentation, but do include our Gruntfile and readme.</p>
{% highlight bash %} <p>
$ npm install bootstrap <a class="btn btn-primary" href="">View install methods</a>
$ bower install bootstrap </p>
$ meteor add twbs:bootstrap
$ composer require twbs/bootstrap
{% endhighlight %}
</div> </div>
<div class="col-sm-4"> <!-- <div class="col-sm-4">
<h4>Custom builds</h4> <h4>Custom builds</h4>
<p>Need just a part of Bootstrap? Download a custom build of the compiled CSS and JS.</p> <p>Need just a part of Bootstrap? Download a custom build of the compiled CSS and JS.</p>
<a class="btn btn-secondary" href="#">Reboot</a> <a class="btn btn-secondary" href="#">Reboot</a>
<a class="btn btn-secondary" href="#">Grid system</a> <a class="btn btn-secondary" href="#">Grid system</a>
<a class="btn btn-secondary" href="#">Flexbox</a> <a class="btn btn-secondary" href="#">Flexbox</a>
</div> </div> -->
<div class="col-sm-4"> <div class="col-sm-6">
<h4>Bootstrap CDN</h4> <h4>Bootstrap CDN</h4>
<p>Use the free Bootstrap CDN to hotlink the compiled CSS and JS.</p> <p>When you just need to include Bootstrap's compiled CSS and JS, use the Bootstrap CDN, free from the Max CDN folks.</p>
{% highlight html %} {% highlight html %}
<link rel="stylesheet" href="{{ site.cdn.css }}"> <link rel="stylesheet" href="{{ site.cdn.css }}">
<script src="{{ site.cdn.js }}"></script> <script src="{{ site.cdn.js }}"></script>