pride flag: this is why we test before pushing to prod LOL

This commit is contained in:
ari melody 2024-05-21 14:45:45 +01:00
parent c16cebb9e4
commit edbe0ed3bd
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -2,168 +2,168 @@
--primary: #b7fd49; --primary: #b7fd49;
--secondary: #f8e05b; --secondary: #f8e05b;
--tertiary: #f788fe; --tertiary: #f788fe;
--links: #5eb2ff; --links: #5eb2ff;
} }
.col-primary { .col-primary {
color: var(--primary); color: var(--primary);
} }
.col-secondary { .col-secondary {
color: var(--secondary); color: var(--secondary);
} }
.col-tertiary { .col-tertiary {
color: var(--tertiary); color: var(--tertiary);
} }
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
background: #080808; background: #080808;
color: #eee; color: #eee;
font-family: monospace; font-family: monospace;
font-size: 18px; font-size: 18px;
text-shadow: 0 0 3em; text-shadow: 0 0 3em;
scroll-behavior: smooth; scroll-behavior: smooth;
} }
header { header {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100vw; width: 100vw;
border-bottom: 1px solid #888; border-bottom: 1px solid #888;
background-color: #080808; background-color: #080808;
z-index: 1; z-index: 1;
} }
nav { nav {
width: min(calc(100% - 4rem), 720px); width: min(calc(100% - 4rem), 720px);
height: 3em; height: 3em;
margin: auto; margin: auto;
padding: 0 1em; padding: 0 1em;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: .8em; gap: .8em;
align-items: center; align-items: center;
} }
img#header-icon { img#header-icon {
width: 2em; width: 2em;
height: 2em; height: 2em;
margin: .5em; margin: .5em;
display: block; display: block;
} }
#header-text { #header-text {
width: 11em; width: 11em;
margin-left: -0.5rem; margin-left: -0.5rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
flex-grow: 1; flex-grow: 1;
} }
#header-text h1 { #header-text h1 {
margin: 0; margin: 0;
font-size: 1em; font-size: 1em;
} }
#header-text h2 { #header-text h2 {
height: 1.2em; height: 1.2em;
line-height: 1.2em; line-height: 1.2em;
margin: 0; margin: 0;
font-size: .8em; font-size: .8em;
color: #bbb; color: #bbb;
} }
#header-links-toggle { #header-links-toggle {
width: 3em; width: 3em;
height: 3em; height: 3em;
display: none; display: none;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
transition: background-color .2s; transition: background-color .2s;
} }
#header-links-toggle:hover { #header-links-toggle:hover {
background-color: #fff2; background-color: #fff2;
} }
header ul#header-links { header ul#header-links {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: .5em; gap: .5em;
align-items: center; align-items: center;
} }
header ul li { header ul li {
list-style: none; list-style: none;
} }
.header-link { .header-link {
padding: .2em .5em; padding: .2em .5em;
border: 1px solid var(--links); border: 1px solid var(--links);
color: var(--links); color: var(--links);
border-radius: 2px; border-radius: 2px;
background-color: transparent; background-color: transparent;
transition-property: color, border-color, background-color; transition-property: color, border-color, background-color;
transition-duration: .2s; transition-duration: .2s;
animation-delay: 0s; animation-delay: 0s;
animation: list-item-fadein .2s forwards; animation: list-item-fadein .2s forwards;
opacity: 0; opacity: 0;
} }
.header-link.disabled { .header-link.disabled {
color: #aaa; color: #aaa;
border-color: #aaa; border-color: #aaa;
cursor: default; cursor: default;
text-decoration: none; text-decoration: none;
} }
.header-link:not(.disabled):hover { .header-link:not(.disabled):hover {
color: #eee; color: #eee;
border-color: #eee; border-color: #eee;
background-color: var(--links) !important; background-color: var(--links) !important;
text-decoration: none; text-decoration: none;
} }
.header-btn { .header-btn {
padding: .2em .5em; padding: .2em .5em;
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
color: var(--primary); color: var(--primary);
border: 1px solid var(--primary); border: 1px solid var(--primary);
border-radius: 2px; border-radius: 2px;
background-color: transparent; background-color: transparent;
transition-property: color, border-color, background-color; transition-property: color, border-color, background-color;
transition-duration: .2s; transition-duration: .2s;
animation-delay: 0s; animation-delay: 0s;
animation: list-item-fadein .2s forwards; animation: list-item-fadein .2s forwards;
opacity: 0; opacity: 0;
} }
.header-btn:hover { .header-btn:hover {
color: #111; color: #111;
background-color: var(--primary) !important; background-color: var(--primary) !important;
opacity: 1 !important; opacity: 1 !important;
} }
.header-btn.disabled { .header-btn.disabled {
opacity: .5 !important; opacity: .5 !important;
} }
main { main {
width: min(calc(100% - 4rem), 720px); width: min(calc(100% - 4rem), 720px);
min-height: calc(100vh - 10.3rem); min-height: calc(100vh - 10.3rem);
margin: 5rem auto 2rem auto; margin: 5rem auto 2rem auto;
} }
main h1 { main h1 {
line-height: 3rem; line-height: 3rem;
color: var(--primary); color: var(--primary);
} }
@ -185,8 +185,8 @@ a:hover {
} }
small { small {
font-size: 1em; font-size: 1em;
color: #aaa; color: #aaa;
} }
span.newchar { span.newchar {
@ -225,8 +225,8 @@ div#me_irl::before {
height: 104px; height: 104px;
transform: translate(2px, 2px); transform: translate(2px, 2px);
background-image: linear-gradient(to top right, background-image: linear-gradient(to top right,
var(--primary), var(--primary),
var(--secondary)); var(--secondary));
z-index: -1; z-index: -1;
} }
@ -248,7 +248,7 @@ h3 a,
h4 a, h4 a,
h5 a, h5 a,
h6 a { h6 a {
color: inherit; color: inherit;
} }
h1 a:hover, h1 a:hover,
@ -257,7 +257,7 @@ h3 a:hover,
h4 a:hover, h4 a:hover,
h5 a:hover, h5 a:hover,
h6 a:hover { h6 a:hover {
text-decoration: none; text-decoration: none;
} }
main h1:hover, main h1:hover,
@ -273,128 +273,128 @@ main blockquote:hover {
} }
blockquote { blockquote {
margin: 1rem 0; margin: 1rem 0;
padding: 0 2.5rem; padding: 0 2.5rem;
} }
hr { hr {
text-align: center; text-align: center;
line-height: 0px; line-height: 0px;
border-width: 1px 0 0 0; border-width: 1px 0 0 0;
border-color: #888f; border-color: #888f;
margin: 1.5em 0; margin: 1.5em 0;
overflow: visible; overflow: visible;
} }
ul.links { ul.links {
display: flex; display: flex;
gap: 1em .5em; gap: 1em .5em;
flex-wrap: wrap; flex-wrap: wrap;
} }
ul.links li { ul.links li {
list-style: none; list-style: none;
} }
ul.links li a { ul.links li a {
padding: .2em .5em; padding: .2em .5em;
border: 1px solid var(--links); border: 1px solid var(--links);
color: var(--links); color: var(--links);
border-radius: 2px; border-radius: 2px;
background-color: transparent; background-color: transparent;
transition-property: color, border-color, background-color; transition-property: color, border-color, background-color;
transition-duration: .2s; transition-duration: .2s;
animation-delay: 0s; animation-delay: 0s;
animation: list-item-fadein .2s forwards; animation: list-item-fadein .2s forwards;
opacity: 0; opacity: 0;
} }
ul.links li a:hover { ul.links li a:hover {
color: #eee; color: #eee;
border-color: #eee; border-color: #eee;
background-color: var(--links) !important; background-color: var(--links) !important;
text-decoration: none; text-decoration: none;
box-shadow: 0 0 1em var(--links); box-shadow: 0 0 1em var(--links);
} }
@keyframes list-item-fadein { @keyframes list-item-fadein {
from { from {
opacity: 1; opacity: 1;
background: #fff8; background: #fff8;
} }
to { to {
opacity: 1; opacity: 1;
background: transparent; background: transparent;
} }
} }
div#web-buttons { div#web-buttons {
margin: 2rem 0; margin: 2rem 0;
} }
#web-buttons a { #web-buttons a {
text-decoration: none; text-decoration: none;
} }
#web-buttons img { #web-buttons img {
image-rendering: auto; image-rendering: auto;
image-rendering: crisp-edges; image-rendering: crisp-edges;
image-rendering: pixelated; image-rendering: pixelated;
} }
#web-buttons img:hover { #web-buttons img:hover {
margin: -1px; margin: -1px;
border: 1px solid #eee; border: 1px solid #eee;
transform: translate(-2px, -2px); transform: translate(-2px, -2px);
box-shadow: 1px 1px 0 #eee, 2px 2px 0 #eee; box-shadow: 1px 1px 0 #eee, 2px 2px 0 #eee;
} }
footer { footer {
border-top: 1px solid #888; border-top: 1px solid #888;
} }
#footer { #footer {
width: min(calc(100% - 4rem), 720px); width: min(calc(100% - 4rem), 720px);
margin: auto; margin: auto;
padding: 2rem 0; padding: 2rem 0;
color: #aaa; color: #aaa;
} }
@keyframes overlay-flicker { @keyframes overlay-flicker {
from { from {
opacity: .5; opacity: .5;
} }
to { to {
opacity: .6; opacity: .6;
} }
} }
@keyframes overlay-scroll { @keyframes overlay-scroll {
from { from {
background-position-y: 0; background-position-y: 0;
} }
to { to {
background-position-y: .2em; background-position-y: .2em;
} }
} }
#overlay { #overlay {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
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-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-size: 100vw .2em;
background-repeat: repeat; background-repeat: repeat;
opacity: .5; opacity: .5;
pointer-events: none; pointer-events: none;
/* animation: linear .05s infinite alternate overlay-flicker; */ /* animation: linear .05s infinite alternate overlay-flicker; */
mix-blend-mode: overlay; mix-blend-mode: overlay;
} }
#prideflag img { #prideflag {
position: fixed; position: fixed;
top: 0; top: 0;
right: 0; right: 0;
@ -404,13 +404,13 @@ footer {
z-index: 8008135; z-index: 8008135;
pointer-events: none; pointer-events: none;
} }
#prideflag img:hover { #prideflag:hover {
transform: scale(110%); transform: scale(110%);
} }
#prideflag img:active { #prideflag:active {
transform: scale(110%); transform: scale(110%);
} }
#prideflag img * { #prideflag * {
pointer-events: all; pointer-events: all;
} }
@media screen and (max-width: 950px) { @media screen and (max-width: 950px) {
@ -420,54 +420,54 @@ footer {
} }
@media screen and (max-width: 780px) { @media screen and (max-width: 780px) {
body { body {
font-size: 14px; font-size: 14px;
} }
nav { nav {
width: calc(100vw - 2rem); width: calc(100vw - 2rem);
margin: 0; margin: 0;
} }
div#header-text { div#header-text {
flex-grow: 1; flex-grow: 1;
} }
a#header-links-toggle { a#header-links-toggle {
display: flex; display: flex;
} }
header ul#header-links { header ul#header-links {
position: fixed; position: fixed;
left: 0; left: 0;
top: 2.7rem; top: 2.7rem;
width: calc(100vw - 2rem); width: calc(100vw - 2rem);
padding: 1rem; padding: 1rem;
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;
border-bottom: 1px solid #888; border-bottom: 1px solid #888;
background: #080808; background: #080808;
display: none; display: none;
} }
header ul#header-links.open { header ul#header-links.open {
display: flex; display: flex;
} }
ul#header-links li { ul#header-links li {
width: 100%; width: 100%;
} }
ul#header-links li a, ul#header-links li a,
ul#header-links li span { ul#header-links li span {
margin: 0; margin: 0;
display: block; display: block;
font-size: 1rem; font-size: 1rem;
text-align: center; text-align: center;
} }
main { main {
margin-top: 4rem; margin-top: 4rem;
} }
} }