Build out overlay header and feature row _include helper

This commit is contained in:
Michael Rose
2016-03-24 15:28:29 -04:00
parent 4a38b2a4c5
commit 28d6c28050
11 changed files with 250 additions and 83 deletions

View File

@@ -122,3 +122,137 @@ a:hover {
}
}
}
/*
Features
========================================================================== */
.feature__wrapper {
@include clearfix();
margin-bottom: 2em;
border-bottom: 1px solid $border-color;
}
.feature__item {
margin-bottom: 2em;
@include breakpoint($small) {
text-align: center;
@include gallery(4 of 12);
.feature__item-teaser {
max-height: 200px;
overflow: hidden;
}
}
.archive__item-title {
margin-bottom: 0.5em;
font-size: 30px;
}
.archive__item-excerpt {
margin-bottom: 1em;
font-size: 18px;
p {
font-size: 18px;
}
}
&--left {
@include full();
margin-bottom: 2em;
@include breakpoint($small) {
.archive__item-teaser {
@include span(5 of 12);
}
.archive__item-body {
@include span(7 of 12 last);
@include prefix(0.5 of 12);
@include suffix(1 of 12);
}
}
.archive__item-title {
margin-bottom: 0.5em;
font-size: 30px;
}
.archive__item-excerpt {
margin-bottom: 1em;
font-size: 18px;
p {
font-size: 18px;
}
}
}
&--right {
@include full();
margin-bottom: 2em;
@include breakpoint($small) {
text-align: right;
.archive__item-teaser {
@include span(5 of 12 rtl);
}
.archive__item-body {
@include span(7 of 12 last rtl);
@include prefix(0.5 of 12);
@include suffix(1 of 12);
}
}
.archive__item-title {
margin-bottom: 0.5em;
font-size: 30px;
}
.archive__item-excerpt {
margin-bottom: 1em;
font-size: 18px;
p {
font-size: 18px;
}
}
}
&--center {
@include full();
margin-bottom: 2em;
@include breakpoint($small) {
text-align: center;
.archive__item-teaser {
margin: 0 auto;
width: span(5 of 12);
}
.archive__item-body {
margin: 0 auto;
width: span(7 of 12);
}
}
.archive__item-title {
margin-bottom: 0.5em;
font-size: 30px;
}
.archive__item-excerpt {
margin-bottom: 1em;
font-size: 18px;
p {
font-size: 18px;
}
}
}
}

View File

@@ -55,6 +55,11 @@
}
}
.page__lead {
font-family: $sans-serif;
font-size: 20px;
}
.page__content {
p, li {
font-size: 16px;
@@ -76,14 +81,29 @@
background-repeat: no-repeat;
background-position: center;
.wrapper {
padding-left: 2em;
padding-right: 2em;
}
.page__title,
.page__meta {
.page__meta,
.page__lead,
.btn {
color: #fff;
text-shadow: 1px 1px 4px rgba(#000, 0.5);
}
.page__title {
font-size: 64px;
font-size: 48px;
@include breakpoint($small) {
font-size: 60px;
}
}
.page__lead {
font-weight: bold;
}
}
}

View File

@@ -1,22 +0,0 @@
/* ==========================================================================
SPLASH
========================================================================== */
.splash__item {
margin-bottom: 2em;
@include breakpoint($small) {
text-align: center;
@include gallery(4 of 12);
.splash__item-teaser {
max-height: 200px;
overflow: hidden;
}
}
.archive__item-excerpt {
margin-bottom: 1em;
}
}

View File

@@ -30,7 +30,6 @@
@import "page";
@import "archive";
@import "sidebar";
@import "splash";
@import "vendor/font-awesome/font-awesome";
@import "vendor/magnific-popup/magnific-popup";

File diff suppressed because one or more lines are too long