Browse Source

优化政务公开页面样式

chenghanbin 4 months ago
parent
commit
dff9058584
2 changed files with 73 additions and 75 deletions
  1. 70 72
      src/style/zwgk/menuStyle.less
  2. 3 3
      src/views/zwgk/modules/main.vue

+ 70 - 72
src/style/zwgk/menuStyle.less

@@ -1,20 +1,55 @@
1
-.page {
2
-  background: #fff !important;
1
+.featureBox {
2
+  width: 240px;
3
+  float: left;
4
+  border-radius: 5px 5px 0 0;
5
+
6
+  ::v-deep(.el-menu) {
7
+    border: none;
8
+    background: transparent;
9
+
10
+    .el-menu-item {
11
+      height: 80px;
12
+      font-size: 23px;
13
+      border-radius: 6px;
14
+      margin-bottom: 15px;
15
+      background: #f2f2f2;
16
+      border: 1px solid #ddd;
17
+
18
+      img {
19
+        width: 40px;
20
+        float: left;
21
+        margin-top: 6px;
22
+        margin-left: 20px;
23
+        padding-right: 20px;
24
+      }
25
+
26
+      .muneName {
27
+        width: 110px;
28
+        display: block;
29
+        font-size: 23px;
30
+        color: #1c68c0;
31
+        line-height: 28px;
32
+        white-space: normal;
33
+        word-wrap: break-word;
34
+      }
35
+
36
+      &.is-active {
37
+        background: #1b68c0;
3
 
38
 
4
-  .featureBox {
5
-    width: 240px;
6
-    float: left;
7
-    border-radius: 5px 5px 0 0;
39
+        .muneName {
40
+          color: #fff;
41
+        }
42
+      }
43
+    }
8
 
44
 
9
-    ::v-deep(.el-menu) {
10
-      border: none;
11
-      background: transparent;
45
+    //  二级菜单样式
46
+    .el-sub-menu {
47
+      margin-bottom: 14px;
12
 
48
 
13
-      .el-menu-item {
49
+      .el-sub-menu__title {
14
         height: 80px;
50
         height: 80px;
15
         font-size: 23px;
51
         font-size: 23px;
16
         border-radius: 6px;
52
         border-radius: 6px;
17
-        margin-bottom: 15px;
18
         background: #f2f2f2;
53
         background: #f2f2f2;
19
         border: 1px solid #ddd;
54
         border: 1px solid #ddd;
20
 
55
 
@@ -36,82 +71,45 @@
36
           word-wrap: break-word;
71
           word-wrap: break-word;
37
         }
72
         }
38
 
73
 
39
-        &.is-active {
40
-          background: #1b68c0;
41
-
42
-          .muneName {
43
-            color: #fff;
44
-          }
74
+        .el-icon {
75
+          color: #1c68c0;
76
+          font-size: 20px;
45
         }
77
         }
46
       }
78
       }
47
 
79
 
48
-      //  二级菜单样式
49
-      .el-sub-menu {
50
-        margin-bottom: 14px;
51
-
52
-        .el-sub-menu__title {
53
-          height: 80px;
54
-          font-size: 23px;
55
-          border-radius: 6px;
56
-          background: #f2f2f2;
57
-          border: 1px solid #ddd;
58
-
59
-          img {
60
-            width: 40px;
61
-            float: left;
62
-            margin-top: 6px;
63
-            margin-left: 20px;
64
-            padding-right: 20px;
80
+      .el-menu {
81
+        .el-menu-item-group {
82
+          .el-menu-item-group__title {
83
+            padding: 3px 0 3px 0;
65
           }
84
           }
66
 
85
 
67
-          .muneName {
68
-            width: 110px;
69
-            display: block;
70
-            font-size: 23px;
86
+          .el-menu-item {
87
+            margin: 0;
71
             color: #1c68c0;
88
             color: #1c68c0;
72
-            line-height: 28px;
89
+            font-size: 20px;
73
             white-space: normal;
90
             white-space: normal;
74
             word-wrap: break-word;
91
             word-wrap: break-word;
75
-          }
76
-          .el-icon{
77
-            color: #1c68c0;
78
-            font-size: 20px;
79
-          }
80
-        }
81
 
92
 
82
-        .el-menu {
83
-          .el-menu-item-group {
84
-            .el-menu-item-group__title {
85
-              padding: 3px 0 3px 0;
86
-            }
87
-
88
-            .el-menu-item {
89
-              margin: 0;
90
-              color: #1c68c0;
91
-              font-size: 20px;
92
-              white-space: normal;
93
-              word-wrap: break-word;
94
-
95
-              &.is-active {
96
-                color: #fff;
97
-                background: #1b68c0;
98
-              }
93
+            &.is-active {
94
+              color: #fff;
95
+              background: #1b68c0;
99
             }
96
             }
100
           }
97
           }
101
         }
98
         }
99
+      }
100
+
101
+      &.is-active {
102
+        background: transparent;
102
 
103
 
103
-        &.is-active {
104
-          background: transparent;
104
+        .el-sub-menu__title {
105
+          background: #1b68c0;
105
 
106
 
106
-          .el-sub-menu__title {
107
-            background: #1b68c0;
107
+          .muneName {
108
+            color: #fff;
109
+          }
108
 
110
 
109
-            .muneName {
110
-              color: #fff;
111
-            }
112
-            .el-icon{
113
-              color: #fff;
114
-            }
111
+          .el-icon {
112
+            color: #fff;
115
           }
113
           }
116
         }
114
         }
117
       }
115
       }

+ 3 - 3
src/views/zwgk/modules/main.vue

@@ -1,5 +1,5 @@
1
 <template>
1
 <template>
2
-  <div class="page" :class="{ homeStyle: props.showView == 'IPP' }">
2
+  <div class="menuView" :class="{ homeStyle: props.showView == 'IPP' }">
3
     <div class="searchBox" v-if="props.showView != 'IPP'">
3
     <div class="searchBox" v-if="props.showView != 'IPP'">
4
       <input
4
       <input
5
         type="text"
5
         type="text"
@@ -39,11 +39,11 @@ function chkSearch() {
39
 }
39
 }
40
 </script>
40
 </script>
41
 <style scoped lang="less">
41
 <style scoped lang="less">
42
-.page {
42
+.menuView {
43
   width: 1128px;
43
   width: 1128px;
44
   height: 100%;
44
   height: 100%;
45
   overflow: hidden;
45
   overflow: hidden;
46
-  background-color: rgb(242, 242, 242);
46
+  background-color: #fff;
47
   margin: 0 auto;
47
   margin: 0 auto;
48
   padding: 20px 36px 20px 36px;
48
   padding: 20px 36px 20px 36px;
49
 
49