Files
2026-11-23 13:18:33 +01:00

156 lines
3.1 KiB
SCSS
Vendored

@use "../abstracts/mixin" as *;
@use "../abstracts/variables" as *;
.blog_grid {
@media (max-width: 768px) {
overflow-x: auto;
overflow-y: hidden;
&::-webkit-scrollbar {
height: 8px;
}
/* Track */
&::-webkit-scrollbar-track {
border-radius: 100vw;
background: #eee;
}
/* Handle */
&::-webkit-scrollbar-thumb {
border-radius: 4px;
background: var(--brand-primary);
}
.grid_view {
width: 300%;
}
}
.row, .row > * {
padding: 0;
margin: 0;
}
.row {
height: 100%;
}
.post {
position: relative;
height: CALC(100% - 10px);
margin: 0;
padding: 5px;
display: flex;
flex-direction: column;
background-color: $surface;
background-clip: content-box;
overflow: hidden;
@media (max-width: 768px) {
height: CALC(50% - 10px);
}
> a:first-child {
display: block;
flex: 1 1 auto;
min-height: 140px;
position: relative;
}
img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
&.small {
height: 50%;
@media (min-width: 769px) {
> a:first-child {
aspect-ratio: 16 / 9;
}
}
}
.slider_content_box {
position: relative;
flex: 0 0 auto;
padding: 14px 16px 16px;
background-color: $surface;
// tags over de afbeelding
.post_details {
position: absolute;
top: 0;
left: 14px;
z-index: 1;
transform: translateY(calc(-100% - 8px));
}
.post_details {
@include reset-list;
display: flex;
gap: 3px;
.category a {
padding: 6px 11px 7px;
display: block;
border-radius: 999px;
background-color: $gold;
font-family: var(--font-base);
font-size: 10px;
font-weight: 700;
text-align: center;
color: $primary;
text-decoration: none;
text-transform: uppercase;
}
}
h2, h5 {
margin: 0;
}
h2 a, h5 a {
font-family: var(--font-base);
font-size: 30px;
font-weight: 700;
line-height: 1.1;
color: $primary;
text-decoration: none;
}
h5 a {
font-size: 16px;
line-height: 1.17;
}
@media (max-width: 768px) {
h2 a, h5 a {
display: block;
font-size: 16px;
line-height: 1.17;
}
}
.post_date {
@include post_date;
height: auto;
margin-top: 8px;
color: $primary;
font-weight: 500;
line-height: 1.4;
text-transform: uppercase;
font-size: 15px;
}
}
}
}
.article-iframe {
width: 100%;
aspect-ratio: 1;
}
// Mobiel: scrollbalk onder de nieuwsslider in huisstijlkleuren (goud op lichte baan)
@media (max-width: 768px) {
.blog_grid {
&::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.35);
}
&::-webkit-scrollbar-thumb {
background: var(--brand-gold);
}
}
}