From 64463f43d083164dd9099f299cfaeb45007a6cea Mon Sep 17 00:00:00 2001 From: BoBoooooo <17746714@qq.com> Date: Sat, 29 Dec 2018 14:14:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=85=A8=E5=B1=80CSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/btn.scss | 3 ++ src/styles/index.scss | 28 +++-------------- src/styles/layout.scss | 35 ++++++++++++--------- src/styles/variables.scss | 2 +- src/views/Archive/person_count.vue | 2 +- src/views/Archive/person_detail.vue | 2 +- src/views/Archive/person_edit.vue | 2 +- src/views/DouBan/book.vue | 2 +- src/views/DouBan/movie.vue | 2 +- src/views/DouBan/music.vue | 2 +- src/views/DouBan/zhihu.vue | 2 +- src/views/dashboard/index.vue | 8 ++--- src/views/layout/components/Navbar.vue | 6 ++-- src/views/layout/components/SidebarItem.vue | 4 --- src/views/layout/components/TagsView.vue | 5 +-- src/views/system/dept.vue | 2 +- src/views/system/formdesigner.vue | 1 - src/views/system/role.vue | 2 +- src/views/system/users.vue | 2 +- 19 files changed, 50 insertions(+), 62 deletions(-) diff --git a/src/styles/btn.scss b/src/styles/btn.scss index 0c5ee76..083e588 100644 --- a/src/styles/btn.scss +++ b/src/styles/btn.scss @@ -38,6 +38,9 @@ .yellow-btn { @include colorBtn($yellow) } +.primary-btn { + @include colorBtn($primary) +} .pan-btn { font-size: 14px; diff --git a/src/styles/index.scss b/src/styles/index.scss index a4aed5f..1db8634 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -131,14 +131,6 @@ code { padding: 20px; } -.components-container { - margin: 30px 50px; - position: relative; -} - -.pagination-container { - margin-top: 30px; -} .text-center { text-align: center @@ -174,20 +166,10 @@ code { } } -.filter-container { - padding-bottom: 10px; - .filter-item { - display: inline-block; - vertical-align: middle; - margin-bottom: 10px; - } -} - -//refine vue-multiselect plugin -.multiselect { - line-height: 16px; -} -.multiselect--active { - z-index: 1000 !important; +.widget-box{ + background: #fff; + margin-bottom: 1.875rem; + padding:1.875rem; + box-shadow: 0 4px 70px -18px #707070; } diff --git a/src/styles/layout.scss b/src/styles/layout.scss index 6dab30f..8d6ede9 100644 --- a/src/styles/layout.scss +++ b/src/styles/layout.scss @@ -25,12 +25,11 @@ padding:24px 44px 24px 0 ; position: relative; .app-main { - margin-top:1.875rem; - width: 100%; - box-shadow: 0 4px 70px -18px #707070; + // margin-top:1.875rem; + // box-shadow: 0 4px 70px -18px #707070; - background: white; - height:100%; + // background: white; + // height:100%; position: relative; overflow: auto; } @@ -77,6 +76,9 @@ } .el-submenu__icon-arrow{ color:$primary; + &:hover{ + color:white!important; + } } .is-horizontal { display: none; @@ -89,6 +91,9 @@ .svg-icon { margin-right: 16px; fill:$primary; + &:hover{ + fill:white!important; + } } .el-menu { border: none; @@ -99,9 +104,10 @@ .hideSidebar { .sidebar-container { width: 36px !important; + left:0px!important; } .main-container { - margin-left: 36px; + margin-left: 60px; } .submenu-title-noDropdown { padding-left: 10px !important; @@ -133,14 +139,15 @@ } } } - // .sidebar-container .nest-menu .el-submenu>.el-submenu__title, - // .sidebar-container .el-submenu .el-menu-item { - // min-width: 180px !important; - // background-color: $subMenuBg !important; - // &:hover { - // background-color: $menuHover !important; - // } - // } + + .sidebar-container .nest-menu .el-submenu>.el-submenu__title, + .sidebar-container .el-submenu .el-menu-item { + // background-color: $subMenuBg !important; + &:hover { + background-color: $menuHover !important; + } + + } .el-menu--collapse .el-menu .el-submenu { min-width: 225px !important; } diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 3d3aff8..1115b8e 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -10,4 +10,4 @@ $primary:#4ae387; //sidebar $menuBg:#292421; $subMenuBg:#292421; -$menuHover:#001528; +$menuHover:#222; diff --git a/src/views/Archive/person_count.vue b/src/views/Archive/person_count.vue index b21d079..2a86cdd 100644 --- a/src/views/Archive/person_count.vue +++ b/src/views/Archive/person_count.vue @@ -1,7 +1,7 @@