website/_src/assets/css/default/gallery.css

73 lines
1.1 KiB
CSS
Raw Normal View History

2025-06-16 16:31:53 +03:00
:root {
--thumb: 16rem;
2025-06-11 09:36:54 +03:00
}
#artworks {
& ul {
display: grid;
2025-06-16 16:31:53 +03:00
grid-template-columns: repeat(
auto-fill,
minmax(min(var(--thumb), 100%), 1fr)
);
2025-06-11 09:36:54 +03:00
padding: 0;
margin: 0;
2025-06-16 16:31:53 +03:00
gap: var(--pad-l);
2025-06-11 09:36:54 +03:00
}
& h2 {
2025-06-16 16:31:53 +03:00
margin: var(--pad-xl) 0;
font-size: var(--pad-xl);
2025-06-11 09:36:54 +03:00
&:first-of-type {
margin-top: 0;
}
}
& a {
display: block;
text-decoration: unset;
& figure {
margin: 0;
2025-06-16 16:31:53 +03:00
padding: var(--pad-sm);
2025-06-11 09:36:54 +03:00
border-width: 2px;
border-style: solid;
& img {
display: flex;
width: 100%;
2025-06-16 16:31:53 +03:00
height: var(--thumb);
2025-06-11 09:36:54 +03:00
border-bottom: unset;
object-fit: contain;
}
& figcaption {
font-family: Urbanist, sans-serif;
2025-06-16 16:31:53 +03:00
font-size: var(--pad-lm);
2025-06-11 09:36:54 +03:00
}
}
}
}
2025-06-16 16:31:53 +03:00
#art {
display: flex;
flex-direction: column;
h3 {
font-family: "Urbanist", sans-serif;
}
2025-06-16 16:31:53 +03:00
& section:has(a:nth-child(n + 2)) {
display: flex;
flex-direction: row;
gap: var(--pad-l);
}
& section {
margin: var(--pad-l) 0;
2025-06-11 09:36:54 +03:00
& a {
display: flex;
width: calc(var(--post) - var(--view));
flex-direction: column;
}
2025-06-16 16:31:53 +03:00
}
& time {
display: flex;
font-weight: bold;
}
}