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

60 lines
917 B
CSS
Raw Normal View History

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)
);
gap: var(--pad-l);
2025-08-10 17:05:40 +03:00
& a {
display: block;
}
2025-06-11 09:36:54 +03:00
}
2025-08-10 17:05:40 +03:00
& figure {
margin: 0;
border-style: solid;
& img {
height: var(--thumb);
object-fit: cover;
2025-08-10 17:05:40 +03:00
}
& figcaption {
display: inline-flex;
2025-10-14 19:40:29 +03:00
font-size: 1.4rem;
2025-08-10 17:05:40 +03:00
}
& .count {
margin: auto 0 0 auto;
2025-06-11 09:36:54 +03:00
}
}
}
2025-06-16 16:31:53 +03:00
#art {
2026-03-06 11:03:17 +02:00
& p {
max-width: var(--post);
}
2025-06-16 16:31:53 +03:00
& section:has(a:nth-child(n + 2)) {
display: flex;
flex-direction: row;
gap: var(--pad-l);
}
2025-09-09 18:12:57 +03:00
& section:has(a:nth-child(n + 3)) {
flex-direction: column;
}
2025-06-16 16:31:53 +03:00
& section {
2025-06-11 09:36:54 +03:00
& a {
display: flex;
2025-09-09 18:12:57 +03:00
width: calc(var(--post) - var(--view));
flex-direction: column;
}
2025-06-16 16:31:53 +03:00
}
}
@media screen and (max-width: 916px) {
2026-03-06 11:03:17 +02:00
#art p {
max-width: auto;
}
2025-06-25 13:08:50 +03:00
#art a:has(img) {
width: auto;
}
#art section:has(a:nth-child(n + 2)) {
flex-direction: column;
}
2025-08-10 17:05:40 +03:00
}