arimelody-web/public/style/main.css

227 lines
4.4 KiB
CSS

@import url("/style/colours.css");
@import url("/style/header.css");
@import url("/style/footer.css");
@import url("/style/prideflag.css");
@import url("/style/cursor.css");
@import url("/font/inter/inter.css");
@font-face {
font-family: "Monaspace Argon";
src: url("/font/monaspace-argon/MonaspaceArgonVarVF[wght,wdth,slnt].woff2") format("woff2-variations");
font-weight: 125 950;
font-stretch: 75% 125%;
font-style: oblique 0deg 20deg;
}
body {
margin: 4em 0 0 0;
padding: 0;
background: var(--background);
color: var(--on-background);
font-family: "Lora", serif;
font-size: 18px;
scroll-behavior: smooth;
transition: color .2s, background-color .2s;
}
.fancyheader {
width: 100vw;
margin: 5em 0 2em 0;
background-color: var(--background);
color: var(--on-background);
background-image: radial-gradient(
circle at 0% 0%,
color-mix(in srgb, var(--primary-dark), transparent 75%),
transparent
);
.fancyheader-inner {
width: 900px;
margin: 0 auto;
padding: 2em 0;
gap: 1em;
}
span {
font-family: "Monaspace Argon", monospace;
}
}
@media screen and (max-width: 980px) {
.fancyheader .fancyheader-inner {
width: calc(100% - 4em);
padding: 2em;
}
}
@media screen and (max-width: 540px) {
.fancyheader .fancyheader-inner {
flex-direction: column;
}
}
h1 {
margin: 0;
font-family: "Inter Display", "Inter", sans-serif;
font-size: 4em;
}
.subheader {
height: 2em;
display: flex;
flex-direction: row;
gap: 2px;
align-items: center;
.swatch {
--colour: #f0f;
width: .5em;
height: .5em;
background-color: var(--colour);
box-shadow: 1px 1px 0 #000;
&.primary { --colour: var(--primary-dark); }
&.secondary { --colour: var(--secondary-dark); }
&.tertiary { --colour: var(--tertiary-dark); }
&:last-of-type {
margin-right: .5em;
}
}
}
a {
color: var(--links);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a.link-button {
padding: .3em .5em;
border: 1px solid var(--links);
color: var(--links);
border-radius: 2px;
background-color: transparent;
transition-property: color, border-color, background-color;
transition-duration: .2s;
animation-delay: 0s;
animation: list-item-fadein .2s forwards;
opacity: 0;
}
a.link-button:hover {
color: #eee;
border-color: #eee;
background-color: var(--links) !important;
text-decoration: none;
box-shadow: 0 0 1em var(--links);
}
a img.icon {
height: .8em;
}
small {
font-size: 1em;
color: #aaa;
}
span.newchar {
animation: newchar 0.25s;
}
a#backtotop {
position: fixed;
left: 50%;
transform: translateX(-50%);
padding: .5em .8em;
display: block;
border-radius: 2px;
border: 1px solid transparent;
text-decoration: none;
opacity: .5;
transition-property: opacity, transform, border-color, background-color, color;
transition-duration: .2s;
}
a#backtotop.active {
top: 4rem;
}
a#backtotop:hover {
color: #eee;
border-color: #eee;
background-color: var(--links);
box-shadow: 0 0 1em var(--links);
opacity: 1;
}
@keyframes newchar {
from {
background: #fff8;
}
}
@keyframes list-item-fadein {
from {
opacity: 1;
background: #fff8;
}
to {
opacity: 1;
background: transparent;
}
}
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: none;
background-image: linear-gradient(180deg, rgba(0,0,0,0) 15%, rgb(0, 0, 0) 40%, rgb(0, 0, 0) 60%, rgba(0,0,0,0) 85%);
background-size: 100vw .2em;
background-repeat: repeat;
opacity: .5;
pointer-events: none;
mix-blend-mode: overlay;
}
@media screen and (max-width: 780px) {
body {
font-size: 14px;
}
}
@media (prefers-color-scheme: light) {
a.link-button:hover {
box-shadow: none;
}
@keyframes list-item-fadein {
from {
opacity: 1;
background: var(--links);
}
to {
opacity: 1;
background: transparent;
}
}
#header-links-toggle svg {
-webkit-filter: invert(.9);
filter: invert(.9);
}
}