@@ -30,7 +30,6 @@ export interface ColorPalette {
3030 col6 ?: string ;
3131 negative ?: string ;
3232 positive ?: string ;
33- selection : string ;
3433 string ?: string ;
3534 keyword ?: string ;
3635 builtin ?: string ;
@@ -78,24 +77,6 @@ export const palette: ColorPalette = {
7877 negative : theme . color . sem . negative [ 2 ] ,
7978 // positive: theme.color.sem.positive[1],
8079 positive : "#718C00" ,
81- selection : "hsl(230, 1%, 90%)" ,
82- } ;
83-
84- const redSquiggly : CssLikeObject = {
85- marb : "-2px" ,
86- bdb : "2px dotted rgba(255,0,0,.6)" ,
87- d : "inline-block" ,
88- pos : "relative" ,
89- "&:after" : {
90- d : "block" ,
91- content : '""' ,
92- w : "100%" ,
93- h : "4px" ,
94- bdb : "2px dotted rgba(255,0,0,.6)" ,
95- pos : "absolute" ,
96- t : "calc(1em - 1px)" ,
97- l : "-2px" ,
98- } ,
9980} ;
10081
10182const backgroundPadding : CssLikeObject = {
@@ -105,11 +86,6 @@ const backgroundPadding: CssLikeObject = {
10586 pad : ".1em" ,
10687} ;
10788
108- const redBackground : CssLikeObject = {
109- ...backgroundPadding ,
110- bg : "rgba(255,0,0,.05)" ,
111- } ;
112-
11389export const css = ( {
11490 mono1,
11591 mono2 = mono1 ,
@@ -122,7 +98,6 @@ export const css = ({
12298 col6 = mono3 ,
12399 negative = col5 ,
124100 positive = col4 ,
125- selection,
126101
127102 string : str = col4 ,
128103 keyword = col3 ,
@@ -154,11 +129,6 @@ export const css = ({
154129
155130 return {
156131 col : mono1 ,
157- "::selection" : {
158- bg : selection ,
159- col : "inherit" ,
160- bdrad : ".2em" ,
161- } ,
162132 ".token" : {
163133 "&.comment,&.prolog,&.cdata" : {
164134 col : mono3 ,
@@ -188,35 +158,22 @@ export const css = ({
188158 } ,
189159 "&.important" : {
190160 col : important ,
191- ...redSquiggly ,
192161 } ,
193162 "&.function" : {
194163 col : func ,
195164 } ,
196165 "&.boolean" : {
197166 col : boolean ,
198- "&[text=false]" : redBackground ,
199167 } ,
200168 "&.number" : {
201169 ...backgroundPadding ,
202170 col : number ,
203- "&:hover" : {
204- bg : lightBg ,
205- } ,
206- '&[text="0"],&[text="0.0"]' : redBackground ,
207171 '&[text*="."]' : {
208172 col : float ,
209173 } ,
210174 } ,
211175 "&.string" : {
212176 col : str ,
213- "&[text=\"''\"],&[text='\"\"']" : redBackground ,
214- "&:hover" : {
215- td : "underline" ,
216- } ,
217- "&.template-punctuation:hover" : {
218- td : "none" ,
219- } ,
220177 } ,
221178 "&.char" : {
222179 col : char ,
@@ -226,12 +183,10 @@ export const css = ({
226183 } ,
227184 "&.regex" : {
228185 col : regex ,
229- "&:hover" : {
230- td : "underline" ,
231- } ,
232186 } ,
233187 "&.url.string" : {
234188 td : "underline" ,
189+ textUnderlineOffset : "3px" ,
235190 } ,
236191 "&.operator" : {
237192 col : operator ,
@@ -244,11 +199,6 @@ export const css = ({
244199 } ,
245200 "&.property" : {
246201 col : property ,
247- "&:hover" : {
248- // td: 'underline',
249- ...backgroundPadding ,
250- bg : lightBg ,
251- } ,
252202 } ,
253203 "&.punctuation" : {
254204 col : punctuation ,
@@ -309,17 +259,6 @@ export const css = ({
309259 } ,
310260 } ,
311261
312- ".language-js,.language-javascript" : {
313- ".token" : {
314- "&.keyword" : {
315- "&[text=var],&[text=with],&[text=debugger]" : redSquiggly ,
316- } ,
317- "&.function" : {
318- "&[text=eval],&[text=alert]" : redSquiggly ,
319- } ,
320- } ,
321- } ,
322-
323262 ".language-json" : {
324263 ".token" : {
325264 "&.property" : {
0 commit comments