Fix 'offlinehtml' some css verify bug.

This commit is contained in:
Kenshin 2020-01-18 10:14:18 +08:00
parent e7241cfbd7
commit b4b3ee2a2f
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/**
* Mobile media
*/
@media (pointer: coarse) {
@media (pointer:coarse) {
sr-read {
margin: 20px 5%!important;
min-width: initial!important;

View File

@ -97,9 +97,9 @@ function findThemeStyle( callback ) {
callback && callback( name, css, $target );
} else if ( css.search( ".simpread-font" ) > -1 ) {
!themes["global"] && ( themes["global"] = css );
} else if ( css.search( "(pointer: coarse)" ) == -1 && css.search( ".simpread-theme-root" ) > -1 ) {
} else if ( css.search( "(pointer:coarse)" ) == -1 && css.search( ".simpread-theme-root" ) > -1 ) {
!themes["common"] && ( themes["common"] = css );
} else if ( css.search( "(pointer: coarse)" ) > -1 && css.search( "sr-read" ) > -1 ) {
} else if ( css.search( "(pointer:coarse)" ) > -1 && css.search( "sr-read" ) > -1 ) {
!themes["mobile"] && ( themes["mobile"] = css );
}
});