-
+
From 989f3c2c1c5b61500ea460679f5c89c2b42f3768 Mon Sep 17 00:00:00 2001
From: liyang <1711467488@qq.com>
Date: Mon, 11 Jun 2018 11:04:57 +0800
Subject: [PATCH 06/33] no message
Former-commit-id: 71a2e00e945b70550680f08dc132c2771a22eef0
Former-commit-id: e21e24b29a8b1d8e79fbd405d78b4d7f7a9ac533
Former-commit-id: 9c65556e3db5789c7d599936681d805ea77db694
---
src/assets/style/theme/d2admin/index.scss | 106 +++++++++++++++-------
src/assets/style/theme/star/index.scss | 6 +-
2 files changed, 77 insertions(+), 35 deletions(-)
diff --git a/src/assets/style/theme/d2admin/index.scss b/src/assets/style/theme/d2admin/index.scss
index d5e2ab9e..940e082e 100644
--- a/src/assets/style/theme/d2admin/index.scss
+++ b/src/assets/style/theme/d2admin/index.scss
@@ -1,19 +1,52 @@
@import '../theme.scss';
+// 主题名称
$theme-name: 'd2admin';
+// 主题背景颜色
$theme-bg-color: #EFF4F8;
+// 主题背景图片
// $theme-bg-image: '/static/image/bg/star.jpg';
-$theme-container-full-border-color: #d8dfea;
+// container组件的边框
+$theme-container-border: 1px solid #d8dfea;
+
+// 顶栏和侧边栏中展开的菜单 hover 状态下的文字和图标颜色
+$theme-menu-item-color-hover: #293849;
+// 顶栏和侧边栏中展开的菜单 hover 状态下的背景颜色
+$theme-menu-item-background-color-hover: #F4F6F8;
+
+// 顶栏上的文字颜色
+$theme-header-text-color: #30312D;
+// 顶栏上的项目在 hover 时的背景颜色
+$theme-header-item-background-color-hover: rgba(#000, .03);
+// 顶栏上的项目在 focus 时的背景颜色
+$theme-header-item-background-color-focus: rgba(#000, .03);
+// 顶栏上的项目在 active 时的背景颜色
+$theme-header-item-background-color-active: rgba(#000, .05);
+
+// 侧边栏上的文字颜色
+$theme-aside-text-color: #30312D;
+// 侧边栏上的项目在 hover 时的背景颜色
+$theme-aside-item-background-color-hover: rgba(#000, .03);
+// 顶栏上的项目在 focus 时的背景颜色
+$theme-aside-item-background-color-focus: rgba(#000, .03);
+// 侧边栏上的项目在 active 时的背景颜色
+$theme-aside-item-background-color-active: rgba(#000, .05);
.theme-#{$theme-name} {
- .theme {
+
+ .layout-main {
background-color: $theme-bg-color;
+ // background-image: url($theme-bg-image);
background-size: cover;
background-position: center;
}
// 菜单项目
@mixin theme-menu-hover-style {
- background-color: #eff4f8;
+ color: $theme-menu-item-color-hover;
+ i {
+ color: $theme-menu-item-color-hover;
+ }
+ background-color: $theme-menu-item-background-color-hover;
}
.el-submenu__title:hover {
@include theme-menu-hover-style;
@@ -27,23 +60,28 @@ $theme-container-full-border-color: #d8dfea;
.el-menu--horizontal .el-menu .el-submenu__title:hover {
@include theme-menu-hover-style;
}
+
// [组件] d2-container-full
.d2-container-full {
.d2-container-full__header {
- border-bottom: 1px solid $theme-container-full-border-color;
+ border-bottom: $theme-container-border;
}
.d2-container-full__footer {
- border-top: 1px solid $theme-container-full-border-color;
+ border-top: $theme-container-border;
}
}
+ // [组件] d2-container-card
+ .d2-container-card {
+ border: $theme-container-border;
+ }
// 顶栏
.el-header {
// 切换按钮
.toggle-aside-btn {
i {
- color: #FFF;
+ color: $theme-header-text-color;
&:hover {
- color: #FFF;
+ color: $theme-header-text-color;
}
}
}
@@ -51,29 +89,29 @@ $theme-container-full-border-color: #d8dfea;
.el-menu {
.el-menu-item {
transition: border-top-color 0s;
- color: #FFF;
+ color: $theme-header-text-color;
&:hover {
- background-color: rgba(#FFF, .3);
+ background-color: $theme-header-item-background-color-hover;
}
&:focus {
- background-color: rgba(#FFF, .3);
+ background-color: $theme-header-item-background-color-focus;
}
&.is-active {
- background-color: rgba(#000, .3);
+ background-color: $theme-header-item-background-color-active;
}
}
.el-submenu {
.el-submenu__title {
transition: border-top-color 0s;
- color: #FFF;
+ color: $theme-header-text-color;
+ .el-submenu__icon-arrow {
+ color: $theme-header-text-color;
+ }
&:hover {
- background-color: rgba(#FFF, .3);
+ background-color: $theme-header-item-background-color-hover;
}
&:focus {
- background-color: rgba(#FFF, .3);
- }
- .el-submenu__icon-arrow {
- color: #FFF;
+ background-color: $theme-header-item-background-color-focus;
}
}
}
@@ -81,9 +119,11 @@ $theme-container-full-border-color: #d8dfea;
// 顶栏右侧
.d2-header-right {
.btn-text {
- color: #FFF;
- &:hover {
- background-color: rgba(#FFF, .1);
+ color: $theme-header-text-color;
+ &.can-hover {
+ &:hover {
+ background-color: $theme-header-item-background-color-hover;
+ }
}
}
}
@@ -95,32 +135,32 @@ $theme-container-full-border-color: #d8dfea;
// [菜单] 正常状态
.el-menu {
.el-menu-item {
- color: #FFF;
+ color: $theme-aside-text-color;
+ i {
+ color: $theme-aside-text-color;
+ }
&:hover {
- background-color: rgba(#FFF, .3);
+ background-color: $theme-aside-item-background-color-hover;
}
&:focus {
- background-color: rgba(#FFF, .3);
- }
- i {
- color: #FFF;
+ background-color: $theme-aside-item-background-color-focus;
}
&.is-active {
- background-color: rgba(#000, .3);
+ background-color: $theme-aside-item-background-color-active;
}
}
}
.el-submenu {
.el-submenu__title {
- color: #FFF;
- &:hover {
- background-color: rgba(#FFF, .3);
- }
+ color: $theme-aside-text-color;
i {
- color: #FFF;
+ color: $theme-aside-text-color;
}
.el-submenu__icon-arrow {
- color: #FFF;
+ color: $theme-aside-text-color;
+ }
+ &:hover {
+ background-color: $theme-aside-item-background-color-hover;
}
}
}
diff --git a/src/assets/style/theme/star/index.scss b/src/assets/style/theme/star/index.scss
index 9ab30d61..5c6cdff7 100644
--- a/src/assets/style/theme/star/index.scss
+++ b/src/assets/style/theme/star/index.scss
@@ -8,10 +8,11 @@ $theme-bg-color: #EFF4F8;
$theme-bg-image: '/static/image/bg/star.jpg';
// container组件的边框
$theme-container-border: 1px solid #d8dfea;
-// 顶栏和侧边栏中展开的菜单 hover 状态下的文字和图标颜色
+
+// 顶栏和侧边栏中展开的菜单 hover 状态下
$theme-menu-item-color-hover: #FFF;
-// 顶栏和侧边栏中展开的菜单 hover 状态下的背景颜色
$theme-menu-item-background-color-hover: #187181;
+
// 顶栏上的文字颜色
$theme-header-text-color: #FFF;
// 顶栏上的项目在 hover 时的背景颜色
@@ -20,6 +21,7 @@ $theme-header-item-background-color-hover: rgba(#FFF, .3);
$theme-header-item-background-color-focus: rgba(#FFF, .3);
// 顶栏上的项目在 active 时的背景颜色
$theme-header-item-background-color-active: rgba(#000, .3);
+
// 侧边栏上的文字颜色
$theme-aside-text-color: #FFF;
// 侧边栏上的项目在 hover 时的背景颜色
From 18558aff86b7b7b605f16248b672b7994257e177 Mon Sep 17 00:00:00 2001
From: liyang <1711467488@qq.com>
Date: Mon, 11 Jun 2018 11:09:48 +0800
Subject: [PATCH 07/33] no message
Former-commit-id: 65d278c7d1c0b6f493783061d1ada57e32ed77ee
Former-commit-id: 107ec52293fae29894fc0c95c7a03c4ad34101d6
Former-commit-id: dbf9ca1372043252b090a8744b4bd090001698c0
---
src/assets/style/theme/star/index.scss | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/assets/style/theme/star/index.scss b/src/assets/style/theme/star/index.scss
index 5c6cdff7..7afe7760 100644
--- a/src/assets/style/theme/star/index.scss
+++ b/src/assets/style/theme/star/index.scss
@@ -15,20 +15,26 @@ $theme-menu-item-background-color-hover: #187181;
// 顶栏上的文字颜色
$theme-header-text-color: #FFF;
-// 顶栏上的项目在 hover 时的背景颜色
+// 顶栏上的项目在 hover 时
+$theme-header-item-color-hover: #FFF;
$theme-header-item-background-color-hover: rgba(#FFF, .3);
-// 顶栏上的项目在 focus 时的背景颜色
+// 顶栏上的项目在 focus 时
+$theme-header-item-color-focus: #FFF;
$theme-header-item-background-color-focus: rgba(#FFF, .3);
-// 顶栏上的项目在 active 时的背景颜色
+// 顶栏上的项目在 active 时
+$theme-header-item-color-active: #FFF;
$theme-header-item-background-color-active: rgba(#000, .3);
// 侧边栏上的文字颜色
$theme-aside-text-color: #FFF;
-// 侧边栏上的项目在 hover 时的背景颜色
+// 侧边栏上的项目在 hover 时
+$theme-aside-item-color-hover: #FFF;
$theme-aside-item-background-color-hover: rgba(#FFF, .3);
-// 顶栏上的项目在 focus 时的背景颜色
+// 侧边栏上的项目在 focus 时
+$theme-aside-item-color-focus: #FFF;
$theme-aside-item-background-color-focus: rgba(#FFF, .3);
-// 侧边栏上的项目在 active 时的背景颜色
+// 侧边栏上的项目在 active 时
+$theme-aside-item-color-active: #FFF;
$theme-aside-item-background-color-active: rgba(#000, .3);
.theme-#{$theme-name} {
From 8503000135be3f6b233f7b9065faab5ddf7c4295 Mon Sep 17 00:00:00 2001
From: liyang <1711467488@qq.com>
Date: Mon, 11 Jun 2018 11:17:52 +0800
Subject: [PATCH 08/33] no message
Former-commit-id: e590ff6a8c38262d7b96e78bbbb67eb3f0056745
Former-commit-id: 229cf313a34c7317c6054d667ab681984c9ab923
Former-commit-id: 48f7759235eae7708134fa75093f812f90853ee8
---
src/assets/style/theme/star/index.scss | 43 ++++++++++++++++++--------
1 file changed, 30 insertions(+), 13 deletions(-)
diff --git a/src/assets/style/theme/star/index.scss b/src/assets/style/theme/star/index.scss
index 7afe7760..908390a4 100644
--- a/src/assets/style/theme/star/index.scss
+++ b/src/assets/style/theme/star/index.scss
@@ -14,7 +14,8 @@ $theme-menu-item-color-hover: #FFF;
$theme-menu-item-background-color-hover: #187181;
// 顶栏上的文字颜色
-$theme-header-text-color: #FFF;
+$theme-header-item-color: #FFF;
+$theme-header-item-background-color: transparent;
// 顶栏上的项目在 hover 时
$theme-header-item-color-hover: #FFF;
$theme-header-item-background-color-hover: rgba(#FFF, .3);
@@ -26,7 +27,8 @@ $theme-header-item-color-active: #FFF;
$theme-header-item-background-color-active: rgba(#000, .3);
// 侧边栏上的文字颜色
-$theme-aside-text-color: #FFF;
+$theme-aside-item-color: #FFF;
+$theme-aside-item-background-color: transparent;
// 侧边栏上的项目在 hover 时
$theme-aside-item-color-hover: #FFF;
$theme-aside-item-background-color-hover: rgba(#FFF, .3);
@@ -84,9 +86,10 @@ $theme-aside-item-background-color-active: rgba(#000, .3);
// 切换按钮
.toggle-aside-btn {
i {
- color: $theme-header-text-color;
+ color: $theme-header-item-color;
+ background-color: $theme-header-item-background-color;
&:hover {
- color: $theme-header-text-color;
+ color: $theme-header-item-color-hover;
}
}
}
@@ -94,28 +97,35 @@ $theme-aside-item-background-color-active: rgba(#000, .3);
.el-menu {
.el-menu-item {
transition: border-top-color 0s;
- color: $theme-header-text-color;
+ color: $theme-header-item-color;
+ background-color: $theme-header-item-background-color;
&:hover {
+ color: $theme-header-item-color-hover;
background-color: $theme-header-item-background-color-hover;
}
&:focus {
+ color: $theme-header-item-color-focus;
background-color: $theme-header-item-background-color-focus;
}
&.is-active {
+ color: $theme-header-item-color-active;
background-color: $theme-header-item-background-color-active;
}
}
.el-submenu {
.el-submenu__title {
transition: border-top-color 0s;
- color: $theme-header-text-color;
+ color: $theme-header-item-color;
+ background-color: $theme-header-item-background-color;
.el-submenu__icon-arrow {
- color: $theme-header-text-color;
+ color: $theme-header-item-color;
}
&:hover {
+ color: $theme-header-item-color-hover;
background-color: $theme-header-item-background-color-hover;
}
&:focus {
+ color: $theme-header-item-color-focus;
background-color: $theme-header-item-background-color-focus;
}
}
@@ -124,9 +134,10 @@ $theme-aside-item-background-color-active: rgba(#000, .3);
// 顶栏右侧
.d2-header-right {
.btn-text {
- color: $theme-header-text-color;
+ color: $theme-header-item-color;
&.can-hover {
&:hover {
+ color: $theme-header-item-color-hover;
background-color: $theme-header-item-background-color-hover;
}
}
@@ -140,31 +151,37 @@ $theme-aside-item-background-color-active: rgba(#000, .3);
// [菜单] 正常状态
.el-menu {
.el-menu-item {
- color: $theme-aside-text-color;
+ color: $theme-aside-item-color;
+ background-color: $theme-aside-item-background-color;
i {
- color: $theme-aside-text-color;
+ color: $theme-aside-item-color;
}
&:hover {
+ color: $theme-aside-item-color-hover;
background-color: $theme-aside-item-background-color-hover;
}
&:focus {
+ color: $theme-aside-item-color-focus;
background-color: $theme-aside-item-background-color-focus;
}
&.is-active {
+ color: $theme-aside-item-color-active;
background-color: $theme-aside-item-background-color-active;
}
}
}
.el-submenu {
.el-submenu__title {
- color: $theme-aside-text-color;
+ color: $theme-aside-item-color;
+ background-color: $theme-aside-item-background-color;
i {
- color: $theme-aside-text-color;
+ color: $theme-aside-item-color;
}
.el-submenu__icon-arrow {
- color: $theme-aside-text-color;
+ color: $theme-aside-item-color;
}
&:hover {
+ color: $theme-aside-item-color-hover;
background-color: $theme-aside-item-background-color-hover;
}
}
From 250d69a8474b4a68d4b5e776789844a8c3ca87d5 Mon Sep 17 00:00:00 2001
From: liyang <1711467488@qq.com>
Date: Mon, 11 Jun 2018 11:19:31 +0800
Subject: [PATCH 09/33] no message
Former-commit-id: f1da129af62daafbeecba3a8e8897b3ee21d8228
Former-commit-id: a91ec1952635c29e0ec1bee92c3fafba0abeb597
Former-commit-id: 5893dcefdbe8a770fac54118995009c80e28dfcb
---
src/assets/style/theme/star/index.scss | 42 +-----------------------
src/assets/style/theme/star/setting.scss | 38 +++++++++++++++++++++
src/assets/style/theme/theme.scss | 2 ++
3 files changed, 41 insertions(+), 41 deletions(-)
create mode 100644 src/assets/style/theme/star/setting.scss
diff --git a/src/assets/style/theme/star/index.scss b/src/assets/style/theme/star/index.scss
index 908390a4..d5123ab4 100644
--- a/src/assets/style/theme/star/index.scss
+++ b/src/assets/style/theme/star/index.scss
@@ -1,51 +1,11 @@
@import '../theme.scss';
-
-// 主题名称
-$theme-name: 'star';
-// 主题背景颜色
-$theme-bg-color: #EFF4F8;
-// 主题背景图片
-$theme-bg-image: '/static/image/bg/star.jpg';
-// container组件的边框
-$theme-container-border: 1px solid #d8dfea;
-
-// 顶栏和侧边栏中展开的菜单 hover 状态下
-$theme-menu-item-color-hover: #FFF;
-$theme-menu-item-background-color-hover: #187181;
-
-// 顶栏上的文字颜色
-$theme-header-item-color: #FFF;
-$theme-header-item-background-color: transparent;
-// 顶栏上的项目在 hover 时
-$theme-header-item-color-hover: #FFF;
-$theme-header-item-background-color-hover: rgba(#FFF, .3);
-// 顶栏上的项目在 focus 时
-$theme-header-item-color-focus: #FFF;
-$theme-header-item-background-color-focus: rgba(#FFF, .3);
-// 顶栏上的项目在 active 时
-$theme-header-item-color-active: #FFF;
-$theme-header-item-background-color-active: rgba(#000, .3);
-
-// 侧边栏上的文字颜色
-$theme-aside-item-color: #FFF;
-$theme-aside-item-background-color: transparent;
-// 侧边栏上的项目在 hover 时
-$theme-aside-item-color-hover: #FFF;
-$theme-aside-item-background-color-hover: rgba(#FFF, .3);
-// 侧边栏上的项目在 focus 时
-$theme-aside-item-color-focus: #FFF;
-$theme-aside-item-background-color-focus: rgba(#FFF, .3);
-// 侧边栏上的项目在 active 时
-$theme-aside-item-color-active: #FFF;
-$theme-aside-item-background-color-active: rgba(#000, .3);
+@import './setting.scss';
.theme-#{$theme-name} {
.layout-main {
background-color: $theme-bg-color;
background-image: url($theme-bg-image);
- background-size: cover;
- background-position: center;
}
// 菜单项目
@mixin theme-menu-hover-style {
diff --git a/src/assets/style/theme/star/setting.scss b/src/assets/style/theme/star/setting.scss
new file mode 100644
index 00000000..f1db18f7
--- /dev/null
+++ b/src/assets/style/theme/star/setting.scss
@@ -0,0 +1,38 @@
+// 主题名称
+$theme-name: 'star';
+// 主题背景颜色
+$theme-bg-color: #EFF4F8;
+// 主题背景图片
+$theme-bg-image: '/static/image/bg/star.jpg';
+// container组件的边框
+$theme-container-border: 1px solid #d8dfea;
+
+// 顶栏和侧边栏中展开的菜单 hover 状态下
+$theme-menu-item-color-hover: #FFF;
+$theme-menu-item-background-color-hover: #187181;
+
+// 顶栏上的文字颜色
+$theme-header-item-color: #FFF;
+$theme-header-item-background-color: transparent;
+// 顶栏上的项目在 hover 时
+$theme-header-item-color-hover: #FFF;
+$theme-header-item-background-color-hover: rgba(#FFF, .3);
+// 顶栏上的项目在 focus 时
+$theme-header-item-color-focus: #FFF;
+$theme-header-item-background-color-focus: rgba(#FFF, .3);
+// 顶栏上的项目在 active 时
+$theme-header-item-color-active: #FFF;
+$theme-header-item-background-color-active: rgba(#000, .3);
+
+// 侧边栏上的文字颜色
+$theme-aside-item-color: #FFF;
+$theme-aside-item-background-color: transparent;
+// 侧边栏上的项目在 hover 时
+$theme-aside-item-color-hover: #FFF;
+$theme-aside-item-background-color-hover: rgba(#FFF, .3);
+// 侧边栏上的项目在 focus 时
+$theme-aside-item-color-focus: #FFF;
+$theme-aside-item-background-color-focus: rgba(#FFF, .3);
+// 侧边栏上的项目在 active 时
+$theme-aside-item-color-active: #FFF;
+$theme-aside-item-background-color-active: rgba(#000, .3);
\ No newline at end of file
diff --git a/src/assets/style/theme/theme.scss b/src/assets/style/theme/theme.scss
index 7d46d1aa..70187876 100644
--- a/src/assets/style/theme/theme.scss
+++ b/src/assets/style/theme/theme.scss
@@ -4,6 +4,8 @@
.layout-main {
height: 100vh;
width: 100vw;
+ background-size: cover;
+ background-position: center;
// [布局] 顶栏
.el-header {
padding: 0px;
From 382742923984168b4a19fc69c39823dca42fdb09 Mon Sep 17 00:00:00 2001
From: liyang <1711467488@qq.com>
Date: Mon, 11 Jun 2018 11:22:46 +0800
Subject: [PATCH 10/33] no message
Former-commit-id: 5ee0854099dfbe9420eaccb99ae1f82e27634ca8
Former-commit-id: f0db2599de59245b20ac1db6b47ad27540c0be8b
Former-commit-id: 64fce4b976107e4dd7c268d49f339020a59cfe2b
---
src/assets/style/theme/star/setting.scss | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/assets/style/theme/star/setting.scss b/src/assets/style/theme/star/setting.scss
index f1db18f7..b0e71523 100644
--- a/src/assets/style/theme/star/setting.scss
+++ b/src/assets/style/theme/star/setting.scss
@@ -8,8 +8,8 @@ $theme-bg-image: '/static/image/bg/star.jpg';
$theme-container-border: 1px solid #d8dfea;
// 顶栏和侧边栏中展开的菜单 hover 状态下
-$theme-menu-item-color-hover: #FFF;
-$theme-menu-item-background-color-hover: #187181;
+$theme-menu-item-color-hover: #293849;
+$theme-menu-item-background-color-hover: #ecf5ff;
// 顶栏上的文字颜色
$theme-header-item-color: #FFF;
From f5ac995b579c83e936b94d499f4d0a4c19b16082 Mon Sep 17 00:00:00 2001
From: liyang <1711467488@qq.com>
Date: Mon, 11 Jun 2018 11:25:29 +0800
Subject: [PATCH 11/33] no message
Former-commit-id: 7b936ad4ae72eeb7d18d367293b7d8d5133daffb
Former-commit-id: 699e6eff6c1806270d93ad5fe88557ee7bee863b
Former-commit-id: 7c7cff6cd5bfaf744574bc5a4b1ef6bbd851b6d1
---
src/assets/style/theme/star/setting.scss | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/assets/style/theme/star/setting.scss b/src/assets/style/theme/star/setting.scss
index b0e71523..11c9cb77 100644
--- a/src/assets/style/theme/star/setting.scss
+++ b/src/assets/style/theme/star/setting.scss
@@ -16,10 +16,10 @@ $theme-header-item-color: #FFF;
$theme-header-item-background-color: transparent;
// 顶栏上的项目在 hover 时
$theme-header-item-color-hover: #FFF;
-$theme-header-item-background-color-hover: rgba(#FFF, .3);
+$theme-header-item-background-color-hover: rgba(#000, .2);
// 顶栏上的项目在 focus 时
$theme-header-item-color-focus: #FFF;
-$theme-header-item-background-color-focus: rgba(#FFF, .3);
+$theme-header-item-background-color-focus: rgba(#000, .2);
// 顶栏上的项目在 active 时
$theme-header-item-color-active: #FFF;
$theme-header-item-background-color-active: rgba(#000, .3);
@@ -29,10 +29,10 @@ $theme-aside-item-color: #FFF;
$theme-aside-item-background-color: transparent;
// 侧边栏上的项目在 hover 时
$theme-aside-item-color-hover: #FFF;
-$theme-aside-item-background-color-hover: rgba(#FFF, .3);
+$theme-aside-item-background-color-hover: rgba(#000, .2);
// 侧边栏上的项目在 focus 时
$theme-aside-item-color-focus: #FFF;
-$theme-aside-item-background-color-focus: rgba(#FFF, .3);
+$theme-aside-item-background-color-focus: rgba(#000, .2);
// 侧边栏上的项目在 active 时
$theme-aside-item-color-active: #FFF;
$theme-aside-item-background-color-active: rgba(#000, .3);
\ No newline at end of file
From 9ce24ca9524ad5493b656672b97144996d9fc9e0 Mon Sep 17 00:00:00 2001
From: liyang <1711467488@qq.com>
Date: Mon, 11 Jun 2018 13:09:26 +0800
Subject: [PATCH 12/33] no message
Former-commit-id: 8e07c726f606fb02cba49502d42eb3e07ad505b7
Former-commit-id: 094f11e1326eaa23eb983100e119691e0dadb2b1
Former-commit-id: 6e430d5aee9cdaaa5c77b49861d95c826f51cc5f
From 425bfaf14d93eaac2ceca58eb42c530bcad73120 Mon Sep 17 00:00:00 2001
From: liyang <1711467488@qq.com>
Date: Mon, 11 Jun 2018 13:29:06 +0800
Subject: [PATCH 13/33] no message
Former-commit-id: 8e98a0b4b2edb656220d9af244c018c7378eee8e
Former-commit-id: 2b5a9bbde5dcc2789167635fb047ac5456d2905c
Former-commit-id: 5a85965e717c200bfde3d06551413035018579d7
---
.../style/theme/{d2admin => d2}/index.scss | 75 +++++++------------
src/assets/style/theme/d2/setting.scss | 38 ++++++++++
.../-header-right/components/-theme.vue | 14 ++++
src/components/core/d2-layout-main/index.vue | 5 +-
src/store/modules/theme.js | 1 +
5 files changed, 83 insertions(+), 50 deletions(-)
rename src/assets/style/theme/{d2admin => d2}/index.scss (60%)
create mode 100644 src/assets/style/theme/d2/setting.scss
diff --git a/src/assets/style/theme/d2admin/index.scss b/src/assets/style/theme/d2/index.scss
similarity index 60%
rename from src/assets/style/theme/d2admin/index.scss
rename to src/assets/style/theme/d2/index.scss
index 940e082e..07a192d7 100644
--- a/src/assets/style/theme/d2admin/index.scss
+++ b/src/assets/style/theme/d2/index.scss
@@ -1,44 +1,10 @@
@import '../theme.scss';
-
-// 主题名称
-$theme-name: 'd2admin';
-// 主题背景颜色
-$theme-bg-color: #EFF4F8;
-// 主题背景图片
-// $theme-bg-image: '/static/image/bg/star.jpg';
-// container组件的边框
-$theme-container-border: 1px solid #d8dfea;
-
-// 顶栏和侧边栏中展开的菜单 hover 状态下的文字和图标颜色
-$theme-menu-item-color-hover: #293849;
-// 顶栏和侧边栏中展开的菜单 hover 状态下的背景颜色
-$theme-menu-item-background-color-hover: #F4F6F8;
-
-// 顶栏上的文字颜色
-$theme-header-text-color: #30312D;
-// 顶栏上的项目在 hover 时的背景颜色
-$theme-header-item-background-color-hover: rgba(#000, .03);
-// 顶栏上的项目在 focus 时的背景颜色
-$theme-header-item-background-color-focus: rgba(#000, .03);
-// 顶栏上的项目在 active 时的背景颜色
-$theme-header-item-background-color-active: rgba(#000, .05);
-
-// 侧边栏上的文字颜色
-$theme-aside-text-color: #30312D;
-// 侧边栏上的项目在 hover 时的背景颜色
-$theme-aside-item-background-color-hover: rgba(#000, .03);
-// 顶栏上的项目在 focus 时的背景颜色
-$theme-aside-item-background-color-focus: rgba(#000, .03);
-// 侧边栏上的项目在 active 时的背景颜色
-$theme-aside-item-background-color-active: rgba(#000, .05);
+@import './setting.scss';
.theme-#{$theme-name} {
.layout-main {
background-color: $theme-bg-color;
- // background-image: url($theme-bg-image);
- background-size: cover;
- background-position: center;
}
// 菜单项目
@mixin theme-menu-hover-style {
@@ -63,6 +29,8 @@ $theme-aside-item-background-color-active: rgba(#000, .05);
// [组件] d2-container-full
.d2-container-full {
+ border: $theme-container-border;
+ border-bottom: none;
.d2-container-full__header {
border-bottom: $theme-container-border;
}
@@ -79,9 +47,10 @@ $theme-aside-item-background-color-active: rgba(#000, .05);
// 切换按钮
.toggle-aside-btn {
i {
- color: $theme-header-text-color;
+ color: $theme-header-item-color;
+ background-color: $theme-header-item-background-color;
&:hover {
- color: $theme-header-text-color;
+ color: $theme-header-item-color-hover;
}
}
}
@@ -89,28 +58,35 @@ $theme-aside-item-background-color-active: rgba(#000, .05);
.el-menu {
.el-menu-item {
transition: border-top-color 0s;
- color: $theme-header-text-color;
+ color: $theme-header-item-color;
+ background-color: $theme-header-item-background-color;
&:hover {
+ color: $theme-header-item-color-hover;
background-color: $theme-header-item-background-color-hover;
}
&:focus {
+ color: $theme-header-item-color-focus;
background-color: $theme-header-item-background-color-focus;
}
&.is-active {
+ color: $theme-header-item-color-active;
background-color: $theme-header-item-background-color-active;
}
}
.el-submenu {
.el-submenu__title {
transition: border-top-color 0s;
- color: $theme-header-text-color;
+ color: $theme-header-item-color;
+ background-color: $theme-header-item-background-color;
.el-submenu__icon-arrow {
- color: $theme-header-text-color;
+ color: $theme-header-item-color;
}
&:hover {
+ color: $theme-header-item-color-hover;
background-color: $theme-header-item-background-color-hover;
}
&:focus {
+ color: $theme-header-item-color-focus;
background-color: $theme-header-item-background-color-focus;
}
}
@@ -119,9 +95,10 @@ $theme-aside-item-background-color-active: rgba(#000, .05);
// 顶栏右侧
.d2-header-right {
.btn-text {
- color: $theme-header-text-color;
+ color: $theme-header-item-color;
&.can-hover {
&:hover {
+ color: $theme-header-item-color-hover;
background-color: $theme-header-item-background-color-hover;
}
}
@@ -135,31 +112,37 @@ $theme-aside-item-background-color-active: rgba(#000, .05);
// [菜单] 正常状态
.el-menu {
.el-menu-item {
- color: $theme-aside-text-color;
+ color: $theme-aside-item-color;
+ background-color: $theme-aside-item-background-color;
i {
- color: $theme-aside-text-color;
+ color: $theme-aside-item-color;
}
&:hover {
+ color: $theme-aside-item-color-hover;
background-color: $theme-aside-item-background-color-hover;
}
&:focus {
+ color: $theme-aside-item-color-focus;
background-color: $theme-aside-item-background-color-focus;
}
&.is-active {
+ color: $theme-aside-item-color-active;
background-color: $theme-aside-item-background-color-active;
}
}
}
.el-submenu {
.el-submenu__title {
- color: $theme-aside-text-color;
+ color: $theme-aside-item-color;
+ background-color: $theme-aside-item-background-color;
i {
- color: $theme-aside-text-color;
+ color: $theme-aside-item-color;
}
.el-submenu__icon-arrow {
- color: $theme-aside-text-color;
+ color: $theme-aside-item-color;
}
&:hover {
+ color: $theme-aside-item-color-hover;
background-color: $theme-aside-item-background-color-hover;
}
}
diff --git a/src/assets/style/theme/d2/setting.scss b/src/assets/style/theme/d2/setting.scss
new file mode 100644
index 00000000..a5d64528
--- /dev/null
+++ b/src/assets/style/theme/d2/setting.scss
@@ -0,0 +1,38 @@
+// 主题名称
+$theme-name: 'd2';
+// 主题背景颜色
+$theme-bg-color: $color-bg;
+// 主题背景图片
+// $theme-bg-image: '/static/image/bg/star.jpg';
+// container组件的边框
+$theme-container-border: 1px solid $color-border-1;
+
+// 顶栏和侧边栏中展开的菜单 hover 状态下
+$theme-menu-item-color-hover: #293849;
+$theme-menu-item-background-color-hover: #ecf5ff;
+
+// 顶栏上的文字颜色
+$theme-header-item-color: $color-text-normal;
+$theme-header-item-background-color: transparent;
+// 顶栏上的项目在 hover 时
+$theme-header-item-color-hover: $color-text-main;
+$theme-header-item-background-color-hover: rgba(#000, .02);
+// 顶栏上的项目在 focus 时
+$theme-header-item-color-focus: $color-text-main;
+$theme-header-item-background-color-focus: rgba(#000, .02);
+// 顶栏上的项目在 active 时
+$theme-header-item-color-active: $color-text-main;
+$theme-header-item-background-color-active: rgba(#000, .03);
+
+// 侧边栏上的文字颜色
+$theme-aside-item-color: $color-text-normal;
+$theme-aside-item-background-color: transparent;
+// 侧边栏上的项目在 hover 时
+$theme-aside-item-color-hover: $color-text-main;
+$theme-aside-item-background-color-hover: rgba(#000, .02);
+// 侧边栏上的项目在 focus 时
+$theme-aside-item-color-focus: $color-text-main;
+$theme-aside-item-background-color-focus: rgba(#000, .02);
+// 侧边栏上的项目在 active 时
+$theme-aside-item-color-active: $color-text-main;
+$theme-aside-item-background-color-active: rgba(#000, .03);
\ No newline at end of file
diff --git a/src/components/core/d2-layout-main/components/-header-right/components/-theme.vue b/src/components/core/d2-layout-main/components/-header-right/components/-theme.vue
index fb5e9ec7..5d479958 100644
--- a/src/components/core/d2-layout-main/components/-header-right/components/-theme.vue
+++ b/src/components/core/d2-layout-main/components/-header-right/components/-theme.vue
@@ -22,6 +22,7 @@
diff --git a/src/components/core/d2-layout-main/index.vue b/src/components/core/d2-layout-main/index.vue
index 7094e98c..94fd5a8f 100644
--- a/src/components/core/d2-layout-main/index.vue
+++ b/src/components/core/d2-layout-main/index.vue
@@ -44,15 +44,12 @@ export default {
// [侧边栏宽度] 折叠状态
asideWidthCollapse: '65px'
}
- },
- mounted () {
- document.body.className = 'theme-star'
}
}
diff --git a/src/store/modules/theme.js b/src/store/modules/theme.js
index 7da93b18..5cead18b 100644
--- a/src/store/modules/theme.js
+++ b/src/store/modules/theme.js
@@ -6,6 +6,7 @@ export default {
// 设置主题
setTheme (state, themeName) {
state.themeName = themeName
+ document.body.className = `theme-${state.themeName}`
}
}
}
From 4ad0fa7eb3e92dfff8c45b2164187997d2173e42 Mon Sep 17 00:00:00 2001
From: liyang <1711467488@qq.com>
Date: Mon, 11 Jun 2018 13:30:20 +0800
Subject: [PATCH 14/33] no message
Former-commit-id: c52db2727e2fee5ed9befa64e95394fa0422854f
Former-commit-id: c04156b0bc4d9f31b33672d9c248d111ed4be636
Former-commit-id: 21029e8cb6251ebbe358d579165b4c365abfd479
---
src/assets/style/theme/d2/index.scss | 1 +
src/assets/style/theme/d2/setting.scss | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/assets/style/theme/d2/index.scss b/src/assets/style/theme/d2/index.scss
index 07a192d7..cb2c0265 100644
--- a/src/assets/style/theme/d2/index.scss
+++ b/src/assets/style/theme/d2/index.scss
@@ -5,6 +5,7 @@
.layout-main {
background-color: $theme-bg-color;
+ // background-image: url($theme-bg-image);
}
// 菜单项目
@mixin theme-menu-hover-style {
diff --git a/src/assets/style/theme/d2/setting.scss b/src/assets/style/theme/d2/setting.scss
index a5d64528..e9ce12b8 100644
--- a/src/assets/style/theme/d2/setting.scss
+++ b/src/assets/style/theme/d2/setting.scss
@@ -3,7 +3,7 @@ $theme-name: 'd2';
// 主题背景颜色
$theme-bg-color: $color-bg;
// 主题背景图片
-// $theme-bg-image: '/static/image/bg/star.jpg';
+// $theme-bg-image: '/static/image/bg/xxx.jpg';
// container组件的边框
$theme-container-border: 1px solid $color-border-1;
From 1d675605963f9e5be82489eeddce8e1d4bae78ae Mon Sep 17 00:00:00 2001
From: liyang <1711467488@qq.com>
Date: Mon, 11 Jun 2018 13:47:48 +0800
Subject: [PATCH 15/33] no message
Former-commit-id: b5a2e324ecbb5b07f0d9271fad79ffc349d7f802
Former-commit-id: 0bf7da6578411c0a3503cba0d08e349d675bca18
Former-commit-id: f7401e8a82bba4d3f3b678c46c18320bfa7ac427
---
.../-header-right/components/-theme.vue | 55 +--------------
src/components/core/d2-theme-list/index.vue | 67 +++++++++++++++++++
src/components/core/register.js | 3 +-
...EMOVED.git-id => d2@2x.png.REMOVED.git-id} | 0
4 files changed, 72 insertions(+), 53 deletions(-)
create mode 100644 src/components/core/d2-theme-list/index.vue
rename static/image/theme-preview/{d2admin@2x.png.REMOVED.git-id => d2@2x.png.REMOVED.git-id} (100%)
diff --git a/src/components/core/d2-layout-main/components/-header-right/components/-theme.vue b/src/components/core/d2-layout-main/components/-header-right/components/-theme.vue
index 5d479958..f01b7671 100644
--- a/src/components/core/d2-layout-main/components/-header-right/components/-theme.vue
+++ b/src/components/core/d2-layout-main/components/-header-right/components/-theme.vue
@@ -5,67 +5,18 @@
-
-
-
-
-
-
-
-
- 使用
-
-
-
+
+