Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e00e3d89
authored
Jun 19, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
暗黑主题
1 parent
b2f90e6c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
vue3-lw-pc/public/static/css/common.css
vue3-lw-pc/public/static/css/var.css
vue3-lw-pc/src/layout/components/TopBar/TopMenu.vue
vue3-lw-pc/src/layout/index.vue
vue3-lw-pc/public/static/css/common.css
View file @
e00e3d8
...
@@ -359,14 +359,14 @@ li {
...
@@ -359,14 +359,14 @@ li {
}
}
/* 暗黑模式 Dark mode */
/* 暗黑模式 Dark mode */
/*
@media (prefers-color-scheme: dark) {
@media
(
prefers-color-scheme
:
dark
)
{
body
,
body
,
img
,
img
,
video
{
video
{
filter: invert(1) hue-rotate(180deg);
filter
:
invert
(
1
)
brightness
(
1.5
)
hue-rotate
(
180deg
);
}
}
不使用暗黑模式
/* 不使用暗黑模式 */
.no-dark
{
.no-dark
{
position
:
relative
;
position
:
relative
;
}
}
...
@@ -376,6 +376,6 @@ li {
...
@@ -376,6 +376,6 @@ li {
display
:
block
;
display
:
block
;
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
backdrop-filter: invert(1) hue-rotate(180deg);
backdrop-filter
:
invert
(
1
)
brightness
(
1.5
)
hue-rotate
(
180deg
);
}
}
}
*/
}
vue3-lw-pc/public/static/css/var.css
View file @
e00e3d8
...
@@ -10,12 +10,15 @@ html {
...
@@ -10,12 +10,15 @@ html {
--color-success
:
#07c160
;
--color-success
:
#07c160
;
--color-warning
:
#faad14
;
--color-warning
:
#faad14
;
--color-danger
:
#eb5e12
;
--color-danger
:
#eb5e12
;
--border-radius
:
8px
;
/* 常规圆角 */
--border-radius
:
8px
;
/* 常规圆角 */
--border-radius-small
:
4px
;
/* 小圆角 */
--border-radius-small
:
4px
;
/* 小圆角 */
--border-radius-big
:
16px
;
/* 大圆角 */
--border-radius-big
:
16px
;
/* 大圆角 */
--card-margin
:
16px
;
/* 卡片间距 */
--card-margin
:
16px
;
/* 卡片间距 */
--top-nav-heght
:
64px
;
/* 顶部导航条高度 */
--top-nav-heght
:
64px
;
/* 顶部导航条高度 */
--font-black
:
#1d2129
;
/* 通用字体黑色 */
--font-black
:
#1d2129
;
/* 通用字体黑色 */
--font-white
:
#fff
;
/* 通用字体白色 */
}
}
/* 项目定制原子类 */
/* 项目定制原子类 */
...
...
vue3-lw-pc/src/layout/components/TopBar/TopMenu.vue
View file @
e00e3d8
...
@@ -116,10 +116,11 @@ export default {
...
@@ -116,10 +116,11 @@ export default {
//
}
//
}
//
}
//
}
.el-menu--horizontal
{
.el-menu--horizontal
{
background-color
:
transparent
;
background-color
:
initial
;
border
:
none
;
border
:
none
;
white-space
:
nowrap
;
white-space
:
nowrap
;
flex
:
1
1
1200px
;
flex
:
1
1
1200px
;
z-index
:
0
;
&
>
.el-menu-item
{
&
>
.el-menu-item
{
height
:
38px
!important
;
height
:
38px
!important
;
line-height
:
38px
!important
;
line-height
:
38px
!important
;
...
@@ -151,7 +152,7 @@ export default {
...
@@ -151,7 +152,7 @@ export default {
&::after
{
&::after
{
opacity
:
1
;
opacity
:
1
;
}
}
background-color
:
transparent
;
background-color
:
initial
;
color
:
#fff
;
color
:
#fff
;
}
}
}
}
...
...
vue3-lw-pc/src/layout/index.vue
View file @
e00e3d8
<
template
>
<
template
>
<div
:class=
"classObj"
class=
"app-wrapper"
>
<div
:class=
"classObj"
class=
"app-wrapper"
>
<div
class=
"top-wrap
no-dark
"
>
<div
class=
"top-wrap"
>
<TopBar
/>
<TopBar
/>
</div>
</div>
<div
class=
"main-wrap"
>
<div
class=
"main-wrap"
>
...
@@ -100,6 +100,7 @@ export default {
...
@@ -100,6 +100,7 @@ export default {
}
}
.top-wrap
{
.top-wrap
{
height
:
var
(
--top-nav-heght
);
height
:
var
(
--top-nav-heght
);
background
:
#fff
;
}
}
.main-wrap
{
.main-wrap
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment