Skip to content

Commit

Permalink
调整全局CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Dec 29, 2018
1 parent 6abb532 commit 64463f4
Show file tree
Hide file tree
Showing 19 changed files with 50 additions and 62 deletions.
3 changes: 3 additions & 0 deletions src/styles/btn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
.yellow-btn {
@include colorBtn($yellow)
}
.primary-btn {
@include colorBtn($primary)
}

.pan-btn {
font-size: 14px;
Expand Down
28 changes: 5 additions & 23 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,6 @@ code {
padding: 20px;
}

.components-container {
margin: 30px 50px;
position: relative;
}

.pagination-container {
margin-top: 30px;
}

.text-center {
text-align: center
Expand Down Expand Up @@ -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;
}
35 changes: 21 additions & 14 deletions src/styles/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -77,6 +76,9 @@
}
.el-submenu__icon-arrow{
color:$primary;
&:hover{
color:white!important;
}
}
.is-horizontal {
display: none;
Expand All @@ -89,6 +91,9 @@
.svg-icon {
margin-right: 16px;
fill:$primary;
&:hover{
fill:white!important;
}
}
.el-menu {
border: none;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ $primary:#4ae387;
//sidebar
$menuBg:#292421;
$subMenuBg:#292421;
$menuHover:#001528;
$menuHover:#222;
2 changes: 1 addition & 1 deletion src/views/Archive/person_count.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
id="person_count"
style="width:100%">
style="width:100%" class="widget-box">
<mix-chart
id="chart1"
width="100%"
Expand Down
2 changes: 1 addition & 1 deletion src/views/Archive/person_detail.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
id="person"
class="app-container">
class="app-container widget-box">

<common-tool-bar
:option-json ="jsonData.config.columnList"
Expand Down
2 changes: 1 addition & 1 deletion src/views/Archive/person_edit.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
id="person"
class="app-container">
class="app-container widget-box">

<common-tool-bar
:option-json ="jsonData.config.columnList"
Expand Down
2 changes: 1 addition & 1 deletion src/views/DouBan/book.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
id="movie"
class="app-container">
class=" widget-box">
<h2>图书查询</h2>
<el-input
v-model="criteria"
Expand Down
2 changes: 1 addition & 1 deletion src/views/DouBan/movie.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
id="movie"
class="app-container">
class=" widget-box">
<h2>近期热映电影</h2>
<el-table
v-loading.body="listLoading"
Expand Down
2 changes: 1 addition & 1 deletion src/views/DouBan/music.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
id="movie"
class="app-container">
class=" widget-box">
<h2>音乐查询</h2>
<el-input
v-model="criteria"
Expand Down
2 changes: 1 addition & 1 deletion src/views/DouBan/zhihu.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="dashboard-container">
<div class="widget-box">
<github-corner />

<el-row>
Expand Down
8 changes: 4 additions & 4 deletions src/views/dashboard/index.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<template>
<div class="dashboard-editor-container">
<div>

<el-row :gutter="32">
<el-col :xs="24" :sm="24" :lg="8">
<el-card shadow="always">
<el-card shadow="always" class="widget-box">
总是显示
</el-card>
</el-col>
<el-col :xs="24" :sm="24" :lg="8">
<el-card shadow="always">
<el-card shadow="always" class="widget-box">
总是显示
</el-card>
</el-col>
<el-col :xs="24" :sm="24" :lg="8">
<el-card shadow="always">
<el-card shadow="always" class="widget-box">
总是显示
</el-card>
</el-col>
Expand Down
6 changes: 3 additions & 3 deletions src/views/layout/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:is-active="sidebar.opened"
class="hamburger-container"/>
<!-- <breadcrumb class="breadcrumb-container"/> -->
<span style="display:inline-block;width:70%;margin:0 auto;text-align:center">Anshare Tech</span>
<span style="display:inline-block;width:70%;margin:0 auto;text-align:center">Anshare Tech <span style="color:#4ae867">©2019 BoBo</span> </span>
<Screenfull class="screenfull"/>

<el-dropdown
Expand Down Expand Up @@ -101,8 +101,8 @@ export default {
position:relative;
border-radius: 0px !important;
.hamburger-container {
line-height: 72px;
height: 72px;
line-height: 80px;
height: 80px;
color:white;
float: left;
Expand Down
4 changes: 0 additions & 4 deletions src/views/layout/components/SidebarItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ export default {
},
},
}
/*
<i class="fontcontainer">
<span class="iconfont" v-if="onlyOneChild.meta&&onlyOneChild.meta.icon" :class="onlyOneChild.meta.icon"></span>
</i>* */
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
Expand Down
5 changes: 3 additions & 2 deletions src/views/layout/components/TagsView.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="tags-view-container">
<div class="tags-view-container widget-box">
<scroll-pane
ref="scrollPane"
class="tags-view-wrapper">
Expand Down Expand Up @@ -141,11 +141,12 @@ export default {

<style rel="stylesheet/scss" lang="scss" scoped>
.tags-view-container {
padding:0px!important;
.tags-view-wrapper {
background: #fff;
height: 54px;
border-bottom: 1px solid #d8dce5;
box-shadow: 0 4px 70px -18px #707070;
.tags-view-item {
display: inline-block;
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/dept.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
id="dept"
class="app-container">
class=" widget-box">

<el-button
type="primary"
Expand Down
1 change: 0 additions & 1 deletion src/views/system/formdesigner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<div
id="formdesigner"
ref="container"
class="app-container"
style="padding-top:0px"
>
<MakingForm ref="form" />
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/role.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
id="role"
class="app-container">
class=" widget-box">
<el-button
type="primary"
size="small"
Expand Down
2 changes: 1 addition & 1 deletion src/views/system/users.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
id="users"
class="app-container">
class=" widget-box">

<el-button
type="primary"
Expand Down

0 comments on commit 64463f4

Please sign in to comment.