This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
appcat
/
sonist
Archived
1
0
Fork 0

fixed svg mimetype

2.x
宇天 2019-01-24 18:00:33 +08:00
parent a77543a24b
commit 53c62fd3f6
4 changed files with 11 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -15,16 +15,16 @@
.btn-box {position:absolute;left:1.2rem;top:0;width:auto;height:3rem;padding:.9rem 0; .btn-box {position:absolute;left:1.2rem;top:0;width:auto;height:3rem;padding:.9rem 0;
.item {display:inline-block;width:1.2rem;height:1.2rem;margin:0 .2rem;background:url(../images/btn-grey.svg) no-repeat;background-size:cover;} .item {display:inline-block;width:1.2rem;height:1.2rem;margin:0 .2rem;background:url(/images/btn-grey.svg) no-repeat;background-size:cover;}
&.focus { &.focus {
.quit {background-image:url(../images/btn-close.svg);} .quit {background-image:url(/images/btn-close.svg);}
.min {background-image:url(../images/btn-mini.svg);} .min {background-image:url(/images/btn-mini.svg);}
// .max {background-image:url(/images/btn-maxi.svg);} // .max {background-image:url(/images/btn-maxi.svg);}
} }
&:hover { &:hover {
.quit {background-image:url(../images/btn-close_a.svg);} .quit {background-image:url(/images/btn-close_a.svg);}
.min {background-image:url(../images/btn-mini_a.svg);} .min {background-image:url(/images/btn-mini_a.svg);}
// .max {background-image:url(/images/btn-maxi_a.svg);} // .max {background-image:url(/images/btn-maxi_a.svg);}
} }
} }
@ -261,10 +261,10 @@
&:nth-child(4) {animation:load 2.5s 1.5s ease-in-out infinite;} &:nth-child(4) {animation:load 2.5s 1.5s ease-in-out infinite;}
&:nth-child(5) {animation:load 2.5s 2s ease-in-out infinite;} &:nth-child(5) {animation:load 2.5s 2s ease-in-out infinite;}
} }
span {position:absolute;width:8rem;height:8rem;background:url(../images/load1.png) no-repeat center center;background-size:cover; span {position:absolute;width:8rem;height:8rem;background:url(/images/load1.png) no-repeat center center;background-size:cover;
&:nth-child(6) {animation:play 1.5s linear infinite;} &:nth-child(6) {animation:play 1.5s linear infinite;}
&:nth-child(7) {background-image:url(../images/load2.png);animation:load2 2.5s linear infinite;} &:nth-child(7) {background-image:url(/images/load2.png);animation:load2 2.5s linear infinite;}
} }
cite {font-size:2.4rem} cite {font-size:2.4rem}
} }

View File

@ -37,7 +37,7 @@ export const createMiniWindow = function(screen, pwin) {
width: 320, width: 320,
height: 60, height: 60,
frame: false, frame: false,
parent: pwin, // parent: pwin,
resizable: false, resizable: false,
alwaysOnTop: true, alwaysOnTop: true,
x: screen.size.width - 320, x: screen.size.width - 320,

View File

@ -13,12 +13,12 @@ const fs = require('iofs')
const MIME_TYPES = { const MIME_TYPES = {
'.js': 'text/javascript; charset=utf-8', '.js': 'text/javascript; charset=utf-8',
'.html': 'text/html; charset=utf-8', '.html': 'text/html; charset=utf-8',
'.htm': 'text/html; charset=utf-8', '.htm': 'text/plain; charset=utf-8',
'.css': 'text/css; charset=utf-8', '.css': 'text/css; charset=utf-8',
'.jpg': 'image/jpg', '.jpg': 'image/jpg',
'.png': 'image/png', '.png': 'image/png',
'.gif': 'image/gif', '.gif': 'image/gif',
'.svg': 'image/svg', '.svg': 'image/svg+xml',
'.ico': 'image/ico' '.ico': 'image/ico'
} }