refactor: ♻️ 自定义导航栏样式优化
This commit is contained in:
@@ -29,10 +29,6 @@ export default {
|
|||||||
.page-wraper {
|
.page-wraper {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
min-height: calc(100vh - var(--window-top));
|
min-height: calc(100vh - var(--window-top));
|
||||||
background: #f9f9f9;
|
background: var(--wot-color-bg);
|
||||||
}
|
|
||||||
|
|
||||||
.wot-theme-dark.page-wraper {
|
|
||||||
background: #222;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<!-- 轮播图 -->
|
<!-- 轮播图 -->
|
||||||
<wd-swiper
|
<wd-swiper
|
||||||
v-model:current="current"
|
v-model:current="current"
|
||||||
|
custom-class="swiper-box"
|
||||||
:list="swiperList"
|
:list="swiperList"
|
||||||
autoplay
|
autoplay
|
||||||
@click="handleClick"
|
@click="handleClick"
|
||||||
@@ -342,7 +343,6 @@ onReady(() => {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
padding: 0 20rpx;
|
|
||||||
background-color: var(--wot-color-bg);
|
background-color: var(--wot-color-bg);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ page {
|
|||||||
--wot-color-text-placeholder: #999999;
|
--wot-color-text-placeholder: #999999;
|
||||||
|
|
||||||
/* 边框和背景变量 */
|
/* 边框和背景变量 */
|
||||||
--wot-color-border: #e5e7eb;
|
--wot-color-border: #e5e5e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 暗黑主题 (dark) */
|
/* 暗黑主题 (dark) */
|
||||||
@@ -37,5 +37,5 @@ page {
|
|||||||
--wot-color-text-placeholder: #999999;
|
--wot-color-text-placeholder: #999999;
|
||||||
|
|
||||||
/* 暗黑模式下的边框和背景变量 */
|
/* 暗黑模式下的边框和背景变量 */
|
||||||
--wot-color-border: #374151;
|
--wot-color-border: #3a3a3a;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user