1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

redo most of the css for the masthead, page headers, and ads

This commit is contained in:
Mark Otto 2015-06-09 15:22:57 -07:00
parent 2d094f9d0f
commit 6b1c9ee8d5
3 changed files with 105 additions and 117 deletions

View file

@ -6,20 +6,20 @@
width: auto !important; width: auto !important;
height: auto !important; height: auto !important;
padding: 1.25rem !important; padding: 1.25rem !important;
margin: 0 -1rem 2rem !important; margin: 0 -1.5rem 2rem !important;
overflow: hidden; /* clearfix */ overflow: hidden; // clearfix
font-size: .8rem !important; font-size: .8rem !important;
line-height: 1rem !important; line-height: 1rem !important;
color: $gray !important; color: $gray !important;
text-align: left; text-align: left;
background: #f5f5f5 !important; background: #f5f5f5 !important;
border: 0 !important; border: 0 !important;
// border: solid #e5e5e5 !important;
// border-width: 1px 0 !important;
} }
.carbonad-img { .carbonad-img {
margin: 0 !important; margin: 0 !important;
} }
.carbonad-text, .carbonad-text,
.carbonad-tag { .carbonad-tag {
display: block !important; display: block !important;
@ -29,13 +29,16 @@
margin-left: 145px !important; margin-left: 145px !important;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
} }
.carbonad-text { .carbonad-text {
padding-top: 0 !important; padding-top: 0 !important;
} }
.carbonad-tag { .carbonad-tag {
color: inherit !important; color: inherit !important;
text-align: left !important; text-align: left !important;
} }
.carbonad-text a, .carbonad-text a,
.carbonad-tag a { .carbonad-tag a {
color: $gray !important; color: $gray !important;
@ -44,58 +47,17 @@
color: $brand-primary !important; color: $brand-primary !important;
} }
} }
.carbonad #azcarbon > img { .carbonad #azcarbon > img {
display: none; // hide what I assume are tracking images display: none; // hide what I assume are tracking images
} }
// In the lighter page headers
// .bd-header .carbonad {
// color: #777;
// background-color: #fff !important;
// border-color: #eee !important;
// }
// .bd-header .carbonad-text a,
// .bd-header .carbonad-tag a {
// color: $bd-purple !important;
// }
@include media-breakpoint-up(sm) { @include media-breakpoint-up(sm) {
.carbonad { .carbonad {
width: 330px !important; width: 330px !important;
margin: 1.5rem auto !important; padding: 1rem !important;
border-width: 1px !important; margin-right: auto !important;
margin-left: auto !important;
border-radius: .25rem; border-radius: .25rem;
} }
.bd-masthead .carbonad {
margin: 3rem auto 0 !important;
}
}
@include media-breakpoint-up(md) {
.carbonad {
margin-right: 0 !important;
margin-left: 0 !important;
}
}
@include media-breakpoint-up(lg) {
.carbonad {
float: right;
width: 330px !important;
padding: 1rem !important;
margin: .5rem 0 1rem 2rem !important;
}
.bd-masthead {
.carbonad {
float: none;
margin: 0 auto !important;
// color: $bd-purple-light !important;
// background: transparent !important;
// border: 1px solid #866ab3 !important;
}
// .carbonad-text a,
// .carbonad-tag a {
// color: #fff !important;
// }
}
} }

View file

@ -50,23 +50,33 @@
.bd-header-mark { .bd-header-mark {
float: left; float: left;
padding-top: .6em; padding-top: .6rem;
padding-bottom: .6em; padding-bottom: .6rem;
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 500; font-weight: 500;
} }
} }
.bd-header-nav { .bd-header-nav {
float: right; padding-bottom: 1rem;
margin-bottom: 2rem;
border-bottom: .0625rem solid #eee;
.nav-link { .nav-link {
float: left; display: inline-block;
padding: 1.2rem .75rem;
&:hover { &:hover {
background-color: transparent; background-color: transparent;
} }
} }
@include media-breakpoint-up(sm) {
float: right;
padding-bottom: 0;
margin-bottom: 0;
border-bottom: 0;
}
} }
@ -76,77 +86,88 @@
.bd-masthead { .bd-masthead {
position: relative; position: relative;
padding: 2rem 0; padding: ($grid-gutter-width / 2);
// color: #cdbfe3;
text-align: center; text-align: center;
// text-shadow: 0 1px 0 rgba(0,0,0,.1);
// background-color: #6f5499;
// @include gradient-vertical($bd-purple, #6f5499);
// background-image: linear-gradient(135deg, #a8b7be, #cdd1d4, #d4d5d7, #cecfd1);
}
.bd-masthead .bd-booticon { .bd-booticon {
margin: 0 auto 2rem; margin: 0 auto 2rem;
color: $gray; color: $bd-purple;
border-color: $gray; border-color: $bd-purple;
} }
.bd-masthead h1 {
font-weight: 300;
line-height: 1;
// color: #fff;
}
.bd-masthead .lead {
margin-left: auto;
margin-right: auto;
margin-bottom: 2rem;
font-size: 1.25rem;
// color: #fff;
}
.bd-masthead .version {
margin-top: -1rem;
margin-bottom: 2rem;
// color: #9783b9;
}
.bd-masthead .btn {
width: 100%;
padding: 1rem 2rem;
font-size: 1.25rem;
font-weight: 500;
color: $gray;
border-color: $gray;
&:hover { h1 {
color: #fff; font-weight: 300;
background-color: $gray; line-height: 1;
} }
}
@media (min-width: 480px) { .lead {
.bd-masthead .btn { margin-left: auto;
width: auto; margin-right: auto;
margin-bottom: 2rem;
font-size: 1.25rem;
} }
}
@media (min-width: 768px) { .version {
.bd-masthead { margin-top: -1rem;
padding: 2rem 0 4rem; margin-bottom: 2rem;
// padding: 5rem 0;
} }
.bd-header {
margin-bottom: 4rem;
}
.bd-masthead h1 {
font-size: 4rem;
}
.bd-masthead .lead {
font-size: 1.5rem;
}
}
@media (min-width: 992px) { .btn {
.bd-masthead .lead { width: 100%;
width: 80%; padding: 1rem 2rem;
font-size: 2rem; font-size: 1.25rem;
font-weight: 500;
color: $gray;
border-color: $gray;
&:hover {
color: #fff;
background-color: $gray;
}
}
.carbonad {
margin-bottom: -2rem !important;
}
@include media-breakpoint-up(sm) {
padding-top: 2rem;
padding-bottom: 2rem;
.btn {
width: auto;
}
.carbonad {
margin-bottom: 0 !important;
}
}
@include media-breakpoint-up(md) {
padding-bottom: 4rem;
.bd-header {
margin-bottom: 4rem;
}
h1 {
font-size: 4rem;
}
.lead {
font-size: 1.5rem;
}
.carbonad {
margin-top: 3rem !important;
}
}
@include media-breakpoint-up(lg) {
.lead {
width: 80%;
font-size: 2rem;
}
} }
} }

View file

@ -9,12 +9,17 @@
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
@media (min-width: 768px) { @include media-breakpoint-up(md) {
padding: 2rem; padding: 2rem;
} }
@media (min-width: 992px) { @include media-breakpoint-up(lg) {
padding: 4rem; padding: 4rem;
.carbonad {
float: right !important;
margin: .5rem 0 1rem 2rem !important;
}
} }
> table { > table {