@import url("./variables.css"); @import url("./nav.css"); @import url("./motion.css"); :root { --view: 18rem; } /* i hate default styles >:( and also chrome */ h1, h2, h3, h4, h5, h6 { font-family: "Rubik", sans-serif; display: block; font-size: 2rem; margin-block-start: 0; margin-block-end: 0; margin-inline-start: 0; margin-inline-end: 0; font-weight: bold; } body { font-family: "Rubik", sans-serif; font-size: 100%; margin: 0; padding: 0; & a, button { cursor: pointer; transition: background-color var(--trans); &:is(:hover, :focus) { outline: 0; } } } svg { fill: currentColor; stroke: currentColor; stroke-width: 0; } header { padding-top: var(--pad-xl); padding-left: calc(var(--view) + var(--pad-xl)); & svg { width: 2rem; height: 2rem; margin-right: var(--pad-m); } & h1 { display: inline-flex; } } footer { overflow-y: hidden; word-break: break-all; flex-wrap: wrap; font-family: "Nosey Rodent", sans-serif; display: flex; margin-left: var(--view); width: calc(100% - var(--view)); justify-content: center; position: sticky; inset-block: 100%; text-align: center; & span { background-image: var(--transgender); padding: 0 var(--pad-sm); } } main { padding: var(--pad-xl); padding-left: calc(var(--view) + var(--pad-xl)); overflow: hidden; } details { cursor: pointer; display: flex; flex-direction: column; & summary::marker { content: none; } } .header-anchor { display: inline-block; transition: color var(--trans), background-color var(--trans); height: max-content; padding: 0 var(--pad-m); margin: 0 0 0 calc(var(--pad-xl) * -1); border-radius: 0 var(--round) var(--round) 0; } article { border-style: solid; border-width: 2px; border-radius: var(--round); height: max-content; padding: var(--pad-xl); & a:has(figure) { border-radius: var(--round); & figure { border-color: inherit; } } & s { text-decoration-style: line-through; text-decoration-thickness: 0.1em; } & u { text-decoration-style: double; text-decoration-thickness: 2px; } & em { font-weight: 200; } & p { word-wrap: break-word; } & p:not(:last-child, [aria-label]) { padding-bottom: var(--pad-sm); } & code:not(pre *) { padding: 0 var(--pad-sm); } & pre { display: flex; width: auto; padding: var(--pad-m); white-space: pre-wrap; word-break: break-word; border-style: solid; border-width: 2px; transition: background-color var(--trans), border-color var(--trans); } & pre, code:not(pre *) { border-radius: var(--round); font-weight: bold; } & figure { margin: 0; border-style: solid; border-width: 2px; padding: var(--pad-m); border-radius: inherit; display: flex; flex-direction: column; } & ul:not([role="list"]):is(#art *) { padding: 0; margin: 0 0 var(--pad-sm) var(--pad-xl); } & li:is(#art *, #bio *) { display: flex; &::marker { content: none; } &::before { content: ""; width: 20px; height: 20px; position: absolute; mask-image: var(--paw); mask-size: contain; mask-repeat: no-repeat; margin: 0 0 0 calc(var(--pad-xl) * -1); } } & section { & a:has(figure) { height: max-content; } & figure img { border-radius: inherit; } & figcaption { font-weight: normal; font-style: italic; padding-top: var(--pad-sm); } } & > :first-child > code { display: flex; width: fit-content; margin: var(--pad-sm) 0; } } :is(main article, main section):not(:last-child) { margin-bottom: var(--pad-m); } img[src*="/assets/img/flag/"] { height: 32px; border-radius: 2px; &:first-child { margin-left: var(--pad-m); } &:not(:last-child) { margin-right: var(--pad-m); } } span:has(img[src*="https://www.google.com/s2/favicons"]) img { position: relative; top: 2px; left: 2px; margin-right: 4px; } @media screen and (max-width: 920px) { body::after { content: ""; } footer { width: 100%; margin: 0; } header { padding-left: 0; padding-top: var(--pad-m); text-align: center; } main { padding: var(--pad-l); } main > section { flex-direction: column; } main > section { width: initial; } article { max-width: initial; width: auto; } }