@panphora/hyper-cms 0.4.2 → 0.5.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/README.md +26 -4
- package/dist/hypercms.min.js +1040 -220
- package/package.json +5 -3
- package/src/events.js +221 -14
- package/src/form-builder.js +32 -3
- package/src/form-rules.js +7 -5
- package/src/hypercms-bundle.js +5 -2
- package/src/hypercms.js +191 -4
- package/src/refresh.js +2 -1
- package/src/shell.js +80 -16
- package/src/templates.js +165 -24
- package/src/theme/pixel-quiet.overrides.css +503 -0
- package/src/theme.generated.css +1074 -0
- package/src/vendor/mirk.vendor.js +197 -0
|
@@ -0,0 +1,1074 @@
|
|
|
1
|
+
/* GENERATED by scripts/build-theme.js from mirk-ui-kit/mirk.css — DO NOT EDIT.
|
|
2
|
+
Source of truth: mirk-ui-kit/mirk.css + src/theme/pixel-quiet.overrides.css.
|
|
3
|
+
Regenerate with: npm run build:theme */
|
|
4
|
+
|
|
5
|
+
/* ===== mirk-interface@2.0.1, scoped to .hcms-shell ===== */
|
|
6
|
+
/*
|
|
7
|
+
* mirk.css — the mirk UI kit, v2.
|
|
8
|
+
* Hand-written, no build. Fourteen form components as semantic BEM classes in
|
|
9
|
+
* @layer components, so utilities (Tailwind or your own) always override them
|
|
10
|
+
* with zero !important. Renders fully standalone; Tailwind is optional.
|
|
11
|
+
*
|
|
12
|
+
* Two hinges (see mirk-ui-guide.md):
|
|
13
|
+
* 1. Components live in @layer components → utilities win.
|
|
14
|
+
* 2. State serializes into the DOM (native attrs, :has(), inline --mirk-value)
|
|
15
|
+
* so document.documentElement.outerHTML round-trips every visible state.
|
|
16
|
+
*
|
|
17
|
+
* This @layer statement makes the file self-sufficient without Tailwind, and
|
|
18
|
+
* merges into Tailwind's own order (@layer theme, base, components, utilities)
|
|
19
|
+
* when present.
|
|
20
|
+
*/
|
|
21
|
+
@layer base, components;
|
|
22
|
+
|
|
23
|
+
@layer base {
|
|
24
|
+
/* Components are authored border-box (a 2px bevel must not grow the box). */
|
|
25
|
+
.hcms-shell *, .hcms-shell *::before, .hcms-shell *::after { box-sizing: border-box; }
|
|
26
|
+
.hcms-shell button, .hcms-shell input, .hcms-shell optgroup, .hcms-shell select, .hcms-shell textarea { margin: 0; }
|
|
27
|
+
|
|
28
|
+
@font-face {
|
|
29
|
+
font-family: 'Departure Mono';
|
|
30
|
+
src: url('https://cdn.jsdelivr.net/npm/mirk-interface@2.0.1/fonts/DepartureMono-1.500/DepartureMono-Regular.woff2') format('woff2');
|
|
31
|
+
font-weight: 400; font-style: normal; font-display: swap;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.hcms-shell { font-family: 'Departure Mono', ui-monospace, "Menlo", monospace; }
|
|
35
|
+
/* Preflight sets these to ui-monospace; keep them in Departure Mono. */
|
|
36
|
+
.hcms-shell pre, .hcms-shell code, .hcms-shell kbd, .hcms-shell samp { font-family: inherit; }
|
|
37
|
+
|
|
38
|
+
/* 28 tokens, one value each. light-dark() picks the side from color-scheme. */
|
|
39
|
+
.hcms-shell {
|
|
40
|
+
color-scheme: light dark; /* default: follow the OS */
|
|
41
|
+
|
|
42
|
+
--mirk-canvas: light-dark(#F7F2EA, #0B0C13);
|
|
43
|
+
--mirk-bg: light-dark(#F7F2EA, #1D1F2F);
|
|
44
|
+
--mirk-fg: light-dark(#15120e, #F6F7F9);
|
|
45
|
+
--mirk-accent: light-dark(#efefe5, #232639);
|
|
46
|
+
--mirk-destructive: light-dark(#d4183d, #ff5566);
|
|
47
|
+
--mirk-focus-color: light-dark(#BBA288, #5A607F);
|
|
48
|
+
--mirk-bevel-bg: light-dark(#e9d3bd, #1D1F2F);
|
|
49
|
+
--mirk-bevel-fg: light-dark(#15120e, #F6F7F9);
|
|
50
|
+
--mirk-bevel-tl: light-dark(#f3ddc7, #474C65);
|
|
51
|
+
--mirk-bevel-br: light-dark(#c2ad95, #131725);
|
|
52
|
+
--mirk-bevel-hover-bg: light-dark(#dfc9b3, #232639);
|
|
53
|
+
--mirk-pill-inner-top: light-dark(#efdac7, #232639);
|
|
54
|
+
--mirk-input-border: light-dark(#957E65, #6E738E);
|
|
55
|
+
--mirk-placeholder-color: light-dark(#7F7366, #545973);
|
|
56
|
+
--mirk-ctrl-bg: light-dark(#8C7660, #5F6582);
|
|
57
|
+
--mirk-toggle-bg: light-dark(#DFC9AF, #656D95);
|
|
58
|
+
--mirk-toggle-hi: light-dark(#E9D6C3, #7F87AD);
|
|
59
|
+
--mirk-toggle-lo: light-dark(#C7A88A, #505677);
|
|
60
|
+
--mirk-mark-fg: light-dark(#3F3225, #E1E3EA);
|
|
61
|
+
--mirk-sortable-dot: light-dark(#e2c5a6, #393f5b);
|
|
62
|
+
--mirk-sortable-shadow: light-dark(#c7a47f, #111527);
|
|
63
|
+
--mirk-sortable-label: light-dark(#231e18, #edeef2);
|
|
64
|
+
--mirk-sortable-placeholder: light-dark(#99826c, #6f7695);
|
|
65
|
+
--mirk-slider-fill: light-dark(#e9d3bd, #232639);
|
|
66
|
+
--mirk-slider-nub-bg: light-dark(#DFC9AF, #656D95);
|
|
67
|
+
--mirk-slider-nub-hi: light-dark(#E9D6C3, #7F87AD);
|
|
68
|
+
--mirk-slider-nub-lo: light-dark(#C7A88A, #505677);
|
|
69
|
+
|
|
70
|
+
--mirk-radius: 5px; /* the "rounded" corner */
|
|
71
|
+
--mirk-focus-offset: 2px; /* non-color → can't ride light-dark() */
|
|
72
|
+
|
|
73
|
+
background: var(--mirk-canvas);
|
|
74
|
+
color: var(--mirk-fg);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* The one non-color token with a real light/dark split (was 2px / 3px). */
|
|
78
|
+
@media (prefers-color-scheme: dark) { .hcms-shell { --mirk-focus-offset: 3px; } }
|
|
79
|
+
|
|
80
|
+
/* Force a mode on any subtree with one attribute (class aliases for hosts that
|
|
81
|
+
prefer class-based theming and Tailwind's dark-variant convention). Each also
|
|
82
|
+
paints its own canvas so a wrapper visibly flips. */
|
|
83
|
+
.hcms-shell[data-theme="light"], .hcms-shell.light {
|
|
84
|
+
color-scheme: light; --mirk-focus-offset: 2px;
|
|
85
|
+
background: var(--mirk-canvas); color: var(--mirk-fg);
|
|
86
|
+
}
|
|
87
|
+
.hcms-shell[data-theme="dark"], .hcms-shell.dark {
|
|
88
|
+
color-scheme: dark; --mirk-focus-offset: 3px;
|
|
89
|
+
background: var(--mirk-canvas); color: var(--mirk-fg);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Brand-theme escape hatch:
|
|
93
|
+
[data-theme="sunset"] { color-scheme: light; --mirk-accent: #f0a868; … } */
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@layer components {
|
|
97
|
+
/* Visually hidden, still focusable/announced. The hidden native input behind
|
|
98
|
+
every custom control relies on it; Tailwind is optional now. */
|
|
99
|
+
.hcms-shell .mirk-sr-only {
|
|
100
|
+
position: absolute; width: 1px; height: 1px;
|
|
101
|
+
padding: 0; margin: -1px; overflow: hidden;
|
|
102
|
+
clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ============================ BUTTON ============================ */
|
|
106
|
+
.hcms-shell .mirk-button {
|
|
107
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
|
|
108
|
+
font: inherit; line-height: 1.5; cursor: pointer; user-select: none;
|
|
109
|
+
text-align: center;
|
|
110
|
+
color: var(--mirk-bevel-fg);
|
|
111
|
+
background: var(--mirk-bevel-bg);
|
|
112
|
+
border: 2px solid;
|
|
113
|
+
/* Raised bevel: light top+left, dark right+bottom. Shorthand is T R B L. */
|
|
114
|
+
border-color: var(--mirk-bevel-tl) var(--mirk-bevel-br) var(--mirk-bevel-br) var(--mirk-bevel-tl);
|
|
115
|
+
padding: 4px 14px 5px; /* medium */
|
|
116
|
+
outline: none;
|
|
117
|
+
}
|
|
118
|
+
.hcms-shell .mirk-button__label { white-space: nowrap; user-select: none; display: inline-block; }
|
|
119
|
+
|
|
120
|
+
/* States, written once, shared by every size and shape. */
|
|
121
|
+
.hcms-shell .mirk-button:hover { background-color: var(--mirk-bevel-hover-bg); }
|
|
122
|
+
.hcms-shell .mirk-button:active {
|
|
123
|
+
border-color: var(--mirk-bevel-br) var(--mirk-bevel-tl) var(--mirk-bevel-tl) var(--mirk-bevel-br);
|
|
124
|
+
}
|
|
125
|
+
.hcms-shell .mirk-button:not(.mirk-button--round):active .mirk-button__label { translate: 1.5px 1.5px; }
|
|
126
|
+
/* Direct focus (a real <button>) or a focus-visible descendant (a <label>
|
|
127
|
+
wrapping a hidden input, as the file/image upload triggers do). */
|
|
128
|
+
.hcms-shell .mirk-button:focus-visible, .hcms-shell .mirk-button:has(:focus-visible) {
|
|
129
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
130
|
+
}
|
|
131
|
+
.hcms-shell .mirk-button:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
132
|
+
|
|
133
|
+
/* Sizes set padding + font (rect); round re-homes padding to the label below. */
|
|
134
|
+
.hcms-shell .mirk-button--small { padding: 3px 12px; font-size: 14px; }
|
|
135
|
+
.hcms-shell .mirk-button--large { padding: 4px 17px 7px; font-size: 18px; border-width: 3px; }
|
|
136
|
+
|
|
137
|
+
/* Round register: a gradient pill frame with the label as the inner fill. */
|
|
138
|
+
.hcms-shell .mirk-button--round {
|
|
139
|
+
border: none; padding: 2px; border-radius: 14px;
|
|
140
|
+
background-color: var(--mirk-canvas);
|
|
141
|
+
background-image: linear-gradient(to top in oklab, var(--mirk-bevel-br), var(--mirk-bevel-tl));
|
|
142
|
+
opacity: 0.9; transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
143
|
+
}
|
|
144
|
+
.hcms-shell .mirk-button--round:hover { opacity: 1; }
|
|
145
|
+
.hcms-shell .mirk-button--round:active {
|
|
146
|
+
background-image: linear-gradient(to bottom in oklab, var(--mirk-bevel-br), var(--mirk-bevel-tl));
|
|
147
|
+
}
|
|
148
|
+
.hcms-shell .mirk-button--round .mirk-button__label {
|
|
149
|
+
display: flex; align-items: center; gap: 0.5rem;
|
|
150
|
+
padding: 4px 17px 6px; border-radius: 12px;
|
|
151
|
+
color: var(--mirk-bevel-fg);
|
|
152
|
+
background-color: var(--mirk-bevel-bg);
|
|
153
|
+
background-image: linear-gradient(to top in oklab, var(--mirk-bevel-bg), var(--mirk-pill-inner-top));
|
|
154
|
+
}
|
|
155
|
+
.hcms-shell .mirk-button--round.mirk-button--small { border-radius: 12px; }
|
|
156
|
+
.hcms-shell .mirk-button--round.mirk-button--small .mirk-button__label { padding: 2px 14px; border-radius: 10px; }
|
|
157
|
+
.hcms-shell .mirk-button--round.mirk-button--large { border-radius: 16px; }
|
|
158
|
+
.hcms-shell .mirk-button--round.mirk-button--large .mirk-button__label { padding: 7px 24px 9px; border-radius: 14px; }
|
|
159
|
+
|
|
160
|
+
/* ============================ TEXT INPUT ============================ */
|
|
161
|
+
.hcms-shell .mirk-input {
|
|
162
|
+
width: 100%;
|
|
163
|
+
background: var(--mirk-bevel-bg); color: var(--mirk-bevel-fg);
|
|
164
|
+
border: 1px solid var(--mirk-input-border);
|
|
165
|
+
padding: 5px 14px 6px; /* medium */
|
|
166
|
+
font: inherit; line-height: 1.5; border-radius: 0; outline: none;
|
|
167
|
+
}
|
|
168
|
+
.hcms-shell .mirk-input::placeholder { color: var(--mirk-placeholder-color); }
|
|
169
|
+
.hcms-shell .mirk-input:focus-visible {
|
|
170
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
171
|
+
}
|
|
172
|
+
.hcms-shell .mirk-input--small { padding: 4px 12px; font-size: 14px; }
|
|
173
|
+
.hcms-shell .mirk-input--large { padding: 6px 17px 9px; font-size: 18px; }
|
|
174
|
+
.hcms-shell .mirk-input--rounded { border-radius: var(--mirk-radius); }
|
|
175
|
+
|
|
176
|
+
/* ============================ TEXTAREA ============================ */
|
|
177
|
+
.hcms-shell .mirk-textarea {
|
|
178
|
+
width: 100%;
|
|
179
|
+
background: var(--mirk-bevel-bg); color: var(--mirk-bevel-fg);
|
|
180
|
+
border: 1px solid var(--mirk-input-border);
|
|
181
|
+
padding: 6px 17px 9px; font: inherit; font-size: 18px; line-height: 1.5;
|
|
182
|
+
border-radius: 0; outline: none; resize: vertical;
|
|
183
|
+
}
|
|
184
|
+
.hcms-shell .mirk-textarea::placeholder { color: var(--mirk-placeholder-color); }
|
|
185
|
+
.hcms-shell .mirk-textarea:focus-visible {
|
|
186
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
187
|
+
}
|
|
188
|
+
.hcms-shell .mirk-textarea--rounded { border-radius: var(--mirk-radius); }
|
|
189
|
+
|
|
190
|
+
/* ============================ NUMBER ============================ */
|
|
191
|
+
.hcms-shell .mirk-number {
|
|
192
|
+
display: flex; align-items: stretch; width: 100%;
|
|
193
|
+
background: var(--mirk-bevel-bg);
|
|
194
|
+
border: 1px solid var(--mirk-input-border); border-radius: 0;
|
|
195
|
+
}
|
|
196
|
+
.hcms-shell .mirk-number:has(:focus-visible) {
|
|
197
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
198
|
+
}
|
|
199
|
+
.hcms-shell .mirk-number__input {
|
|
200
|
+
flex: 1; min-width: 0; background: transparent; color: var(--mirk-bevel-fg);
|
|
201
|
+
padding: 5px 10px 6px 14px; /* medium */
|
|
202
|
+
font: inherit; line-height: 1.5; outline: none;
|
|
203
|
+
appearance: textfield; -webkit-appearance: textfield;
|
|
204
|
+
}
|
|
205
|
+
.hcms-shell .mirk-number__input::-webkit-outer-spin-button, .hcms-shell .mirk-number__input::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; }
|
|
206
|
+
.hcms-shell .mirk-number__steps { display: flex; flex-direction: column; padding: 2px; gap: 2px; }
|
|
207
|
+
.hcms-shell .mirk-number__step {
|
|
208
|
+
flex: 1; cursor: pointer; line-height: 1; padding: 0 10px; font-size: 9px; /* medium */
|
|
209
|
+
display: flex; align-items: center; justify-content: center;
|
|
210
|
+
background: var(--mirk-bevel-bg); outline: none;
|
|
211
|
+
border: 2px solid;
|
|
212
|
+
border-color: var(--mirk-bevel-tl) var(--mirk-bevel-br) var(--mirk-bevel-br) var(--mirk-bevel-tl);
|
|
213
|
+
}
|
|
214
|
+
.hcms-shell .mirk-number__step:hover { background: var(--mirk-bevel-hover-bg); }
|
|
215
|
+
.hcms-shell .mirk-number__step:active {
|
|
216
|
+
border-color: var(--mirk-bevel-br) var(--mirk-bevel-tl) var(--mirk-bevel-tl) var(--mirk-bevel-br);
|
|
217
|
+
}
|
|
218
|
+
.hcms-shell .mirk-number__step:focus-visible { outline: 1px solid var(--mirk-focus-color); outline-offset: 1px; }
|
|
219
|
+
|
|
220
|
+
.hcms-shell .mirk-number--small .mirk-number__input { padding: 4px 8px 4px 12px; font-size: 14px; }
|
|
221
|
+
.hcms-shell .mirk-number--small .mirk-number__step { padding: 0 8px; font-size: 8px; }
|
|
222
|
+
.hcms-shell .mirk-number--large .mirk-number__input { padding: 6px 12px 9px 17px; font-size: 18px; }
|
|
223
|
+
.hcms-shell .mirk-number--large .mirk-number__step { padding: 0 12px; font-size: 10px; }
|
|
224
|
+
|
|
225
|
+
.hcms-shell .mirk-number--rounded { border-radius: var(--mirk-radius); }
|
|
226
|
+
.hcms-shell .mirk-number--rounded .mirk-number__step { border-radius: 3px; }
|
|
227
|
+
|
|
228
|
+
/* ============================ SELECT / DROPDOWN ============================ */
|
|
229
|
+
/* Keeps appearance:none + a real chevron (renders identically everywhere today);
|
|
230
|
+
base-select/::picker is a future enhancement. */
|
|
231
|
+
.hcms-shell .mirk-select { position: relative; }
|
|
232
|
+
.hcms-shell .mirk-select__field {
|
|
233
|
+
width: 100%; appearance: none; -webkit-appearance: none;
|
|
234
|
+
background: var(--mirk-bevel-bg); color: var(--mirk-bevel-fg);
|
|
235
|
+
border: 2px solid;
|
|
236
|
+
border-color: var(--mirk-bevel-tl) var(--mirk-bevel-br) var(--mirk-bevel-br) var(--mirk-bevel-tl);
|
|
237
|
+
padding: 4px 40px 5px 14px; /* medium */
|
|
238
|
+
font: inherit; line-height: 1.5; border-radius: 0; outline: none;
|
|
239
|
+
}
|
|
240
|
+
.hcms-shell .mirk-select__field:focus-visible {
|
|
241
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
242
|
+
}
|
|
243
|
+
.hcms-shell .mirk-select__chevron {
|
|
244
|
+
pointer-events: none; position: absolute; top: 50%; right: 14px; /* medium */
|
|
245
|
+
translate: 0 -50%; rotate: 90deg; display: inline-block; line-height: 1; font-size: 20px;
|
|
246
|
+
}
|
|
247
|
+
.hcms-shell .mirk-select--small .mirk-select__field { padding: 3px 36px 3px 12px; font-size: 14px; }
|
|
248
|
+
.hcms-shell .mirk-select--small .mirk-select__chevron { right: 12px; font-size: 18px; }
|
|
249
|
+
.hcms-shell .mirk-select--large .mirk-select__field { padding: 4px 48px 7px 17px; font-size: 18px; border-width: 3px; }
|
|
250
|
+
.hcms-shell .mirk-select--large .mirk-select__chevron { right: 16px; font-size: 24px; }
|
|
251
|
+
|
|
252
|
+
/* Round: gradient pill frame around a borderless, pill-filled select. */
|
|
253
|
+
.hcms-shell .mirk-select--round .mirk-select__frame {
|
|
254
|
+
padding: 2px; border-radius: 14px; /* medium */
|
|
255
|
+
background-color: var(--mirk-canvas);
|
|
256
|
+
background-image: linear-gradient(to top in oklab, var(--mirk-bevel-br), var(--mirk-bevel-tl));
|
|
257
|
+
}
|
|
258
|
+
.hcms-shell .mirk-select--round .mirk-select__frame:has(:focus-visible) {
|
|
259
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
260
|
+
}
|
|
261
|
+
.hcms-shell .mirk-select--round .mirk-select__field {
|
|
262
|
+
border: none; background-color: transparent;
|
|
263
|
+
background-image: linear-gradient(to top in oklab, var(--mirk-bevel-bg), var(--mirk-pill-inner-top));
|
|
264
|
+
border-radius: 12px; padding: 4px 40px 6px 17px; /* medium */
|
|
265
|
+
}
|
|
266
|
+
.hcms-shell .mirk-select--round.mirk-select--small .mirk-select__frame { border-radius: 12px; }
|
|
267
|
+
.hcms-shell .mirk-select--round.mirk-select--small .mirk-select__field { border-radius: 10px; padding: 2px 36px 2px 14px; }
|
|
268
|
+
.hcms-shell .mirk-select--round.mirk-select--large .mirk-select__frame { border-radius: 16px; }
|
|
269
|
+
.hcms-shell .mirk-select--round.mirk-select--large .mirk-select__field { border-radius: 14px; padding: 7px 48px 9px 24px; }
|
|
270
|
+
.hcms-shell .mirk-select--round.mirk-select--large .mirk-select__chevron { right: 16px; font-size: 24px; }
|
|
271
|
+
|
|
272
|
+
/* ============================ CHECKBOX ============================ */
|
|
273
|
+
.hcms-shell .mirk-checkbox { display: inline-flex; align-items: center; gap: 0.75rem; cursor: pointer; width: fit-content; }
|
|
274
|
+
.hcms-shell .mirk-checkbox__box {
|
|
275
|
+
position: relative; flex-shrink: 0; width: 22px; height: 22px;
|
|
276
|
+
display: flex; align-items: center; justify-content: center; border-radius: 0;
|
|
277
|
+
background: var(--mirk-bevel-bg);
|
|
278
|
+
border: 2px solid;
|
|
279
|
+
border-color: var(--mirk-bevel-tl) var(--mirk-bevel-br) var(--mirk-bevel-br) var(--mirk-bevel-tl);
|
|
280
|
+
}
|
|
281
|
+
.hcms-shell .mirk-checkbox__mark {
|
|
282
|
+
opacity: 0; display: block; width: 6px; height: 12px;
|
|
283
|
+
border-right: 2.5px solid var(--mirk-mark-fg); border-bottom: 2.5px solid var(--mirk-mark-fg);
|
|
284
|
+
rotate: 45deg; translate: 0.5px -1.5px;
|
|
285
|
+
}
|
|
286
|
+
.hcms-shell .mirk-checkbox__label { font-size: 18px; line-height: 1.5; }
|
|
287
|
+
|
|
288
|
+
.hcms-shell .mirk-checkbox:has(:checked) .mirk-checkbox__box { border-color: var(--mirk-input-border); }
|
|
289
|
+
.hcms-shell .mirk-checkbox:has(:checked) .mirk-checkbox__mark { opacity: 1; }
|
|
290
|
+
.hcms-shell .mirk-checkbox:has(:focus-visible) .mirk-checkbox__box {
|
|
291
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* ============================ RADIO ============================ */
|
|
295
|
+
.hcms-shell .mirk-radio { display: inline-flex; align-items: center; gap: 0.75rem; cursor: pointer; width: fit-content; }
|
|
296
|
+
.hcms-shell .mirk-radio__ring {
|
|
297
|
+
position: relative; flex-shrink: 0; width: 25px; height: 25px; border-radius: 9999px;
|
|
298
|
+
background-image: linear-gradient(to top in oklab, var(--mirk-bevel-br), var(--mirk-bevel-tl));
|
|
299
|
+
}
|
|
300
|
+
.hcms-shell .mirk-radio__fill {
|
|
301
|
+
display: block; position: absolute; inset: 2px; border-radius: 9999px;
|
|
302
|
+
background-image: linear-gradient(to top in oklab, var(--mirk-bevel-bg), var(--mirk-pill-inner-top));
|
|
303
|
+
}
|
|
304
|
+
.hcms-shell .mirk-radio__dot {
|
|
305
|
+
display: none; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
|
|
306
|
+
width: 9px; height: 9px; border-radius: 9999px; background: var(--mirk-mark-fg);
|
|
307
|
+
}
|
|
308
|
+
.hcms-shell .mirk-radio__label { font-size: 18px; line-height: 1.5; }
|
|
309
|
+
|
|
310
|
+
.hcms-shell .mirk-radio:has(:checked) .mirk-radio__ring {
|
|
311
|
+
background-image: none; background-color: var(--mirk-bevel-bg);
|
|
312
|
+
border: 2px solid var(--mirk-input-border);
|
|
313
|
+
}
|
|
314
|
+
.hcms-shell .mirk-radio:has(:checked) .mirk-radio__fill { display: none; }
|
|
315
|
+
.hcms-shell .mirk-radio:has(:checked) .mirk-radio__dot { display: block; }
|
|
316
|
+
.hcms-shell .mirk-radio:has(:focus-visible) .mirk-radio__ring {
|
|
317
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* ============================ TOGGLE ============================ */
|
|
321
|
+
.hcms-shell .mirk-toggle { display: inline-flex; align-items: center; gap: 0.75rem; cursor: pointer; width: fit-content; }
|
|
322
|
+
.hcms-shell .mirk-toggle__track {
|
|
323
|
+
position: relative; flex-shrink: 0; width: 49px; height: 27px; border-radius: 0;
|
|
324
|
+
border: 1px solid var(--mirk-input-border);
|
|
325
|
+
}
|
|
326
|
+
.hcms-shell .mirk-toggle__thumb {
|
|
327
|
+
position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
|
|
328
|
+
background-color: var(--mirk-toggle-bg);
|
|
329
|
+
border: 2px solid;
|
|
330
|
+
border-color: var(--mirk-toggle-hi) var(--mirk-toggle-lo) var(--mirk-toggle-lo) var(--mirk-toggle-hi);
|
|
331
|
+
transition-property: transform, translate, scale, rotate;
|
|
332
|
+
transition-duration: 0.15s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
333
|
+
}
|
|
334
|
+
.hcms-shell .mirk-toggle__label { font-size: 18px; line-height: 1.5; }
|
|
335
|
+
|
|
336
|
+
.hcms-shell .mirk-toggle:has(:checked) .mirk-toggle__thumb { translate: 22px; }
|
|
337
|
+
.hcms-shell .mirk-toggle:has(:focus-visible) .mirk-toggle__track {
|
|
338
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.hcms-shell .mirk-toggle--round .mirk-toggle__track { width: 50px; height: 29px; border-radius: 9999px; }
|
|
342
|
+
.hcms-shell .mirk-toggle--round .mirk-toggle__thumb {
|
|
343
|
+
width: 21px; height: 21px; border: none; border-radius: 9999px;
|
|
344
|
+
background-color: transparent;
|
|
345
|
+
background-image: linear-gradient(to top in oklab, var(--mirk-toggle-lo), var(--mirk-toggle-hi));
|
|
346
|
+
}
|
|
347
|
+
.hcms-shell .mirk-toggle--round .mirk-toggle__thumb::after {
|
|
348
|
+
content: ""; position: absolute; inset: 2px; border-radius: 9999px; background: var(--mirk-toggle-bg);
|
|
349
|
+
}
|
|
350
|
+
.hcms-shell .mirk-toggle--round:has(:checked) .mirk-toggle__thumb { translate: 21px; }
|
|
351
|
+
|
|
352
|
+
/* ============================ SLIDER ============================ */
|
|
353
|
+
.hcms-shell .mirk-slider { position: relative; height: 32px; width: 100%; --mirk-value: 0%; }
|
|
354
|
+
.hcms-shell .mirk-slider__input {
|
|
355
|
+
position: absolute; inset: 0; width: 100%; height: 100%;
|
|
356
|
+
opacity: 0; cursor: pointer; z-index: 10;
|
|
357
|
+
}
|
|
358
|
+
.hcms-shell .mirk-slider__track {
|
|
359
|
+
position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; height: 12px;
|
|
360
|
+
background: var(--mirk-canvas); border: 1px solid var(--mirk-input-border); overflow: hidden;
|
|
361
|
+
}
|
|
362
|
+
.hcms-shell .mirk-slider__fill { height: 100%; width: var(--mirk-value); background: var(--mirk-slider-fill); }
|
|
363
|
+
.hcms-shell .mirk-slider__nub {
|
|
364
|
+
position: absolute; top: 50%; left: var(--mirk-value); translate: -50% -50%;
|
|
365
|
+
width: 21px; height: 21px; pointer-events: none;
|
|
366
|
+
background-color: var(--mirk-slider-nub-bg);
|
|
367
|
+
border: 2px solid;
|
|
368
|
+
border-color: var(--mirk-slider-nub-hi) var(--mirk-slider-nub-lo) var(--mirk-slider-nub-lo) var(--mirk-slider-nub-hi);
|
|
369
|
+
}
|
|
370
|
+
.hcms-shell .mirk-slider__input:focus-visible ~ .mirk-slider__nub {
|
|
371
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.hcms-shell .mirk-slider--round .mirk-slider__track { height: 10px; border-radius: 9999px; }
|
|
375
|
+
.hcms-shell .mirk-slider--round .mirk-slider__nub {
|
|
376
|
+
width: 24px; height: 24px; border: none; border-radius: 9999px;
|
|
377
|
+
background-color: transparent;
|
|
378
|
+
background-image: linear-gradient(to top in oklab, var(--mirk-slider-nub-lo), var(--mirk-slider-nub-hi));
|
|
379
|
+
}
|
|
380
|
+
.hcms-shell .mirk-slider--round .mirk-slider__nub::after {
|
|
381
|
+
content: ""; position: absolute; inset: 2px; border-radius: 9999px; background: var(--mirk-slider-nub-bg);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* ============================ DATE ============================ */
|
|
385
|
+
.hcms-shell .mirk-date { position: relative; }
|
|
386
|
+
.hcms-shell .mirk-date__field {
|
|
387
|
+
width: 100%; background: var(--mirk-bevel-bg); color: var(--mirk-bevel-fg);
|
|
388
|
+
border: 1px solid var(--mirk-input-border);
|
|
389
|
+
padding: 6px 44px 9px 17px; font: inherit; font-size: 18px; line-height: 1.5;
|
|
390
|
+
border-radius: 0; outline: none;
|
|
391
|
+
}
|
|
392
|
+
.hcms-shell .mirk-date__field:focus-visible {
|
|
393
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
394
|
+
}
|
|
395
|
+
.hcms-shell .mirk-date__field::-webkit-calendar-picker-indicator {
|
|
396
|
+
opacity: 0; position: absolute; right: 0; top: 0; bottom: 0; width: 44px; margin: 0; cursor: pointer;
|
|
397
|
+
}
|
|
398
|
+
.hcms-shell .mirk-date__field::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; }
|
|
399
|
+
.hcms-shell .mirk-date__field::-webkit-clear-button { -webkit-appearance: none; appearance: none; }
|
|
400
|
+
.hcms-shell .mirk-date__icon {
|
|
401
|
+
pointer-events: none; position: absolute; right: 16px; top: 50%; translate: 0 -50%;
|
|
402
|
+
}
|
|
403
|
+
.hcms-shell .mirk-date--rounded .mirk-date__field { border-radius: var(--mirk-radius); }
|
|
404
|
+
|
|
405
|
+
/* The native file/image inputs are visually hidden; their styled label drives
|
|
406
|
+
them, and the focus ring rides :has(:focus-visible) on button or container. */
|
|
407
|
+
.hcms-shell .mirk-file__input, .hcms-shell .mirk-image__input {
|
|
408
|
+
position: absolute; width: 1px; height: 1px;
|
|
409
|
+
padding: 0; margin: -1px; overflow: hidden;
|
|
410
|
+
clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/* ============================ FILE ============================ */
|
|
414
|
+
.hcms-shell .mirk-file { display: flex; align-items: center; gap: 0.75rem; width: 100%; }
|
|
415
|
+
.hcms-shell .mirk-file__name {
|
|
416
|
+
color: var(--mirk-placeholder-color); font-size: 18px; line-height: 1.5;
|
|
417
|
+
min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
418
|
+
}
|
|
419
|
+
.hcms-shell .mirk-file__name[data-filled] { color: var(--mirk-bevel-fg); }
|
|
420
|
+
|
|
421
|
+
/* Compact: a shared bordered container holds a smaller button + the name. */
|
|
422
|
+
.hcms-shell .mirk-file--compact {
|
|
423
|
+
padding: 4px 8px; background: var(--mirk-bevel-bg);
|
|
424
|
+
border: 1px solid var(--mirk-input-border); border-radius: 0;
|
|
425
|
+
}
|
|
426
|
+
.hcms-shell .mirk-file--compact:has(:focus-visible) {
|
|
427
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
428
|
+
}
|
|
429
|
+
/* The upload trigger is a .mirk-button; nudge it onto the container's left
|
|
430
|
+
border so the bevel sits flush (covers compact and round-compact). */
|
|
431
|
+
.hcms-shell .mirk-file--compact .mirk-button { margin-left: -1px; }
|
|
432
|
+
.hcms-shell .mirk-file--compact .mirk-file__name { font-size: 16px; }
|
|
433
|
+
.hcms-shell .mirk-file--compact.mirk-file--round { border-radius: 15px; }
|
|
434
|
+
|
|
435
|
+
/* Filled: the name slot becomes a link to the chosen file, beside a bare × to
|
|
436
|
+
clear it (the tags-remove pattern). Empty keeps the placeholder span. */
|
|
437
|
+
.hcms-shell a.mirk-file__name { text-decoration: underline; text-underline-offset: 2px; }
|
|
438
|
+
.hcms-shell .mirk-file__remove {
|
|
439
|
+
appearance: none; -webkit-appearance: none; flex-shrink: 0;
|
|
440
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
441
|
+
margin: 0; padding: 0; border: 0; background: none; color: inherit;
|
|
442
|
+
cursor: pointer; line-height: 0;
|
|
443
|
+
}
|
|
444
|
+
.hcms-shell .mirk-file__remove svg { display: block; width: 14px; height: 14px; }
|
|
445
|
+
.hcms-shell .mirk-file__remove:hover { color: var(--mirk-destructive); }
|
|
446
|
+
|
|
447
|
+
/* ============================ IMAGE ============================ */
|
|
448
|
+
.hcms-shell .mirk-image { display: flex; flex-direction: column; gap: 0.5rem; }
|
|
449
|
+
.hcms-shell .mirk-image__frame {
|
|
450
|
+
position: relative; width: 120px; height: 120px; overflow: hidden; border-radius: 0;
|
|
451
|
+
display: flex; align-items: center; justify-content: center;
|
|
452
|
+
background: var(--mirk-bevel-bg); border: 1px solid var(--mirk-input-border);
|
|
453
|
+
color: var(--mirk-placeholder-color); font-size: 14px; line-height: 1.5;
|
|
454
|
+
}
|
|
455
|
+
.hcms-shell .mirk-image__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
456
|
+
.hcms-shell .mirk-image--rounded .mirk-image__frame { border-radius: var(--mirk-radius); }
|
|
457
|
+
/* The upload trigger is a .mirk-button; keep it hugging its label instead of
|
|
458
|
+
stretching to fill this column-flex container. */
|
|
459
|
+
.hcms-shell .mirk-image .mirk-button { width: fit-content; }
|
|
460
|
+
|
|
461
|
+
/* Compact: a focused 56px thumbnail upload. Empty shows a small upload button;
|
|
462
|
+
once an image is chosen the button hides and a thumbnail + corner × takes its
|
|
463
|
+
place. The frame clips the image (overflow hidden) while the thumb wrapper
|
|
464
|
+
stays visible, so the × can sit just outside the corner without being cut. */
|
|
465
|
+
.hcms-shell .mirk-image--compact { flex-direction: row; align-items: center; gap: 0; }
|
|
466
|
+
.hcms-shell .mirk-image__thumb { position: relative; display: inline-block; width: fit-content; margin: 0; line-height: 0; }
|
|
467
|
+
.hcms-shell .mirk-image--compact .mirk-image__frame {
|
|
468
|
+
width: 56px; height: 56px; overflow: hidden; border-radius: 0;
|
|
469
|
+
border: 1px solid var(--mirk-input-border);
|
|
470
|
+
}
|
|
471
|
+
.hcms-shell .mirk-image--compact.mirk-image--rounded .mirk-image__frame { border-radius: var(--mirk-radius); }
|
|
472
|
+
.hcms-shell .mirk-image--compact .mirk-image__preview {
|
|
473
|
+
position: static; inset: auto; width: 100%; height: 100%; display: block; object-fit: cover;
|
|
474
|
+
}
|
|
475
|
+
.hcms-shell .mirk-image__remove {
|
|
476
|
+
position: absolute; top: -7px; right: -7px;
|
|
477
|
+
width: 18px; height: 18px; border-radius: 50%; padding: 0;
|
|
478
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
479
|
+
appearance: none; -webkit-appearance: none; cursor: pointer; line-height: 0;
|
|
480
|
+
color: var(--mirk-bevel-fg); background: var(--mirk-bevel-bg);
|
|
481
|
+
border: 1px solid var(--mirk-input-border);
|
|
482
|
+
}
|
|
483
|
+
.hcms-shell .mirk-image__remove svg { display: block; width: 10px; height: 10px; }
|
|
484
|
+
.hcms-shell .mirk-image__remove:hover { color: var(--mirk-destructive); border-color: var(--mirk-destructive); }
|
|
485
|
+
|
|
486
|
+
/* ============================ TAGS ============================ */
|
|
487
|
+
.hcms-shell .mirk-tags {
|
|
488
|
+
display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.5rem;
|
|
489
|
+
background: var(--mirk-bevel-bg); border: 1px solid var(--mirk-input-border);
|
|
490
|
+
border-radius: 0; cursor: text;
|
|
491
|
+
}
|
|
492
|
+
.hcms-shell .mirk-tags:has(:focus-visible) {
|
|
493
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
494
|
+
}
|
|
495
|
+
.hcms-shell .mirk-tags__chip {
|
|
496
|
+
display: inline-flex; align-items: center; gap: 0.5rem;
|
|
497
|
+
padding: 2px 8px 2px 12px; font-size: 14px; line-height: 1.5;
|
|
498
|
+
color: var(--mirk-bevel-fg); background: var(--mirk-bevel-bg);
|
|
499
|
+
border: 2px solid;
|
|
500
|
+
border-color: var(--mirk-bevel-tl) var(--mirk-bevel-br) var(--mirk-bevel-br) var(--mirk-bevel-tl);
|
|
501
|
+
}
|
|
502
|
+
.hcms-shell .mirk-tags__remove {
|
|
503
|
+
appearance: none; -webkit-appearance: none;
|
|
504
|
+
margin: 0; padding: 0; border: 0; background: none; color: inherit;
|
|
505
|
+
cursor: pointer; font-size: 14px; line-height: 1;
|
|
506
|
+
}
|
|
507
|
+
.hcms-shell .mirk-tags__remove:hover { color: var(--mirk-destructive); }
|
|
508
|
+
.hcms-shell .mirk-tags__input {
|
|
509
|
+
appearance: none; -webkit-appearance: none;
|
|
510
|
+
border: 0; padding: 0;
|
|
511
|
+
flex: 1; min-width: 120px; background: transparent; color: var(--mirk-bevel-fg);
|
|
512
|
+
outline: none; font-size: 18px; line-height: 1.5;
|
|
513
|
+
}
|
|
514
|
+
.hcms-shell .mirk-tags__input::placeholder { color: var(--mirk-placeholder-color); }
|
|
515
|
+
|
|
516
|
+
.hcms-shell .mirk-tags--round { border-radius: 15px; }
|
|
517
|
+
.hcms-shell .mirk-tags--round .mirk-tags__chip {
|
|
518
|
+
padding: 2px; border: none; border-radius: 12px;
|
|
519
|
+
background-color: transparent;
|
|
520
|
+
background-image: linear-gradient(to top in oklab, var(--mirk-bevel-br), var(--mirk-bevel-tl));
|
|
521
|
+
}
|
|
522
|
+
.hcms-shell .mirk-tags__chip-inner {
|
|
523
|
+
display: inline-flex; align-items: center; gap: 0.5rem;
|
|
524
|
+
padding: 1px 8px 1px 12px; border-radius: 10px;
|
|
525
|
+
color: var(--mirk-bevel-fg); background-color: var(--mirk-bevel-bg);
|
|
526
|
+
background-image: linear-gradient(to top in oklab, var(--mirk-bevel-bg), var(--mirk-pill-inner-top));
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/* ============================ SORTABLE ============================ */
|
|
530
|
+
.hcms-shell .mirk-sortable { display: flex; flex-direction: column; gap: 0.5rem; }
|
|
531
|
+
.hcms-shell .mirk-sortable__item {
|
|
532
|
+
display: flex; flex-direction: row; width: 100%;
|
|
533
|
+
background: var(--mirk-bevel-bg); border: 1px solid var(--mirk-input-border);
|
|
534
|
+
}
|
|
535
|
+
.hcms-shell .mirk-sortable__grip {
|
|
536
|
+
width: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
|
|
537
|
+
cursor: grab; border-right: 1px solid var(--mirk-input-border);
|
|
538
|
+
}
|
|
539
|
+
.hcms-shell .mirk-sortable__grip:active { cursor: grabbing; }
|
|
540
|
+
.hcms-shell .mirk-sortable__dots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
|
|
541
|
+
.hcms-shell .mirk-sortable__dot {
|
|
542
|
+
display: block; width: 4px; height: 4px; background: var(--mirk-sortable-dot);
|
|
543
|
+
box-shadow: 1px 0 0 0 var(--mirk-sortable-shadow), 0 1px 0 0 var(--mirk-sortable-shadow), 1px 1px 0 0 var(--mirk-sortable-shadow);
|
|
544
|
+
}
|
|
545
|
+
.hcms-shell .mirk-sortable__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
|
|
546
|
+
.hcms-shell .mirk-sortable__row { padding: 8px 17px 9px; }
|
|
547
|
+
.hcms-shell .mirk-sortable__row:not(:last-child) { border-bottom: 1px solid var(--mirk-input-border); }
|
|
548
|
+
.hcms-shell .mirk-sortable__label {
|
|
549
|
+
display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
|
|
550
|
+
margin-bottom: 2px; color: var(--mirk-sortable-label);
|
|
551
|
+
}
|
|
552
|
+
.hcms-shell .mirk-sortable__field {
|
|
553
|
+
width: 100%; background: transparent; color: var(--mirk-bevel-fg);
|
|
554
|
+
font-size: 18px; line-height: 1.5; outline: none;
|
|
555
|
+
}
|
|
556
|
+
.hcms-shell .mirk-sortable__field::placeholder { color: var(--mirk-sortable-placeholder); }
|
|
557
|
+
.hcms-shell .mirk-sortable__field:focus-visible {
|
|
558
|
+
outline: 1px solid var(--mirk-focus-color); outline-offset: var(--mirk-focus-offset);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/* Respect the machine — outside @layer components so it always wins. */
|
|
563
|
+
@media (prefers-reduced-motion: reduce) {
|
|
564
|
+
.hcms-shell .mirk-button--round, .hcms-shell .mirk-toggle__thumb { transition: none; }
|
|
565
|
+
.hcms-shell .mirk-button:active .mirk-button__label { translate: none; }
|
|
566
|
+
}
|
|
567
|
+
@media (forced-colors: active) {
|
|
568
|
+
.hcms-shell .mirk-button, .hcms-shell .mirk-select__field, .hcms-shell .mirk-checkbox__box, .hcms-shell .mirk-toggle__track { border: 1px solid ButtonText; }
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/* ===== pixel-quiet overrides (hypercms-owned) ===== */
|
|
572
|
+
/* =====================================================================
|
|
573
|
+
Pixel Quiet — hypercms theme overrides (hypercms-owned).
|
|
574
|
+
|
|
575
|
+
Adapted from cms-sidebar/pixel-quiet/overrides.css. Two jobs:
|
|
576
|
+
1. Retune --mirk-* tokens, scoped to .hcms-shell.pixel-quiet (never :root).
|
|
577
|
+
2. Author the panel geometry + the functional chrome the static mockup
|
|
578
|
+
doesn't have (error banner, add/remove/move controls, the engine's
|
|
579
|
+
sortable cards, push / overlay / left-dock modes) on top of the
|
|
580
|
+
.hcms-* structural hooks.
|
|
581
|
+
|
|
582
|
+
This file is concatenated AFTER the scoped mirk base+components by
|
|
583
|
+
scripts/build-theme.js, so plain rules here win over mirk's @layer
|
|
584
|
+
components with zero !important. Loaded only inside .hcms-shell, so nothing
|
|
585
|
+
here leaks onto the host page.
|
|
586
|
+
===================================================================== */
|
|
587
|
+
|
|
588
|
+
/* ============================================================
|
|
589
|
+
TOKEN RETUNE — LIGHT (warm cream, gentle near-equal bevel)
|
|
590
|
+
============================================================ */
|
|
591
|
+
.hcms-shell.pixel-quiet {
|
|
592
|
+
color-scheme: light;
|
|
593
|
+
--mirk-canvas: #F7F2EA;
|
|
594
|
+
--mirk-bg: #F7F2EA;
|
|
595
|
+
--mirk-fg: #2B241B;
|
|
596
|
+
--mirk-accent: #efefe5;
|
|
597
|
+
--mirk-destructive: #C24A3A;
|
|
598
|
+
--mirk-focus-color: #C7AE93;
|
|
599
|
+
|
|
600
|
+
--mirk-bevel-bg: #FCF8F1;
|
|
601
|
+
--mirk-bevel-fg: #2B241B;
|
|
602
|
+
--mirk-bevel-tl: #F0E7D8;
|
|
603
|
+
--mirk-bevel-br: #E2D4BF;
|
|
604
|
+
--mirk-bevel-hover-bg: #F4ECDF;
|
|
605
|
+
--mirk-pill-inner-top: #FBF6EE;
|
|
606
|
+
--mirk-input-border: #D8C8AF;
|
|
607
|
+
--mirk-placeholder-color: #A8987F;
|
|
608
|
+
|
|
609
|
+
--mirk-mark-fg: #6B5942;
|
|
610
|
+
--mirk-toggle-bg: #EFDBBD;
|
|
611
|
+
--mirk-toggle-hi: #F4EADA;
|
|
612
|
+
--mirk-toggle-lo: #C2A87E;
|
|
613
|
+
--mirk-sortable-dot: #DDCBB0;
|
|
614
|
+
--mirk-sortable-shadow: #C9B493;
|
|
615
|
+
--mirk-sortable-label: #8C7B62;
|
|
616
|
+
--mirk-sortable-placeholder: #A8987F;
|
|
617
|
+
|
|
618
|
+
--mirk-radius: 5px;
|
|
619
|
+
--mirk-focus-offset: 2px;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/* dark token deltas, shared by the explicit .dark opt-in and OS preference */
|
|
623
|
+
.hcms-shell.pixel-quiet.dark,
|
|
624
|
+
.hcms-shell.pixel-quiet[data-theme="dark"] {
|
|
625
|
+
color-scheme: dark;
|
|
626
|
+
--mirk-canvas: #0B0C13;
|
|
627
|
+
--mirk-bg: #11131E;
|
|
628
|
+
--mirk-fg: #ECEAF2;
|
|
629
|
+
--mirk-accent: #1D1F2F;
|
|
630
|
+
--mirk-focus-color: #4A506B;
|
|
631
|
+
|
|
632
|
+
--mirk-bevel-bg: #1A1D2C;
|
|
633
|
+
--mirk-bevel-fg: #ECEAF2;
|
|
634
|
+
--mirk-bevel-tl: #2A2E42;
|
|
635
|
+
--mirk-bevel-br: #14182A;
|
|
636
|
+
--mirk-bevel-hover-bg: #202436;
|
|
637
|
+
--mirk-pill-inner-top: #202436;
|
|
638
|
+
--mirk-input-border: #353B52;
|
|
639
|
+
--mirk-placeholder-color: #6A7090;
|
|
640
|
+
|
|
641
|
+
--mirk-mark-fg: #C9CDE0;
|
|
642
|
+
--mirk-toggle-bg: #3E4660;
|
|
643
|
+
--mirk-toggle-hi: #4E567A;
|
|
644
|
+
--mirk-toggle-lo: #262B42;
|
|
645
|
+
--mirk-sortable-dot: #353B52;
|
|
646
|
+
--mirk-sortable-shadow: #0E1120;
|
|
647
|
+
--mirk-sortable-label: #8A90AB;
|
|
648
|
+
--mirk-sortable-placeholder: #6A7090;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/* Auto-dark on OS preference, unless the shell pins light with .light */
|
|
652
|
+
@media (prefers-color-scheme: dark) {
|
|
653
|
+
.hcms-shell.pixel-quiet:not(.light):not([data-theme="light"]) {
|
|
654
|
+
color-scheme: dark;
|
|
655
|
+
--mirk-canvas: #0B0C13;
|
|
656
|
+
--mirk-bg: #11131E;
|
|
657
|
+
--mirk-fg: #ECEAF2;
|
|
658
|
+
--mirk-accent: #1D1F2F;
|
|
659
|
+
--mirk-focus-color: #4A506B;
|
|
660
|
+
|
|
661
|
+
--mirk-bevel-bg: #1A1D2C;
|
|
662
|
+
--mirk-bevel-fg: #ECEAF2;
|
|
663
|
+
--mirk-bevel-tl: #2A2E42;
|
|
664
|
+
--mirk-bevel-br: #14182A;
|
|
665
|
+
--mirk-bevel-hover-bg: #202436;
|
|
666
|
+
--mirk-pill-inner-top: #202436;
|
|
667
|
+
--mirk-input-border: #353B52;
|
|
668
|
+
--mirk-placeholder-color: #6A7090;
|
|
669
|
+
|
|
670
|
+
--mirk-mark-fg: #C9CDE0;
|
|
671
|
+
--mirk-toggle-bg: #3E4660;
|
|
672
|
+
--mirk-toggle-hi: #4E567A;
|
|
673
|
+
--mirk-toggle-lo: #262B42;
|
|
674
|
+
--mirk-sortable-dot: #353B52;
|
|
675
|
+
--mirk-sortable-shadow: #0E1120;
|
|
676
|
+
--mirk-sortable-label: #8A90AB;
|
|
677
|
+
--mirk-sortable-placeholder: #6A7090;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/* ============================================================
|
|
682
|
+
SHELL GEOMETRY — fixed, docked panel, single column.
|
|
683
|
+
position: fixed makes the shell a containing block so the absolute
|
|
684
|
+
minibar anchors to it; flex column so the body owns the scroll.
|
|
685
|
+
============================================================ */
|
|
686
|
+
.hcms-shell.pixel-quiet {
|
|
687
|
+
box-sizing: border-box;
|
|
688
|
+
position: fixed;
|
|
689
|
+
top: 0;
|
|
690
|
+
right: 0;
|
|
691
|
+
bottom: 0;
|
|
692
|
+
width: 380px;
|
|
693
|
+
max-width: 100vw;
|
|
694
|
+
z-index: 2147483000;
|
|
695
|
+
display: flex;
|
|
696
|
+
flex-direction: column;
|
|
697
|
+
color: var(--mirk-fg);
|
|
698
|
+
background: var(--mirk-bg);
|
|
699
|
+
border-left: 1px solid var(--mirk-input-border);
|
|
700
|
+
box-shadow: -16px 0 48px -28px rgba(43, 36, 27, 0.45);
|
|
701
|
+
}
|
|
702
|
+
.hcms-shell.pixel-quiet.dark {
|
|
703
|
+
box-shadow: -16px 0 48px -28px rgba(0, 0, 0, 0.6);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.hcms-shell.pixel-quiet.hcms-side-left {
|
|
707
|
+
right: auto;
|
|
708
|
+
left: 0;
|
|
709
|
+
border-left: 0;
|
|
710
|
+
border-right: 1px solid var(--mirk-input-border);
|
|
711
|
+
box-shadow: 16px 0 48px -28px rgba(43, 36, 27, 0.45);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/* Push the page over so docked content is never hidden underneath. */
|
|
715
|
+
body.hcms-open:not(.hcms-overlay) { padding-right: 380px; }
|
|
716
|
+
body.hcms-open.hcms-side-left:not(.hcms-overlay) { padding-right: 0; padding-left: 380px; }
|
|
717
|
+
body.hcms-open.hcms-overlay { overflow: hidden; }
|
|
718
|
+
|
|
719
|
+
@media (max-width: 799px) {
|
|
720
|
+
.hcms-shell.pixel-quiet { width: 100vw; }
|
|
721
|
+
body.hcms-open:not(.hcms-overlay),
|
|
722
|
+
body.hcms-open.hcms-side-left:not(.hcms-overlay) { padding-right: 0; padding-left: 0; }
|
|
723
|
+
body.hcms-open { overflow: hidden; }
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/* ---------- SCROLL REGION — holds the (scrollable) header + form + save ---------- */
|
|
727
|
+
.hcms-shell-body {
|
|
728
|
+
flex: 1;
|
|
729
|
+
min-height: 0;
|
|
730
|
+
overflow-y: auto;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/* ---------- CONDENSED MINIBAR — appears once the full header scrolls away ---------- */
|
|
734
|
+
.hcms-shell-minibar {
|
|
735
|
+
position: absolute;
|
|
736
|
+
top: 0;
|
|
737
|
+
left: 0;
|
|
738
|
+
right: 0;
|
|
739
|
+
z-index: 2;
|
|
740
|
+
display: flex;
|
|
741
|
+
align-items: center;
|
|
742
|
+
justify-content: space-between;
|
|
743
|
+
gap: 12px;
|
|
744
|
+
padding: 9px 24px 10px;
|
|
745
|
+
background: var(--mirk-bg);
|
|
746
|
+
border-bottom: 1px solid var(--mirk-input-border);
|
|
747
|
+
opacity: 0;
|
|
748
|
+
transform: translateY(-100%);
|
|
749
|
+
pointer-events: none;
|
|
750
|
+
transition: opacity 140ms ease, transform 160ms ease;
|
|
751
|
+
}
|
|
752
|
+
.hcms-shell.is-condensed .hcms-shell-minibar {
|
|
753
|
+
opacity: 1;
|
|
754
|
+
transform: none;
|
|
755
|
+
pointer-events: auto;
|
|
756
|
+
}
|
|
757
|
+
.hcms-shell-minibar-title {
|
|
758
|
+
font-size: 14px;
|
|
759
|
+
line-height: 1;
|
|
760
|
+
color: var(--mirk-fg);
|
|
761
|
+
white-space: nowrap;
|
|
762
|
+
overflow: hidden;
|
|
763
|
+
text-overflow: ellipsis;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/* ---------- HEADER (no underline rule — whitespace separates the bands) ---------- */
|
|
767
|
+
.hcms-shell-header {
|
|
768
|
+
flex-shrink: 0;
|
|
769
|
+
display: flex;
|
|
770
|
+
align-items: flex-start;
|
|
771
|
+
justify-content: space-between;
|
|
772
|
+
gap: 12px;
|
|
773
|
+
padding: 24px 24px 4px;
|
|
774
|
+
}
|
|
775
|
+
.hcms-shell-heading { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
|
776
|
+
.hcms-shell-eyebrow {
|
|
777
|
+
font-size: 11px;
|
|
778
|
+
text-transform: uppercase;
|
|
779
|
+
letter-spacing: 0.18em;
|
|
780
|
+
color: var(--mirk-placeholder-color);
|
|
781
|
+
}
|
|
782
|
+
.hcms-shell-title {
|
|
783
|
+
margin: 0;
|
|
784
|
+
font-size: 18px;
|
|
785
|
+
font-weight: 400;
|
|
786
|
+
line-height: 1.2;
|
|
787
|
+
color: var(--mirk-fg);
|
|
788
|
+
}
|
|
789
|
+
.hcms-shell-close.mirk-button {
|
|
790
|
+
flex-shrink: 0;
|
|
791
|
+
padding: 2px 9px 3px;
|
|
792
|
+
line-height: 1;
|
|
793
|
+
}
|
|
794
|
+
.hcms-shell-close .mirk-button__label { font-size: 16px; }
|
|
795
|
+
|
|
796
|
+
/* ---------- FORM — generous, even vertical rhythm ---------- */
|
|
797
|
+
.hcms-form {
|
|
798
|
+
display: flex;
|
|
799
|
+
flex-direction: column;
|
|
800
|
+
gap: 26px;
|
|
801
|
+
padding: 24px 24px 28px;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/* one labeled scalar field */
|
|
805
|
+
.hcms-field { display: flex; flex-direction: column; gap: 9px; }
|
|
806
|
+
.hcms-field--row {
|
|
807
|
+
flex-direction: row;
|
|
808
|
+
align-items: center;
|
|
809
|
+
justify-content: space-between;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/* themed field label */
|
|
813
|
+
.hcms-label {
|
|
814
|
+
font-size: 11px;
|
|
815
|
+
text-transform: uppercase;
|
|
816
|
+
letter-spacing: 0.14em;
|
|
817
|
+
color: var(--mirk-sortable-label);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/* comfortable control padding + readable size, in mirk's own mono */
|
|
821
|
+
.hcms-shell.pixel-quiet .mirk-input,
|
|
822
|
+
.hcms-shell.pixel-quiet .mirk-textarea {
|
|
823
|
+
font-size: 15px;
|
|
824
|
+
padding: 9px 14px 10px;
|
|
825
|
+
}
|
|
826
|
+
.hcms-shell.pixel-quiet textarea.mirk-input { min-height: 76px; resize: vertical; }
|
|
827
|
+
.hcms-shell.pixel-quiet .mirk-select__field {
|
|
828
|
+
font-size: 15px;
|
|
829
|
+
padding: 8px 40px 9px 14px;
|
|
830
|
+
}
|
|
831
|
+
.hcms-shell.pixel-quiet .mirk-radio__label,
|
|
832
|
+
.hcms-shell.pixel-quiet .mirk-toggle__label,
|
|
833
|
+
.hcms-shell.pixel-quiet .mirk-tags__input { font-size: 15px; }
|
|
834
|
+
|
|
835
|
+
/* inline radio row */
|
|
836
|
+
.hcms-radio-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
|
|
837
|
+
|
|
838
|
+
/* ---------- OBJECT GROUP — a quiet framed band, not a heavy card ---------- */
|
|
839
|
+
.hcms-object {
|
|
840
|
+
display: flex;
|
|
841
|
+
flex-direction: column;
|
|
842
|
+
gap: 16px;
|
|
843
|
+
}
|
|
844
|
+
.hcms-object-title {
|
|
845
|
+
margin: 0;
|
|
846
|
+
font-size: 11px;
|
|
847
|
+
font-weight: 400;
|
|
848
|
+
text-transform: uppercase;
|
|
849
|
+
letter-spacing: 0.14em;
|
|
850
|
+
color: var(--mirk-sortable-label);
|
|
851
|
+
}
|
|
852
|
+
.hcms-object-fields { display: flex; flex-direction: column; gap: 16px; }
|
|
853
|
+
|
|
854
|
+
/* ---------- SCALAR ARRAY — a calm list of mirk-input rows ---------- */
|
|
855
|
+
.hcms-array { display: flex; flex-direction: column; gap: 14px; }
|
|
856
|
+
.hcms-array-header { display: flex; align-items: baseline; justify-content: space-between; }
|
|
857
|
+
.hcms-array-title {
|
|
858
|
+
margin: 0;
|
|
859
|
+
font-size: 11px;
|
|
860
|
+
font-weight: 400;
|
|
861
|
+
text-transform: uppercase;
|
|
862
|
+
letter-spacing: 0.14em;
|
|
863
|
+
color: var(--mirk-sortable-label);
|
|
864
|
+
}
|
|
865
|
+
/* The generic stacked-list layout is unlayered, so it would beat mirk's
|
|
866
|
+
@layer-components rules on any slot that is also a mirk component. Exempt a
|
|
867
|
+
mirk tags box so it keeps mirk's own row-wrap layout and inner padding. */
|
|
868
|
+
.hcms-array-items:not(.mirk-tags) {
|
|
869
|
+
list-style: none;
|
|
870
|
+
margin: 0;
|
|
871
|
+
padding: 0;
|
|
872
|
+
display: flex;
|
|
873
|
+
flex-direction: column;
|
|
874
|
+
gap: 10px;
|
|
875
|
+
}
|
|
876
|
+
.hcms-array-item {
|
|
877
|
+
display: flex;
|
|
878
|
+
align-items: center;
|
|
879
|
+
gap: 8px;
|
|
880
|
+
}
|
|
881
|
+
.hcms-array-item .mirk-input { flex: 1; min-width: 0; }
|
|
882
|
+
|
|
883
|
+
/* ---------- OBJECT ARRAY — mirk-sortable cards from the engine markup ---------- */
|
|
884
|
+
.hcms-array--cards .hcms-array-items { gap: 14px; }
|
|
885
|
+
.hcms-card.mirk-sortable__item { background: var(--mirk-bevel-bg); position: relative; }
|
|
886
|
+
.hcms-card .hcms-card-fields { display: flex; flex-direction: column; flex: 1; min-width: 0; }
|
|
887
|
+
.hcms-card .hcms-field {
|
|
888
|
+
gap: 2px;
|
|
889
|
+
padding: 8px 14px 9px;
|
|
890
|
+
}
|
|
891
|
+
.hcms-card .hcms-field:not(:last-child) { border-bottom: 1px solid var(--mirk-input-border); }
|
|
892
|
+
.hcms-card .hcms-label { letter-spacing: 0.16em; }
|
|
893
|
+
/* fields inside a card read as quiet rows, not chunky boxed inputs */
|
|
894
|
+
.hcms-card .mirk-input,
|
|
895
|
+
.hcms-card .mirk-textarea {
|
|
896
|
+
border: none;
|
|
897
|
+
background: transparent;
|
|
898
|
+
padding: 0;
|
|
899
|
+
font-size: 15px;
|
|
900
|
+
}
|
|
901
|
+
.hcms-card .mirk-input:focus-visible,
|
|
902
|
+
.hcms-card .mirk-textarea:focus-visible { outline: none; }
|
|
903
|
+
/* the remove × is pulled out to the card corner (below), so the controls row
|
|
904
|
+
now only holds the sr-only move buttons — collapse it until one is focused. */
|
|
905
|
+
.hcms-card-controls {
|
|
906
|
+
display: flex;
|
|
907
|
+
align-items: center;
|
|
908
|
+
justify-content: flex-end;
|
|
909
|
+
gap: 6px;
|
|
910
|
+
padding: 0;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/* quiet × remove control, shared by scalar-array rows and object-array cards */
|
|
914
|
+
.hcms-remove {
|
|
915
|
+
flex-shrink: 0;
|
|
916
|
+
appearance: none;
|
|
917
|
+
border: 0;
|
|
918
|
+
background: none;
|
|
919
|
+
color: var(--mirk-placeholder-color);
|
|
920
|
+
cursor: pointer;
|
|
921
|
+
font-size: 16px;
|
|
922
|
+
line-height: 1;
|
|
923
|
+
padding: 2px 6px;
|
|
924
|
+
}
|
|
925
|
+
.hcms-remove:hover { color: var(--mirk-destructive); }
|
|
926
|
+
.hcms-remove[hidden] { display: none; }
|
|
927
|
+
|
|
928
|
+
/* object-array card: the delete control is a square corner button pinned
|
|
929
|
+
top-right, carrying the card's own 1px border + a crisp-line × icon. */
|
|
930
|
+
.hcms-remove--card {
|
|
931
|
+
position: absolute;
|
|
932
|
+
top: -1px;
|
|
933
|
+
right: -1px;
|
|
934
|
+
width: 18px;
|
|
935
|
+
height: 18px;
|
|
936
|
+
padding: 0;
|
|
937
|
+
display: flex;
|
|
938
|
+
align-items: center;
|
|
939
|
+
justify-content: center;
|
|
940
|
+
border: 1px solid var(--mirk-input-border);
|
|
941
|
+
background: var(--mirk-bevel-bg);
|
|
942
|
+
color: var(--mirk-placeholder-color);
|
|
943
|
+
}
|
|
944
|
+
.hcms-remove--card:hover { border-color: var(--mirk-destructive); }
|
|
945
|
+
.hcms-remove--card .hcms-x { width: 64%; height: 64%; display: block; }
|
|
946
|
+
|
|
947
|
+
/* "+ Add" — quiet, pinned left */
|
|
948
|
+
.hcms-add.mirk-button { align-self: flex-start; }
|
|
949
|
+
|
|
950
|
+
/* ---------- UPLOAD COMPONENTS (@file / @image) ----------
|
|
951
|
+
Built on the kit's mirk-file / mirk-image--compact chrome. The native picker
|
|
952
|
+
is visually hidden but focusable (the mirk-button label is the visible
|
|
953
|
+
trigger and rings via :has(:focus-visible)); it is NOT .mirk-*__input, so the
|
|
954
|
+
vendored mirk runtime never handles it. The empty/filled chrome is driven by
|
|
955
|
+
the bound leaf's value attribute (src/href) in CSS — no JS state to desync. */
|
|
956
|
+
.hcms-upload input[type="file"] {
|
|
957
|
+
position: absolute;
|
|
958
|
+
width: 1px;
|
|
959
|
+
height: 1px;
|
|
960
|
+
padding: 0;
|
|
961
|
+
margin: -1px;
|
|
962
|
+
overflow: hidden;
|
|
963
|
+
clip: rect(0, 0, 0, 0);
|
|
964
|
+
white-space: nowrap;
|
|
965
|
+
border: 0;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/* @image: show the upload button until the bound <img> carries a real src. */
|
|
969
|
+
.hcms-upload--image .mirk-image__thumb { display: none; }
|
|
970
|
+
.hcms-upload--image:has(.mirk-image__preview[src]:not([src=""])) .mirk-image__upload { display: none; }
|
|
971
|
+
.hcms-upload--image:has(.mirk-image__preview[src]:not([src=""])) .mirk-image__thumb { display: inline-block; }
|
|
972
|
+
|
|
973
|
+
/* @file: reveal the clear × and the filename only once the bound <a> has href. */
|
|
974
|
+
.hcms-upload--file .hcms-upload-clear { display: none; }
|
|
975
|
+
.hcms-upload--file:has(a.mirk-file__name[href]:not([href=""])) .hcms-upload-clear { display: inline-flex; }
|
|
976
|
+
/* A filled filename uses the bright foreground (the kit's [data-filled] look),
|
|
977
|
+
driven by the bound href so there's no JS attribute to keep in sync — the
|
|
978
|
+
vendored runtime that would otherwise stamp data-filled is inert here. */
|
|
979
|
+
.hcms-upload--file:has(a.mirk-file__name[href]:not([href=""])) a.mirk-file__name {
|
|
980
|
+
color: var(--mirk-bevel-fg);
|
|
981
|
+
}
|
|
982
|
+
.hcms-upload--file a.mirk-file__name:empty {
|
|
983
|
+
text-decoration: none;
|
|
984
|
+
cursor: default;
|
|
985
|
+
}
|
|
986
|
+
.hcms-upload--file a.mirk-file__name:empty::after {
|
|
987
|
+
content: "No file chosen";
|
|
988
|
+
color: var(--mirk-placeholder-color);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
/* clear-× (vendored-inert; data-hcms-action, never .mirk-*__remove). Bare × for
|
|
992
|
+
@file, a pinned corner badge for @image — mirroring .hcms-remove / --card. */
|
|
993
|
+
.hcms-upload-clear {
|
|
994
|
+
flex-shrink: 0;
|
|
995
|
+
appearance: none;
|
|
996
|
+
border: 0;
|
|
997
|
+
background: none;
|
|
998
|
+
color: var(--mirk-placeholder-color);
|
|
999
|
+
cursor: pointer;
|
|
1000
|
+
line-height: 0;
|
|
1001
|
+
padding: 2px 4px;
|
|
1002
|
+
display: inline-flex;
|
|
1003
|
+
align-items: center;
|
|
1004
|
+
justify-content: center;
|
|
1005
|
+
}
|
|
1006
|
+
.hcms-upload-clear:hover { color: var(--mirk-destructive); }
|
|
1007
|
+
.hcms-upload-clear .hcms-x { display: block; width: 14px; height: 14px; }
|
|
1008
|
+
|
|
1009
|
+
.hcms-upload-clear--badge {
|
|
1010
|
+
position: absolute;
|
|
1011
|
+
top: -7px;
|
|
1012
|
+
right: -7px;
|
|
1013
|
+
width: 18px;
|
|
1014
|
+
height: 18px;
|
|
1015
|
+
padding: 0;
|
|
1016
|
+
border-radius: 50%;
|
|
1017
|
+
border: 1px solid var(--mirk-input-border);
|
|
1018
|
+
background: var(--mirk-bevel-bg);
|
|
1019
|
+
color: var(--mirk-bevel-fg);
|
|
1020
|
+
}
|
|
1021
|
+
.hcms-upload-clear--badge:hover { color: var(--mirk-destructive); border-color: var(--mirk-destructive); }
|
|
1022
|
+
.hcms-upload-clear--badge .hcms-x { width: 10px; height: 10px; }
|
|
1023
|
+
|
|
1024
|
+
/* ---------- ERROR BANNER + inline errors ---------- */
|
|
1025
|
+
.hcms-shell-error,
|
|
1026
|
+
.hcms-error {
|
|
1027
|
+
font-size: 12px;
|
|
1028
|
+
line-height: 1.45;
|
|
1029
|
+
color: var(--mirk-destructive);
|
|
1030
|
+
background: var(--mirk-bevel-bg);
|
|
1031
|
+
border: 1px solid var(--mirk-destructive);
|
|
1032
|
+
padding: 8px 12px;
|
|
1033
|
+
}
|
|
1034
|
+
.hcms-shell-error { margin: 0 24px; }
|
|
1035
|
+
.hcms-error { margin-top: 6px; }
|
|
1036
|
+
.hcms-shell-error[hidden],
|
|
1037
|
+
.hcms-error[hidden] { display: none; }
|
|
1038
|
+
|
|
1039
|
+
/* ---------- SAVE (sits at the end of the scrolling form, not pinned) ---------- */
|
|
1040
|
+
.hcms-shell-footer {
|
|
1041
|
+
display: flex;
|
|
1042
|
+
justify-content: flex-end;
|
|
1043
|
+
padding: 4px 24px 28px;
|
|
1044
|
+
}
|
|
1045
|
+
.hcms-shell-footer[hidden] { display: none; }
|
|
1046
|
+
|
|
1047
|
+
/* ---------- sr-only move buttons: hidden, visible on keyboard focus ---------- */
|
|
1048
|
+
.hcms-sr-only {
|
|
1049
|
+
position: absolute;
|
|
1050
|
+
width: 1px;
|
|
1051
|
+
height: 1px;
|
|
1052
|
+
padding: 0;
|
|
1053
|
+
margin: -1px;
|
|
1054
|
+
overflow: hidden;
|
|
1055
|
+
clip: rect(0, 0, 0, 0);
|
|
1056
|
+
white-space: nowrap;
|
|
1057
|
+
border: 0;
|
|
1058
|
+
}
|
|
1059
|
+
.hcms-sr-only:focus {
|
|
1060
|
+
position: static;
|
|
1061
|
+
width: auto;
|
|
1062
|
+
height: auto;
|
|
1063
|
+
padding: 2px 6px;
|
|
1064
|
+
margin: 0 2px;
|
|
1065
|
+
overflow: visible;
|
|
1066
|
+
clip: auto;
|
|
1067
|
+
white-space: normal;
|
|
1068
|
+
background: var(--mirk-bevel-bg);
|
|
1069
|
+
border: 1px solid var(--mirk-input-border);
|
|
1070
|
+
color: var(--mirk-fg);
|
|
1071
|
+
font-size: 12px;
|
|
1072
|
+
cursor: pointer;
|
|
1073
|
+
}
|
|
1074
|
+
.hcms-sr-only[hidden] { display: none; }
|