Commit e00e3d89 by xinla

暗黑主题

1 parent b2f90e6c
......@@ -359,14 +359,14 @@ li {
}
/* 暗黑模式 Dark mode */
/* @media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
body,
img,
video {
filter: invert(1) hue-rotate(180deg);
filter: invert(1) brightness(1.5) hue-rotate(180deg);
}
不使用暗黑模式
/* 不使用暗黑模式 */
.no-dark {
position: relative;
}
......@@ -376,6 +376,6 @@ li {
display: block;
height: 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 {
--color-success: #07c160;
--color-warning: #faad14;
--color-danger: #eb5e12;
--border-radius: 8px; /* 常规圆角 */
--border-radius-small: 4px; /* 小圆角 */
--border-radius-big: 16px; /* 大圆角 */
--card-margin: 16px; /* 卡片间距 */
--top-nav-heght: 64px; /* 顶部导航条高度 */
--font-black: #1d2129; /* 通用字体黑色 */
--font-white: #fff; /* 通用字体白色 */
}
/* 项目定制原子类 */
......
......@@ -116,10 +116,11 @@ export default {
// }
// }
.el-menu--horizontal {
background-color: transparent;
background-color: initial;
border: none;
white-space: nowrap;
flex: 1 1 1200px;
z-index: 0;
& > .el-menu-item {
height: 38px !important;
line-height: 38px !important;
......@@ -151,7 +152,7 @@ export default {
&::after {
opacity: 1;
}
background-color: transparent;
background-color: initial;
color: #fff;
}
}
......
<template>
<div :class="classObj" class="app-wrapper">
<div class="top-wrap no-dark">
<div class="top-wrap">
<TopBar />
</div>
<div class="main-wrap">
......@@ -100,6 +100,7 @@ export default {
}
.top-wrap {
height: var(--top-nav-heght);
background: #fff;
}
.main-wrap {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!