[class^="leader-line"] { z-index: 9999; } @keyframes fade-in { from { opacity: 0.3; } to { opacity: 1; } } @keyframes fade-out { from { opacity: 1; } to { opacity: 0.3; } } .map-container { transform-origin: top left; } .with-leader-line:not(:has(> *)) { display: inline-block; background-image: url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cG9seWdvbiBwb2ludHM9IjI0LDAgMCw4IDgsMTEgMCwxOSA1LDI0IDEzLDE2IDE2LDI0IiBmaWxsPSJjb3JhbCIvPjwvc3ZnPg=="); background-repeat: no-repeat; background-position: right 2px top 2px; color: #555; padding-right: 15px; padding-left: 6px; background-size: 12px 12px; &.geolink { background-color: rgb(248 248 129); } &.doclink { background-color: #9ee7ea; } &:hover { background-image: none; font-weight: bolder; text-decoration: none; } } *:has(> nav) { /* FIXME Hide nav at proper time */ display: none; padding: 0.5rem; position: absolute; right: 10px; bottom: 10px; z-index: 500; border: 2px solid gray; border-radius: 0.5rem; background-color: white; min-width: 120px; &:has(> nav:empty) { display: none; } ol { margin-top: 0; margin-bottom: 0.5rem; } } .dumby-block { margin-left: -0.5em; padding-left: 0.5em; border-left: #f0f0f0 0.5em solid; margin-bottom: 3rem; } .DumbyMap { display: flex; margin: 0 auto; padding: 0; position: relative; overflow-x: scroll; max-width: 60em; /* height: 100vh; */ .Showcase { display: none; overflow: visible; position: relative; order: 2; > * { width: 100%; height: 100%; position: absolute; top: 0; left: 0; } [data-focus="true"] { z-index: 1; } } .SemanticHtml { width: 100%; padding: 1.5rem; overflow-y: scroll; order: 1; pre { width: 100%; &:has(.map-container) { display: flex; justify-content: flex-start; background-color: inherit; } } .map-container { margin: 2px; border: 3px solid transparent; background: white; animation: fade-in 1s; &[data-focus="true"] { border: 3px solid gray; } } [data-placeholder] { border: 3px solid gray; opacity: 0.3; animation: fade-out 1s; } } } .DumbyMap[data-layout]:not([data-layout="none"]) { width: 100%; height: 100vh; margin: 0 auto; border: none; max-width: none; & ~ :not(.leader-line) { display: none; pointer-events: none; } } .DumbyMap[data-layout="side"] { .SemanticHtml { flex: 50%; overflow-y: scroll; height: 100vh; } .Showcase { display: block; height: 100vh; z-index: -1; flex: 50%; } } .DumbyMap[data-layout="overlay"] { .SemanticHtml, .Showcase { display: block; width: 100%; height: 100%; margin: 0; padding: 0; position: absolute; top: 0; left: 0; } .Showcase { z-index: 0; } .SemanticHtml { pointer-events: none; z-index: 1; } } .draggable-block { overflow: clip; box-sizing: content-box; width: fit-content; position: absolute; border: solid gray; border-radius: 0.5rem; background-color: white; font-size: 12px; pointer-events: auto; .dumby-block { overflow: scroll; margin: 0; position: relative; border: none; resize: both; min-width: 5rem; max-width: 25vw; min-height: 5rem; max-height: 50vh; padding-inline: 1em; /* allow random width/height after resize */ &[style*="height"], &[style*="width"] { max-width: unset; max-height: unset; } /* gray out top of content, make draggable part easy to be seen */ &::before { display: block; width: 100%; height: 1.5rem; position: sticky; top: 0; background: linear-gradient(0deg, rgb(255 255 255 / 0%), white 60%); content: ''; } .map-container { min-width: 200px; } } .draggable { display: block; width: 100%; position: absolute; top: 0; left: 0; z-index: 1; font-size: 1.1rem; text-align: center; transition: all 0.3s ease-in-out; transform: translate(0, -0.6rem); &:hover { background: #e1e1e1; border-bottom: solid gray; transform: unset; & ~ * { color: gray; opacity: 0.7; } } } } .bold-options { font-weight: bold; }