Files
Emil_Shanayev_Resume/components/gizmo.module.css
T
EmilandClaude Sonnet 5 15d36d6437
Deploy to GitHub Pages / build (push) Canceled after 0s
Deploy to GitHub Pages / deploy (push) Canceled after 0s
Add a dark theme, default, with a switch in the top bar
Colours move into theme tokens (light values in :root, dark in
[data-theme=dark]); the closing contact band inverts on each theme. The
choice is stored in localStorage and applied by a head script before the
first paint. Voxel covers and image shadows follow the theme.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XtcZtnG4GQA1d6mW5PNrS9
2026-09-20 22:51:13 +03:00

39 lines
630 B
CSS

.gizmo {
position: fixed;
z-index: 40;
top: 84px;
right: max(16px, calc((100vw - 1240px) / 2 - 8px));
width: 88px;
height: 88px;
padding: 0;
border: 0;
border-radius: 50%;
background: var(--disc-bg);
box-shadow: 0 0 0 1px var(--ring);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
cursor: pointer;
}
.gizmo svg {
display: block;
width: 100%;
height: 100%;
}
.letter {
fill: #fff;
font: 700 10.5px var(--font-body);
pointer-events: none;
}
@media (max-width: 760px) {
.gizmo {
top: auto;
bottom: 16px;
right: 16px;
width: 64px;
height: 64px;
}
}