:root { --content-border: solid lightgray 2px; --content-border-radius: 5px; } .editor { display: none; } 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%; } } } .EasyMDEContainer { display: flex; box-sizing: border-box; height: 100%; align-items: stretch; gap: 0.5em; flex-direction: column; .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: rgb(0 0 0 / 5%) !important; .cm-comment { background: none !important; } } .container__suggestions { display: none; width: fit-content; position: absolute; z-index: 100; border: 2px solid lightgray; border-radius: 0.5rem; background: white; min-width: 10rem; max-height: 40vh; overflow-y: scroll; } .container__suggestion { display: flex; overflow: hidden; height: fit-content; cursor: pointer; justify-content: space-between; 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: steelblue; font-weight: bold; } .truncate { flex-shrink: 1; text-overflow: ellipsis; ::before { width: 2rem } } }