@import "../../node_modules/@fortawesome/fontawesome-free/css/all.css";
@import "@fontsource/b612-mono/400.css";
@import "@fontsource/b612-mono/700.css";
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Reaction emoji: tinted with the theme primary (the #emoji-tint SVG filter
in root.html) until their button, badge or Focus tile is hovered or
focused. */
.emoji-tint { filter: url(#emoji-tint); opacity: .85; transition: opacity 150ms; }
.group\/react:hover .emoji-tint,
.group\/react:focus-visible .emoji-tint,
.group\/tile:hover .emoji-tint,
.group\/tile:focus-visible .emoji-tint { filter: none; opacity: 1; }
/* htmx request indicator helpers */
.htmx-indicator { opacity: 0; transition: opacity 300ms ease-in; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }
/* Post bodies (.prose, src/markdown.rs): code and footnotes in the theme's
own colours rather than typography's fixed greys, in every theme. */
.prose :where(pre) {
background-color: oklch(var(--b3));
color: oklch(var(--bc));
border: 1px solid oklch(var(--bc) / 0.12);
border-radius: var(--rounded-box, 0.5rem);
padding: 0.75rem 1rem;
overflow-x: auto;
font-size: 0.85em;
line-height: 1.5;
}
.prose :where(:not(pre) > code) {
background-color: oklch(var(--b2));
color: oklch(var(--bc));
border-radius: 0.25rem;
padding: 0.1em 0.35em;
font-weight: 500;
}
.prose :where(:not(pre) > code)::before,
.prose :where(:not(pre) > code)::after { content: none; }
.prose :where(pre code) { background: transparent; color: inherit; padding: 0; }
.prose .footnote-reference { font-size: 0.75em; line-height: 0; }
.prose .footnote-reference a { text-decoration: none; }
.prose .footnote-definition {
display: flex;
gap: 0.5em;
font-size: 0.85em;
margin-top: 0.5rem;
padding-top: 0.25rem;
border-top: 1px solid oklch(var(--bc) / 0.12);
}
.prose .footnote-definition + .footnote-definition { border-top: 0; margin-top: 0; }
.prose .footnote-definition > p { margin: 0; }
.prose .footnote-definition-label { opacity: 0.7; }
.prose .footnote-definition:target { background-color: oklch(var(--p) / 0.12); border-radius: 0.25rem; }
/* Shader background (f/js/shader_background.js). The canvas sits behind
everything; while it's on, the content column becomes an opaque base-100
panel (sea glass on Focus pages, below), so on Classic pages the pattern
shows only around it and text contrast is exactly the theme's own. The header, menus, cards and (without a shader) the reader overlay have
opaque backgrounds already. */
#site-shader {
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
z-index: -1;
pointer-events: none;
}
html[data-shader] #content > div {
background-color: var(--fallback-b1, oklch(var(--b1)));
border-radius: var(--rounded-box, 1rem);
padding: 1.25rem;
}
@media (min-width: 640px) {
html[data-shader] #content > div {
padding: 2rem;
}
}
/* Focus pages: sea glass instead of the opaque panel -- neiam-org's
.neiam-glass (the me.neiam.org cards, matrix.neiam.org, Argo CD's login
box): the theme's base-100 at 72% over a 10px blur, so the pattern reads
as soft colour behind the page rather than detail under the text. The
tiles, rails and reader inside keep their own opaque surfaces.
The glass is on a ::before layer, not the panel: a backdrop-filter makes
its element the containing block for position:fixed descendants, which
pinned the reader overlay inside the panel (a card stacked in a card). */
html[data-shader] #content[data-layout="focus"] > div {
position: relative;
isolation: isolate;
background-color: transparent;
box-shadow: 0 1.5rem 4rem rgba(20, 0, 3, 0.45);
}
html[data-shader] #content[data-layout="focus"] > div::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: inherit;
pointer-events: none;
background-color: var(--fallback-b1, oklch(var(--b1) / 0.72));
-webkit-backdrop-filter: blur(10px) saturate(1.1);
backdrop-filter: blur(10px) saturate(1.1);
}
/* The Focus reader overlay's own panel gets the same glass; the posts in it
are base-200 cards and stay opaque. Its backdrop stops dimming and
blurring the page while a shader is on -- under a 70% neutral wash the
glass had nothing to show but flat grey. The page behind is already a
72% glass panel, so the reader's own blur is what separates the two. */
html[data-shader] .reader-backdrop {
background-color: transparent;
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
html[data-shader] .reader-panel {
background-color: var(--fallback-b1, oklch(var(--b1) / 0.72));
-webkit-backdrop-filter: blur(10px) saturate(1.1);
backdrop-filter: blur(10px) saturate(1.1);
box-shadow: 0 1.5rem 4rem rgba(20, 0, 3, 0.45);
}
/* /shaders: the card in use. */
[data-shader-card][data-active] {
outline: 4px solid oklch(var(--a));
outline-offset: 4px;
}
.shader-unsupported canvas {
visibility: hidden;
}
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions running · Badges · Packages
⭐
Log in to mark this repository.
4.9 KiB · text
History
6a20871