/* The side nav's circle (PageShell.tsx), a sun in the corner once the nav sticks: the light fill of the color family of the section being read (its darkest in dark mode), the palette shades every text color reads on at 4.5:1 or better, as on the page backdrop (PageBackdrop.css). */ .side-nav-circle { background: #d6f5fa; /* A slight drop shadow, as the cards have: down and soft, no glow. */ box-shadow: 0 4px 12px rgb(0 16 17 / 0.14); /* Color by section; size and place between centered on the list and the corner sun once it sticks. */ transition: background-color 0.8s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out, left 0.6s ease-in-out, top 0.6s ease-in-out; } .side-nav-circle[data-family="green"] { background: #e6f0dd; } .side-nav-circle[data-family="amber"] { background: #fdf1d6; } /* Dark mode: the toggle's choice, or the system's when there is none. */ :root[data-theme="dark"] .side-nav-circle { background: #003a45; box-shadow: 0 4px 12px rgb(0 0 0 / 0.45); } :root[data-theme="dark"] .side-nav-circle[data-family="green"] { background: #23361a; } :root[data-theme="dark"] .side-nav-circle[data-family="amber"] { background: #4a2e00; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side-nav-circle { background: #003a45; box-shadow: 0 4px 12px rgb(0 0 0 / 0.45); } :root:not([data-theme="light"]) .side-nav-circle[data-family="green"] { background: #23361a; } :root:not([data-theme="light"]) .side-nav-circle[data-family="amber"] { background: #4a2e00; } }