From 5cfa03b77bf21982d5024aad09f1a89871fc127b Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 1 Oct 2024 11:31:26 +0800 Subject: style: stylelint --- src/css/dumbymap.css | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/css/dumbymap.css') diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css index 999dab5..d84ec2b 100644 --- a/src/css/dumbymap.css +++ b/src/css/dumbymap.css @@ -144,6 +144,7 @@ root { *:has(> nav) { /* FIXME Hide nav at proper time */ display: none; + min-width: 120px; padding: 0.5rem; position: absolute; @@ -155,7 +156,6 @@ root { border-radius: 0.5rem; background-color: white; - min-width: 120px; &:has(> nav:empty) { display: none; @@ -220,13 +220,13 @@ root { } .Dumby { + overflow: visible; width: 100%; height: 100%; margin: 0 auto; padding: 0; position: relative; - overflow: visible; &::after { content: 'Layout: ' attr(data-layout); @@ -335,10 +335,10 @@ root { .SemanticHtml, .Showcase { width: 50%; + min-width: 20%; position: absolute; top: 0; - min-width: 20%; } .SemanticHtml { @@ -506,6 +506,10 @@ root { .dumby-block { overflow: scroll; + min-width: 5rem; + max-width: 25vw; + min-height: 5rem; + max-height: 50vh; margin: 0; padding-block: 1rem 0; padding-inline: 1rem; @@ -517,10 +521,6 @@ root { border-radius: 0.5rem; resize: both; - min-width: 5rem; - max-width: 25vw; - min-height: 5rem; - max-height: 50vh; /* Remove indicator when inside draggable-block */ &::before { @@ -613,6 +613,8 @@ root { .menu { display: none; width: fit-content; + min-width: 10rem; + max-height: 40vh; position: absolute; z-index: 9999; @@ -621,8 +623,6 @@ root { border-radius: 6px; background: white; - min-width: 10rem; - max-height: 40vh; overflow-y: scroll; } -- cgit v1.2.3-70-g09d2