mostly good for release

This commit is contained in:
sundae 2025-06-25 13:08:50 +03:00
parent 8fc7eff67b
commit b626e6265e
No known key found for this signature in database
32 changed files with 425 additions and 169 deletions

View file

@ -37,10 +37,6 @@ article > [aria-label="Addendum"] {
border-image-slice: 1;
border-image-width: 2px;
border-image-outset: 4px;
& > p:first-child {
display: flex;
text-align: center;
}
}
article > [aria-label="Postscript"] {
@ -81,8 +77,11 @@ article > [aria-label="Postscript"] {
margin-bottom: var(--pad-l);
}
}
& a {
background: unset;
}
& p:has(img:nth-child(n + 2)) {
& p a:has(img:nth-child(n + 2)) {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 40%), 1fr));
align-items: center;
@ -95,7 +94,7 @@ article > [aria-label="Postscript"] {
min-height: fit-content;
max-height: var(--image);
}
& img:not(p > img) {
& img:not(p a > img) {
display: flex;
box-sizing: content-box;
margin: 0 0 0 auto;
@ -139,3 +138,25 @@ article > [aria-label="Postscript"] {
}
}
}
@media screen and (max-width: 920px) {
article aside {
float: unset;
width: fit-content;
}
article section {
flex-direction: column;
}
#posts {
max-width: unset;
width: auto;
}
article > [aria-label="Postscript"] {
& p {
margin-right: var(--pad-sm);
& > a img {
height: auto;
max-height: var(--view);
}
}
}
}

View file

@ -1,6 +1,5 @@
@import url("./variables.css");
@import url("./nav.css");
@import url("./mobile.css");
:root {
--view: 18rem;
}
@ -10,7 +9,9 @@ body {
font-size: 100%;
margin: 0;
padding: 0;
& a, button {
& a,
button {
cursor: pointer;
&:is(:hover, :focus) {
outline: 0;
}
@ -64,7 +65,9 @@ article {
& p {
word-wrap: break-word;
padding: var(--pad-sm);
}
& p:not(:last-child, [aria-label]) {
padding-bottom: var(--pad-sm);
}
& code:not(pre *) {
@ -143,3 +146,58 @@ a:has(img[src*="/assets/img/button"]):is(:hover, :focus) img {
transform: translateY(-4px);
transition: var(--trans);
}
@media screen and (max-width: 920px) {
body > nav {
position: initial;
width: 100%;
}
main {
padding: var(--pad-l);
}
main > section {
flex-direction: column;
}
main > section {
width: initial;
}
article {
max-width: initial;
width: auto;
}
body > nav::before {
content: none;
}
body > nav {
flex-direction: row;
border: 0;
width: 100%;
& details {
height: fit-content;
width: 100%;
}
}
body::after {
content: "";
}
}
@media screen and (max-width: 450px) {
main {
padding: var(--pad-sm);
}
article {
padding: var(--pad-l);
border: 0;
}
body > nav {
flex-direction: column;
justify-content: start;
& details[open] {
width: 100%;
}
}
}

View file

@ -70,3 +70,19 @@
font-weight: bold;
}
}
@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;
}
}

View file

@ -15,6 +15,20 @@
color: transparent;
}
}
ul:not([role]) li {
&::before {
content: "";
width: 20px;
height: 20px;
position: absolute;
mask-image: var(--paw);
mask-size: contain;
margin: 0.4rem 0 0 -2rem;
}
&::marker {
content: none;
}
}
#pkmn {
display: flex;
flex-wrap: wrap;
@ -65,14 +79,19 @@ body [id]:not(:nth-child(1)) ul {
#pansexual {
background-image: linear-gradient(#f09 33.33%, #ffd700 0 66.66%, #00bfff 0);
}
#bio {
& p,
ul {
#bio,
#interests {
& ul {
font-family: "Urbanist", sans-serif;
font-size: 1.3rem;
}
& ul {
margin: 0;
display: flex;
flex-direction: column;
}
& p {
font-size: 1.1rem;
font-family: "Rubik", sans-serif;
font-weight: bold;
}
& span[id] {
background-clip: text;
@ -88,13 +107,12 @@ body [id]:not(:nth-child(1)) ul {
& ul {
margin: 0;
padding: var(--pad-l) 0 0 0;
justify-content: start;
}
& li {
display: flex;
& a {
padding: var(--pad-sm);
background-color: transparent;
background: transparent;
text-decoration: none;
}
& span {
@ -121,6 +139,7 @@ body [id]:not(:nth-child(1)) ul {
display: flex;
padding: inherit;
margin: 0;
background-color: unset;
}
}
#collection div:has(img)::after {
@ -133,3 +152,15 @@ body [id]:not(:nth-child(1)) ul {
margin: -1.5rem 0 0 -0.5rem;
pointer-events: none;
}
@media screen and (max-width: 920px) {
#collection {
display: flex;
flex-direction: column;
& ul {
justify-content: center;
}
& li a {
padding: 0;
}
}
}

View file

@ -1,99 +0,0 @@
@media screen and (max-width: 1400px) {
/* gallery.css */
#art section:has(a:nth-child(n + 2)) {
flex-direction: column !important;
& a {
width: 100%;
}
}
}
@media screen and (max-width: 920px) {
/* blog.css */
article aside {
float: none !important;
width: fit-content !important;
}
article section {
flex-direction: column !important;
}
#posts {
max-width: unset !important;
width: auto !important;
}
[aria-label="Postscript"] {
& p {
margin-right: unset !important;
& > img {
height: auto !important;
max-height: var(--view) !important;
}
}
}
/* default.css */
body > nav {
position: initial !important;
width: 100% !important;
}
main {
padding: var(--pad-l) !important;
}
main > section {
flex-direction: column !important;
}
main > section {
width: initial !important;
}
article {
max-width: initial !important;
width: auto !important;
}
body > nav::before {
content: none !important;
}
body > nav {
flex-direction: row !important;
border: 0 !important;
width: 100% !important;
& details {
height: fit-content !important;
width: 100% !important;
}
}
body::after {
content: "" !important;
}
/* gallery.css */
#art a:has(img) {
width: 100% !important
}
/* home.css */
#collection {
display: flex !important;
flex-direction: column !important;
& ul {
justify-content: center !important;
}
& li a {
padding: 0 !important;
}
}
}
@media screen and (max-width: 450px) {
article {
padding: var(--pad-sm) !important;
background-color: unset !important;
border: 0 !important;
}
body > nav {
flex-direction: column !important;
justify-content: start !important;
& details[open] {
width: 100% !important;
}
}
}

