106 lines
No EOL
2 KiB
SCSS
106 lines
No EOL
2 KiB
SCSS
.card--folder{
|
|
position: relative;
|
|
max-width: var(--max-w-cards);
|
|
border: var(--border-light);
|
|
padding: var(--padding-inner);
|
|
@include grid-content();
|
|
@include figure-16-9();
|
|
|
|
|
|
container-type: inline-size;
|
|
container-name: cardfolder;
|
|
|
|
.content{
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
|
|
.title{
|
|
flex-grow: 1;
|
|
font-weight: normal;
|
|
font-size: var(--fs-medium);
|
|
margin-bottom: 0.25em;
|
|
text-wrap: balance;
|
|
max-width: 42ch;
|
|
text-transform: uppercase;
|
|
padding-top: calc(var(--spacing)*0.25);
|
|
a{ text-decoration: none;}
|
|
|
|
@media #{$small}{
|
|
font-size: var(--fs-normal);
|
|
}
|
|
|
|
}
|
|
|
|
.short{
|
|
@include clamp(3);
|
|
}
|
|
|
|
ul{
|
|
display: flex;
|
|
list-style: none;
|
|
gap: 1ch;
|
|
color: var(--color-txt-light);
|
|
padding-top: calc(var(--spacing)*0.5);
|
|
|
|
li + li{
|
|
&::before{
|
|
content: "|";
|
|
padding-right: 1ch;
|
|
}
|
|
}
|
|
@media #{$small}{
|
|
font-size: var(--fs-small);
|
|
}
|
|
}
|
|
|
|
.btn--go-to{
|
|
position: absolute;
|
|
right: calc(var(--padding-inner)*1);
|
|
bottom: var(--padding-inner);
|
|
}
|
|
|
|
@include btn--go-to();
|
|
|
|
&:hover{
|
|
background-color: var(--grey-950);
|
|
border-color: var(--color-txt);
|
|
}
|
|
|
|
|
|
|
|
|
|
@media #{$x-small}{
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: calc(var(--padding-inner)*0.5);
|
|
background-color: yellow;
|
|
// .short{ display: none; }
|
|
|
|
.content{ display: contents;}
|
|
|
|
.title{ order: 1; }
|
|
figure{ order: 2; }
|
|
.short{ order: 3; }
|
|
ul{ order: 4; }
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@container cardfolder (width < 520px) {
|
|
figure{
|
|
aspect-ratio: inherit;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.short, ul{
|
|
font-size: var(--fs-small);
|
|
|
|
}
|
|
} |