Browse Source

'样式优化'

Rorschach 4 years ago
parent
commit
ff597493f7
4 changed files with 6 additions and 3 deletions
  1. 1 1
      src/index.css
  2. 1 0
      src/main.js
  3. 2 1
      src/pages/layout/Layout.vue
  4. 2 1
      src/pages/layout/leftnav/LeftNav.vue

+ 1 - 1
src/index.css

@@ -5,7 +5,7 @@
 html, body {
   width: 100%;
   height: 100%;
-  font-size: 16px;
+  font-size: 12px;
 }
 #app {
   width: 100%;

+ 1 - 0
src/main.js

@@ -1,5 +1,6 @@
 import Vue from 'vue';
 import App from './App.vue';
+
 import ElementUI from 'element-ui';
 import 'element-ui/lib/theme-chalk/index.css';
 // 路由跳转进度条

+ 2 - 1
src/pages/layout/Layout.vue

@@ -27,7 +27,8 @@ export default {
     height: 100%;
     display: flex;
     .right-con {
-      width: calc(100% - 200px);
+      width: calc(100% - 150px);
+      margin-left: 150px;
       display: flex;
       flex-direction: column;
     }

+ 2 - 1
src/pages/layout/leftnav/LeftNav.vue

@@ -27,8 +27,9 @@
 </template>
 <style lang="less">
   .left-nav {
-    width: 200px;
+    width: 150px;
     height: 100%;
+    position: fixed;
     background-color: #324157;
     .el-menu {
       border: none;