repository

BlowfishCMS

A small content management system for OpenBSD

version 0.45.6 · ISC · 2026-12-03 · releases

48 lines · 4.9 KB · download this file

/* VHS (folder "anime", once 80s Anime): a VHS tape. The dark variant is a
   CRT at night (a near-black screen, the VCR's blue screen for title bars
   and the hero, REC red); the light one is the tape's cardboard sleeve
   (off-white card, black type, its red and blue stripes). Colours come from
   the variant: accent is the blue screen, accent-2 the REC red, line the
   outlines. */
:root { --accent-ink:#fff; --accent-text:#8fa0ff; --vhs-stripes:linear-gradient(transparent calc(100% - 6px),var(--accent-2) calc(100% - 6px) calc(100% - 3px),#f2b02a calc(100% - 3px)) }
:root[data-theme="anime-light"] { --accent-text:#1f2fb0 }
body { background:radial-gradient(ellipse at 50% 40%,color-mix(in srgb,var(--desktop) 88%,var(--accent)) 0,var(--desktop) 75%); background-attachment:fixed }
:root[data-theme="anime-light"] body { background:var(--desktop) }
.window, .site-nav { border:2px solid var(--line); box-shadow:7px 7px 0 color-mix(in srgb,var(--desktop) 55%,#000) }
:root[data-theme="anime-light"] :is(.window,.site-nav) { box-shadow:6px 6px 0 color-mix(in srgb,var(--line) 30%,var(--desktop)) }
.window__bar { background:var(--vhs-stripes), var(--accent); color:#fff; border-bottom:2px solid var(--line); padding-bottom:10px; letter-spacing:.12em; text-transform:uppercase; font:700 .78rem/1.2 var(--font-ui) }
.window__glyph { background:var(--accent-2); border-color:#fff; border-radius:50% }
.window__meta { color:#e8eaff }
.site-nav__bar { background:var(--vhs-stripes), var(--window-2); padding-bottom:12px; border-color:var(--line) }
.site-nav__brand { color:var(--ink); letter-spacing:.18em }
.site-nav__menu>a[aria-current], .site-nav__menu>a:hover,.site-nav__menu>.nav-group.is-current>summary,.site-nav__menu>.nav-group>summary:hover,.site-nav__menu>.nav-group[open]>summary { background:var(--accent); color:#fff; border-color:var(--accent-2); box-shadow:0 3px 0 var(--accent-2) }
.site-nav__menu>a[aria-current]::before, .site-nav__menu>a:hover::before,.site-nav__menu>.nav-group.is-current>summary::before,.site-nav__menu>.nav-group>summary:hover::before,.site-nav__menu>.nav-group[open]>summary::before { color:#fff }
:is(h1,.hero-title) { color:var(--ink) }
.about-card__photo { border:3px solid var(--line); box-shadow:9px 9px 0 var(--accent) }
.buttonlike { border-color:var(--line); background:var(--window-2) }
.badge { border-color:var(--accent-2); color:var(--accent-2) }
.hero--accent :is(h1,.hero-title) { color:#fff }

/* ---- The tape (2.0.0) --------------------------------------------------
   The page plays like a tape: faint scanlines over everything, a tracking
   band drifting down now and then (still for visitors who ask for less
   motion), the on-screen display's PLAY in the corner, headings with the
   colour fringes of a worn tape. The menu is the tape's chapter list, each
   page numbered. */
body::after { content:""; position:fixed; inset:0; z-index:60; pointer-events:none; background:repeating-linear-gradient(0deg,#0000 0 2px,color-mix(in srgb,var(--desktop) 20%,transparent) 2px 3px) }
body::before { content:""; position:fixed; left:0; right:0; top:-12vh; height:9vh; z-index:61; pointer-events:none; background:linear-gradient(transparent,color-mix(in srgb,#fff 7%,transparent) 40%,color-mix(in srgb,var(--accent-2) 9%,transparent) 55%,transparent); animation:anime-tracking 11s linear infinite }
@keyframes anime-tracking { 0%,62% { top:-12vh } 100% { top:110vh } }
@media (prefers-reduced-motion:reduce) { body::before { animation:none; display:none } }
.shell { position:relative }
.shell::before { content:"PLAY \25B6" / ""; position:fixed; z-index:62; bottom:14px; left:18px; font:700 1rem/1 "Courier New",monospace; letter-spacing:.12em; color:#7fffd0; text-shadow:0 0 6px #7fffd099, 2px 0 #ff4fa077; pointer-events:none }
:root[data-theme="anime-light"] .shell::before { color:var(--accent); text-shadow:2px 0 #e02a2a55 }
:is(h1,h2,.hero-title) { text-shadow:2px 0 color-mix(in srgb,var(--accent) 70%,transparent), -2px 0 color-mix(in srgb,var(--accent-2) 60%,transparent) }
.hero--accent { background:repeating-linear-gradient(0deg,#0000 0 3px,#0002 3px 4px), radial-gradient(ellipse at 50% 50%,#fff2,transparent 70%), var(--accent); color:#fff }
/* The chapter list: the menu, each page numbered in order. */
.site-nav__menu { counter-reset:chapter; gap:4px 6px }
.site-nav__menu>a,.site-nav__menu>.nav-group>summary { counter-increment:chapter; font-family:"Courier New",monospace; letter-spacing:.06em; text-transform:uppercase; font-size:.82rem }
.site-nav__menu>a::before,.site-nav__menu>.nav-group>summary::before { content:counter(chapter,decimal-leading-zero) " " / ""; color:var(--accent-2); font-weight:700 }
.site-nav__menu>a[aria-current]::before,.site-nav__menu>.nav-group.is-current>summary::before { content:"\25B6 " counter(chapter,decimal-leading-zero) " " / "" }
.site-nav__bar { position:relative }
.site-nav__brand { text-transform:uppercase; font-family:"Courier New",monospace; font-weight:700 }
@media print { body::before, body::after, .shell::before { display:none } }