// Authoring helpers: attach toolbar, autocomplete list, task lists, alerts, reviewers, math. .md-tools { position: relative; display: flex; align-items: center; gap: 0.6rem; min-height: 1.6rem; margin-top: 0.25rem; > :is(.link-button, .act):first-child { margin-left: -10px; } } .md-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .md-status-bad { color: var(--caution); } textarea.md-drop { outline: 2px dashed var(--accent); outline-offset: -2px; } .md-suggest { position: absolute; top: 100%; left: 0; z-index: 30; min-width: min(22rem, 100%); max-width: 100%; margin: 2px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); &[hidden] { display: none; } } .md-suggest-input { top: auto; left: 0; right: 0; } .md-suggest-item { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.3rem 0.5rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: var(--radius-sm); cursor: pointer; &.active, &:hover { background: var(--surface-2); } } .markdown-body { li:has(> input[type="checkbox"]:first-child) { list-style: none; } li > input[type="checkbox"]:first-child { width: auto; margin: 0 0.4em 0 -1.4em; vertical-align: middle; } .task-toggle { cursor: pointer; } .markdown-alert { background: color-mix(in srgb, var(--alert-accent, var(--border)) 9%, var(--surface)); } [data-math-style] { font-family: var(--mono, ui-monospace, monospace); font-style: italic; } [data-math-style="display"] { display: block; margin: 0.5em 0; text-align: center; } } .task-progress, .review-pending { &::before { content: "\00b7"; margin: 0 0.4em; } }