Skip to content

Commit

Permalink
加阴影,加背景色
Browse files Browse the repository at this point in the history
  • Loading branch information
mcxue committed May 18, 2020
1 parent 6e4bfdd commit 9aba5c6
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 35 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"sass": "^1.26.3",
"sass-loader": "^8.0.2",
"svg-sprite-loader": "^5.0.0",
"svg-sprite-loader-mod": "^4.1.6-mod1",
"svgo-loader": "^2.2.1",
"typescript": "~3.8.3",
"vue-template-compiler": "^2.6.11"
Expand Down
1 change: 1 addition & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@import "~@/assets/reset.scss";
body{
background: #eeeeee;
line-height: 1.5em;
font-family: -apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;
}
Expand Down
2 changes: 1 addition & 1 deletion src/assets/icons/add.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/icons/detail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/icons/home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/icons/label.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/icons/person.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/icons/statistics.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/Nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ import Icon from '@/components/Icon.vue';
<style lang="scss" scoped>
@import "~@/assets/reset.scss";
nav{
background: #eeeeee;
background: #e5e5e5;
font-size: 13px;
display: flex;
justify-content:center;
align-items: center;
box-shadow: 0 0 2px rgba(0,0,0,0.2);
.item{
width:20%;
padding: 5px 0;
Expand Down
4 changes: 2 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ module.exports = {
.rule('svg-sprite')
.test(/\.svg$/)
.include.add(dir).end()
.use('svg-sprite-loader-mod').loader('svg-sprite-loader-mod').options({extract: false}).end()
.use('svg-sprite-loader').loader('svg-sprite-loader').options({extract: false}).end()
.use('svgo-loader').loader('svgo-loader')
.tap(options => ({...options, plugins: [{removeAttrs: {attrs: 'fill'}}]})).end()
// eslint-disable-next-line @typescript-eslint/no-var-requires
config.plugin('svg-sprite').use(require('svg-sprite-loader-mod/plugin'), [{plainSprite: true}])
config.plugin('svg-sprite').use(require('svg-sprite-loader/plugin'))
config.module.rule('svg').exclude.add(dir)
}
}
Loading

0 comments on commit 9aba5c6

Please sign in to comment.