Add analog effects
All checks were successful
Build Eleventy Site / build (push) Successful in 1m23s
All checks were successful
Build Eleventy Site / build (push) Successful in 1m23s
This commit is contained in:
parent
ebac0e9539
commit
08e252e7b0
1 changed files with 74 additions and 1 deletions
|
|
@ -50,6 +50,71 @@ body {
|
|||
grid-template-columns: 1fr;
|
||||
justify-items: start;
|
||||
column-gap: 3rem;
|
||||
|
||||
/* Styles for CRT effect */
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
/* Text glow */
|
||||
text-shadow:
|
||||
2px 2px 0px #000, /* Hard shadow for legibility */
|
||||
-1px -1px 0 rgba(255,255,255,0.3), /* Slight highlight */
|
||||
0 0 8px rgba(255, 255, 255, 0.5), /* Soft bloom */
|
||||
0 0 20px rgba(255, 255, 255, 0.3); /* Wide bloom */
|
||||
}
|
||||
|
||||
/* Scanline overlay pseudo-element */
|
||||
body::before {
|
||||
content: " ";
|
||||
display: block;
|
||||
position: fixed;
|
||||
top: 0; left: 0; bottom: 0; right: 0;
|
||||
z-index: 9999;
|
||||
pointer-events: none;
|
||||
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
rgba(0,0,0, 0) 50%,
|
||||
rgba(0,0,0, 0.1) 50%
|
||||
);
|
||||
background-size: 100% 4px;
|
||||
}
|
||||
|
||||
/* Rolling refresh rate mismatch bar pseudo-element */
|
||||
body::after {
|
||||
content: " ";
|
||||
display: block;
|
||||
position: fixed;
|
||||
z-index: 9999;
|
||||
top: -5vh;
|
||||
left: 0; right: 0;
|
||||
height: 5vh;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
rgba(255,255,255,0) 0%,
|
||||
rgba(255,255,255,0.05) 50%,
|
||||
rgba(255,255,255,0) 100%
|
||||
);
|
||||
|
||||
will-change: transform;
|
||||
animation: scan-drop 15s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes scan-drop {
|
||||
0% { transform: translateY(0); }
|
||||
25% { transform: translateY(0); }
|
||||
50% { transform: translateY(150vh); }
|
||||
100% { transform: translateY(150vh); }
|
||||
}
|
||||
|
||||
/* Theme scrollbars */
|
||||
body::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
background: #000;
|
||||
}
|
||||
body::-webkit-scrollbar-thumb {
|
||||
background: var(--accent-alt);
|
||||
border: 1px solid #fff;
|
||||
}
|
||||
|
||||
body > nav,
|
||||
|
|
@ -60,6 +125,10 @@ h4,
|
|||
h5,
|
||||
h6 {
|
||||
font-family: var(--fancy-font-stack);
|
||||
|
||||
text-shadow:
|
||||
3px 0px 0px rgba(255, 0, 0, 0.5),
|
||||
-3px 0px 0px rgba(0, 0, 255, 0.5);
|
||||
}
|
||||
|
||||
img {
|
||||
|
|
@ -126,7 +195,11 @@ h1 {
|
|||
z-index: 1;
|
||||
position: relative;
|
||||
margin-top: 0;
|
||||
text-shadow: 0.1em 0 black;
|
||||
text-shadow:
|
||||
0.1em 0 black,
|
||||
/* Chromatic aberration */
|
||||
-0.03em 0 rgba(255, 0, 0, 0.8),
|
||||
0.13em 0 rgba(0, 0, 255, 0.6);
|
||||
color: var(--text-over-background);
|
||||
}
|
||||
h1 + article {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue