wip figures and images

This commit is contained in:
sundae 2025-06-16 16:31:53 +03:00
parent ea235120f8
commit c6bac45ecf
No known key found for this signature in database
61 changed files with 1491 additions and 1315 deletions

View file

@ -1,71 +1,21 @@
@media (prefers-color-scheme: light) {
#artworks {
& a {
transition: color var(--trans), background-color var(--trans),
border-color var(--trans);
& figure {
color: var(--primary-dark-400);
border-color: var(--primary-600);
background-color: var(--primary-300);
& time {
color: var(--primary-dark-500);
}
& figcaption {
color: var(--primary-dark-500);
}
&:is(:hover, :focus) {
border-color: currentColor;
background-color: var(--primary-500);
}
}
}
}
:root {
--thumb: 16rem;
}
@media (prefers-color-scheme: dark) {
#artworks {
& a {
transition: color var(--trans), background-color var(--trans),
border-color var(--trans);
& figure {
color: var(--secondary-light-400);
border-color: var(--secondary-600);
background-color: var(--secondary-300);
& time {
color: var(--secondary-light-500);
}
& figcaption {
color: var(--secondary-light-500);
}
&:is(:hover, :focus) {
border-color: currentColor;
background-color: var(--secondary-500);
}
}
}
}
}
#artworks {
& ul {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
grid-template-columns: repeat(
auto-fill,
minmax(min(var(--thumb), 100%), 1fr)
);
padding: 0;
margin: 0;
gap: 1rem;
gap: var(--pad-l);
}
& h2 {
margin: 2rem 0;
font-size: 2rem;
margin: var(--pad-xl) 0;
font-size: var(--pad-xl);
&:first-of-type {
margin-top: 0;
@ -77,15 +27,14 @@
text-decoration: unset;
& figure {
margin: 0;
padding: 0.4rem;
padding: var(--pad-sm);
border-width: 2px;
border-style: solid;
border-radius: var(--round);
& img {
display: flex;
height: 12rem;
width: 100%;
height: var(--thumb);
border-bottom: unset;
object-fit: contain;
border-radius: inherit;
@ -93,34 +42,49 @@
& figcaption {
font-family: Urbanist, sans-serif;
font-size: 1.2rem;
font-size: var(--pad-lm);
}
}
}
}
#gallery article {
& h3 {
margin-bottom: 1rem;
#art {
display: flex;
flex-direction: column;
h3 {
font-family: "Urbanist", sans-serif;
}
& figure {
& time {
display: flex;
font-weight: bold;
}
& section:has(a:nth-child(n + 2)) {
display: flex;
flex-direction: row;
gap: var(--pad-l);
}
& section {
margin: var(--pad-l) 0;
& a {
width: fit-content;
align-self: center;
& img {
min-height: fit-content;
max-height: 18rem;
object-fit: contain;
border-radius: inherit;
border-style: inherit;
border-width: inherit;
border-color: inherit;
}
display: flex;
height: max-content;
text-decoration: none;
flex-direction: column;
}
}
& time {
display: flex;
font-weight: bold;
}
& a {
max-width: var(--post);
width: fit-content;
& figure {
max-width: inherit;
}
}
}
@media screen and (max-width: 920px) {
#art section {
align-self: center;
}
#art section:has(a:nth-child(n + 2)) {
flex-direction: column;
}
}