Something went wrong. Try again.
A deployable markdown editor that connects with your self hosted files and lets you edit in a beautiful interface
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346/* * @markedit/editor styles. * * Themed entirely through CSS variables. Host apps can set the --me-* * variables directly, or define the generic --background / --foreground / * --muted / --border / --primary variables which are used as fallbacks. */
.me-root { --me-font: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, sans-serif; --me-mono-font: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
--me-text: var(--foreground, #131815); --me-text-muted: var(--muted-foreground, #5f6a63); --me-surface: var(--background, #ffffff); --me-surface-subtle: var(--muted, #f4f6f5); --me-surface-hover: var(--accent, #ecefed); --me-border: var(--border, #e2e7e4); --me-primary: var(--primary, #1f5c46); --me-primary-text: var(--primary-foreground, #f0f9f4); --me-ring: var(--primary, #1f5c46); --me-code-bg: var(--muted, #f0f3f1); --me-code-text: var(--primary, #1f5c46); --me-radius: 6px;
font-family: var(--me-font); color: var(--me-text);}
/* ---------------------------------------------------------------- toolbar */
.me-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; padding: 4px 6px; border-bottom: 1px solid var(--me-border); background: var(--me-surface);}
.me-toolbar-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: none; border-radius: 5px; background: transparent; color: var(--me-text-muted); cursor: pointer; transition: background 80ms ease, color 80ms ease;}
.me-toolbar-btn:hover:not(:disabled) { background: var(--me-surface-subtle); color: var(--me-text);}
.me-toolbar-btn.is-active { background: var(--me-surface-subtle); color: var(--me-primary);}
.me-toolbar-btn:disabled { opacity: 0.35; cursor: default;}
.me-toolbar-divider { width: 1px; height: 16px; margin: 0 4px; background: var(--me-border);}
/* ----------------------------------------------------------------- editor */
.me-editor { background: var(--me-surface);}
.me-editor-content { padding: 20px 24px 32px;}
.me-prose { outline: none; min-height: 320px; font-size: 14px; line-height: 1.7;}
.me-prose p.is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; color: var(--me-text-muted); pointer-events: none; height: 0;}
.me-prose h1,.me-prose h2,.me-prose h3,.me-prose h4 { font-weight: 650; letter-spacing: -0.01em;}
.me-prose h1 { font-size: 1.5em; line-height: 1.25; margin: 1.25em 0 0.5em;}
.me-prose h2 { font-size: 1.25em; line-height: 1.3; margin: 1.25em 0 0.5em;}
.me-prose h3 { font-size: 1.1em; line-height: 1.35; margin: 1em 0 0.4em;}
.me-prose p { margin: 0 0 0.75em;}
.me-prose ul,.me-prose ol { margin: 0 0 0.75em; padding-left: 1.4em;}
.me-prose ul li { list-style-type: disc;}
.me-prose ol li { list-style-type: decimal;}
.me-prose li { margin-bottom: 0.2em;}
.me-prose li p { margin: 0;}
.me-prose blockquote { border-left: 2px solid var(--me-primary); padding-left: 1em; margin: 1em 0; color: var(--me-text-muted);}
.me-prose code { background: var(--me-code-bg); color: var(--me-code-text); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.875em; font-family: var(--me-mono-font);}
.me-prose pre { background: var(--me-surface-subtle); border: 1px solid var(--me-border); color: var(--me-text); padding: 12px 14px; border-radius: var(--me-radius); overflow-x: auto; margin: 0.9em 0;}
.me-prose pre code { background: transparent; color: inherit; padding: 0; font-size: 12.5px; font-family: var(--me-mono-font);}
.me-prose hr { border: none; border-top: 1px solid var(--me-border); margin: 1.5em 0;}
.me-prose a,.me-prose .me-link { color: var(--me-primary); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--me-primary) 40%, transparent);}
.me-prose a:hover { text-decoration-color: var(--me-primary);}
.me-prose strong { font-weight: 650;}
/* ------------------------------------------------------------ frontmatter */
.me-frontmatter { border: 1px solid var(--me-border); border-radius: var(--me-radius); background: var(--me-surface); font-size: 12.5px;}
.me-frontmatter-header { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 10px; border: none; background: transparent; color: var(--me-text-muted); font-size: 12px; font-weight: 550; font-family: inherit; cursor: pointer; text-align: left;}
.me-frontmatter-header:hover { color: var(--me-text);}
.me-frontmatter-chevron { transition: transform 120ms ease;}
.me-frontmatter-chevron.is-open { transform: rotate(90deg);}
.me-frontmatter-badge { margin-left: auto; padding: 0 6px; border-radius: 999px; background: var(--me-surface-subtle); color: var(--me-text-muted); font-size: 11px; line-height: 16px;}
.me-frontmatter-body { padding: 4px 10px 10px; border-top: 1px solid var(--me-border);}
.me-frontmatter-empty { padding: 8px 0; color: var(--me-text-muted); font-style: italic;}
.me-frontmatter-fields { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px;}
.me-frontmatter-row { display: flex; align-items: center; gap: 6px;}
.me-fm-key { flex: 0 0 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--me-mono-font); font-size: 12px; color: var(--me-text);}
.me-fm-input { flex: 1; min-width: 0; padding: 4px 8px; border: 1px solid var(--me-border); border-radius: 5px; background: var(--me-surface); color: var(--me-text); font-family: var(--me-mono-font); font-size: 12px; outline: none;}
.me-fm-input:focus { border-color: var(--me-ring);}
.me-fm-checkbox { width: 14px; height: 14px; accent-color: var(--me-primary);}
.me-frontmatter-add { display: flex; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--me-border);}
.me-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border: none; border-radius: 5px; background: transparent; color: var(--me-text-muted); cursor: pointer; transition: background 80ms ease, color 80ms ease;}
.me-icon-btn:hover:not(:disabled) { background: var(--me-surface-subtle); color: var(--me-text);}
.me-icon-btn:disabled { opacity: 0.35; cursor: default;}