style:样式修改
Showing
1 changed file
with
42 additions
and
42 deletions
| ... | @@ -19,11 +19,11 @@ | ... | @@ -19,11 +19,11 @@ |
| 19 | </div> | 19 | </div> |
| 20 | </template> | 20 | </template> |
| 21 | <script> | 21 | <script> |
| 22 | import sidebarLeft from "./Sidebar/sidebarLeft"; | 22 | import sidebarLeft from "./Sidebar/sidebarLeft"; |
| 23 | import sidebarRight from "./Sidebar/sidebarRight"; | 23 | import sidebarRight from "./Sidebar/sidebarRight"; |
| 24 | import { logout } from "@/api/login.js"; | 24 | import { logout } from "@/api/login.js"; |
| 25 | import { mapGetters } from "vuex"; | 25 | import { mapGetters } from "vuex"; |
| 26 | export default { | 26 | export default { |
| 27 | components: { | 27 | components: { |
| 28 | sidebarLeft, | 28 | sidebarLeft, |
| 29 | sidebarRight, | 29 | sidebarRight, |
| ... | @@ -57,89 +57,89 @@ | ... | @@ -57,89 +57,89 @@ |
| 57 | }); | 57 | }); |
| 58 | }, | 58 | }, |
| 59 | }, | 59 | }, |
| 60 | }; | 60 | }; |
| 61 | </script> | 61 | </script> |
| 62 | <style lang="scss" scoped> | 62 | <style lang="scss" scoped> |
| 63 | /deep/.el-menu--horizontal { | 63 | /deep/.el-menu--horizontal { |
| 64 | display: flex; | 64 | display: flex; |
| 65 | align-items: center; | 65 | align-items: center; |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | .menubg { | 68 | .menubg { |
| 69 | height: 34px; | 69 | height: 34px; |
| 70 | width: 130px; | 70 | width: 130px !important; |
| 71 | text-align: center; | 71 | text-align: center; |
| 72 | color: #ffffff; | 72 | color: #ffffff; |
| 73 | margin-right: 20px; | ||
| 74 | background: url("~@/image/navbar.png") no-repeat; | 73 | background: url("~@/image/navbar.png") no-repeat; |
| 75 | background-size: 100% 100%; | 74 | background-size: 100% 100%; |
| 76 | } | 75 | } |
| 77 | 76 | ||
| 78 | /deep/.el-menu-item { | 77 | /deep/.el-menu-item { |
| 79 | @extend .menubg; | 78 | @extend .menubg; |
| 80 | } | 79 | } |
| 81 | 80 | ||
| 82 | /deep/.el-submenu { | 81 | /deep/.el-submenu { |
| 83 | @extend .menubg; | 82 | @extend .menubg; |
| 84 | } | 83 | } |
| 85 | 84 | ||
| 86 | /deep/.el-submenu__title { | 85 | /deep/.el-submenu__title { |
| 87 | height: 34px; | 86 | height: 34px; |
| 88 | color: #ffffff; | 87 | color: #ffffff; |
| 89 | } | 88 | } |
| 90 | 89 | ||
| 91 | /deep/.el-submenu__title span { | 90 | /deep/.el-submenu__title span { |
| 92 | font-size: 14px; | 91 | font-size: 14px; |
| 93 | } | 92 | } |
| 94 | 93 | ||
| 95 | .sidebarLeft { | 94 | .sidebarLeft { |
| 96 | position: relative; | 95 | position: relative; |
| 97 | top: 13px; | 96 | top: 13px; |
| 98 | width: 30%; | 97 | width: 30%; |
| 99 | } | 98 | } |
| 100 | 99 | ||
| 101 | /deep/.el-menu { | 100 | /deep/.el-menu { |
| 102 | display: flex; | 101 | display: flex; |
| 103 | justify-content: space-between; | 102 | justify-content: space-between; |
| 104 | } | 103 | width: 100%; |
| 104 | } | ||
| 105 | 105 | ||
| 106 | /deep/.el-menu-item { | 106 | /deep/.el-menu-item { |
| 107 | flex: 1; | 107 | flex: 1; |
| 108 | width: 100%; | 108 | width: 100%; |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | .sidebarRight { | 111 | .sidebarRight { |
| 112 | position: relative; | 112 | position: relative; |
| 113 | top: 13px; | 113 | top: 13px; |
| 114 | width: 30%; | 114 | width: 30%; |
| 115 | padding-left: 20px; | 115 | } |
| 116 | } | ||
| 117 | 116 | ||
| 118 | // 导航选中背景色 | 117 | // 导航选中背景色 |
| 119 | .xuanzhong { | 118 | .xuanzhong { |
| 120 | background: url("~@/image/selNavbar.png") no-repeat; | 119 | background: url("~@/image/selNavbar.png") no-repeat; |
| 121 | background-size: 100% 100%; | 120 | background-size: 100% 100%; |
| 122 | color: #ffffff !important; | 121 | color: #ffffff !important; |
| 123 | font-weight: 700; | 122 | font-weight: 700; |
| 124 | } | 123 | } |
| 125 | 124 | ||
| 126 | /deep/.el-menu-item:hover { | 125 | /deep/.el-menu-item:hover { |
| 127 | @extend .xuanzhong; | 126 | @extend .xuanzhong; |
| 128 | } | 127 | } |
| 129 | 128 | ||
| 130 | /deep/.el-submenu__title:hover { | 129 | /deep/.el-submenu__title:hover { |
| 131 | @extend .xuanzhong; | 130 | @extend .xuanzhong; |
| 132 | } | 131 | } |
| 133 | 132 | ||
| 134 | /deep/.el-menu--horizontal .el-menu-item:not(.is-disabled):focus { | 133 | /deep/.el-menu--horizontal .el-menu-item:not(.is-disabled):focus { |
| 135 | @extend .xuanzhong; | 134 | @extend .xuanzhong; |
| 136 | } | 135 | } |
| 137 | 136 | ||
| 138 | /deep/.el-menu-item.is-active { | 137 | /deep/.el-menu-item.is-active { |
| 139 | @extend .xuanzhong; | 138 | @extend .xuanzhong; |
| 140 | } | ||
| 141 | 139 | ||
| 142 | .navbar { | 140 | } |
| 141 | |||
| 142 | .navbar { | ||
| 143 | height: $headerHeight; | 143 | height: $headerHeight; |
| 144 | overflow: hidden; | 144 | overflow: hidden; |
| 145 | position: relative; | 145 | position: relative; |
| ... | @@ -258,5 +258,5 @@ | ... | @@ -258,5 +258,5 @@ |
| 258 | } | 258 | } |
| 259 | } | 259 | } |
| 260 | } | 260 | } |
| 261 | } | 261 | } |
| 262 | </style> | 262 | </style> | ... | ... |
-
Please register or sign in to post a comment