Browse Source

提取公共样式

pull/1/head
liwei 3 years ago
parent
commit
125f39dd72
2 changed files with 19 additions and 18 deletions
  1. +2
    -18
      src/App.vue
  2. +17
    -0
      src/assets/css/base.css

+ 2
- 18
src/App.vue View File

@ -6,22 +6,6 @@
export default {};
</script>
<style lang="less">
* {
margin: 0;
padding: 0;
font-size: 12px;
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html,
body {
width: 100%;
height: 100%;
}
#app {
width: 100%;
height: 100%;
}
<style>
@import "./assets/css/base.css";
</style>

+ 17
- 0
src/assets/css/base.css View File

@ -0,0 +1,17 @@
* {
margin: 0;
padding: 0;
font-size: 12px;
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html,
body {
width: 100%;
height: 100%;
}
#app {
width: 100%;
height: 100%;
}

Loading…
Cancel
Save