:global(html), :global(body), :global(#root) { height: 100%; margin: 0; } :global(body) { background: linear-gradient( 135deg, rgba(13, 148, 136, 0.07) 0%, transparent 42% ), linear-gradient( 200deg, rgba(15, 118, 110, 0.05) 0%, transparent 38% ), repeating-linear-gradient( 0deg, transparent, transparent 23px, rgba(26, 35, 48, 0.018) 24px ), linear-gradient(180deg, #f3f6f7 0%, #e9eef0 100%); color: #1a2330; font-family: 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; } :global(p) { margin: 0; padding: 0; } :global(a) { color: #0f766e; } /* Thin shared scrollbars */ @mixin thin-scroll { scrollbar-width: thin; scrollbar-color: rgba(26, 35, 48, 0.22) transparent; &::-webkit-scrollbar { width: 8px; height: 8px; } &::-webkit-scrollbar-track { background: transparent; } &::-webkit-scrollbar-thumb { background: rgba(26, 35, 48, 0.18); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; &:hover { background: rgba(26, 35, 48, 0.3); background-clip: padding-box; border: 2px solid transparent; } } } .app { --accent: #0d9488; --accent-deep: #0f766e; --accent-soft: rgba(13, 148, 136, 0.1); --ink: #1a2330; --muted: #64748b; --line: rgba(26, 35, 48, 0.09); --surface: rgba(255, 255, 255, 0.82); --surface-raised: #ffffff; --panel: var(--surface); --panel-solid: #fbfcfd; --preview-paper: #f4f7f8; --shadow: 0 4px 20px rgba(26, 35, 48, 0.06); --radius: 12px; --radius-sm: 8px; --titlebar-height: 44px; --titlebar-controls: 146px; box-sizing: border-box; display: flex; flex-direction: column; height: 100%; min-height: 100vh; padding: 0 18px 14px; gap: 10px; } .titleBar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; flex-wrap: nowrap; height: var(--titlebar-height); margin: 0 -18px; padding: 0 var(--titlebar-controls) 0 14px; background: #eef2f3; border-bottom: 1px solid rgba(26, 35, 48, 0.06); -webkit-app-region: drag; app-region: drag; user-select: none; animation: riseIn 320ms ease both; } .titleBar .actions { :global(.ant-btn) { height: 28px; font-size: 12px; } :global(.ant-btn-text) { color: var(--muted); &:hover:not(:disabled) { color: var(--accent-deep); background: var(--accent-soft); } } } .header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; flex-wrap: nowrap; } .brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; } .brandText { min-width: 0; display: flex; align-items: baseline; gap: 8px; } .brandMark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; position: relative; background: linear-gradient(145deg, #14b8a6 0%, #0f766e 100%); box-shadow: 0 2px 8px rgba(13, 148, 136, 0.28); overflow: hidden; flex-shrink: 0; &::before { content: ''; width: 9px; height: 9px; border: 1.8px solid #ecfeff; border-radius: 2.5px; transform: rotate(18deg); } &::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 1px; background: #ecfeff; bottom: 6px; right: 6px; } } .title { margin: 0; font-size: 14px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; color: var(--ink); } .subtitle { margin: 0; font-size: 11px; color: var(--muted); letter-spacing: 0.01em; white-space: nowrap; } .actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex-shrink: 0; justify-content: flex-end; -webkit-app-region: no-drag; app-region: no-drag; } .actionGroup { display: inline-flex; align-items: center; gap: 6px; padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line); &:first-child { padding-left: 0; margin-left: 0; border-left: none; } } .copyGroup { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); } .copyArticleBtn { background: #fff !important; border-color: rgba(13, 148, 136, 0.4) !important; color: var(--accent-deep) !important; font-weight: 600; &:hover:not(:disabled) { border-color: var(--accent) !important; color: var(--accent) !important; background: var(--accent-soft) !important; } } .themeSwitch { background: rgba(255, 255, 255, 0.7) !important; } .themeMenuItem { display: flex; flex-direction: column; gap: 2px; max-width: 260px; padding: 2px 0; strong { font-size: 13px; color: var(--ink, #1a2330); } span { font-size: 12px; color: var(--muted, #64748b); line-height: 1.4; white-space: normal; } } .footerToggle { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); color: var(--muted); font-size: 12px; flex-shrink: 0; cursor: pointer; margin: 0; transition: border-color 160ms ease, background 160ms ease; &:hover { border-color: rgba(13, 148, 136, 0.35); } } .footerPanel { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: var(--shadow); backdrop-filter: blur(10px); animation: riseIn 520ms ease both; transition: opacity 180ms ease, padding 180ms ease, gap 180ms ease; } .footerPanelOff { opacity: 0.55; padding-top: 8px; padding-bottom: 8px; gap: 0; .footerEditor { display: none; } } .footerPanelHead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .footerHint { margin: 0; flex: 1; min-width: 160px; font-size: 12px; color: var(--muted); } .footerEditor { font-family: 'Cascadia Code', 'JetBrains Mono', Consolas, 'Microsoft YaHei', monospace !important; font-size: 13px !important; line-height: 1.55 !important; background: rgba(255, 255, 255, 0.9) !important; border-radius: var(--radius-sm) !important; } .snippetBar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex-shrink: 0; padding: 6px 8px; margin-top: 2px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: var(--shadow); animation: riseIn 440ms ease both; -webkit-app-region: no-drag; app-region: no-drag; } .snippetLabel { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; margin-right: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent-deep); background: var(--accent-soft); border-radius: 6px; flex-shrink: 0; } .snippetBtn { appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.85); color: var(--ink); border-radius: var(--radius-sm); height: 26px; padding: 0 10px; font-size: 12px; line-height: 1; cursor: pointer; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; &:hover:not(:disabled) { background: var(--accent-soft); border-color: rgba(13, 148, 136, 0.35); color: var(--accent-deep); } &:active:not(:disabled) { background: rgba(13, 148, 136, 0.16); } &:disabled { opacity: 0.4; cursor: not-allowed; } &:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } } .snippetBarPlain { opacity: 0.8; } .saveHint { margin-left: auto; font-size: 12px; color: var(--muted); transition: color 220ms ease; } .saveHintSaved { color: var(--accent-deep); font-weight: 500; } .workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.12fr); gap: 10px; animation: riseIn 500ms ease both; } .pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.75); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; } .paneAccent { &::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent); opacity: 0.85; z-index: 1; pointer-events: none; } } .editorPane { min-width: 0; background: #f7f8f9; &::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent); opacity: 0.9; z-index: 2; pointer-events: none; } } .previewPane { background: var(--panel-solid); &::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: #5eead4; opacity: 0.7; z-index: 1; pointer-events: none; } } .articlePane { background: #fff; &::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: #94a3b8; opacity: 0.55; z-index: 1; pointer-events: none; } } .paneHeader { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px 9px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); flex-shrink: 0; gap: 10px; } .paneHeaderLeft, .paneHeaderRight { display: flex; align-items: center; gap: 8px; min-width: 0; } .paneHeaderActions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; } .paneThemeBtn { background: rgba(255, 255, 255, 0.92) !important; border-color: var(--line) !important; color: var(--ink) !important; font-size: 12px !important; height: 28px !important; padding: 0 10px !important; border-radius: var(--radius-sm) !important; } .paneTitle { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); flex-shrink: 0; } .paneBadge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent-deep); background: var(--accent-soft); flex-shrink: 0; } .paneBadgeIm { color: #0f766e; background: rgba(45, 212, 191, 0.16); } .paneBadgeArticle { color: #475569; background: rgba(148, 163, 184, 0.22); } .paneMeta { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; } .modeSegmented { :global(.ant-segmented) { background: rgba(26, 35, 48, 0.06); padding: 2px; border-radius: 8px; } :global(.ant-segmented-item) { border-radius: 6px; min-height: 24px; line-height: 22px; font-size: 12px; } } .tocToggle { appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.85); color: var(--muted); border-radius: var(--radius-sm); height: 26px; padding: 0 9px; font-size: 12px; cursor: pointer; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; &:hover { color: var(--accent-deep); border-color: rgba(13, 148, 136, 0.35); background: var(--accent-soft); } &:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } } .editorBody { flex: 1; min-height: 0; display: flex; flex-direction: row; } .tocPanel { width: 160px; flex-shrink: 0; border-right: 1px solid var(--line); background: rgba(248, 250, 251, 0.98); overflow: auto; padding: 8px 6px 10px; @include thin-scroll; } .tocTitle { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 2px 8px 8px; } .tocEmpty { margin: 0; padding: 6px 8px; font-size: 12px; color: var(--muted); line-height: 1.5; } .tocList { list-style: none; margin: 0; padding: 0; } .tocItem { appearance: none; width: 100%; border: none; background: transparent; text-align: left; cursor: pointer; color: var(--ink); font-size: 12px; line-height: 1.35; padding: 5px 8px; border-radius: 6px; display: flex; align-items: flex-start; gap: 6px; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid transparent; transition: background 150ms ease, border-color 150ms ease; &:hover { background: var(--accent-soft); } } .tocItemActive { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; border-left-color: var(--accent); } .tocLevel { flex-shrink: 0; font-size: 9px; font-weight: 600; color: var(--muted); margin-top: 2px; opacity: 0.85; } .editorWrap { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; } .editorWrapDragOver { outline: 2px dashed rgba(13, 148, 136, 0.5); outline-offset: -2px; background: rgba(13, 148, 136, 0.04); } .editorWrapBusy { opacity: 0.92; } .dropOverlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; background: rgba(13, 148, 136, 0.08); color: var(--accent-deep); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; } .editorMarkdown .editor { font-family: 'Cascadia Code', 'JetBrains Mono', 'SF Mono', Consolas, 'Microsoft YaHei', monospace !important; } .editorPlain .editor { font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif !important; font-size: 15px !important; line-height: 1.8 !important; } .editor { flex: 1 !important; min-height: 0 !important; height: 100% !important; overflow: auto !important; resize: none !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; padding: 16px 18px !important; font-size: 14px !important; line-height: 1.7 !important; @include thin-scroll; &:focus { box-shadow: none !important; } } .previewScroll { flex: 1; min-height: 0; overflow: auto; background: linear-gradient(180deg, rgba(244, 247, 248, 0.98), #f2f6f7), repeating-linear-gradient( 0deg, transparent, transparent 27px, rgba(13, 148, 136, 0.03) 28px ); @include thin-scroll; } .previewHtml { padding: 18px 20px 28px; font-size: 15px; line-height: 1.75; color: var(--ink); user-select: text; animation: fadeIn 220ms ease; > :global(div) { margin: 0 0 0.65em; } > :global(div:last-child) { margin-bottom: 0; } :global(img) { max-width: 100%; height: auto; border-radius: 8px; } :global(.emoji-footer) { margin-top: 16px; padding-top: 4px; color: var(--ink); line-height: 1.7; } :global(.emoji-table) { margin: 8px 0 12px; line-height: 1.45; } /* 纯文本预览:表格/代码块禁止上色与装饰边框,所见即复制结果 */ :global(.emoji-table pre) { margin: 0; padding: 0; white-space: pre; overflow-x: auto; font-family: 'Cascadia Code', 'JetBrains Mono', Consolas, 'Microsoft YaHei', 'PingFang SC', monospace; font-size: 14px; line-height: 1.55; letter-spacing: 0; font-variant-ligatures: none; background: transparent; border: none; border-radius: 0; color: inherit; } :global(.emoji-code) { margin: 8px 0 12px; padding: 0; border: none; border-radius: 0; background: transparent; font-size: 13px; } :global(.emoji-code pre) { margin: 0; padding: 0; white-space: pre-wrap; word-break: break-word; font-family: 'Cascadia Code', 'JetBrains Mono', Consolas, 'Microsoft YaHei', monospace; line-height: 1.55; background: transparent; border: none; color: inherit; } /* * A2 · 极致:只优化字符排版(框线/层级/对齐), * 预览禁止颜色与 CSS 装饰——复制到微信/小红书/抖音/X 等仍是纯字符。 */ &[data-theme='A2'] { padding: 20px 22px 32px; font-size: 15px; line-height: 1.85; letter-spacing: 0; color: var(--ink); /* 与微信一致:CJK 优先,全角框线才和汉字/emoji 同宽 */ font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', 'Cascadia Code', Consolas, monospace; font-variant-ligatures: none; > :global(div) { margin: 0 0 0.75em; } :global(.emoji-h1) { margin: 0.1em 0 1em; line-height: 1.35; white-space: pre; font-weight: 400; font-variant-ligatures: none; letter-spacing: 0; } :global(.emoji-h2) { margin: 1.1em 0 0.55em; line-height: 1.5; white-space: pre-wrap; font-weight: 400; } :global(.emoji-h2-rule) { display: inline; opacity: 1; color: inherit; } :global(.emoji-h3) { margin: 0.9em 0 0.4em; font-weight: 400; } :global(.emoji-h4) { margin: 0.7em 0 0.3em; font-weight: 400; } :global(.emoji-hr) { margin: 1.1em 0; text-align: left; letter-spacing: 0.06em; color: inherit; } :global(.emoji-quote) { margin: 0.25em 0; color: inherit; } :global(.emoji-image) { margin: 0.55em 0; white-space: pre-wrap; color: inherit; } :global(.emoji-table pre), :global(.emoji-code pre) { /* 必须跟预览区同一套 CJK 字体:Cascadia 下 ─ 半角、汉字全角,右侧框线必断 */ font-family: inherit; font-size: 14px; } :global(.emoji-code-a2 pre) { white-space: pre; overflow-x: auto; font-size: 14px; } :global(.emoji-footer) { margin-top: 1.2em; color: inherit; } } } .articleScroll { flex: 1; min-height: 0; overflow: auto; background: radial-gradient( ellipse 80% 36% at 50% 0%, rgba(13, 148, 136, 0.04), transparent 70% ), linear-gradient(180deg, #ffffff 0%, #f8fafb 100%); transition: background 220ms ease; @include thin-scroll; } .articlePane[data-theme='B'] .articleScroll { background: radial-gradient( ellipse 70% 36% at 50% 0%, rgba(14, 116, 144, 0.05), transparent 70% ), linear-gradient(180deg, #fbfdfe 0%, #f3f8fa 100%); } .articlePane[data-theme='C'] .articleScroll { background: #ffffff; } .articlePane[data-theme='D'] .articleScroll { background: radial-gradient( ellipse 80% 42% at 50% 0%, rgba(180, 83, 9, 0.05), transparent 68% ), linear-gradient(180deg, #fffdf9 0%, #faf6f0 100%); } .articleHtml { --md-ink: #1c2430; --md-muted: #64748b; --md-accent: #0f766e; --md-border: rgba(28, 36, 48, 0.1); --md-code-bg: #f1f5f7; --md-quote-bg: rgba(13, 148, 136, 0.06); --md-h1-rule: rgba(15, 118, 110, 0.22); --md-pre-bg: #1a2330; --md-code-fg: #0f4c46; max-width: 42rem; margin: 0 auto; padding: 28px 28px 40px; color: var(--md-ink); font-family: 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', 'Segoe UI', 'Microsoft YaHei', sans-serif; font-size: 15.5px; line-height: 1.85; letter-spacing: 0.01em; word-break: break-word; user-select: text; animation: fadeIn 220ms ease; &[data-theme='B'] { --md-accent: #0e7490; --md-quote-bg: rgba(14, 116, 144, 0.06); --md-h1-rule: rgba(14, 116, 144, 0.28); --md-code-bg: #eef6f9; --md-code-fg: #0c4a5c; font-size: 15px; line-height: 1.8; } &[data-theme='C'] { --md-accent: #475569; --md-muted: #94a3b8; --md-quote-bg: #f8fafc; --md-h1-rule: transparent; --md-code-bg: #f1f5f9; --md-code-fg: #334155; --md-border: rgba(15, 23, 42, 0.08); font-size: 15px; line-height: 1.78; max-width: 38rem; } &[data-theme='D'] { --md-ink: #1c1917; --md-muted: #78716c; --md-accent: #b45309; --md-quote-bg: rgba(180, 83, 9, 0.07); --md-h1-rule: rgba(180, 83, 9, 0.35); --md-code-bg: #faf5f0; --md-code-fg: #7c2d12; --md-border: rgba(28, 25, 23, 0.12); --md-pre-bg: #1c1917; font-size: 16px; line-height: 1.9; } :global(h1), :global(h2), :global(h3), :global(h4), :global(h5), :global(h6) { color: var(--md-ink); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; margin: 1.55em 0 0.55em; } :global(h1) { font-size: 1.85em; margin-top: 0.2em; padding-bottom: 0.35em; border-bottom: 2px solid var(--md-h1-rule); } :global(h2) { font-size: 1.4em; padding-bottom: 0.28em; border-bottom: 1px solid var(--md-border); } :global(h3) { font-size: 1.18em; color: #243044; } :global(h4) { font-size: 1.05em; } :global(h5), :global(h6) { font-size: 0.95em; color: var(--md-muted); text-transform: none; } :global(p) { margin: 0 0 1em; } :global(a) { color: var(--md-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 140ms ease; &:hover { filter: brightness(1.12); } } :global(strong) { font-weight: 700; color: #152033; } :global(em) { font-style: italic; color: #334155; } :global(ul), :global(ol) { margin: 0 0 1em; padding-left: 1.45em; } :global(li) { margin: 0.28em 0; } :global(li > p) { margin: 0.2em 0; } :global(li > ul), :global(li > ol) { margin: 0.25em 0 0.35em; } :global(blockquote) { margin: 0 0 1.1em; padding: 0.65em 1em 0.65em 1.05em; border-left: 3.5px solid var(--md-accent); background: var(--md-quote-bg); border-radius: 0 10px 10px 0; color: #3d4f63; :global(p) { margin: 0.35em 0; } :global(p:first-child) { margin-top: 0; } :global(p:last-child) { margin-bottom: 0; } } :global(hr) { border: none; height: 1px; margin: 1.6em 0; background: linear-gradient( 90deg, transparent, var(--md-accent), transparent ); opacity: 0.45; } :global(code) { font-family: 'Cascadia Code', 'JetBrains Mono', 'SF Mono', Consolas, monospace; font-size: 0.88em; padding: 0.15em 0.4em; border-radius: 5px; background: var(--md-code-bg); color: var(--md-code-fg); border: 1px solid color-mix(in srgb, var(--md-accent) 18%, transparent); } :global(pre) { margin: 0 0 1.15em; padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: var(--md-pre-bg); border: 1px solid rgba(26, 35, 48, 0.85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); :global(code) { display: block; padding: 0; border: none; background: transparent; color: #e2e8f0; font-size: 0.86em; line-height: 1.65; white-space: pre; } } :global(img) { max-width: 100%; height: auto; display: block; margin: 1em auto; border-radius: 10px; box-shadow: 0 8px 28px rgba(26, 35, 48, 0.1); } :global(table) { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.94em; overflow: hidden; border-radius: 10px; border: 1px solid var(--md-border); } :global(th), :global(td) { padding: 10px 14px; border-bottom: 1px solid var(--md-border); text-align: left; vertical-align: top; } :global(th) { background: color-mix(in srgb, var(--md-accent) 12%, transparent); font-weight: 600; color: var(--md-accent); } :global(tr:last-child td) { border-bottom: none; } :global(tr:nth-child(even) td) { background: rgba(244, 247, 248, 0.65); } :global(input[type='checkbox']) { margin-right: 0.45em; accent-color: var(--md-accent); } :global(.md-footer) { margin-top: 2em; padding-top: 1.1em; border-top: 1px dashed var(--md-border); color: var(--md-muted); font-size: 0.9em; line-height: 1.7; } &[data-theme='B'] { :global(h1) { border-bottom: none; padding-left: 0.7em; border-left: 4px solid var(--md-accent); padding-bottom: 0; } :global(h2) { border-bottom: none; padding-bottom: 0; } :global(blockquote) { border-radius: 0; border-left-width: 3px; } :global(pre) { border-radius: 8px; } :global(table) { border-radius: 6px; } } &[data-theme='C'] { :global(h1), :global(h2) { border-bottom: none; padding-bottom: 0; font-weight: 600; } :global(h1) { font-size: 1.65em; } :global(h2) { font-size: 1.28em; } :global(blockquote) { background: transparent; border-left-width: 2px; border-radius: 0; padding-left: 0.85em; } :global(pre) { border-radius: 6px; box-shadow: none; } :global(img) { border-radius: 4px; box-shadow: none; } :global(table) { border-radius: 0; } :global(th) { background: transparent; border-bottom: 2px solid var(--md-border); } :global(tr:nth-child(even) td) { background: transparent; } :global(a) { text-decoration-thickness: 1px; } } &[data-theme='D'] { :global(h1) { border-bottom-width: 3px; border-bottom-style: double; letter-spacing: 0.02em; } :global(h2) { border-bottom: none; padding-left: 0.55em; border-left: 3px solid var(--md-accent); padding-bottom: 0; } :global(h3) { color: var(--md-accent); } :global(blockquote) { border-left-width: 4px; border-radius: 0 12px 12px 0; } :global(strong) { color: #1c1917; background: rgba(180, 83, 9, 0.1); padding: 0 0.2em; border-radius: 3px; } :global(ul) { list-style: none; padding-left: 1.1em; :global(li::before) { content: '→ '; color: var(--md-accent); font-weight: 600; } } } } .emptyState { height: 100%; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--muted); animation: fadeIn 280ms ease; } .emptyIcon { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; position: relative; background: var(--accent-soft); border: 1px solid rgba(13, 148, 136, 0.18); &::before { content: ''; position: absolute; inset: 14px 12px; border: 2px solid var(--accent); border-radius: 4px; opacity: 0.7; } &::after { content: ''; position: absolute; width: 16px; height: 2px; background: var(--accent); top: 22px; left: 16px; opacity: 0.55; box-shadow: 0 5px 0 var(--accent), 0 10px 0 var(--accent); } } .emptyIconIm { background: rgba(45, 212, 191, 0.12); border-color: rgba(45, 212, 191, 0.28); &::before { border-color: #0d9488; border-radius: 50%; inset: 12px; } &::after { width: 10px; height: 10px; border-radius: 50%; top: 19px; left: 19px; box-shadow: none; background: #0d9488; opacity: 0.65; } } .emptyIconArticle { background: rgba(148, 163, 184, 0.16); border-color: rgba(148, 163, 184, 0.35); &::before { border-color: #64748b; border-left: none; border-top: none; border-radius: 0 0 4px 0; inset: 14px 14px 14px 18px; } &::after { width: 12px; height: 16px; top: 14px; left: 14px; border-radius: 2px 2px 0 0; background: #94a3b8; opacity: 0.55; box-shadow: none; } } .emptyTitle { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); } .emptyDesc { margin: 0; font-size: 13px; line-height: 1.7; max-width: 260px; } @keyframes riseIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @media (max-width: 1200px) { .workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .articlePane { grid-column: 1 / -1; max-height: 42vh; } } @media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } .articlePane { grid-column: auto; max-height: none; } .titleBar { height: auto; min-height: var(--titlebar-height); flex-wrap: wrap; padding-bottom: 6px; } .brandText { flex-wrap: wrap; } .actions { width: 100%; justify-content: flex-start; padding-left: 36px; } } /* macOS traffic lights sit in the title bar */ :global(body.platform-darwin) .titleBar, .app[data-platform='darwin'] .titleBar { padding-left: 78px; padding-right: 14px; }