From 139a7066dba5ae42a887e8c9c3db46dc3da680b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=86=89?= Date: Wed, 6 Nov 2019 13:59:25 +0800 Subject: [PATCH] modify highlight style --- src/muya/lib/assets/styles/index.css | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/muya/lib/assets/styles/index.css b/src/muya/lib/assets/styles/index.css index 91734a53..8c195b3a 100644 --- a/src/muya/lib/assets/styles/index.css +++ b/src/muya/lib/assets/styles/index.css @@ -130,8 +130,8 @@ div.ag-show-quick-insert-hint p.ag-paragraph.ag-active > span.ag-paragraph-conte *:not(.ag-hide)::selection, .ag-selection { background: var(--selectionColor); color: var(--editorColor); - padding: 0 3px; - border-radius: 2px; + padding: 0 2px; + border-radius: 1px; } .ag-hide::selection { @@ -232,10 +232,13 @@ figure[data-role="FOOTNOTE"] .ag-footnote-input::after { .ag-highlight { animation-name: highlight; animation-duration: .25s; - display: inline-block; - padding: 0 3px; - border-radius: 2px; background: var(--highlightColor); + color: var(--editorColor80); + display: inline-block; + padding: 0 2px; + border-radius: 1px; + height: 1.3em; + line-height: 1.3em; } span.ag-html-tag {