From 870f074bae19d7335b985221db3f9d389c13d503 Mon Sep 17 00:00:00 2001 From: Marc Cuva Date: Wed, 3 Feb 2021 15:39:48 -0800 Subject: [PATCH] feat(recipes): don't highlight everything on hover (#77) --- src/codeMirror/style.scss | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/codeMirror/style.scss b/src/codeMirror/style.scss index d32c6fb..ace6eab 100644 --- a/src/codeMirror/style.scss +++ b/src/codeMirror/style.scss @@ -14,9 +14,9 @@ $lightHighlight: rgba($lightColor, 0.1); &.cm-s-material-palenight { - &:not(:hover):not(:active):not(:focus) .cm-linerow.cm-overlay, - &:not(:hover):not(:active):not(:focus) .cm-linerow.cm-overlay > span, - &:not(:hover):not(:active):not(:focus) .cm-linerow.cm-overlay > p { + .cm-linerow.cm-overlay, + .cm-linerow.cm-overlay > span, + .cm-linerow.cm-overlay > p { color: rgba($darkColor, 0.5); } @@ -32,9 +32,9 @@ $lightHighlight: rgba($lightColor, 0.1); &.cm-s-neo { - &:not(:hover):not(:active):not(:focus) .cm-linerow.cm-overlay, - &:not(:hover):not(:active):not(:focus) .cm-linerow.cm-overlay > span, - &:not(:hover):not(:active):not(:focus) .cm-linerow.cm-overlay > p { + .cm-linerow.cm-overlay, + .cm-linerow.cm-overlay > span, + .cm-linerow.cm-overlay > p { color: rgba($lightColor, 0.5); } @@ -48,8 +48,8 @@ $lightHighlight: rgba($lightColor, 0.1); } } - &:not(:hover):not(:active):not(:focus) .cm-linerow.cm-overlay, - &:not(:hover):not(:active):not(:focus) .cm-linerow.cm-overlay .cm-lineNumber { + .cm-linerow.cm-overlay, + .cm-linerow.cm-overlay .cm-lineNumber { opacity: 0.75; } }