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

99 lines
1.5 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
}
2025-08-10 17:05:40 +03:00
#gallery {
& time {
display: flex;
align-self: center;
}
}
2025-06-11 09:36:54 +03:00
#artworks {
2025-08-10 17:05:40 +03:00
& p {
font-size: 1.2rem;
}
2025-06-11 09:36:54 +03:00
& 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-08-10 17:05:40 +03:00
& a {
display: block;
}
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;
}
}
2025-08-10 17:05:40 +03:00
& figure {
margin: 0;
padding: var(--pad-sm);
border-width: 2px;
border-style: solid;
& img {
display: flex;
width: 100%;
height: var(--thumb);
border-bottom: unset;
object-fit: contain;
}
2025-06-11 09:36:54 +03:00
2025-08-10 17:05:40 +03:00
& figcaption {
font-family: Urbanist, sans-serif;
font-size: var(--pad-lm);
display: flex;
align-items: baseline;
}
& .count {
margin: auto 0 0 auto;
2025-06-11 09:36:54 +03:00
}
}
}
2025-06-16 16:31:53 +03:00
#art {
display: flex;
flex-direction: column;
2025-08-10 17:05:40 +03:00
width: fit-content;
2025-06-16 16:31:53 +03:00
h3 {
font-family: "Urbanist", sans-serif;
2025-08-10 17:05:40 +03:00
display: flex;
gap: var(--pad-sm);
}
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 {
2025-06-11 09:36:54 +03:00
& a {
display: flex;
2025-08-10 17:05:40 +03:00
width: calc(var(--post) - var(--view) * 1.2);
flex-direction: column;
}
2025-06-16 16:31:53 +03:00
}
}
2025-06-25 13:08:50 +03:00
@media screen and (max-width: 1400px) {
#art section:has(a:nth-child(n + 2)) {
flex-direction: column;
& a {
width: 100%;
}
}
}
@media screen and (max-width: 920px) {
#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
}