From 825df5465b580061e9af635f1011e5dc6a65db03 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 21 Sep 2024 16:57:23 +0800 Subject: feat: improve CSS for layouts --- src/css/dumbymap.css | 41 ++++++++++++++--------------------------- 1 file changed, 14 insertions(+), 27 deletions(-) (limited to 'src') diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css index 6c68548..252fe84 100644 --- a/src/css/dumbymap.css +++ b/src/css/dumbymap.css @@ -81,14 +81,13 @@ .DumbyMap { display: flex; + width: 100%; + height: 100%; margin: 0 auto; padding: 0; position: relative; overflow-x: auto; - max-width: 60em; - - /* height: 100vh; */ .Showcase { display: none; @@ -142,6 +141,8 @@ } [data-placeholder] { + margin: 2px; + border: 3px solid gray; opacity: 0.3; @@ -150,34 +151,19 @@ } } - width: 100%; - height: 100vh; - margin: 0 auto; - - border: none; - max-width: none; - - & ~ :not(.leader-line) { - display: none; - pointer-events: none; - } -.DumbyMap[data-layout]:not([data-layout="normal"]) { +.DumbyMap[data-layout="normal"] { + max-width: 60em; } .DumbyMap[data-layout="side-by-side"] { - .SemanticHtml { - flex: 50%; - overflow-y: auto; - - height: 100vh; - } + display: flex; + .SemanticHtml, .Showcase { - display: block; - height: 100vh; - - z-index: -1; flex: 50%; + + display: block; + height: 100%; } } @@ -270,7 +256,6 @@ top: 0; left: 0; z-index: 1; - outline: red 3px; border-top-left-radius: 0.3rem; border-top-right-radius: 0.3rem; @@ -323,11 +308,13 @@ background: white; - transition: all 1s ease-in-out; + transition: opacity 1s linear; + user-select: none; } #plus-font-size { cursor: zoom-in; + user-select: none; } #minus-font-size { -- cgit v1.2.3-70-g09d2