259 lines
4.3 KiB
SCSS
259 lines
4.3 KiB
SCSS
/* ==========================================================================
|
|
ARCHIVE
|
|
========================================================================== */
|
|
|
|
.archive {
|
|
margin-bottom: 2em;
|
|
|
|
@include breakpoint($medium) {
|
|
@include span(12 of 12);
|
|
}
|
|
|
|
@include breakpoint($large) {
|
|
@include span(10 of 12 last);
|
|
}
|
|
|
|
@include breakpoint($x-large) {
|
|
@include prefix(0.5 of 12);
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.archive__subtitle {
|
|
margin: 0;
|
|
padding-bottom: 0.5em;
|
|
font-size: 14px;
|
|
color: mix(#fff, $gray, 25%);
|
|
border-bottom: 1px solid $border-color;
|
|
}
|
|
|
|
.archive__item-title {
|
|
margin-bottom: 4px;
|
|
font-family: $sans-serif-narrow;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.archive__item-excerpt {
|
|
font-size: 14px;
|
|
|
|
& + p {
|
|
text-indent: 0;
|
|
}
|
|
}
|
|
|
|
.archive__item-teaser {
|
|
border-radius: $border-radius;
|
|
overflow: hidden;
|
|
img {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
a:hover {
|
|
.archive__item-teaser {
|
|
box-shadow: 0 0 10px rgba(#000, 0.25);
|
|
}
|
|
|
|
.archive__item-title {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
List view
|
|
========================================================================== */
|
|
|
|
.list__item {
|
|
@include breakpoint($medium) {
|
|
padding-right: $right-sidebar-width-narrow;
|
|
}
|
|
|
|
@include breakpoint($large) {
|
|
padding-right: $right-sidebar-width;
|
|
}
|
|
|
|
@include breakpoint($x-large) {
|
|
padding-right: $right-sidebar-width-wide;
|
|
}
|
|
|
|
.page__meta {
|
|
margin: 0 0 4px;
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
Grid view
|
|
========================================================================== */
|
|
|
|
.grid__item {
|
|
margin-bottom: 2em;
|
|
|
|
.page__meta {
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.archive__item-excerpt {
|
|
display: none;
|
|
}
|
|
|
|
@include breakpoint($small) {
|
|
@include gallery(5 of 10);
|
|
.archive__item-teaser {
|
|
max-height: 200px;
|
|
}
|
|
}
|
|
|
|
@include breakpoint($medium) {
|
|
margin-left: 0; // reset before mixin does its thing
|
|
margin-right: 0; // reset before mixin does its thing
|
|
@include gallery(2.5 of 10);
|
|
|
|
.archive__item-teaser {
|
|
max-height: 120px;
|
|
}
|
|
|
|
.archive__item-excerpt {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|