From 9de3c9ca984c284cd2596f03190cf609838a4281 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 17 Sep 2022 19:01:37 +0900 Subject: [PATCH] use @codemirror/language --- app/syntax/quot.ts | 7 ++++++- app/views/components/editor.css | 9 --------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/app/syntax/quot.ts b/app/syntax/quot.ts index ddba722..a3f9ea1 100644 --- a/app/syntax/quot.ts +++ b/app/syntax/quot.ts @@ -41,7 +41,12 @@ export const quotHighlighting = syntaxHighlighting( }, { tag: t.monospace, - class: "code", + background: "var(--nc-bg-3)", + borderRadius: "0.25em", + padding: "0.2em 0.4em", + fontSize: "0.9em", + fontFamily: "var(--nc-font-mono)", + fontWeight: "bold", }, ]) ); diff --git a/app/views/components/editor.css b/app/views/components/editor.css index b3f9cfc..5f511cb 100644 --- a/app/views/components/editor.css +++ b/app/views/components/editor.css @@ -35,12 +35,3 @@ color: var(--nc-lk-2); cursor: pointer; } - -.editor .code { - background: var(--nc-bg-3); - border-radius: 0.25rem; - padding: 0.2rem 0.4rem; - font-size: 0.9rem; - font-family: var(--nc-font-mono); - font-weight: bold; -}