Files
nhgooi.nl/resources/assets/sass/components/_post.scss
T
eric.busandClaude Opus 5.5 df8c8a9c4f Show at most 4 categories, the rest behind a '+N' tag
- New partial/tag_list: first 4 categories, then a '+N' tag that opens
  the remaining ones (hover/keyboard on desktop, tap on touch screens;
  short close delay so the mouse can reach the list)
- Used on the homepage, the article page and the news overview / tag
  pages (the latter now use the same pills instead of text links)
- Article page: tag row grows when the tags wrap (was a fixed height)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:48:50 +01:00

178 lines
3.1 KiB
SCSS
Vendored

@use "../abstracts/mixin" as *;
@use "../abstracts/variables" as *;
%sentence {
font-size: 12px;
font-style: italic;
line-height: 1.3;
text-align: right;
color: $text-description-color;
display: block;
width: 100%;
span {
padding: 0 5px;
}
}
.post_container {
@include container;
@media (min-width: 768px) {
padding: 32px 0;
}
> .col-8 {
width: CALC(66.66666667% - 20px);
margin-right: 20px;
}
&:not(.breadcrumb_no_border) .bread_crumb {
border-bottom: 1px solid #efefef;
padding-bottom: 18px;
}
.post_body {
width: 100%;
font-family: var(--font-base);
font-size: 15px;
line-height: 1.6;
color: $text-dark-color;
h3 {
font-size: 15px;
}
.sentence {
@extend %sentence
}
@at-root .box.featured .sentence {
@extend %sentence;
color: $gold;
}
div.text {
margin-bottom: 20px;
}
blockquote {
margin-left: -30px;
padding: 15px 40px;
font-family: var(--font-base);
font-size: 30px;
line-height: 1.27;
font-weight: bold;
color: $primary;
text-transform: uppercase;
background-color: $gold;
.author {
font-family: var(--font-base);
font-size: 12px;
font-style: normal;
line-height: 3.17;
color: $text-description-color;
text-transform: none;
}
}
.post_details {
@include reset-list;
li {
float: left;
margin-right: 10px;
@include font_small;
color: $dark;
a {
color: $dark;
text-decoration: none;
}
i {
margin-right: 4px;
color: $gold;
}
}
}
.post_image img, video, .mejs__video {
width: CALC(100% + 53px);
margin: 0 -23px 0 -30px;
}
.mejs__video, video {
width: CALC(100% + 53px) !important;
}
}
.info {
padding: 1em;
color: #3E3E3E;
line-height: 150%;
border-radius: 10px;
margin: 1em;
h2 {
text-overflow: ellipsis;
overflow: hidden;
margin-top: 3px;
clear: both;
}
a {
color: #ED1C24;
}
}
}
%post-tags-link {
display: block;
min-width: 4rem;
padding: 6px 15px 7px;
border-radius: 10px;
background-color: var(--brand-primary);
font-family: var(--font-base);
font-size: 10px;
font-weight: bold;
text-align: center;
color: $text-inverted-color;
text-decoration: none;
text-transform: uppercase;
}
.post_tags {
@include reset-list;
// Grows with the tags when they wrap onto a second line (was a fixed 31px
// height with floats); the '+N' list (components/_tags.scss) opens below it
position: relative;
display: flex;
flex-wrap: wrap;
gap: 6px 10px;
margin: 20px 0;
a {
@extend %post-tags-link;
background-color: $gold;
color: $dark;
}
li {
margin: 0;
a {
@extend %post-tags-link
}
@at-root #schedule .onair {
@extend %post-tags-link
}
}
}
.share_buttons .btn {
width: 100%;
max-width: 75vw;
}
.post_body .text img {
max-width: 100%;
height: auto;
}