mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
CodeMirror: Make colored selections based on palette work in chrome, too (#5215)
* Make colored selections based on palette work in chrome, too * Update styles.tid
This commit is contained in:
parent
005f7c55b6
commit
b2d270a7e8
@ -17,7 +17,10 @@ name: tiddlywiki
|
||||
\end
|
||||
\define set-selection-background-css(colour,colourA,colourB)
|
||||
<$set name="backgroundColour" value=<<contrastcolour target:"""$colour$""" fallbackTarget:"""""" colourA:"""$colourA$""" colourB:"""$colourB$""">>>
|
||||
.cm-s-tiddlywiki div.CodeMirror-selected, .cm-s-tiddlywiki .CodeMirror-selectedtext, .cm-s-tiddlywiki .CodeMirror-selected, .cm-s-tiddlywiki .CodeMirror-line::selection, .cm-s-tiddlywiki .CodeMirror-line > span::selection, .cm-s-tiddlywiki .CodeMirror-line > span > span::selection, .cm-s-tiddlywiki .CodeMirror-line::-moz-selection, .cm-s-tiddlywiki .CodeMirror-line > span::-moz-selection, .cm-s-tiddlywiki .CodeMirror-line > span > span::-moz-selection { background: <<backgroundColour>> ; }
|
||||
.cm-s-tiddlywiki div.CodeMirror-selected { background: <<backgroundColour>>; }
|
||||
.cm-s-tiddlywiki.CodeMirror ::selection { background: <<backgroundColour>>; }
|
||||
.cm-s-tiddlywiki .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: <<backgroundColour>>; }
|
||||
.cm-s-tiddlywiki .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: <<backgroundColour>>; }
|
||||
</$set>
|
||||
\end
|
||||
\define set-selection-background-colours(palette)
|
||||
|
Loading…
Reference in New Issue
Block a user