1
0
Fork 0
deeptwisty.com/v3/style.css

195 lines
3 KiB
CSS
Raw Permalink Normal View History

@font-face {
font-family: b612_mono;
src: url(/fonts/B612_Mono/B612Mono-Regular.ttf);
}
@font-face {
font-family: b612_mono;
src: url(/fonts/B612_Mono/B612Mono-Bold.ttf);
font-weight: bold;
}
@font-face {
font-family: b612_mono;
src: url(/fonts/B612_Mono/B612Mono-Italic.ttf);
font-style: italic;
}
@font-face {
font-family: b612_mono;
src: url(/fonts/B612_Mono/B612Mono-BoldItalic.ttf);
font-weight: bold;
font-style: italic;
}
:root {
--blue: #2e1ae0;
--green: #00ff00;
--yellow: #ffff00;
--border: 2px solid white;
--boxshadow: 0 0 2px white, 0 0 2px white inset;
--gradient: linear-gradient(135deg, var(--blue) 0%, var(--blue) 35%, var(--green) 65%, var(--yellow) 90%);
}
img {
max-width: 100%;
}
body {
font-family: b612_mono, monospace;
margin: 5rem;
color: white;
background: black;
width: fit-content;
max-width: 90%;
text-shadow: 0 0 2px white;
}
body::before {
content: " ";
display: block;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
z-index: 2;
background-size: 100% 2px, 3px 100%;
pointer-events: none;
animation: flicker 0.1s infinite;
}
h1 {
font-size: 3em;
width: fit-content;
text-shadow: none;
}
.title {
font-style: italic;
background: var(--gradient);
background-clip: text;
-webkit-text-fill-color: transparent;
}
.dir {
padding: 2rem;
width: fit-content;
min-width: 40ch;
max-width: 100%;
box-sizing: border-box;
}
section.dir > *:first-child {
margin-top: 0;
padding-top: 0;
}
section.dir > *:last-child {
margin-bottom: 0;
padding-bottom: 0;
}
section.dir > a {
display: block;
padding: 0.5rem;
}
:is(.dir, nav) {
border: var(--border);
box-shadow: var(--boxshadow);
}
:is(.dir, nav):hover {
border-image: var(--gradient) 2;
}
section article {
margin: 0;
padding: .5rem 0;
border-bottom: 1px solid #fff9;
}
article:last-child {
border-bottom: none;
}
a {
color: white;
}
nav {
width: fit-content;
display: flex;
flex-wrap: wrap;
}
nav a {
margin: 0;
padding: 1rem;
}
@media only screen and (hover: none) {
body {
margin: 1rem auto;
}
.dir {
min-width: 0;
width: 100%;
}
}
@keyframes flicker {
0% {
opacity: 0.27861;
}
5% {
opacity: 0.34769;
}
10% {
opacity: 0.23604;
}
15% {
opacity: 0.90626;
}
20% {
opacity: 0.18128;
}
25% {
opacity: 0.83891;
}
30% {
opacity: 0.65583;
}
35% {
opacity: 0.67807;
}
40% {
opacity: 0.26559;
}
45% {
opacity: 0.84693;
}
50% {
opacity: 0.96019;
}
55% {
opacity: 0.08594;
}
60% {
opacity: 0.20313;
}
65% {
opacity: 0.71988;
}
70% {
opacity: 0.53455;
}
75% {
opacity: 0.37288;
}
80% {
opacity: 0.71428;
}
85% {
opacity: 0.70419;
}
90% {
opacity: 0.7003;
}
95% {
opacity: 0.36108;
}
100% {
opacity: 0.24387;
}
}