@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, so the pattern shows only around it and text contrast is exactly
the theme's own. The header, menus, cards and 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;
}
}
/* /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 success · Badges · Packages
⭐
Log in to mark this repository.
3.0 KiB · text
History
59d9458