96 lines
1.9 KiB
SCSS
96 lines
1.9 KiB
SCSS
|
|
//========== Blog page ==========//
|
|
|
|
.posts {
|
|
--gap: #{get-size('1100')};
|
|
align-items: stretch;
|
|
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
|
|
gap: v(gap);
|
|
padding-bottom: 15vh;
|
|
}
|
|
|
|
.card {
|
|
position: relative;
|
|
|
|
&-header {
|
|
position: relative;
|
|
}
|
|
|
|
&-image {
|
|
border-radius: v(border-radius);
|
|
}
|
|
|
|
&-categories {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: get-size('300');
|
|
transform: translateY(50%);
|
|
|
|
.category {
|
|
--border-radius: .15rem;
|
|
border-radius: v(border-radius);
|
|
margin-right: .2rem;
|
|
padding: .25rem .5rem;
|
|
}
|
|
}
|
|
|
|
&-title-link {
|
|
border-bottom: v(border-size) solid get-color('secondary');
|
|
transition: border-color v(transition-duration) v(transition-timing);
|
|
|
|
&:hover {
|
|
border-bottom-color: get-color('primary');
|
|
}
|
|
}
|
|
|
|
.datetime {
|
|
position: absolute;
|
|
bottom: 0;
|
|
}
|
|
}
|
|
|
|
.bg-pentateuch, .bg-gospels {
|
|
@include apply-utility('bg', 'purple');
|
|
@include apply-utility('color', 'white');
|
|
}
|
|
|
|
.bg-historic, .bg-acts {
|
|
@include apply-utility('bg', 'blue');
|
|
@include apply-utility('color', 'white');
|
|
}
|
|
|
|
.bg-wisdom, .bg-pauline {
|
|
@include apply-utility('bg', 'orange');
|
|
}
|
|
|
|
.bg-prophets, .bg-epistles {
|
|
@include apply-utility('bg', 'green');
|
|
@include apply-utility('color', 'white');
|
|
}
|
|
|
|
.bg-minor-prophets, .bg-revelation {
|
|
@include apply-utility('bg', 'red');
|
|
@include apply-utility('color', 'white');
|
|
}
|
|
|
|
.bg-devotional {
|
|
@include apply-utility('bg', 'light-grey');
|
|
@include apply-utility('color', 'base');
|
|
}
|
|
|
|
@include media-query('tablet') {
|
|
|
|
.card {
|
|
|
|
&-title-link {
|
|
font-size: v(text-700);
|
|
}
|
|
}
|
|
}
|
|
|
|
@include media-query('laptop') {
|
|
|
|
.posts {
|
|
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
|
|
}
|
|
}
|