File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 36
36
}
37
37
</ style >
38
38
39
- < body theme =" darkmode " >
40
- < div >
41
- < div class ="background:black:dark background:white:light ">
42
- < h1 class ="color:white:dark color:black:light " > hello, how are you </ h1 >
39
+ < body >
40
+ < div theme =" dark " class =" width:50%@300px-500px " >
41
+ < div class ="background:black:dark ">
42
+ < h1 class ="color:white:dark " > </ h1 >
43
43
</ div >
44
44
< a data-toggle ="dark, light " data-toggle_target ="body " data-toggle_attribute ="theme "> Toggle Darkmode</ a >
45
45
</ div >
Original file line number Diff line number Diff line change @@ -283,8 +283,12 @@ const addParsingClassList = (classList) => {
283
283
284
284
for ( let i = 1 ; i < parts . length ; i ++ ) {
285
285
let range_num = mediaRangeNames . indexOf ( parts [ i ] ) ;
286
- if ( range_num == - 1 ) continue ;
287
- let range = rangesArray [ range_num ] ;
286
+ let range = [ ]
287
+ if ( range_num != - 1 ) range = rangesArray [ range_num ] ;
288
+ else {
289
+ let customRange = parts [ i ] . split ( '-' ) ;
290
+ range = customRange . map ( c => Number . parseInt ( c ) )
291
+ }
288
292
let prefix = "@media screen" ;
289
293
if ( range [ 0 ] != 0 ) {
290
294
prefix += " and (min-width:" + range [ 0 ] + "px)" ;
You can’t perform that action at this time.
0 commit comments