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