ui修改-颜色等

ui1
Joel 3 years ago
parent 316561116f
commit a73994a885
  1. 5
      src/layouts/header/index.vue
  2. 15
      src/layouts/navbar/index.vue
  3. 5
      src/pages/data/list/index.vue
  4. 7
      src/styles/common.scss
  5. 2
      src/styles/default/index.scss

@ -1,13 +1,8 @@
<template> <template>
<div class="header"> <div class="header">
<a class="logo" @click="toIndex"> <a class="logo" @click="toIndex">
<!-- <img width="180" v-if="isLogin || (isManager && showSetting) || !isUser" src="@/assets/img/logo.png" alt=""> -->
<span v-if="token && isManager && !showSetting">{{schoolName}}</span> <span v-if="token && isManager && !showSetting">{{schoolName}}</span>
</a> </a>
<!-- <div class="search" v-if="isData">
<input v-model="keyword" type="text" placeholder="请输入数据表名称">
<img src="../../assets/img/search.png" alt="" class="search-icon">
</div> -->
<div class="inner"> <div class="inner">
<div style="height: 70px;"></div> <div style="height: 70px;"></div>
<navbar ref="nav"></navbar> <navbar ref="nav"></navbar>

@ -112,18 +112,19 @@ export default {
.nav{ .nav{
position: absolute; position: absolute;
top: 0; top: 0;
left: 50%; left: 250px;
transform: translateX(-50%);
display: flex; display: flex;
li{ li{
padding: 0 25px; padding: 0 15px;
margin: 0 20px;
font-size: 16px; font-size: 16px;
line-height: 70px; line-height: 66px;
color: #0d0d0d; color: #3F3F3F;
cursor: pointer; cursor: pointer;
border-bottom: 4px solid transparent;
&.active{ &.active{
color: #fff; color: #0076FF;
background-color: #568df2; border-bottom-color: #0070FF;
} }
} }
} }

@ -526,10 +526,8 @@ export default {
.menu{ .menu{
width: 200px; width: 200px;
border-radius: 8px;
overflow: hidden; overflow: hidden;
&>.el-menu-item,.el-submenu__title{ &>.el-menu-item,.el-submenu__title{
background-color: rgba(228,237,255,.4);
span{ span{
font-size: 15px; font-size: 15px;
color: #3381d2; color: #3381d2;
@ -540,14 +538,13 @@ export default {
} }
.el-submenu.is-active{ .el-submenu.is-active{
.el-submenu__title{ .el-submenu__title{
background-color: rgba(147,184,255,.3);
&+.el-menu .el-submenu__title{ &+.el-menu .el-submenu__title{
background-color: rgba(147,184,255,.15); background-color: rgba(147,184,255,.15);
} }
} }
} }
.el-menu-item.is-active{ .el-menu-item.is-active{
color: $main-color; background-color: #0070FF;
} }
.level-6 { .level-6 {
padding-right: 0; padding-right: 0;

@ -16,7 +16,7 @@
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
width: 5px; width: 5px;
border-radius: 6px; border-radius: 6px;
background: rgba(86,141,242,.7); background: rgba(173,173,173,.7);
} }
.required{ .required{
@ -72,7 +72,6 @@
position: relative; position: relative;
padding: 24px 10px; padding: 24px 10px;
background-color: #fff; background-color: #fff;
border-radius: 8px;
.page-content{ .page-content{
padding: 26px 36px 0; padding: 26px 36px 0;
.tool{ .tool{
@ -163,7 +162,7 @@
} }
.el-table{ .el-table{
border-radius: 8px; border-radius: 4px;
border: 1px solid rgba(0, 0, 0, 0.06); border: 1px solid rgba(0, 0, 0, 0.06);
border-bottom: 0; border-bottom: 0;
.cell{ .cell{
@ -181,7 +180,7 @@
th{ th{
background: $--color-primary !important; background: $--color-primary !important;
.cell{ .cell{
color: #fff; color: #222326;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
.el-checkbox{ .el-checkbox{

@ -1,6 +1,6 @@
/* 改变主题色变量 */ /* 改变主题色变量 */
$--color-primary: #568DF2; $--color-primary: #E6F0FF;
/* 改变 icon 字体路径变量,必需 */ /* 改变 icon 字体路径变量,必需 */
$--font-path: '~element-ui/lib/theme-chalk/fonts'; $--font-path: '~element-ui/lib/theme-chalk/fonts';

Loading…
Cancel
Save