Cleanup feature post header image and title

This commit is contained in:
Michael Rose 2014-02-25 16:32:32 -05:00
parent 74a74e635d
commit 7ccdaa26d4
3 changed files with 74 additions and 80 deletions

View File

@ -3836,7 +3836,6 @@ body {
}
.header-title {
padding: 0 20px;
margin: 30px 0 0;
text-align: center;
}
@ -3858,8 +3857,8 @@ body {
@media only screen and (min-width: 62.5em) {
.header-title h1 {
font-size: 80px;
font-size: 5rem;
font-size: 60px;
font-size: 3.75rem;
}
}
@ -3873,13 +3872,12 @@ body {
@media only screen and (min-width: 48em) {
.header-title h2 {
font-size: 32px;
font-size: 2rem;
font-size: 30px;
font-size: 1.875rem;
}
}
@media only screen and (min-width: 48em) {
.feature .header-title {
.feature .header-title {
position: absolute;
top: 0;
display: table;
@ -3887,53 +3885,38 @@ body {
height: 440px;
margin-top: 0;
overflow: hidden;
}
.feature .header-title .header-title-wrap {
}
.feature .header-title .header-title-wrap {
display: table-cell;
margin: 0 auto;
text-align: center;
vertical-align: middle;
}
}
.feature .header-title h1 {
margin: 10px;
font-weight: 700;
}
@media only screen and (min-width: 48em) {
.feature .header-title h1 {
margin: 10px 60px;
font-size: 60px;
font-size: 3.75rem;
font-weight: 700;
color: #ffffff;
text-shadow: 1px 1px 4px rgba(34, 34, 34, 0.6);
}
.feature .header-title h1 a {
}
.feature .header-title h1 a {
color: #ffffff;
}
}
@media only screen and (min-width: 62.5em) {
.feature .header-title h1 {
font-size: 100px;
font-size: 6.25rem;
}
}
.feature .header-title h2 {
margin: 0;
font-size: 18px;
font-size: 1.125rem;
color: #ffffff;
text-transform: uppercase;
}
@media only screen and (min-width: 48em) {
.feature .header-title h2 {
font-size: 30px;
font-size: 1.875rem;
color: #ffffff;
}
.feature .header-title h2 a {
color: #ffffff;
}
@ -3941,9 +3924,12 @@ body {
.entry-image {
position: relative;
width: auto;
height: 100%;
max-height: 440px;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
min-height: 440px;
overflow: hidden;
}
.entry-image:after {
@ -3957,7 +3943,14 @@ body {
}
.entry-image img {
width: 100%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
min-width: 50%;
min-height: 50%;
margin: auto;
}
.image-credit {

File diff suppressed because one or more lines are too long

View File

@ -32,7 +32,6 @@ body {
.header-title {
text-align: center;
margin: 30px 0 0;
padding: 0 20px;
h1 {
margin: 10px 20px;
font-weight: 700;
@ -42,7 +41,7 @@ body {
.font-rem(48);
}
@media @large {
.font-rem(80);
.font-rem(60);
}
}
h2 {
@ -51,12 +50,11 @@ body {
text-transform: uppercase;
color: lighten(@base-color,40);
@media @medium {
.font-rem(32);
.font-rem(30);
}
}
}
.feature .header-title {
@media @medium {
position: absolute;
top: 0;
display: table;
@ -70,30 +68,23 @@ body {
margin: 0 auto;
text-align: center;
}
}
h1 {
margin: 10px;
font-weight: 700;
@media @medium {
margin: 10px 60px;
color: @white;
.font-rem(60);
text-shadow: 1px 1px 4px fade(@base-color,60);
a {
color: @white;
}
}
@media @large {
.font-rem(100);
}
}
h2 {
margin: 0;
.font-rem(18);
color: @white;
text-transform: uppercase;
@media @medium {
.font-rem(30);
color: @white;
a {
color: @white;
}
@ -102,9 +93,12 @@ body {
}
.entry-image {
position: relative;
width: auto;
height: 100%;
max-height: 440px;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
min-height: 440px;
overflow: hidden;
&:after {
content: '';
position: absolute;
@ -115,7 +109,14 @@ body {
background-color: fade(@base-color,30);
}
img {
width: 100%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
min-width: 50%;
min-height: 50%;
}
}
.image-credit {