Files
hugo-theme-stack/assets/scss/partials/layout/list.scss
T

78 lines
1.8 KiB
SCSS
Raw Normal View History

2020-12-22 21:14:50 +01:00
.section-card {
@include card-style;
padding: var(--small-card-padding);
2020-08-22 13:20:08 +02:00
display: flex;
align-items: center;
gap: var(--spacing-lg);
2020-08-22 13:20:08 +02:00
--separation: 15px;
2020-12-22 21:14:50 +01:00
.section-term {
2020-08-22 13:20:08 +02:00
font-size: 2.2rem;
margin: 0;
color: var(--card-text-color-main);
}
2020-12-22 21:14:50 +01:00
.section-description {
2020-08-22 13:20:08 +02:00
font-weight: normal;
color: var(--card-text-color-secondary);
font-size: 1.6rem;
2020-08-22 13:20:08 +02:00
margin: 0;
}
2020-12-22 21:14:50 +01:00
.section-details {
2020-08-22 13:20:08 +02:00
flex-grow: 1;
2022-03-03 23:11:19 +01:00
display: flex;
flex-direction: column;
gap: 8px;
2020-08-22 13:20:08 +02:00
}
2020-12-22 21:14:50 +01:00
.section-image {
2020-08-22 13:20:08 +02:00
img {
width: 60px;
height: 60px;
object-fit: cover;
2020-08-22 13:20:08 +02:00
}
}
2020-12-22 21:14:50 +01:00
.section-count {
2020-08-22 13:20:08 +02:00
color: var(--card-text-color-tertiary);
font-size: 1.4rem;
margin: 0;
2020-09-03 23:32:28 +02:00
font-weight: bold;
2020-08-22 13:20:08 +02:00
text-transform: uppercase;
}
}
2020-12-22 21:14:50 +01:00
.subsection-list {
--shadow-overlap-x: calc(var(--shadow-l2-blur) + 4px);
--shadow-overlap-y: calc(var(--shadow-l2-blur) + var(--shadow-l2-y) + 4px);
2020-12-22 21:14:50 +01:00
overflow-x: auto;
/// These values are computed from the shadow of the article-list--tile (which uses shadow-l1 and shadow-l2)
/// so that the shadow is not cut off
margin-left: calc(var(--shadow-overlap-x) * -1);
margin-right: calc(var(--shadow-overlap-x) * -1);
margin-bottom: calc(var(--shadow-overlap-y) * -1);
2020-12-22 21:14:50 +01:00
.article-list--tile {
display: flex;
padding: var(--spacing-xs) var(--shadow-overlap-x) var(--shadow-overlap-y) var(--shadow-overlap-x);
width: max-content;
gap: var(--spacing-lg);
2020-12-22 21:14:50 +01:00
article {
flex-shrink: 0;
.article-title {
margin: 0;
font-size: 1.8rem;
}
.article-details {
padding: var(--spacing-lg);
2020-12-22 21:14:50 +01:00
}
}
}
}