:root { --content-border: solid lightgray 2px; --content-border-radius: 5px; } body { width: 100%; height: 100vh; &[data-layout=editing] { display: flex; align-items: stretch; gap: 0.5em; padding: 0.5em; .DumbyMap { order: 1; flex: 1 0 calc(50% - 0.5em); height: 100%; overflow-y: scroll; border: var(--content-border); border-radius: var(--content-border-radius); } .editor { display: block; order: 2; flex: 1 0 50%; max-width: calc(50% - 0.5em); height: 100%; } } } .editor { display: none; } .EasyMDEContainer { display: flex; align-items: stretch; gap: 0.5em; height: 100%; flex-direction: column; box-sizing: border-box; .CodeMirror { order: 1; flex: 1 0 0; border: var(--content-border); border-radius: var(--content-border-radius); padding-inline: 0; font-family: monospace; font-size: 1.0rem; span { white-space: pre; } .invalid-input { text-decoration: red wavy underline 1px; } } .editor-toolbar { order: 2; flex: 0 0 0; border: var(--content-border); border-radius: var(--content-border-radius); } .editor-statusbar { order: 3; } } /* FIXME For those empty line (no child with cm-comment) */ .inside-code-block, .CodeMirror-line:has(.cm-formatting-code-block) { background: rgba(0,0,0,.05) !important; .cm-comment { background: none !important; } } .container__suggestions { display: none; position: absolute; width: fit-content; min-width: 10rem; max-height: 40vh; overflow-y: scroll; border: 2px solid lightgray; border-radius: 0.5rem; z-index: 100; background: #fff; } .container__suggestion { cursor: pointer; display: flex; justify-content: space-between; overflow: hidden; height: fit-content; min-height: 2rem; white-space: nowrap; align-items: center; &:not(:first-child) { border-top: 1px solid rgb(203 213 225); } &.focus { background: rgb(226 232 240); } * { flex-shrink: 0; display: inline-block; overflow: hidden; padding-inline: 1em; } .info { color: #4682B4; font-weight: bold; } .truncate { flex-shrink: 1; text-overflow: ellipsis; ::before { width: 2rem } } }