@refrakt-md/lumina 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/structures.json +172 -326
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +11 -0
- package/dist/tokens.js.map +1 -1
- package/index.css +2 -0
- package/package.json +4 -4
- package/styles/dimensions/metadata.css +129 -92
- package/styles/elements/code.css +72 -0
- package/styles/layouts/split.css +53 -11
- package/styles/runes/api.css +6 -10
- package/styles/runes/badge.css +7 -21
- package/styles/runes/bar.css +10 -0
- package/styles/runes/budget.css +4 -4
- package/styles/runes/bug.css +7 -13
- package/styles/runes/character.css +10 -12
- package/styles/runes/codegroup.css +29 -8
- package/styles/runes/decision.css +4 -9
- package/styles/runes/diff.css +77 -9
- package/styles/runes/drawer.css +51 -6
- package/styles/runes/event.css +16 -12
- package/styles/runes/faction.css +8 -118
- package/styles/runes/file-ref.css +31 -0
- package/styles/runes/hint.css +14 -10
- package/styles/runes/howto.css +20 -5
- package/styles/runes/milestone.css +4 -13
- package/styles/runes/realm.css +8 -119
- package/styles/runes/recipe.css +20 -0
- package/styles/runes/spec.css +5 -9
- package/styles/runes/symbol.css +7 -4
- package/styles/runes/testimonial.css +2 -15
- package/styles/runes/work.css +19 -22
- package/tokens/base.css +14 -0
package/styles/runes/bug.css
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/* Bug */
|
|
2
2
|
|
|
3
|
-
/*
|
|
4
|
-
.
|
|
5
|
-
|
|
6
|
-
margin-bottom: 0.75rem;
|
|
7
|
-
}
|
|
3
|
+
/* SPEC-079: eyebrow + metadata zone names replace header-primary /
|
|
4
|
+
* header-secondary. Layout-level geometry lives on [data-zone-layout]
|
|
5
|
+
* selectors; this file carries bug-specific spacing + assignee prefix. */
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
.rf-bug__preamble {
|
|
7
|
+
.rf-bug__eyebrow {
|
|
11
8
|
margin-bottom: 0.75rem;
|
|
12
9
|
}
|
|
13
10
|
.rf-bug__title h1,
|
|
@@ -16,15 +13,12 @@
|
|
|
16
13
|
margin-top: 0;
|
|
17
14
|
}
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
.rf-bug__header-secondary {
|
|
16
|
+
.rf-bug__metadata {
|
|
21
17
|
margin-bottom: 1.5rem;
|
|
22
18
|
}
|
|
23
19
|
|
|
24
|
-
.rf-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
.rf-bug__assignee-badge::before { content: '@'; }
|
|
20
|
+
.rf-bug__metadata [data-field="assignee"] dd .rf-badge::before { content: '@'; }
|
|
21
|
+
|
|
28
22
|
.rf-bug__body {
|
|
29
23
|
font-size: 0.925rem;
|
|
30
24
|
line-height: 1.65;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
/* Character
|
|
1
|
+
/* Character — the title and the role/status def-list come from the shared
|
|
2
|
+
* dimensions (sections + metadata); only the floated portrait avatar is
|
|
3
|
+
* character-specific chrome. Unlike faction/realm, character is not a split
|
|
4
|
+
* rune: the portrait floats and the content column wraps around it. */
|
|
2
5
|
|
|
3
|
-
/*
|
|
6
|
+
/* Contain the floated portrait within the article */
|
|
7
|
+
.rf-character {
|
|
8
|
+
display: flow-root;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Portrait — floated circular avatar */
|
|
4
12
|
.rf-character__portrait {
|
|
5
13
|
float: right;
|
|
6
14
|
margin-left: 1.5rem;
|
|
@@ -22,20 +30,10 @@
|
|
|
22
30
|
flex-direction: column;
|
|
23
31
|
gap: 1rem;
|
|
24
32
|
}
|
|
25
|
-
.rf-character__content {
|
|
26
|
-
clear: both;
|
|
27
|
-
}
|
|
28
33
|
.rf-character__content ul,
|
|
29
34
|
.rf-character__content ol {
|
|
30
35
|
padding-left: 1.5rem;
|
|
31
36
|
}
|
|
32
|
-
.rf-character > span[property="name"] {
|
|
33
|
-
display: block;
|
|
34
|
-
font-size: 1.5rem;
|
|
35
|
-
font-weight: 700;
|
|
36
|
-
margin-bottom: 0.5rem;
|
|
37
|
-
color: var(--rf-color-heading);
|
|
38
|
-
}
|
|
39
37
|
|
|
40
38
|
/* Character Section */
|
|
41
39
|
.rf-character-section {
|
|
@@ -22,18 +22,26 @@
|
|
|
22
22
|
border-bottom: 1px solid var(--rf-color-border);
|
|
23
23
|
margin-bottom: 0;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
/* Window chrome — three traffic-light dots painted as gradients on one
|
|
26
|
+
* pseudo-element. The element reserves real width (three 10px dots, 1rem
|
|
27
|
+
* apart) so the flex row spaces the title clear of the dots — box-shadow
|
|
28
|
+
* dots take no layout space and overlapped the title. Pure decoration, so
|
|
29
|
+
* it lives entirely in CSS (no markup). */
|
|
30
|
+
.rf-codegroup__topbar::before {
|
|
31
|
+
content: '';
|
|
32
|
+
flex: 0 0 auto;
|
|
33
|
+
width: 2.625rem;
|
|
27
34
|
height: 10px;
|
|
28
|
-
border-radius: var(--rf-radius-full);
|
|
29
35
|
opacity: 0.8;
|
|
36
|
+
background-repeat: no-repeat;
|
|
37
|
+
background-image:
|
|
38
|
+
radial-gradient(circle at 5px 50%, #ef4444 5px, transparent 5px),
|
|
39
|
+
radial-gradient(circle at calc(5px + 1rem) 50%, #f59e0b 5px, transparent 5px),
|
|
40
|
+
radial-gradient(circle at calc(5px + 2rem) 50%, #22c55e 5px, transparent 5px);
|
|
30
41
|
}
|
|
31
|
-
|
|
32
|
-
.rf-
|
|
33
|
-
.rf-codegroup__dot:nth-child(3) { background: #22c55e; }
|
|
34
|
-
.rf-codegroup__title[data-section="title"] {
|
|
42
|
+
/* Filename title — the topbar bar's lone `code` field. */
|
|
43
|
+
.rf-codegroup__topbar [data-meta-type="code"] {
|
|
35
44
|
margin-left: 0.5rem;
|
|
36
|
-
font-family: var(--rf-font-mono);
|
|
37
45
|
font-size: 0.8rem;
|
|
38
46
|
font-weight: normal;
|
|
39
47
|
color: var(--rf-color-muted);
|
|
@@ -95,6 +103,19 @@
|
|
|
95
103
|
word-break: break-word;
|
|
96
104
|
overflow-x: hidden;
|
|
97
105
|
}
|
|
106
|
+
/* WORK-304 — the standalone codeblock CSS at `elements/code.css`
|
|
107
|
+
* sets `display: grid; min-width: max-content` on `pre code` so
|
|
108
|
+
* row tints + line numbers extend across the horizontal scroll
|
|
109
|
+
* region. That sizing actively prevents wrapping (the code track
|
|
110
|
+
* is locked at max-content). Inside `overflow="wrap"` codegroups
|
|
111
|
+
* we WANT wrapping, so revert the code element back to a plain
|
|
112
|
+
* block with no min-width constraint. Lines stay block-flow so
|
|
113
|
+
* Shiki's `<span class="line">` children wrap with the pre's
|
|
114
|
+
* `white-space: pre-wrap`. */
|
|
115
|
+
.rf-codegroup[data-overflow="wrap"] pre code {
|
|
116
|
+
display: block;
|
|
117
|
+
min-width: 0;
|
|
118
|
+
}
|
|
98
119
|
.rf-codegroup[data-overflow="hide"] pre {
|
|
99
120
|
overflow-x: hidden;
|
|
100
121
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/* Decision */
|
|
2
2
|
|
|
3
|
-
/*
|
|
4
|
-
.
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
margin-bottom: 0.75rem;
|
|
7
|
-
}
|
|
3
|
+
/* SPEC-079: eyebrow + metadata zone names replace header-primary /
|
|
4
|
+
* header-secondary. */
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
.rf-decision__preamble {
|
|
6
|
+
.rf-decision__eyebrow {
|
|
11
7
|
margin-bottom: 0.75rem;
|
|
12
8
|
}
|
|
13
9
|
.rf-decision__title h1,
|
|
@@ -16,8 +12,7 @@
|
|
|
16
12
|
margin-top: 0;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
.rf-decision__header-secondary {
|
|
15
|
+
.rf-decision__metadata {
|
|
21
16
|
margin-bottom: 1.5rem;
|
|
22
17
|
}
|
|
23
18
|
|
package/styles/runes/diff.css
CHANGED
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
.rf-diff {
|
|
3
3
|
border: 1px solid var(--rf-color-border);
|
|
4
4
|
border-radius: var(--rf-radius-lg);
|
|
5
|
-
|
|
5
|
+
/* WORK-304 — horizontal scroll lives on `.rf-diff` itself, not on
|
|
6
|
+
* `.rf-diff__split-container`. On mobile the split-container's
|
|
7
|
+
* `min-width: 40rem` makes it wider than the viewport; previously
|
|
8
|
+
* `.rf-diff { overflow: hidden }` clipped the right panel and the
|
|
9
|
+
* touch scroll had nowhere to land. Moving the scroll affordance
|
|
10
|
+
* up one level lets users swipe the entire diff sideways to
|
|
11
|
+
* reveal the off-screen panel; the border-radius still clips the
|
|
12
|
+
* children at the rounded corners because `overflow-x: auto` is
|
|
13
|
+
* non-visible. `overflow-y: hidden` keeps the vertical clip for
|
|
14
|
+
* the rounded top/bottom. */
|
|
15
|
+
overflow-x: auto;
|
|
16
|
+
overflow-y: hidden;
|
|
17
|
+
overscroll-behavior-x: contain;
|
|
6
18
|
font-size: 0.875rem;
|
|
7
19
|
background: var(--rf-color-code-bg);
|
|
8
20
|
}
|
|
@@ -14,12 +26,19 @@
|
|
|
14
26
|
color: var(--rf-color-muted);
|
|
15
27
|
background: var(--rf-color-surface);
|
|
16
28
|
border-bottom: 1px solid var(--rf-color-border);
|
|
29
|
+
/* `.rf-diff` is the horizontal scroll container (so mobile users
|
|
30
|
+
* can swipe to reveal the off-screen split panel). Without
|
|
31
|
+
* sticky, the header would scroll horizontally along with the
|
|
32
|
+
* content and the filename label would slide off-screen.
|
|
33
|
+
* `position: sticky; left: 0` pins the header to the visible left
|
|
34
|
+
* edge of the scroll viewport at all scroll positions. WORK-304. */
|
|
35
|
+
position: sticky;
|
|
36
|
+
left: 0;
|
|
17
37
|
}
|
|
18
38
|
.rf-diff__split-container {
|
|
19
39
|
display: grid;
|
|
20
40
|
grid-template-columns: 1fr 1fr;
|
|
21
41
|
min-width: 40rem;
|
|
22
|
-
overflow-x: auto;
|
|
23
42
|
}
|
|
24
43
|
.rf-diff__split-container .rf-diff__panel:first-child {
|
|
25
44
|
border-right: 1px solid var(--rf-color-border);
|
|
@@ -31,25 +50,68 @@
|
|
|
31
50
|
border-radius: 0;
|
|
32
51
|
background: var(--rf-color-code-bg);
|
|
33
52
|
overflow-x: auto;
|
|
53
|
+
overscroll-behavior-x: contain;
|
|
34
54
|
font-family: var(--rf-font-mono);
|
|
35
55
|
font-size: 0.8125rem;
|
|
36
56
|
line-height: 1.6;
|
|
37
57
|
}
|
|
58
|
+
|
|
59
|
+
/* WORK-304 — inner rows wrapper, sized as `display: grid; min-width:
|
|
60
|
+
* max-content` so every `.rf-diff__line` (grid item) spans the
|
|
61
|
+
* widest line's intrinsic width. The pre is the scroll container
|
|
62
|
+
* (`overflow-x: auto`); this wrapper is what actually expands past
|
|
63
|
+
* the pre's visible width when a line overflows, triggering the
|
|
64
|
+
* pre's scroll and keeping the row tint (+/-/highlight) contiguous
|
|
65
|
+
* across the full scroll region. Mirrors the
|
|
66
|
+
* `pre code { display: grid; min-width: max-content }` pattern in
|
|
67
|
+
* the standalone codeblock at `elements/code.css`. */
|
|
68
|
+
.rf-diff__rows {
|
|
69
|
+
display: grid;
|
|
70
|
+
min-width: max-content;
|
|
71
|
+
}
|
|
72
|
+
/* WORK-304 — annotated line primitive. Three states share one row
|
|
73
|
+
* shape (`add`, `remove`, `highlight`); only the tint token and the
|
|
74
|
+
* gutter rail colour change. The same selector form is reused by the
|
|
75
|
+
* standalone code block for `data-line-status="highlight"` via the
|
|
76
|
+
* `.rf-codeblock` rules below.
|
|
77
|
+
*
|
|
78
|
+
* `display: block` + inline-block children (not `display: flex`) for
|
|
79
|
+
* the line container so the line's intrinsic max-content is the
|
|
80
|
+
* unambiguous sum of children's intrinsic widths — flex container
|
|
81
|
+
* max-content was being clipped by the flex-basis / flex-grow /
|
|
82
|
+
* flex-shrink combination depending on browser, leaving the row
|
|
83
|
+
* tint cut off at the text width when the user scrolled
|
|
84
|
+
* horizontally. `white-space: nowrap` keeps the inline-block
|
|
85
|
+
* children on a single row (the children themselves preserve their
|
|
86
|
+
* own `white-space: pre` for the code). `min-width: max-content`
|
|
87
|
+
* keeps the line at least as wide as its content (full row tint
|
|
88
|
+
* when content overflows the visible viewport); default width =
|
|
89
|
+
* 100% of pre keeps it filling the visible width on short rows. */
|
|
38
90
|
.rf-diff__line {
|
|
91
|
+
/* `display: flex` for internal layout (gutters + content side
|
|
92
|
+
* by side). The line's WIDTH is determined by the parent grid
|
|
93
|
+
* track (`.rf-diff__code`'s `grid-template-columns:
|
|
94
|
+
* minmax(100%, max-content)`), not by the flex sizing here —
|
|
95
|
+
* so the row tint covers the full grid column regardless of
|
|
96
|
+
* how flex sizing would have resolved. */
|
|
39
97
|
display: flex;
|
|
40
98
|
min-height: 1.6em;
|
|
41
99
|
border-left: 3px solid transparent;
|
|
42
100
|
}
|
|
43
|
-
.rf-diff__line[data-
|
|
44
|
-
.rf-diff__line[data-
|
|
101
|
+
.rf-diff__line[data-line-status="equal"] { background: transparent; }
|
|
102
|
+
.rf-diff__line[data-line-status="remove"] {
|
|
45
103
|
background: color-mix(in srgb, var(--rf-color-danger) 18%, transparent);
|
|
46
104
|
border-left-color: var(--rf-color-danger);
|
|
47
105
|
}
|
|
48
|
-
.rf-diff__line[data-
|
|
106
|
+
.rf-diff__line[data-line-status="add"] {
|
|
49
107
|
background: color-mix(in srgb, var(--rf-color-success) 18%, transparent);
|
|
50
108
|
border-left-color: var(--rf-color-success);
|
|
51
109
|
}
|
|
52
|
-
.rf-diff__line[data-
|
|
110
|
+
.rf-diff__line[data-line-status="highlight"] {
|
|
111
|
+
background: var(--rf-color-line-highlight);
|
|
112
|
+
border-left-color: var(--rf-color-line-highlight-rail, var(--rf-color-primary));
|
|
113
|
+
}
|
|
114
|
+
.rf-diff__line[data-line-status="empty"] { background: transparent; }
|
|
53
115
|
.rf-diff__gutter-num {
|
|
54
116
|
flex-shrink: 0;
|
|
55
117
|
padding: 0 0.5rem;
|
|
@@ -65,17 +127,23 @@
|
|
|
65
127
|
* Remove lines colour the before-number; add lines colour the after-number.
|
|
66
128
|
* The opposite side renders empty (no number) which itself signals "nothing
|
|
67
129
|
* here on this side". */
|
|
68
|
-
.rf-diff__line[data-
|
|
130
|
+
.rf-diff__line[data-line-status="remove"] .rf-diff__gutter-num[data-side="before"] {
|
|
69
131
|
color: var(--rf-color-danger);
|
|
70
132
|
}
|
|
71
|
-
.rf-diff__line[data-
|
|
133
|
+
.rf-diff__line[data-line-status="add"] .rf-diff__gutter-num[data-side="after"] {
|
|
72
134
|
color: var(--rf-color-success);
|
|
73
135
|
}
|
|
74
136
|
.rf-diff .rf-codeblock {
|
|
75
137
|
margin: 0;
|
|
76
138
|
}
|
|
77
139
|
.rf-diff__line-content {
|
|
78
|
-
flex: 1
|
|
140
|
+
/* `flex: 1 0 auto` so line-content contributes its
|
|
141
|
+
* `white-space: pre` text width to the line's intrinsic
|
|
142
|
+
* max-content (which the parent grid track reads from); grow:1
|
|
143
|
+
* lets it fill any free space in the row beyond the gutters
|
|
144
|
+
* when the grid track is wider than the line's natural size
|
|
145
|
+
* (short content / wide visible viewport). WORK-304. */
|
|
146
|
+
flex: 1 0 auto;
|
|
79
147
|
white-space: pre;
|
|
80
148
|
padding-right: 1rem;
|
|
81
149
|
/* Pin the row to 1.6em even when the text is empty — the highlighted
|
package/styles/runes/drawer.css
CHANGED
|
@@ -70,8 +70,26 @@ section.rf-drawer .rf-drawer__title {
|
|
|
70
70
|
section.rf-drawer .rf-drawer__body > :first-child { margin-top: 0; }
|
|
71
71
|
section.rf-drawer .rf-drawer__body > :last-child { margin-bottom: 0; }
|
|
72
72
|
|
|
73
|
+
/* In-flow footer — small text, top divider, mirrors the dialog-mode look so
|
|
74
|
+
* authors get the same chrome whether JS is enhancing or not. */
|
|
75
|
+
section.rf-drawer .rf-drawer__footer {
|
|
76
|
+
display: block;
|
|
77
|
+
margin-top: var(--rf-spacing-md);
|
|
78
|
+
padding-top: var(--rf-spacing-sm);
|
|
79
|
+
border-top: 1px solid var(--rf-drawer-border);
|
|
80
|
+
font-size: 0.875rem;
|
|
81
|
+
color: var(--rf-color-muted);
|
|
82
|
+
}
|
|
83
|
+
section.rf-drawer .rf-drawer__footer > :first-child { margin-top: 0; }
|
|
84
|
+
section.rf-drawer .rf-drawer__footer > :last-child { margin-bottom: 0; }
|
|
85
|
+
|
|
73
86
|
/* ─── JS / dialog mode ─────────────────────────────────────────── */
|
|
74
87
|
|
|
88
|
+
/* Dialog base. Crucially the `display: flex` rule below is scoped to the
|
|
89
|
+
* `[open]` state — without that scope, declaring `display: flex` on the
|
|
90
|
+
* bare `dialog.rf-drawer` overrides the browser UA's `display: none` for
|
|
91
|
+
* closed dialogs, so the closed dialog renders visibly as an empty box
|
|
92
|
+
* positioned by the side `inset` rules. */
|
|
75
93
|
dialog.rf-drawer {
|
|
76
94
|
box-sizing: border-box;
|
|
77
95
|
background: var(--rf-drawer-bg);
|
|
@@ -81,28 +99,36 @@ dialog.rf-drawer {
|
|
|
81
99
|
box-shadow: var(--rf-drawer-shadow);
|
|
82
100
|
padding: 0;
|
|
83
101
|
margin: 0;
|
|
84
|
-
overflow:
|
|
102
|
+
overflow: hidden;
|
|
85
103
|
max-width: calc(100vw - 2 * var(--rf-drawer-gutter));
|
|
86
104
|
max-height: calc(100vh - 2 * var(--rf-drawer-gutter));
|
|
87
105
|
}
|
|
88
106
|
|
|
107
|
+
/* Flex column layout only when the dialog is actually open. The header
|
|
108
|
+
* and footer pin via `flex: 0 0 auto`; the body scrolls via `flex: 1 1
|
|
109
|
+
* auto; overflow-y: auto`. The dialog's `max-height` cap on the dialog
|
|
110
|
+
* provides the scroll context. */
|
|
111
|
+
dialog.rf-drawer[open] {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
}
|
|
115
|
+
|
|
89
116
|
dialog.rf-drawer::backdrop {
|
|
90
117
|
background: rgb(0 0 0 / 0.35);
|
|
91
118
|
backdrop-filter: blur(2px);
|
|
92
119
|
}
|
|
93
120
|
|
|
94
121
|
dialog.rf-drawer .rf-drawer__header {
|
|
122
|
+
flex: 0 0 auto;
|
|
95
123
|
display: flex;
|
|
96
124
|
align-items: center;
|
|
97
125
|
justify-content: space-between;
|
|
98
126
|
gap: var(--rf-spacing-md);
|
|
99
127
|
padding: var(--rf-spacing-md) var(--rf-spacing-lg);
|
|
100
128
|
border-bottom: 1px solid var(--rf-drawer-border);
|
|
101
|
-
position: sticky;
|
|
102
|
-
top: 0;
|
|
103
129
|
background: var(--rf-drawer-bg);
|
|
104
|
-
|
|
105
|
-
|
|
130
|
+
}
|
|
131
|
+
dialog.rf-drawer .rf-drawer__title {
|
|
106
132
|
margin: 0;
|
|
107
133
|
font-size: 1.05rem;
|
|
108
134
|
font-weight: 600;
|
|
@@ -126,8 +152,26 @@ dialog.rf-drawer .rf-drawer__close:hover {
|
|
|
126
152
|
}
|
|
127
153
|
|
|
128
154
|
dialog.rf-drawer .rf-drawer__body {
|
|
155
|
+
flex: 1 1 auto;
|
|
156
|
+
overflow-y: auto;
|
|
129
157
|
padding: var(--rf-spacing-md) var(--rf-spacing-lg);
|
|
158
|
+
min-height: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Dialog footer — small text, top divider, pinned at bottom via flex.
|
|
162
|
+
* Stays visible regardless of body scroll depth so links like "View
|
|
163
|
+
* source on GitHub →" (the SPEC-078 use case) are always one tap away. */
|
|
164
|
+
dialog.rf-drawer .rf-drawer__footer {
|
|
165
|
+
flex: 0 0 auto;
|
|
166
|
+
padding: var(--rf-spacing-sm) var(--rf-spacing-lg);
|
|
167
|
+
border-top: 1px solid var(--rf-drawer-border);
|
|
168
|
+
background: var(--rf-drawer-bg);
|
|
169
|
+
font-size: 0.875rem;
|
|
170
|
+
color: var(--rf-color-muted);
|
|
130
171
|
}
|
|
172
|
+
dialog.rf-drawer .rf-drawer__footer > :first-child { margin-top: 0; }
|
|
173
|
+
dialog.rf-drawer .rf-drawer__footer > :last-child { margin-bottom: 0; }
|
|
174
|
+
dialog.rf-drawer .rf-drawer__footer p { margin: 0; }
|
|
131
175
|
|
|
132
176
|
/* Collapse the vertical margins of first / last children inside the body
|
|
133
177
|
* so the drawer's own padding is what spaces content from the chrome —
|
|
@@ -282,7 +326,8 @@ dialog.rf-drawer[data-state="closing"]::backdrop {
|
|
|
282
326
|
*/
|
|
283
327
|
@media (max-width: 640px) {
|
|
284
328
|
dialog.rf-drawer .rf-drawer__header,
|
|
285
|
-
dialog.rf-drawer .rf-drawer__body
|
|
329
|
+
dialog.rf-drawer .rf-drawer__body,
|
|
330
|
+
dialog.rf-drawer .rf-drawer__footer {
|
|
286
331
|
padding: 0.75rem 1rem;
|
|
287
332
|
}
|
|
288
333
|
}
|
package/styles/runes/event.css
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/* Event */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
|
|
3
|
+
/* When/where def-list — geometry from the shared `[data-zone-layout=
|
|
4
|
+
* definition-list]` primitive; this block owns only its top margin. */
|
|
5
|
+
.rf-event__metadata {
|
|
6
|
+
margin-top: 1.25rem;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
/* Register CTA — a bar-wrapped link; style the inner `<a>` as a button. */
|
|
8
10
|
.rf-event__register {
|
|
11
|
+
margin-top: 1.5rem;
|
|
12
|
+
}
|
|
13
|
+
.rf-event__register a {
|
|
9
14
|
display: inline-block;
|
|
10
15
|
padding: 0.5rem 1rem;
|
|
11
16
|
background: var(--rf-color-primary);
|
|
@@ -14,22 +19,21 @@
|
|
|
14
19
|
font-weight: 500;
|
|
15
20
|
font-size: 0.875rem;
|
|
16
21
|
text-decoration: none;
|
|
17
|
-
margin-top: 1.5rem;
|
|
18
22
|
}
|
|
19
|
-
.rf-event__register:hover {
|
|
23
|
+
.rf-event__register a:hover {
|
|
20
24
|
background: var(--rf-color-primary-hover);
|
|
21
25
|
}
|
|
22
|
-
.rf-
|
|
26
|
+
.rf-event__body {
|
|
23
27
|
margin-top: 1.5rem;
|
|
24
28
|
}
|
|
25
|
-
.rf-
|
|
26
|
-
.rf-
|
|
29
|
+
.rf-event__body ul,
|
|
30
|
+
.rf-event__body ol {
|
|
27
31
|
padding-left: 1.5rem;
|
|
28
32
|
}
|
|
29
|
-
.rf-
|
|
33
|
+
.rf-event__body a {
|
|
30
34
|
color: var(--rf-color-primary);
|
|
31
35
|
text-decoration: none;
|
|
32
36
|
}
|
|
33
|
-
.rf-
|
|
37
|
+
.rf-event__body a:hover {
|
|
34
38
|
color: var(--rf-color-primary-hover);
|
|
35
39
|
}
|
package/styles/runes/faction.css
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
/* Faction
|
|
2
|
-
.
|
|
1
|
+
/* Faction — split/stacked geometry, the title, and the metadata def-list all
|
|
2
|
+
* come from the shared layers: layouts/split.css ([data-layout] +
|
|
3
|
+
* [data-section="media"]), dimensions/sections.css ([data-section="title"] /
|
|
4
|
+
* "preamble"), and dimensions/metadata.css ([data-zone-layout]). This file
|
|
5
|
+
* only carries faction-specific chrome. */
|
|
6
|
+
|
|
7
|
+
/* Stacked layout — split / split-reverse are handled by shared split.css */
|
|
8
|
+
.rf-faction[data-layout="stacked"] {
|
|
3
9
|
display: flex;
|
|
4
10
|
flex-direction: column;
|
|
5
11
|
}
|
|
@@ -19,13 +25,6 @@
|
|
|
19
25
|
.rf-faction__content ol {
|
|
20
26
|
padding-left: 1.5rem;
|
|
21
27
|
}
|
|
22
|
-
.rf-faction > span[property="name"] {
|
|
23
|
-
display: block;
|
|
24
|
-
font-size: 1.5rem;
|
|
25
|
-
font-weight: 700;
|
|
26
|
-
margin-bottom: 0.5rem;
|
|
27
|
-
color: var(--rf-color-heading);
|
|
28
|
-
}
|
|
29
28
|
|
|
30
29
|
/* Faction Section */
|
|
31
30
|
.rf-faction-section {
|
|
@@ -44,112 +43,3 @@
|
|
|
44
43
|
.rf-faction-section__body ol {
|
|
45
44
|
padding-left: 1.5rem;
|
|
46
45
|
}
|
|
47
|
-
|
|
48
|
-
/* Split layout — shared */
|
|
49
|
-
.rf-faction[data-layout="split"],
|
|
50
|
-
.rf-faction[data-layout="split-reverse"] {
|
|
51
|
-
display: grid;
|
|
52
|
-
grid-template-columns: var(--split-ratio, 1fr 1fr);
|
|
53
|
-
column-gap: var(--split-gap, 2rem);
|
|
54
|
-
align-items: var(--split-valign, start);
|
|
55
|
-
}
|
|
56
|
-
/* Split: badge + name + content left (col 1), scene right (col 2) */
|
|
57
|
-
.rf-faction[data-layout="split"] > .rf-faction__badge {
|
|
58
|
-
grid-column: 1;
|
|
59
|
-
grid-row: 1;
|
|
60
|
-
}
|
|
61
|
-
.rf-faction[data-layout="split"] > span[property="name"] {
|
|
62
|
-
grid-column: 1;
|
|
63
|
-
grid-row: 2;
|
|
64
|
-
}
|
|
65
|
-
.rf-faction[data-layout="split"] > .rf-faction__content {
|
|
66
|
-
grid-column: 1;
|
|
67
|
-
grid-row: 3;
|
|
68
|
-
}
|
|
69
|
-
.rf-faction[data-layout="split"] > .rf-faction__scene {
|
|
70
|
-
grid-column: 2;
|
|
71
|
-
grid-row: 1 / 4;
|
|
72
|
-
}
|
|
73
|
-
/* Split-reverse: scene left (col 1), badge + name + content right (col 2) */
|
|
74
|
-
.rf-faction[data-layout="split-reverse"] > .rf-faction__badge {
|
|
75
|
-
grid-column: 2;
|
|
76
|
-
grid-row: 1;
|
|
77
|
-
}
|
|
78
|
-
.rf-faction[data-layout="split-reverse"] > span[property="name"] {
|
|
79
|
-
grid-column: 2;
|
|
80
|
-
grid-row: 2;
|
|
81
|
-
}
|
|
82
|
-
.rf-faction[data-layout="split-reverse"] > .rf-faction__content {
|
|
83
|
-
grid-column: 2;
|
|
84
|
-
grid-row: 3;
|
|
85
|
-
}
|
|
86
|
-
.rf-faction[data-layout="split-reverse"] > .rf-faction__scene {
|
|
87
|
-
grid-column: 1;
|
|
88
|
-
grid-row: 1 / 4;
|
|
89
|
-
margin: 0;
|
|
90
|
-
}
|
|
91
|
-
/* Collapse to single column on small screens */
|
|
92
|
-
@media (max-width: 640px) {
|
|
93
|
-
.rf-faction[data-layout="split"],
|
|
94
|
-
.rf-faction[data-layout="split-reverse"] {
|
|
95
|
-
grid-template-columns: 1fr;
|
|
96
|
-
}
|
|
97
|
-
.rf-faction[data-layout="split"] > .rf-faction__badge,
|
|
98
|
-
.rf-faction[data-layout="split"] > span[property="name"],
|
|
99
|
-
.rf-faction[data-layout="split"] > .rf-faction__content,
|
|
100
|
-
.rf-faction[data-layout="split"] > .rf-faction__scene,
|
|
101
|
-
.rf-faction[data-layout="split-reverse"] > .rf-faction__badge,
|
|
102
|
-
.rf-faction[data-layout="split-reverse"] > span[property="name"],
|
|
103
|
-
.rf-faction[data-layout="split-reverse"] > .rf-faction__content,
|
|
104
|
-
.rf-faction[data-layout="split-reverse"] > .rf-faction__scene {
|
|
105
|
-
grid-column: auto;
|
|
106
|
-
grid-row: auto;
|
|
107
|
-
}
|
|
108
|
-
.rf-faction[data-layout="split"]:not([data-media-position="top"]) > .rf-faction__scene,
|
|
109
|
-
.rf-faction[data-layout="split-reverse"]:not([data-media-position="top"]) > .rf-faction__scene {
|
|
110
|
-
margin-bottom: var(--rf-spacing-md);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
/* Reset grid placement when data-collapse triggers single-column from shared split.css */
|
|
114
|
-
@media (max-width: 640px) {
|
|
115
|
-
.rf-faction[data-collapse="sm"] > .rf-faction__badge,
|
|
116
|
-
.rf-faction[data-collapse="sm"] > span[property="name"],
|
|
117
|
-
.rf-faction[data-collapse="sm"] > .rf-faction__content,
|
|
118
|
-
.rf-faction[data-collapse="sm"] > .rf-faction__scene {
|
|
119
|
-
grid-column: auto;
|
|
120
|
-
grid-row: auto;
|
|
121
|
-
}
|
|
122
|
-
.rf-faction[data-collapse="sm"]:not([data-media-position="top"]) > .rf-faction__scene {
|
|
123
|
-
margin-bottom: var(--rf-spacing-md);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
@media (max-width: 768px) {
|
|
127
|
-
.rf-faction[data-collapse="md"] > .rf-faction__badge,
|
|
128
|
-
.rf-faction[data-collapse="md"] > span[property="name"],
|
|
129
|
-
.rf-faction[data-collapse="md"] > .rf-faction__content,
|
|
130
|
-
.rf-faction[data-collapse="md"] > .rf-faction__scene {
|
|
131
|
-
grid-column: auto;
|
|
132
|
-
grid-row: auto;
|
|
133
|
-
}
|
|
134
|
-
.rf-faction[data-collapse="md"]:not([data-media-position="top"]) > .rf-faction__scene {
|
|
135
|
-
margin-bottom: var(--rf-spacing-md);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
@media (max-width: 1024px) {
|
|
139
|
-
.rf-faction[data-collapse="lg"] > .rf-faction__badge,
|
|
140
|
-
.rf-faction[data-collapse="lg"] > span[property="name"],
|
|
141
|
-
.rf-faction[data-collapse="lg"] > .rf-faction__content,
|
|
142
|
-
.rf-faction[data-collapse="lg"] > .rf-faction__scene {
|
|
143
|
-
grid-column: auto;
|
|
144
|
-
grid-row: auto;
|
|
145
|
-
}
|
|
146
|
-
.rf-faction[data-collapse="lg"]:not([data-media-position="top"]) > .rf-faction__scene {
|
|
147
|
-
margin-bottom: var(--rf-spacing-md);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* Split layout scene gets subtle depth */
|
|
152
|
-
.rf-faction[data-layout="split"] .rf-faction__scene img,
|
|
153
|
-
.rf-faction[data-layout="split-reverse"] .rf-faction__scene img {
|
|
154
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
155
|
-
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* file-ref — path-based inline reference to a project file (SPEC-078).
|
|
2
|
+
*
|
|
3
|
+
* Renders as `<span class="rf-file-ref"><a>label</a></span>` in prose
|
|
4
|
+
* (plus an invisible hoist sentinel `<meta>` when preview="drawer").
|
|
5
|
+
* The span carries the data-rune class; the inner `<a>` is the click
|
|
6
|
+
* target with its own visual treatment.
|
|
7
|
+
*
|
|
8
|
+
* Without preview, the link points at the canonical GitHub URL — give
|
|
9
|
+
* it a small external-link affordance so readers know they're about to
|
|
10
|
+
* leave the page. With preview, it points at the hoisted drawer's
|
|
11
|
+
* fragment id; visually the same inline-link affordance — what makes
|
|
12
|
+
* it a "preview link" rather than a "navigate-away link" is the drawer
|
|
13
|
+
* that opens on click, not extra inline chrome.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
.rf-file-ref {
|
|
17
|
+
display: inline;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.rf-file-ref > a {
|
|
21
|
+
color: var(--rf-color-primary);
|
|
22
|
+
text-decoration: underline;
|
|
23
|
+
text-decoration-thickness: 1px;
|
|
24
|
+
text-underline-offset: 2px;
|
|
25
|
+
font-family: var(--rf-font-mono, ui-monospace, SFMono-Regular, monospace);
|
|
26
|
+
font-size: 0.9375em;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.rf-file-ref > a:hover {
|
|
30
|
+
text-decoration-thickness: 2px;
|
|
31
|
+
}
|