2026-01-06 15:43:31 +01:00
|
|
|
.card--open-graph{
|
|
|
|
|
|
2026-02-06 15:10:27 +01:00
|
|
|
container-type: inline-size;
|
|
|
|
|
container-name: opengraph;
|
|
|
|
|
|
|
|
|
|
.open-graph__inner{
|
|
|
|
|
@include grid-content();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-01-28 01:03:42 +01:00
|
|
|
|
2026-01-29 20:57:17 +01:00
|
|
|
// border: var(--border-light);
|
|
|
|
|
border: 1px solid var(--grey-600);
|
2026-01-06 15:43:31 +01:00
|
|
|
border-radius: var(--radius-small);
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
figure{
|
|
|
|
|
grid-column: 1;
|
|
|
|
|
grid-row: 1;
|
2026-01-28 01:03:42 +01:00
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
img{
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-06 15:43:31 +01:00
|
|
|
}
|
|
|
|
|
|
2026-01-28 01:03:42 +01:00
|
|
|
// @include figure-16-9();
|
2026-01-06 15:43:31 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@media #{$x-small}{
|
|
|
|
|
figure{
|
|
|
|
|
height: 100%;
|
|
|
|
|
aspect-ratio: auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content{
|
2026-02-06 15:10:27 +01:00
|
|
|
padding-top: calc(var(--padding-inner)*0.75);
|
|
|
|
|
padding-bottom: calc(var(--padding-inner)*0.75);
|
|
|
|
|
|
|
|
|
|
padding-right: var(--padding-inner);
|
2026-01-06 15:43:31 +01:00
|
|
|
grid-column: 2;
|
|
|
|
|
grid-row: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.site-name{
|
|
|
|
|
color: var(--color-txt-light);
|
2026-02-06 15:10:27 +01:00
|
|
|
font-size: var(--fs-xsmall);
|
2026-01-27 18:33:27 +01:00
|
|
|
margin-bottom: 3px;
|
2026-01-06 15:43:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title{
|
2026-02-06 15:10:27 +01:00
|
|
|
font-size: var(--fs-small);
|
|
|
|
|
font-weight: 500;
|
2026-01-27 18:33:27 +01:00
|
|
|
line-height: 1.1;
|
|
|
|
|
padding-top: 2px;
|
2026-01-06 15:43:31 +01:00
|
|
|
display: -webkit-box;
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
|
a{
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.description{
|
2026-02-06 15:10:27 +01:00
|
|
|
font-size: var(--fs-xsmall);
|
2026-01-06 15:43:31 +01:00
|
|
|
display: -webkit-box;
|
|
|
|
|
-webkit-line-clamp: 3;
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover{
|
2026-01-27 18:33:27 +01:00
|
|
|
border-color: var(--color-txt);
|
2026-01-28 01:03:42 +01:00
|
|
|
background-color: var(--grey-950);
|
2026-01-27 18:33:27 +01:00
|
|
|
}
|
|
|
|
|
}
|
2026-01-06 15:43:31 +01:00
|
|
|
|
2026-01-27 18:33:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@container opengraph (width < 500px) {
|
2026-02-06 15:10:27 +01:00
|
|
|
// .card--open-graph{
|
|
|
|
|
// background-color: red!important;
|
2026-01-27 18:33:27 +01:00
|
|
|
|
2026-02-06 15:10:27 +01:00
|
|
|
// .content{
|
|
|
|
|
// padding: calc(var(--padding-inner)*0.5);
|
|
|
|
|
// }
|
2026-01-27 18:33:27 +01:00
|
|
|
|
2026-02-06 15:10:27 +01:00
|
|
|
// figure{
|
|
|
|
|
// aspect-ratio: inherit;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
2026-01-06 15:43:31 +01:00
|
|
|
}
|