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/index.css | |
parent | ad694c62d17d04a13c35a551cf42d40a424882b9 (diff) |
feat(CSS): move site-only rules into index.css
Diffstat (limited to 'src/css/index.css')
-rw-r--r-- | src/css/index.css | 51 |
1 files changed, 51 insertions, 0 deletions
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 | |||