index-main/assets/css/components/_card-article-small.scss

140 lines
2.6 KiB
SCSS
Raw Normal View History

2026-02-18 16:40:20 +01:00
.card--package,
2026-02-07 15:59:34 +01:00
.card--article-small {
2026-01-06 17:14:32 +01:00
@include grid-content();
2026-02-07 15:59:34 +01:00
2026-02-18 16:40:20 +01:00
margin-bottom: calc(var(--spacing)*0.75);
border: var(--border-light);
2026-02-07 15:59:34 +01:00
&:first-of-type {
border-top: var(--border-light);
}
2026-02-07 15:59:34 +01:00
2026-02-18 16:40:20 +01:00
// &.has-link {
// @include hover-card-line();
// }
2026-01-29 20:57:17 +01:00
2026-01-25 22:25:08 +01:00
@include figure-16-9();
2026-01-29 20:57:17 +01:00
2026-02-07 15:59:34 +01:00
figure {
@media #{$x-small} {
margin-left: 0px;
}
2026-01-29 20:57:17 +01:00
}
2026-02-18 16:40:20 +01:00
.type {
display: inline-flex;
flex-grow: 0;
height: calc(var(--h-block)*0.75);
border-radius: var(--radius-small);
border: var(--border-medium);
align-items: center;
padding: 5px 1ch 0 1ch;
font-size: var(--fs-xsmall);
text-transform: uppercase;
font-weight: 500;
color: var(--color-txt-light);
margin-bottom: calc(var(--spacing)*0.75);
}
2026-02-03 08:24:43 +01:00
2026-02-07 15:59:34 +01:00
.content {
2026-01-06 15:43:31 +01:00
display: flex;
flex-direction: column;
2026-02-18 16:40:20 +01:00
align-items: flex-start;
justify-content: flex-start;
padding-top: calc(var(--padding-inner)*2);
padding-bottom: calc(var(--padding-inner)*2);
padding-left: calc(var(--padding-inner)*1.5);
2026-01-25 22:25:08 +01:00
padding-right: calc(var(--padding-inner)*3);
2026-01-06 15:43:31 +01:00
}
2026-02-07 15:59:34 +01:00
.title {
2026-02-06 15:10:27 +01:00
font-weight: 500;
2026-02-18 16:40:20 +01:00
font-size: var(--fs-normal);
2026-02-07 15:59:34 +01:00
margin-bottom: 0.25em;
2026-02-03 08:24:43 +01:00
text-wrap: balance;
max-width: 42ch;
2026-01-27 22:24:47 +01:00
text-transform: uppercase;
2026-02-07 15:59:34 +01:00
line-height: var(--leading-title);
2026-02-18 16:40:20 +01:00
flex-grow: 2;
2026-02-07 15:59:34 +01:00
a {
text-decoration: none;
}
2026-01-06 15:43:31 +01:00
}
2026-02-18 16:40:20 +01:00
.date,
.details {
// flex-grow: 2;
2026-01-06 15:43:31 +01:00
color: var(--color-txt-light);
2026-02-18 16:40:20 +01:00
font-size: var(--fs-small);
}
.details {
list-style: none;
li {
display: inline;
}
li:not(:last-of-type)::after {
content: "|";
padding-left: 1ch;
padding-right: 0.5ch;
}
2026-01-06 15:43:31 +01:00
}
2026-01-29 20:57:17 +01:00
2026-02-18 16:40:20 +01:00
2026-02-07 15:59:34 +01:00
.description {
2026-02-18 16:40:20 +01:00
font-size: var(--fs-small);
2026-02-07 15:59:34 +01:00
@include clamp(2);
2026-02-18 16:40:20 +01:00
// margin-bottom: calc(var(--spacing)*0.75);
2026-02-03 08:24:43 +01:00
margin-top: calc(var(--spacing)*0.25);
2026-02-18 16:40:20 +01:00
display: none;
2026-01-06 15:43:31 +01:00
}
2026-02-07 15:59:34 +01:00
2026-01-06 15:43:31 +01:00
2026-01-25 22:25:08 +01:00
@include btn--go-to();
2026-01-28 01:15:51 +01:00
@include hover-card-line();
2026-01-25 22:25:08 +01:00
2026-02-07 15:59:34 +01:00
.keywords {
display: none;
}
@media #{$medium} {
.title {
2026-01-06 15:43:31 +01:00
font-size: var(--fs-normal);
margin-bottom: 0;
}
}
2026-02-07 15:59:34 +01:00
@media #{$x-small} {
2026-01-29 20:57:17 +01:00
2026-02-07 15:59:34 +01:00
.content {
display: contents;
2026-01-06 15:43:31 +01:00
}
2026-02-07 15:59:34 +01:00
.title {
2026-01-06 15:43:31 +01:00
font-size: var(--fs-small);
2026-02-07 15:59:34 +01:00
padding-top: calc(var(--spacing)*0.25);
}
figure {
grid-row: 1/3;
2026-01-06 15:43:31 +01:00
}
2026-01-29 20:57:17 +01:00
2026-02-07 15:59:34 +01:00
.description {
grid-column: span 2;
2026-01-06 15:43:31 +01:00
}
2026-02-07 15:59:34 +01:00
2026-01-06 15:43:31 +01:00
}
2026-02-07 15:59:34 +01:00
2026-01-06 15:43:31 +01:00
}