:root { --content-border: solid lightgray 2px; --content-border-radius: 5px; } body { display: flex; justify-items: stretch; width: 100%; } .result-html { flex: 0 0 50%; border: var(--content-border); border-radius: var(--content-border-radius); margin: 10px; } .editor { flex: 0 0 50%; max-width: 50vw; height: calc(100vh - 15px); margin: 10px; } .EasyMDEContainer { display: flex; flex-direction: column; height: calc(100vh - 20px); box-sizing: border-box; .CodeMirror { order: 1; flex-grow: 1; border: var(--content-border); border-radius: var(--content-border-radius); padding-inline: 0; span { white-space: pre; } .invalid-input { text-decoration: red wavy underline 1px; } } .editor-toolbar { order: 2; margin-top: 0.5rem; border-left: 1px solid #ced4da; border-right: 1px solid #ced4da; border-bottom: 1px solid #ced4da; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; } .editor-statusbar { order: 3; } } /* FIXME For those empty line (no child with cm-comment) */ .CodeMirror-line:has(.cm-comment) { 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 } } }