forked from github/dataease
feat: 样式调整
This commit is contained in:
parent
c1158932fa
commit
7965552518
@ -11,7 +11,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "~@/styles/element-variables";
|
@import "~@/styles/variables";
|
||||||
|
|
||||||
.content-container {
|
.content-container {
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
|
@ -64,7 +64,7 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "~@/styles/mixin.scss";
|
@import "~@/styles/mixin.scss";
|
||||||
@import "~@/styles/element-variables.scss";
|
@import "~@/styles/variables.scss";
|
||||||
.complex-table {
|
.complex-table {
|
||||||
.complex-table__header {
|
.complex-table__header {
|
||||||
@include flex-row(flex-start, center);
|
@include flex-row(flex-start, center);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
:default-active="activeMenu"
|
:default-active="activeMenu"
|
||||||
:collapse="isCollapse"
|
:collapse="isCollapse"
|
||||||
:background-color="variables.menuBg"
|
:background-color="variables.menuBg"
|
||||||
:text-color="variables.menuText"
|
|
||||||
:unique-opened="false"
|
:unique-opened="false"
|
||||||
:active-text-color="variables.menuActiveText"
|
:active-text-color="variables.menuActiveText"
|
||||||
:collapse-transition="false"
|
:collapse-transition="false"
|
||||||
|
@ -4,8 +4,8 @@ import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
|||||||
import '@/styles/index.scss' // global css
|
import '@/styles/index.scss' // global css
|
||||||
import ElementUI from 'element-ui'
|
import ElementUI from 'element-ui'
|
||||||
import Fit2CloudUI from 'fit2cloud-ui'
|
import Fit2CloudUI from 'fit2cloud-ui'
|
||||||
import 'element-ui/lib/theme-chalk/index.css'
|
// import 'element-ui/lib/theme-chalk/index.css'
|
||||||
import './styles/element-variables.scss'
|
// import './styles/variables.scss'
|
||||||
import i18n from './lang' // internationalization
|
import i18n from './lang' // internationalization
|
||||||
|
|
||||||
import App from './App'
|
import App from './App'
|
||||||
|
@ -10,11 +10,11 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
/* body {
|
||||||
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
|
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
} */
|
||||||
|
|
||||||
/* 解决 document.body.clientHeight 为0 */
|
/* 解决 document.body.clientHeight 为0 */
|
||||||
html,body {
|
html,body {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import defaultSettings from '@/settings'
|
import defaultSettings from '@/settings'
|
||||||
import variables from '@/styles/element-variables.scss'
|
import variables from '@/styles/variables.scss'
|
||||||
// const { showSettings, fixedHeader, sidebarLogo } = defaultSettings
|
// const { showSettings, fixedHeader, sidebarLogo } = defaultSettings
|
||||||
const { showSettings, sidebarLogo } = defaultSettings
|
const { showSettings, sidebarLogo } = defaultSettings
|
||||||
const state = {
|
const state = {
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
/**
|
|
||||||
* I think element-ui's default theme color is too light for long-term use.
|
|
||||||
* So I modified the default color and you can modify it to your liking.
|
|
||||||
**/
|
|
||||||
|
|
||||||
/* theme color */
|
|
||||||
$--color-primary: #1890ff;
|
|
||||||
$--color-success: #13ce66;
|
|
||||||
$--color-warning: #ffba00;
|
|
||||||
$--color-danger: #ff4949;
|
|
||||||
// $--color-info: #1E1E1E;
|
|
||||||
|
|
||||||
$--button-font-weight: 400;
|
|
||||||
|
|
||||||
// $--color-text-regular: #1f2d3d;
|
|
||||||
|
|
||||||
$--border-color-light: #dfe4ed;
|
|
||||||
$--border-color-lighter: #e6ebf5;
|
|
||||||
|
|
||||||
$--table-border: 1px solid #dfe6ec;
|
|
||||||
|
|
||||||
/* icon font path, required */
|
|
||||||
$--font-path: "~element-ui/lib/theme-chalk/fonts";
|
|
||||||
|
|
||||||
@import "~element-ui/packages/theme-chalk/src/index";
|
|
||||||
@import "~fit2cloud-ui/src/styles/common/variables";
|
|
||||||
// the :export directive is the magic sauce for webpack
|
|
||||||
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
|
|
||||||
:export {
|
|
||||||
theme: $--color-primary;
|
|
||||||
}
|
|
@ -25,6 +25,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1001;
|
z-index: 1001;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
border-right: 1px solid rgba(0, 0, 0, 0.12);
|
||||||
|
|
||||||
// reset element-ui css
|
// reset element-ui css
|
||||||
.horizontal-collapse-transition {
|
.horizontal-collapse-transition {
|
||||||
@ -67,6 +68,10 @@
|
|||||||
border: none;
|
border: none;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
|
|
||||||
|
.is-active {
|
||||||
|
background-color: $menuHover;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// menu hover
|
// menu hover
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
.top-nav {
|
.top-nav {
|
||||||
// margin-left: $sideBarWidth;
|
// margin-left: $sideBarWidth;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #304156;
|
// background-color: #304156;
|
||||||
|
background-color: $--color-primary;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -13,18 +14,21 @@
|
|||||||
line-height: 56px;
|
line-height: 56px;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: rgb(191, 203, 217);
|
// color: rgb(191, 203, 217);
|
||||||
|
color: rgba(255,255,255,0.87);
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
.el-menu {
|
.el-menu {
|
||||||
float: left;
|
float: left;
|
||||||
border: none!important;
|
border: none!important;
|
||||||
background-color: #304156;
|
// background-color: #304156;
|
||||||
|
background-color: $--color-primary;
|
||||||
|
|
||||||
.nav-item {
|
.nav-item {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
.el-menu-item {
|
.el-menu-item {
|
||||||
color: rgb(191, 203, 217);
|
// color: rgb(191, 203, 217);
|
||||||
|
color: rgba(255,255,255,0.87);
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $subMenuHover !important;
|
background-color: $subMenuHover !important;
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,39 @@
|
|||||||
|
/**
|
||||||
|
* I think element-ui's default theme color is too light for long-term use.
|
||||||
|
* So I modified the default color and you can modify it to your liking.
|
||||||
|
**/
|
||||||
|
|
||||||
|
/* theme color */
|
||||||
|
$--color-primary: #1890ff;
|
||||||
|
$--color-success: #13ce66;
|
||||||
|
$--color-warning: #ffba00;
|
||||||
|
$--color-danger: #ff4949;
|
||||||
|
// $--color-info: #1E1E1E;
|
||||||
|
|
||||||
|
$--button-font-weight: 400;
|
||||||
|
|
||||||
|
// $--color-text-regular: #1f2d3d;
|
||||||
|
|
||||||
|
$--border-color-light: #dfe4ed;
|
||||||
|
$--border-color-lighter: #e6ebf5;
|
||||||
|
|
||||||
|
$--table-border: 1px solid #dfe6ec;
|
||||||
|
|
||||||
|
/* icon font path, required */
|
||||||
|
$--font-path: "~element-ui/lib/theme-chalk/fonts";
|
||||||
|
|
||||||
|
@import "~element-ui/packages/theme-chalk/src/index";
|
||||||
|
@import "~fit2cloud-ui/src/styles/common/variables";
|
||||||
|
|
||||||
// sidebar
|
// sidebar
|
||||||
$menuText:#bfcbd9;
|
$menuText:#bfcbd9;
|
||||||
$menuActiveText:#409EFF;
|
$menuActiveText:#409EFF;
|
||||||
$subMenuActiveText:#f4f4f5; //https://github.com/ElemeFE/element/issues/12951
|
$subMenuActiveText:#f4f4f5; //https://github.com/ElemeFE/element/issues/12951
|
||||||
|
|
||||||
$menuBg:#304156;
|
// $menuBg:#304156;
|
||||||
$menuHover:#263445;
|
$menuBg:#ffffff;
|
||||||
|
// $menuHover:#263445;
|
||||||
|
$menuHover: rgba(158, 158, 158, 0.2);
|
||||||
|
|
||||||
$subMenuBg:#1f2d3d;
|
$subMenuBg:#1f2d3d;
|
||||||
$subMenuHover:#001528;
|
$subMenuHover:#001528;
|
||||||
@ -16,6 +45,7 @@ $contentHeight: calc(100vh - 56px);
|
|||||||
// the :export directive is the magic sauce for webpack
|
// the :export directive is the magic sauce for webpack
|
||||||
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
|
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
|
||||||
:export {
|
:export {
|
||||||
|
theme: $--color-primary;
|
||||||
menuText: $menuText;
|
menuText: $menuText;
|
||||||
menuActiveText: $menuActiveText;
|
menuActiveText: $menuActiveText;
|
||||||
subMenuActiveText: $subMenuActiveText;
|
subMenuActiveText: $subMenuActiveText;
|
||||||
|
@ -113,7 +113,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "../../styles/element-variables";
|
@import "../../styles/variables";
|
||||||
|
|
||||||
@mixin login-center {
|
@mixin login-center {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
Loading…
Reference in New Issue
Block a user