diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-19 00:40:41 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-19 00:40:41 +0800 |
commit | e55078e5cb4a5bdcbecc01a33c00e45afca7db17 (patch) | |
tree | 7827e02adfc400dcb3571199d21564110762db35 /src/css | |
parent | ad694c62d17d04a13c35a551cf42d40a424882b9 (diff) |
feat(CSS): move site-only rules into index.css
Diffstat (limited to 'src/css')
-rw-r--r-- | src/css/dumbymap.css | 51 | ||||
-rw-r--r-- | src/css/index.css | 51 |
2 files changed, 51 insertions, 51 deletions
diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css index b2c5d9b..cc2d1ef 100644 --- a/src/css/dumbymap.css +++ b/src/css/dumbymap.css | |||
@@ -380,57 +380,6 @@ root { | |||
380 | } | 380 | } |
381 | } | 381 | } |
382 | 382 | ||
383 | .SemanticHtml { | ||
384 | display: flex; | ||
385 | flex-direction: column; | ||
386 | justify-content: flex-start; | ||
387 | height: 100%; | ||
388 | gap: 1rem; | ||
389 | overflow-y: auto; | ||
390 | |||
391 | /* Trivial: gray out text not focused */ | ||
392 | &:has(.dumby-block.focus) { | ||
393 | color: gray; | ||
394 | |||
395 | .dumby-block.focus { | ||
396 | color: initial; | ||
397 | } | ||
398 | } | ||
399 | |||
400 | :has(> .mapclay, > [data-placeholder]) { | ||
401 | display: flex; | ||
402 | gap: 0.5em; | ||
403 | |||
404 | background-color: white; | ||
405 | } | ||
406 | |||
407 | /* if Map not in showcase, add border when focused */ | ||
408 | .mapclay { | ||
409 | border: 3px solid white; | ||
410 | |||
411 | &.focus { | ||
412 | border: 3px solid gray; | ||
413 | } | ||
414 | |||
415 | &[data-render='unfulfilled'] { | ||
416 | border: 3px solid crimson; | ||
417 | |||
418 | opacity: 0.6; | ||
419 | } | ||
420 | } | ||
421 | |||
422 | [data-placeholder] { | ||
423 | border: 3px solid gray; | ||
424 | flex-grow: 0; | ||
425 | |||
426 | & > * { | ||
427 | opacity: 0.3; | ||
428 | } | ||
429 | |||
430 | /* animation: map-fade-out 1s; */ | ||
431 | } | ||
432 | } | ||
433 | |||
434 | .Showcase { | 383 | .Showcase { |
435 | display: none; | 384 | display: none; |
436 | overflow: visible; | 385 | overflow: visible; |
diff --git a/src/css/index.css b/src/css/index.css index badec7e..d7c64d8 100644 --- a/src/css/index.css +++ b/src/css/index.css | |||
@@ -240,3 +240,54 @@ main[data-mode='editing'] { | |||
240 | } | 240 | } |
241 | } | 241 | } |
242 | 242 | ||
243 | .SemanticHtml { | ||
244 | display: flex; | ||
245 | flex-direction: column; | ||
246 | justify-content: flex-start; | ||
247 | height: 100%; | ||
248 | gap: 1rem; | ||
249 | overflow-y: auto; | ||
250 | |||
251 | /* Trivial: gray out text not focused */ | ||
252 | &:has(.dumby-block.focus) { | ||
253 | color: gray; | ||
254 | |||
255 | .dumby-block.focus { | ||
256 | color: initial; | ||
257 | } | ||
258 | } | ||
259 | |||
260 | :has(> .mapclay, > [data-placeholder]) { | ||
261 | display: flex; | ||
262 | gap: 0.5em; | ||
263 | |||
264 | background-color: white; | ||
265 | } | ||
266 | |||
267 | /* if Map not in showcase, add border when focused */ | ||
268 | .mapclay { | ||
269 | border: 3px solid white; | ||
270 | |||
271 | &.focus { | ||
272 | border: 3px solid gray; | ||
273 | } | ||
274 | |||
275 | &[data-render='unfulfilled'] { | ||
276 | border: 3px solid crimson; | ||
277 | |||
278 | opacity: 0.6; | ||
279 | } | ||
280 | } | ||
281 | |||
282 | [data-placeholder] { | ||
283 | border: 3px solid gray; | ||
284 | flex-grow: 0; | ||
285 | |||
286 | & > * { | ||
287 | opacity: 0.3; | ||
288 | } | ||
289 | |||
290 | /* animation: map-fade-out 1s; */ | ||
291 | } | ||
292 | } | ||
293 | |||