From 2ea0e080ff72b319d2f2af76799be33e31138cea Mon Sep 17 00:00:00 2001 From: evlic Date: Tue, 17 May 2022 11:33:34 +0800 Subject: [PATCH] add notion theme --- notion-dark-classic.css | 9 +++++++-- notion-darker-enhanced.css | 11 +++++++++-- notion-light-enhanced.css | 4 ++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/notion-dark-classic.css b/notion-dark-classic.css index 7743ed1..4733ce1 100644 --- a/notion-dark-classic.css +++ b/notion-dark-classic.css @@ -17,8 +17,8 @@ --code-color: #9a6e3a; --border-radius: 4px; --font-size: 16px; - --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; - --monospace: 'SF Mono Medium', 'Fira Code', 'Cousine', 'Consolas', monospace; + --font-family: 'PingFang SC',-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; + --monospace: 'JetBrains NF','SF Mono Medium', 'Fira Code', 'Cousine', 'Consolas', monospace; --heading-char-color: var(--light-trait-400); --color-popover-bg-color: var(--text-color); --rawblock-edit-panel-bd: var(--bg-color-dark); @@ -409,6 +409,11 @@ kbd { font-weight: medium; } + +.cm-s-inner .CodeMirror-cursor { + border-left: solid rgb(235, 235, 235) !important; +} + .CodeMirror.cm-s-typora-default div.CodeMirror-cursor { border-left: 2px solid var(--text-color); } diff --git a/notion-darker-enhanced.css b/notion-darker-enhanced.css index 94e8551..d3893c8 100644 --- a/notion-darker-enhanced.css +++ b/notion-darker-enhanced.css @@ -16,8 +16,8 @@ --code-color: #202020; --border-radius: 4px; --font-size: 16px; - --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; - --monospace: 'SF Mono Medium', 'Fira Code', 'Cousine', 'Consolas', monospace; + --font-family: 'PingFang SC',-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; + --monospace: 'JetBrains NF','SF Mono Medium', 'Fira Code', 'Cousine', 'Consolas', monospace; --heading-char-color: var(--light-trait-400); --color-popover-bg-color: var(--text-color); --rawblock-edit-panel-bd: var(--bg-color-dark); @@ -291,6 +291,8 @@ code { font-family: var(--monospace); } + + .md-fences { margin-bottom: 15px; margin-top: 15px; @@ -335,6 +337,7 @@ code { .CodeMirror-lines { padding-left: 4px; + } .code-tooltip { @@ -428,6 +431,10 @@ code { font-weight: medium; } +.cm-s-inner .CodeMirror-cursor { + border-left: solid rgb(235, 235, 235) !important; +} + .CodeMirror.cm-s-typora-default div.CodeMirror-cursor { border-left: 2px solid var(--text-color); } diff --git a/notion-light-enhanced.css b/notion-light-enhanced.css index 568c0c6..eeb9bfc 100644 --- a/notion-light-enhanced.css +++ b/notion-light-enhanced.css @@ -17,8 +17,8 @@ --code-color: #9a6e3a; --border-radius: 4px; --font-size: 16px; - --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; - --monospace: 'SF Mono Medium', 'Fira Code', 'Cousine', 'Consolas', monospace; + --font-family: 'PingFang SC',-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; + --monospace: 'JetBrains NF','SF Mono Medium', 'Fira Code', 'Cousine', 'Consolas', monospace; --heading-char-color: var(--light-trait-400); --color-popover-bg-color: var(--text-color); --rawblock-edit-panel-bd: var(--bg-color-dark);