Skip to content

Commit

Permalink
feat(recipes): don't highlight everything on hover (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcuva authored Feb 3, 2021
1 parent 0b360af commit 870f074
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/codeMirror/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand All @@ -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;
}
}
Expand Down

0 comments on commit 870f074

Please sign in to comment.