Support switch theme color
parent
1c190fde37
commit
14c551b744
|
@ -5,4 +5,6 @@
|
||||||
</template>
|
</template>
|
||||||
<style>
|
<style>
|
||||||
@import "../static/css/main.css";
|
@import "../static/css/main.css";
|
||||||
|
@import "../static/css/color-dark.css"; /*深色主题*/
|
||||||
|
/*@import "../static/css/theme-green/color-green.css"; !*浅绿色主题*!*/
|
||||||
</style>
|
</style>
|
|
@ -42,19 +42,16 @@
|
||||||
.header {
|
.header {
|
||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
/*padding-left: 50px;*/
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 70px;
|
height: 70px;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
line-height: 70px;
|
line-height: 70px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #242f42;
|
|
||||||
}
|
}
|
||||||
.header .logo{
|
.header .logo{
|
||||||
float: left;
|
float: left;
|
||||||
width:250px;
|
width:250px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: #00ADF2;
|
|
||||||
}
|
}
|
||||||
.user-info {
|
.user-info {
|
||||||
float: right;
|
float: right;
|
||||||
|
@ -66,7 +63,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-left: 50px;
|
padding-left: 50px;
|
||||||
color: #03A9F4;
|
color: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
<div class="login-wrap">
|
<div class="login-wrap">
|
||||||
<div class="ms-title">后台管理系统</div>
|
<div class="ms-title">后台管理系统</div>
|
||||||
<div class="ms-login">
|
<div class="ms-login">
|
||||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="0px" class="demo-ruleForm">
|
||||||
<el-form-item label="username" prop="username">
|
<el-form-item prop="username">
|
||||||
<el-input v-model="ruleForm.username"></el-input>
|
<el-input v-model="ruleForm.username" placeholder="username"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="password" prop="password">
|
<el-form-item prop="password">
|
||||||
<el-input type="password" v-model="ruleForm.password" @keyup.enter.native="submitForm('ruleForm')"></el-input>
|
<el-input type="password" placeholder="password" v-model="ruleForm.password" @keyup.enter.native="submitForm('ruleForm')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div class="login-btn">
|
<div class="login-btn">
|
||||||
<el-button type="primary" @click="submitForm('ruleForm')">登录</el-button>
|
<el-button type="primary" @click="submitForm('ruleForm')">登录</el-button>
|
||||||
|
@ -58,7 +58,6 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
width:100%;
|
width:100%;
|
||||||
height:100%;
|
height:100%;
|
||||||
background: #324157;
|
|
||||||
}
|
}
|
||||||
.ms-title{
|
.ms-title{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -74,10 +73,10 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left:50%;
|
left:50%;
|
||||||
top:50%;
|
top:50%;
|
||||||
width:350px;
|
width:300px;
|
||||||
height:160px;
|
height:160px;
|
||||||
margin:-150px 0 0 -190px;
|
margin:-150px 0 0 -190px;
|
||||||
padding:40px 20px 40px 10px;
|
padding:40px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
@ -85,7 +84,7 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.login-btn button{
|
.login-btn button{
|
||||||
width:43%;
|
width:100%;
|
||||||
height:40px;
|
height:36px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -2,7 +2,8 @@ import Vue from 'vue';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
import router from './router';
|
import router from './router';
|
||||||
import ElementUI from 'element-ui';
|
import ElementUI from 'element-ui';
|
||||||
import 'element-ui/lib/theme-default/index.css';
|
import 'element-ui/lib/theme-default/index.css'; // 默认主题
|
||||||
|
// import '../static/css/theme-green/index.css'; // 浅绿色主题
|
||||||
|
|
||||||
Vue.use(ElementUI);
|
Vue.use(ElementUI);
|
||||||
new Vue({
|
new Vue({
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
.header{
|
||||||
|
background-color: #242f42;
|
||||||
|
}
|
||||||
|
.login-wrap{
|
||||||
|
background: #324157;
|
||||||
|
}
|
||||||
|
.plugins-tips{
|
||||||
|
background: #eef1f6;
|
||||||
|
}
|
||||||
|
.plugins-tips a{
|
||||||
|
color: #20a0ff;
|
||||||
|
}
|
||||||
|
.el-upload--text em {
|
||||||
|
color: #20a0ff;
|
||||||
|
}
|
||||||
|
.pure-button{
|
||||||
|
background: #20a0ff;
|
||||||
|
}
|
|
@ -28,12 +28,8 @@ a{text-decoration: none}
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
.plugins-tips{
|
.plugins-tips{
|
||||||
padding:10px;
|
padding:20px 10px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
background: #eef1f6;
|
|
||||||
}
|
|
||||||
.plugins-tips a{
|
|
||||||
color: #20a0ff;
|
|
||||||
}
|
}
|
||||||
.el-button+.el-tooltip {
|
.el-button+.el-tooltip {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
@ -75,7 +71,6 @@ a{text-decoration: none}
|
||||||
height:40px;
|
height:40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: #00a2ff;
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
@ -106,7 +101,6 @@ a{text-decoration: none}
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.el-upload--text em {
|
.el-upload--text em {
|
||||||
color: #20a0ff;
|
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
/*VueEditor*/
|
/*VueEditor*/
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
.header{
|
||||||
|
background-color: #00d1b2;
|
||||||
|
}
|
||||||
|
.login-wrap{
|
||||||
|
background: rgba(56, 157, 170, 0.82);;
|
||||||
|
}
|
||||||
|
.plugins-tips{
|
||||||
|
background: #f2f2f2;
|
||||||
|
}
|
||||||
|
.plugins-tips a{
|
||||||
|
color: #00d1b2;
|
||||||
|
}
|
||||||
|
.el-upload--text em {
|
||||||
|
color: #00d1b2;
|
||||||
|
}
|
||||||
|
.pure-button{
|
||||||
|
background: #00d1b2;
|
||||||
|
}
|
||||||
|
.vue-datasource .btn-primary {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #00d1b2 !important;
|
||||||
|
border-color: #00d1b2 !important;
|
||||||
|
}
|
||||||
|
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus, .pagination > .active > span, .pagination > .active > span:hover, .pagination > .active > span:focus {
|
||||||
|
background-color: #00d1b2 !important;
|
||||||
|
border-color: #00d1b2 !important;
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue