forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

_look.scss82 lines, 2.2 KiBHistoryRawDownload
1// The look pass: Archivo titles, mono section labels, depth by tone and a faint accent wash at the
2// top of the page. Imported last in main.scss so it restyles shared classes. It changes type,
3// tone and depth only; which colour a thing uses is decided where the thing is styled.
4
5// Titles. Page titles and major headings use --display (Archivo) at 700 and 110% width, 24px at
6// most. Body text stays on --font.
7h1,
8h2 {
9 font-family: var(--display);
10 font-weight: 700;
11 font-stretch: 110%;
12 letter-spacing: -0.01em;
13}
14
15h1 {
16 font-size: 1.5rem;
17}
18
19.repo-title,
20.issue-heading {
21 font-family: var(--display);
22 font-weight: 700;
23 font-stretch: 110%;
24}
25
26// Mono section labels: table headers, pane headers, card headings that are labels, and the small
27// muted captions that head a card's table or list. Only static UI text takes this; prose and user
28// content (commit messages, names, descriptions) keep their case.
29%mono-label {
30 color: var(--muted);
31 font-family: var(--font);
32 font-size: 13px;
33 font-weight: 600;
34 letter-spacing: 0;
35 line-height: 1.4;
36 text-transform: none;
37}
38
39th,
40.table th,
41.ci-side-title,
42.ci-art-title,
43.ci-warnings-title,
44.import-log-title,
45.row-title,
46.mx-caption,
47.card > .muted.small:first-child:has(+ .table-wrap, + .table, + ul, + ol) {
48 @extend %mono-label;
49}
50
51// Depth by tone. Cards and panes sit on the surface tone with an inset 1px hairline instead of a
52// drop shadow or a heavy border. The border keeps its width (transparent), so nothing moves.
53.card,
54.issue-list,
55.review-box,
56.pin-card,
57.ci-side,
58.ci-main,
59.snippet-form .snippet-files,
60.readme {
61 border-color: transparent;
62 background: var(--surface);
63 box-shadow: inset 0 0 0 1px var(--border);
64}
65
66.card.notice {
67 border-color: var(--border);
68 box-shadow: none;
69}
70
71// Only floating things (popovers, menus, dialogs, the palette, the profile panel) keep --shadow.
72
73// A faint accent wash at the top of the page, as on the canvases, centred left of the middle.
74body {
75 background-color: var(--bg);
76 background-image: radial-gradient(
77 ellipse 1000px 300px at 26% -120px,
78 color-mix(in srgb, var(--accent) 9%, transparent),
79 transparent
80 );
81 background-repeat: no-repeat;
82}