hacks-guide-minimal-mistake.../assets/_scss/_archive.scss

117 lines
2 KiB
SCSS
Raw Normal View History

2016-03-10 19:06:59 +01:00
/* ==========================================================================
ARCHIVE
========================================================================== */
.archive {
margin-bottom: 2em;
2016-03-21 21:36:24 +01:00
@include breakpoint($medium) {
2016-03-20 20:20:33 +01:00
@include span(12 of 12);
}
2016-03-21 21:36:24 +01:00
@include breakpoint($large) {
2016-03-20 20:20:33 +01:00
@include span(10 of 12 last);
2016-03-10 19:06:59 +01:00
}
2016-03-21 21:36:24 +01:00
@include breakpoint($x-large) {
@include prefix(0.5 of 12);
}
2016-03-21 21:36:24 +01:00
a {
text-decoration: none;
}
2016-03-10 19:06:59 +01:00
}
.archive__subtitle {
margin: 0;
padding-bottom: 0.5em;
2016-03-20 02:50:18 +01:00
font-size: 14px;
color: mix(#fff, $gray, 25%);
2016-03-10 19:06:59 +01:00
border-bottom: 1px solid $border-color;
}
.archive__item-title {
margin-bottom: 4px;
2016-03-11 04:29:30 +01:00
font-family: $sans-serif-narrow;
2016-03-10 19:06:59 +01:00
font-size: 20px;
}
.archive__item-excerpt {
font-size: 14px;
2016-03-21 21:36:24 +01:00
2016-03-10 19:06:59 +01:00
& + p {
text-indent: 0;
}
}
a:hover {
.archive__item-teaser {
box-shadow: 0 0 10px rgba(#000, 0.25);
}
2016-03-21 21:36:24 +01:00
.archive__item-title {
text-decoration: underline;
}
}
2016-03-21 03:15:43 +01:00
/*
List view
========================================================================== */
.list__item {
@include breakpoint($medium) {
padding-right: $right-sidebar-width-narrow;
}
2016-03-21 21:36:24 +01:00
2016-03-21 03:15:43 +01:00
@include breakpoint($large) {
padding-right: $right-sidebar-width;
}
2016-03-21 21:36:24 +01:00
2016-03-21 03:15:43 +01:00
@include breakpoint($x-large) {
padding-right: $right-sidebar-width-wide;
}
}
/*
Grid view
========================================================================== */
.grid__item {
margin-bottom: 2em;
2016-03-21 21:36:24 +01:00
.archive__item-excerpt {
display: none;
}
2016-03-21 21:36:24 +01:00
.archive__item-teaser {
border-radius: $border-radius;
2016-03-21 17:37:10 +01:00
img {
width: 100%;
}
}
2016-03-21 21:36:24 +01:00
@include breakpoint($small) {
@include gallery(5 of 10);
.archive__item-teaser {
max-height: 200px;
overflow: hidden;
}
}
2016-03-21 21:36:24 +01:00
@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);
2016-03-21 21:36:24 +01:00
.archive__item-teaser {
max-height: 120px;
}
2016-03-21 21:36:24 +01:00
.archive__item-excerpt {
display: block;
}
}
}