mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-11-13 22:11:42 +08:00
refactor: 移除启动页逻辑,新增全局组件与偏好设置系统
1. 移除旧版启动页分流逻辑,直接跳转首页 2. 新增返回顶部、章节标题、导航栏等全局组件 3. 重构偏好设置系统,实现站点默认与本地差异分层管理 4. 删除冗余的测试mock、插件模块与样式文件 5. 优化文章卡片与评论组件样式,更新全局主题色 6. 清理废弃的请求参数与配置项
This commit is contained in:
+26
-13
@@ -1,21 +1,34 @@
|
||||
// 测试用的 iconfont,可生效
|
||||
// @import './iconfont.css';
|
||||
|
||||
.test {
|
||||
// 可以通过 @apply 多个样式封装整体样式
|
||||
@apply mt-4 ml-4;
|
||||
|
||||
padding-top: 4px;
|
||||
color: red;
|
||||
}
|
||||
@import './iconfont.css';
|
||||
|
||||
:root,
|
||||
page {
|
||||
// 修改按主题色
|
||||
// --wot-color-theme: #37c2bc;
|
||||
// 修改按主题色
|
||||
--wot-color-theme: #B9E424;
|
||||
|
||||
// 修改按钮背景色
|
||||
// --wot-button-primary-bg-color: green;
|
||||
// 修改按钮背景色
|
||||
--wot-button-primary-bg-color: #B9E424;
|
||||
}
|
||||
|
||||
.uh-global-page {
|
||||
}
|
||||
|
||||
.uh-global-card-glass {
|
||||
box-sizing: border-box;
|
||||
background-color: rgb(255 255 255 / 55%);
|
||||
border: 4rpx solid rgb(255 255 255 / 65%);
|
||||
box-shadow: inset 0 1rpx 0 rgb(255 255 255 / 75%), 0 8rpx 32rpx rgb(90 105 200 / 14%);
|
||||
backdrop-filter: blur(24rpx) saturate(160%);
|
||||
-webkit-backdrop-filter: blur(24rpx) saturate(160%);
|
||||
|
||||
/* 低端安卓 WebView 不支持 backdrop-filter 的兜底:提高不透明度保证可读性 */
|
||||
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
||||
background-color: rgb(255 255 255 / 88%);
|
||||
}
|
||||
}
|
||||
|
||||
.uh-shadow-xs {
|
||||
box-shadow: inset 0 1rpx 0 rgb(255 255 255 / 75%), 0 8rpx 32rpx rgb(90 105 200 / 7%);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* audio 组件默认样式补件
|
||||
* 说明:@dcloudio/uni-components 3.0.0-4070620250821001 的 style/ 目录未提供 audio.css,
|
||||
* vite 编译 <audio> 内置组件时按惯例引入该路径会报 Cannot find module。
|
||||
* 此处以本地文件补齐,并还原旧项目的 .uni-audio-default 定制样式。
|
||||
*/
|
||||
|
||||
/* H5 端 audio 默认控件样式(源自旧项目 moments / moment-detail) */
|
||||
.uni-audio-default {
|
||||
width: 100%;
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
/**
|
||||
* video 组件默认样式补件
|
||||
* 说明:@dcloudio/uni-components 3.0.0-4070620250821001 的 style/ 目录未提供 video.css,
|
||||
* vite 编译 <video> 内置组件时按惯例引入该路径会报 Cannot find module。
|
||||
* 此处以本地文件补齐(原生 video 控件样式由各平台提供,这里仅占位)。
|
||||
*/
|
||||
Reference in New Issue
Block a user