File size: 6,287 Bytes
609fb78 | 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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | /* ---------------------------------------------------------------------------
query/query.css β the Query module's own stylesheet (WAVE 32 item 7, R1).
Shipped BESIDE its component (the `FormInterface.css` / `RecordDetail.css`
precedent) rather than added to `index.css`, which belongs to another lane
this wave. Vite carries the import; `verify_ui`'s node shim already stubs
`require("*.css")` for exactly this shape.
β EVERY FONT SIZE IS A `--lp-fs-*` TOKEN AND EVERY COLOUR A `--lp-*` TOKEN.
Wave-21 R5 is gated app-wide over every CSS file under src, not just
index.css, and a literal here reds `web_ui` for the whole tree. Spacing
follows the `.shell-conn` page it sits beside, so the two pages feel like one
product. No emojis, no ALL-CAPS chrome (DESIGN.md R6).
ββ AND DO NOT WRITE A `**` GLOB IN THIS COMMENT. The sentence above used to
name the gate's scope as a literal path glob, and the `**` + `/` in it spells
the CSS COMMENT TERMINATOR β so the comment ended in the middle of its own
explanation, every line after it became stray tokens, and `lightningcss`
died on the first backtick it then met (`Unexpected token Delim`). `tsc`
passed, `vite` transformed all 1,014 modules, and the build failed in the
MINIFIER β so the error surfaced nowhere near the sentence that caused it.
Found by `web_build` in wave 32's QA, and it blocked the deploy outright.
β Backticks are NOT the problem: nine other stylesheets in this tree carry
them happily. Nothing may contain the two characters that close a comment.
--------------------------------------------------------------------------- */
.qy-page {
height: 100%;
overflow-y: auto;
padding: 34px 44px 56px;
box-sizing: border-box;
background: var(--lp-wash);
}
.qy-title {
margin: 0 0 6px;
font-size: var(--lp-fs-lg);
font-weight: 650;
color: var(--lp-ink);
}
.qy-lede {
margin: 0 0 22px;
max-width: 62ch;
font-size: var(--lp-fs-sm);
line-height: var(--lp-lh);
color: var(--lp-muted);
}
.qy-sub {
margin: 30px 0 12px;
font-size: var(--lp-fs-md);
font-weight: 650;
color: var(--lp-ink);
}
/* ββ the ask row βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.qy-ask {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 12px;
max-width: 940px;
}
.qy-field {
display: flex;
flex-direction: column;
gap: 5px;
min-width: 180px;
}
.qy-field--grow {
flex: 1 1 380px;
}
.qy-label {
font-size: var(--lp-fs-2xs);
font-weight: 600;
color: var(--lp-muted);
}
.qy-select,
.qy-input {
box-sizing: border-box;
width: 100%;
padding: 8px 11px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
color: var(--lp-ink);
font-size: var(--lp-fs-sm);
font-family: inherit;
}
.qy-select:focus-visible,
.qy-input:focus-visible {
outline: 2px solid var(--lp-blue-solid);
outline-offset: 1px;
}
/* ββ buttons βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.qy-btn {
padding: 8px 14px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
color: var(--lp-ink);
font-size: var(--lp-fs-sm);
font-family: inherit;
font-weight: 600;
cursor: pointer;
}
.qy-btn:hover:not(:disabled) {
background: var(--lp-surface-2);
}
.qy-btn:disabled {
opacity: 0.55;
cursor: default;
}
.qy-btn--primary {
border-color: transparent;
background: var(--lp-blue-solid);
color: var(--lp-surface);
}
.qy-btn--primary:hover:not(:disabled) {
background: color-mix(in srgb, var(--lp-blue-solid) 82%, #000);
}
.qy-btn--quiet {
border-color: transparent;
background: transparent;
color: var(--lp-muted);
font-weight: 500;
}
.qy-btn--quiet:hover {
color: var(--lp-red-deep);
background: transparent;
}
/* ββ the answer, and the read-back that is the point of it βββββββββββββββββ */
.qy-answer {
max-width: 940px;
margin: 20px 0 0;
padding: 16px 18px;
border: 1px solid var(--lp-line);
border-left: 3px solid var(--lp-blue-solid);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
}
.qy-answer.is-refused {
border-left-color: var(--lp-yellow-deep);
}
.qy-answer-head {
margin: 0 0 6px;
font-size: var(--lp-fs-2xs);
font-weight: 650;
color: var(--lp-muted);
}
.qy-answer-body {
margin: 0;
max-width: 78ch;
font-size: var(--lp-fs-sm);
line-height: var(--lp-lh);
color: var(--lp-ink);
}
.qy-answer-acts {
display: flex;
gap: 10px;
margin-top: 14px;
}
/* ββ the saved list ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.qy-note {
max-width: 62ch;
margin: 14px 0 0;
font-size: var(--lp-fs-sm);
line-height: var(--lp-lh);
color: var(--lp-muted);
}
.qy-note.is-warn {
color: var(--lp-red-deep);
}
.qy-list {
display: flex;
flex-direction: column;
gap: 10px;
max-width: 940px;
margin: 0;
padding: 0;
list-style: none;
}
.qy-row {
padding: 14px 16px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
}
.qy-row-main {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 10px;
}
.qy-row-open {
padding: 0;
border: 0;
background: transparent;
color: var(--lp-blue-solid);
font-size: var(--lp-fs-md);
font-family: inherit;
font-weight: 650;
cursor: pointer;
text-align: left;
}
.qy-row-open:hover {
text-decoration: underline;
}
.qy-row-meta {
font-size: var(--lp-fs-2xs);
color: var(--lp-muted);
}
.qy-row-q {
margin: 6px 0 0;
max-width: 78ch;
font-size: var(--lp-fs-sm);
font-style: italic;
color: var(--lp-ink);
}
.qy-row-explain {
margin: 4px 0 0;
max-width: 78ch;
font-size: var(--lp-fs-2xs);
line-height: var(--lp-lh);
color: var(--lp-muted);
}
.qy-row-acts {
display: flex;
gap: 8px;
margin-top: 12px;
}
|