Repository navigation
Expand file tree
/
Copy pathtailwind.css
More file actions
40 lines (37 loc) · 1.78 KB
/
Copy pathtailwind.css
File metadata and controls
40 lines (37 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* The site's own stylesheet, built by its own workflow (.github/workflows/pages.yml) into
assets/css/app.css, which is never committed. Its sources are named here and in the theme's
_tailwind/theme.css, and nowhere else: source(none) turns Tailwind's own detection off,
because node_modules is ignored by git and a theme reached through it would be scanned as
empty. The theme brings its fonts, `raised` and `reveal-on-scroll`, the base colors and its own
templates as sources; this file adds the site's pages and templates. */
@import "tailwindcss" source(none);
@import "@mus/inks";
@plugin "@tailwindcss/typography";
@import "./node_modules/jtd-inks/_tailwind/theme.css";
/* The site's own templates (what it overrides in the theme) and its pages. */
@source "./_includes";
@source "./*.md";
@source "./atoms/*.md";
@source "./compositions/*.md";
/* The fixed words key's classes, written by the build (_plugins/fixed_words.rb). */
@source "./_plugins/fixed_words.rb";
/* The table of contents' label: the summary of the <details> that holds kramdown's
<ol id="markdown-toc"> */
@layer utilities {
:where(details:has(> #markdown-toc)) > summary {
@apply text-xs font-medium uppercase tracking-wide opacity-50;
}
}
/* GRACE lang's folded sections (_plugins/fixed_words.rb): a section's summary is the plain account a newcomer reads, so
it reads as body text, and its example rule can be selected and copied, where the theme dims every summary and makes
it unselectable. Written outside the layers to outrank the theme's [&_summary] utilities, and held to .grace-fold, so
no other summary on any page changes. */
details.grace-fold > summary {
font-size: inherit;
font-weight: inherit;
opacity: 1;
user-select: text;
}
details.grace-fold > summary:hover {
opacity: 1;
}