[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; width: 100%; height: 100%; margin: 0 auto; padding: 0; position: relative; overflow-x: auto; .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: auto; 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] { margin: 2px; border: 3px solid gray; opacity: 0.3; animation: fade-out 1s; } } } .DumbyMap[data-layout="normal"] { max-width: 60em; } .DumbyMap[data-layout="side-by-side"] { display: flex; .SemanticHtml, .Showcase { flex: 50%; display: block; height: 100%; } } .DumbyMap[data-layout="overlay"] { .SemanticHtml, .Showcase { display: block; width: 100%; height: 100%; margin: 0; padding: 0; position: fixed; top: 0; left: 0; } .Showcase { z-index: 0; } .SemanticHtml { pointer-events: none; z-index: 1; } } .draggable-block { overflow: visible; width: fit-content; position: absolute; border: solid gray 3px; border-radius: 0.5rem; background-color: white; font-size: 0.8rem; pointer-events: auto; .dumby-block { overflow: auto; 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; overflow: clip; width: 100%; position: absolute; top: 0; left: 0; z-index: 1; border-top-left-radius: 0.3rem; border-top-right-radius: 0.3rem; .handle { font-size: 1.1rem; text-align: center; transition: all 0.3s ease-in-out; transform: translate(0, -0.6rem); } } .utils { display: none; } &[data-hide="true"] { display: none; } &:has(.draggable:hover, .utils:hover) { .dumby-block { color: gray; opacity: 0.7; } .handle { background: #e1e1e1; /* border-bottom: solid gray; */ transform: unset; } .utils { display: flex; position: absolute; top: 0; top: -0.5rem; left: 100%; font-size: 1.5rem; gap: 6px; animation: fade-in 1.5s; padding-left: 1rem; [id$="-font-size"]{ padding: 0.2rem 0.4rem; border: 3px gray solid; border-radius: 5px; background: white; transition: opacity 1s linear; user-select: none; } #plus-font-size { cursor: zoom-in; user-select: none; } #minus-font-size { cursor: zoom-out; } } } } .bold-options { font-weight: bold; }