View file

@ -83,8 +83,11 @@ body {
font-family: "Rubik", sans-serif;
& > nav {
gap: var(--pad-m);
border-right-width: 1px;
border-right-style: solid;
& a,
button {
align-items: center;
border-style: solid;
border-width: 2px;
border-radius: var(--round);

View file

@ -65,8 +65,8 @@
body {
background-color: var(--secondary-100);
color: var(--secondary-light-300);
& a:not(article p *, #badges *, [aria-current]), button {
/* this is cursed */
& :is(a, button) {
color: var(--secondary-light-400);
border-color: var(--secondary-600);
background-color: var(--secondary-300);
@ -77,7 +77,7 @@
}
}
& > nav {
border-right: 1px solid var(--secondary);
border-color: var(--secondary);
&::before,
::after {
background-color: var(--secondary);
@ -113,6 +113,9 @@
}
}
/* home.css */
ul:not([role]) li::before {
background-color: var(--secondary-light-300);
}
#collection {
& a:is(:hover, :focus) {
box-shadow: 0 0 0 1px currentColor;

View file

@ -65,7 +65,8 @@
body {
background-color: var(--primary-100);
color: var(--primary-dark-300);
& a:not(article p *, #badges *, [aria-current]), button {
/* this is cursed */
& :is(a, button) {
color: var(--primary-dark-400);
border-color: var(--primary-600);
background-color: var(--primary-400);
@ -76,7 +77,7 @@
}
}
& > nav {
border-right: 1px solid var(--primary);
border-color: var(--primary);
&::before,
&::after {
background-color: var(--primary);
@ -111,6 +112,9 @@
}
}
/* home.css */
ul:not([role]) li::before {
background-color: var(--primary-dark-300);
}
#collection {
& a:is(:hover, :focus) {
box-shadow: 0 0 0 1px currentColor;

View file

@ -59,3 +59,8 @@
font-family: Urbanist;
src: url("/assets/fonts/Urbanist-Bold.ttf") format("truetype");
}
@font-face {
font-family: Pangolin;
src: url("/assets/fonts/Pangolin-Regular.ttf") format("truetype");
}