Build and Deploy (dev) / build (push) Successful in 4m42s
- Submenu hover bridge now matches the menu item height (was a fixed 30px), so the dropdown opens below the menu instead of over it - Give .menu-submenu z-index 100 so it covers the category pills and media overlays - Small homepage news images use a 16:9 aspect ratio on desktop, so they grow with the column width (min-height 140px stays) - Rename Gruntfile.js to Gruntfile.cjs: package.json has type=module, which broke the grunt build Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
144 lines
2.8 KiB
SCSS
Vendored
144 lines
2.8 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: 600;
|
|
line-height: 1.4;
|
|
text-transform: uppercase;
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.article-iframe {
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
}
|