Commit e00e3d89 by xinla

暗黑主题

1 parent b2f90e6c
...@@ -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);
} }
} */ }
...@@ -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; /* 通用字体白色 */
} }
/* 项目定制原子类 */ /* 项目定制原子类 */
......
...@@ -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;
} }
} }
......
<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 {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!