refactor: remove unnecessary border and border-radius styles across various components

- Removed border and border-radius styles from SubscribeCard, CategoryEditDialog, ContentToggleSettingsDialog, DiscoverTabOrderDialog, ForkWorkflowDialog, OfflineStatusDialog, PluginMarketSettingDialog, ReorganizeDialog, SearchBarDialog, SiteImportDialog, SiteResourceDialog, SiteStatisticsDialog, WorkflowActionsDialog, TorrentFilterBar, and several setup views.
- Updated common.scss to introduce new variables for surface radius and border styles.
- Adjusted component styles to utilize new app surface styles for consistency.
This commit is contained in:
jxxghp
2026-06-07 15:43:22 +08:00
parent f51b253c83
commit 87d780d985
28 changed files with 186 additions and 271 deletions

View File

@@ -177,10 +177,7 @@ const instructions = computed(() => {
.pwa-install-banner {
position: fixed;
z-index: 1000;
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
background: rgb(var(--v-theme-surface));
box-shadow: 0 4px 20px rgba(0, 0, 0, 10%);
inset-block-end: 5rem;
inset-inline: 20px;
}

View File

@@ -288,7 +288,7 @@ async function handleResetSettings() {
v-bind="customizerContainerProps"
:style="customizerContainerStyle"
>
<div class="theme-customizer-panel" :class="{ 'theme-customizer-panel--dialog': appMode }">
<div class="theme-customizer-panel" :class="{ 'theme-customizer-panel--dialog': appMode, 'app-surface': appMode }">
<div class="theme-customizer-header py-5 px-4">
<div>
<h2 class="theme-customizer-title">{{ t('theme.customizer.title') }}</h2>
@@ -531,8 +531,6 @@ async function handleResetSettings() {
.theme-customizer-panel--dialog {
overflow: hidden;
border: 1px solid rgba(var(--v-theme-on-surface), 0.08);
border-radius: var(--app-surface-radius);
background: rgb(var(--v-theme-surface));
block-size: var(--theme-customizer-viewport-height, 100dvh);
max-block-size: var(--theme-customizer-viewport-height, 100dvh);

View File

@@ -71,92 +71,69 @@ async function deleteDownload() {
</script>
<template>
<div v-if="cardState" class="downloading-card-shadow-shell">
<VCard
:key="props.info?.hash"
class="downloading-card flex flex-col h-full overflow-hidden"
min-height="150"
>
<template #image>
<VImg
:src="props.info?.media.image"
class="downloading-card-image"
aspect-ratio="2/3"
cover
@load="imageLoadHandler"
position="top"
>
<template #placeholder>
<div class="w-full h-full">
<VSkeletonLoader class="object-cover aspect-w-2 aspect-h-3" />
</div>
</template>
<template #default>
<div class="absolute inset-0 outline-none downloading-card-background"></div>
</template>
</VImg>
</template>
<VCard
v-if="cardState"
:key="props.info?.hash"
class="downloading-card flex flex-col h-full overflow-hidden"
min-height="150"
>
<template #image>
<VImg
:src="props.info?.media.image"
class="downloading-card-image"
aspect-ratio="2/3"
cover
@load="imageLoadHandler"
position="top"
>
<template #placeholder>
<div class="w-full h-full">
<VSkeletonLoader class="object-cover aspect-w-2 aspect-h-3" />
</div>
</template>
<template #default>
<div class="absolute inset-0 outline-none downloading-card-background"></div>
</template>
</VImg>
</template>
<div>
<VCardTitle class="break-words whitespace-normal text-white">
{{ props.info?.media.title || props.info?.name }}
{{
props.info?.media.episode
? `${props.info?.media.season} ${props.info?.media.episode}`
: props.info?.season_episode
}}
</VCardTitle>
<div>
<VCardTitle class="break-words whitespace-normal text-white">
{{ props.info?.media.title || props.info?.name }}
{{
props.info?.media.episode
? `${props.info?.media.season} ${props.info?.media.episode}`
: props.info?.season_episode
}}
</VCardTitle>
<VCardSubtitle class="break-words whitespace-normal text-white">
{{ props.info?.title }}
</VCardSubtitle>
<VCardSubtitle class="break-words whitespace-normal text-white">
{{ props.info?.title }}
</VCardSubtitle>
<VCardText class="text-subtitle-1 pt-3 pb-1 text-white">
{{ getSpeedText() }}
</VCardText>
<VCardText class="text-subtitle-1 pt-3 pb-1 text-white">
{{ getSpeedText() }}
</VCardText>
<VCardText v-if="getPercentage() > 0" class="text-white">
<VProgressLinear :model-value="getPercentage()" bg-color="success" color="success" />
</VCardText>
<VCardText v-if="getPercentage() > 0" class="text-white">
<VProgressLinear :model-value="getPercentage()" bg-color="success" color="success" />
</VCardText>
<VCardActions class="justify-space-between">
<VBtn :icon="`${isDownloading ? 'mdi-pause' : 'mdi-play'}`" @click="toggleDownload" />
<VBtn color="error" icon="mdi-trash-can-outline" @click="deleteDownload" />
</VCardActions>
</div>
</VCard>
</div>
<VCardActions class="justify-space-between">
<VBtn :icon="`${isDownloading ? 'mdi-pause' : 'mdi-play'}`" @click="toggleDownload" />
<VBtn color="error" icon="mdi-trash-can-outline" @click="deleteDownload" />
</VCardActions>
</div>
</VCard>
</template>
<style lang="scss" scoped>
// 外层壳承载主题阴影,避免 VCard 的圆角裁切层影响阴影外扩。
.downloading-card-shadow-shell {
position: relative;
border-radius: var(--app-surface-radius);
block-size: 100%;
box-shadow: var(--app-surface-shadow);
inline-size: 100%;
transition: border-radius 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
.downloading-card-shadow-shell:hover {
box-shadow: var(--app-surface-hover-shadow);
}
}
.downloading-card {
position: relative;
isolation: isolate;
background-color: rgb(31, 41, 55) !important;
}
// 阴影已经交给外层壳,内层卡片只负责裁切图片和内容圆角。
.downloading-card.downloading-card.v-card[class],
.downloading-card.downloading-card.v-card[class]:hover {
box-shadow: none !important;
}
// 图片槽和渐变遮罩统一继承卡片圆角,避免阴影增强后四角露出页面底色。
.downloading-card :deep(.v-card__image),
.downloading-card :deep(.v-responsive),

View File

@@ -593,10 +593,6 @@ function handleCardClick() {
position: relative;
}
.subscribe-card-shell {
border-radius: var(--app-surface-radius);
}
.subscribe-card-pending-tint::after {
position: absolute;
z-index: 3;

View File

@@ -638,15 +638,6 @@ onMounted(() => {
cursor: grabbing;
}
.category-item {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border: 1px solid transparent;
}
.category-item:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.add-category-btn {
border-style: dashed !important;
transition: all 0.2s ease;

View File

@@ -195,8 +195,6 @@ function submitSettings() {
.setting-item {
position: relative;
overflow: hidden;
border: 1px solid rgba(var(--v-theme-on-surface), 0.1);
border-radius: var(--app-surface-radius);
background-color: rgba(var(--v-theme-surface-variant), 0.3);
cursor: pointer;
padding-block: 10px;

View File

@@ -117,8 +117,6 @@ function submitOrder() {
.setting-item {
position: relative;
overflow: hidden;
border: 1px solid rgba(var(--v-theme-primary), 0.3);
border-radius: var(--app-surface-radius);
background-color: rgba(var(--v-theme-primary), 0.08);
cursor: grab;
padding-block: 10px;

View File

@@ -277,8 +277,6 @@ async function doDelete() {
.workflow-preview {
position: relative;
overflow: hidden;
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
background-color: rgba(var(--v-theme-surface), 0.8);
block-size: 280px;
inline-size: 240px;
@@ -289,8 +287,6 @@ async function doDelete() {
inline-size: 100%;
.vue-flow__node {
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
font-size: 10px;
&:hover {

View File

@@ -115,10 +115,6 @@ const colorTheme = computed(() => {
</template>
<style scoped>
.offline-dialog {
border-radius: var(--app-surface-radius);
}
.status-icon-wrapper {
padding-block: 24px 0;
padding-inline: 24px;

View File

@@ -504,8 +504,6 @@ onMounted(() => {
.plugin-market-list-wrap {
flex: 1;
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
background: rgba(var(--v-theme-surface), 0.72);
min-block-size: 0;
overflow-y: auto;
@@ -562,8 +560,6 @@ onMounted(() => {
position: relative;
display: flex;
flex: 1;
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
background: rgba(var(--v-theme-surface), 0.72);
min-block-size: 0;
overflow: hidden;

View File

@@ -1913,8 +1913,6 @@ onUnmounted(() => {
}
.preview-note {
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
color: rgb(var(--v-theme-error));
font-size: 0.875rem;
line-height: 1.5;
@@ -1931,8 +1929,6 @@ onUnmounted(() => {
.preview-overview-card {
display: flex;
flex-direction: column;
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
gap: 0.375rem;
min-inline-size: 0;
padding-block: 0.875rem;
@@ -1958,8 +1954,6 @@ onUnmounted(() => {
.preview-custom-words {
display: flex;
flex-direction: column;
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
gap: 0.75rem;
padding-block: 0.875rem;
padding-inline: 1rem;
@@ -2051,8 +2045,6 @@ onUnmounted(() => {
overflow: visible;
flex: 0 0 auto;
flex-direction: column;
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
margin-block-end: 1.5rem;
margin-inline: 1.5rem;
min-block-size: 0;

View File

@@ -698,8 +698,6 @@ onMounted(() => {
display: flex;
overflow: hidden;
flex-direction: column;
border-radius: var(--app-surface-radius) !important;
box-shadow: 0 12px 40px rgba(0, 0, 0, 12%) !important;
}
/* 搜索头部区域 */
@@ -774,7 +772,6 @@ onMounted(() => {
}
.search-result-item {
border-radius: 10px !important;
margin-block-end: 2px;
transition: background-color 0.15s ease;
}

View File

@@ -237,7 +237,7 @@ watch(selectedFile, async newFile => {
<!-- 阶段1选择文件阶段 -->
<div v-if="currentStage === ImportStage.SELECT_FILE" class="upload-area">
<div
class="upload-zone"
class="upload-zone app-surface-shape"
:class="{ 'dragging': isDragging }"
@dragover="handleDragOver"
@dragleave="handleDragLeave"
@@ -394,7 +394,6 @@ watch(selectedFile, async newFile => {
.upload-zone {
padding: 2rem;
border: 2px dashed #ccc;
border-radius: var(--app-surface-radius);
text-align: center;
transition: all 0.3s ease;
}

View File

@@ -220,7 +220,7 @@ onMounted(() => {
<div class="pa-3 pb-2">
<template v-if="!isMobileLayout">
<VSheet class="site-resource-filter-panel" rounded="lg" border>
<VSheet class="site-resource-filter-panel">
<div class="site-resource-filter-panel__inner">
<VRow class="site-resource-filter-row">
<VCol cols="12" md="4">
@@ -304,7 +304,7 @@ onMounted(() => {
<VExpandTransition>
<div v-if="mobileSearchExpanded" class="mt-2">
<VSheet class="site-resource-filter-panel" rounded="lg" border>
<VSheet class="site-resource-filter-panel">
<div class="site-resource-filter-panel__inner">
<VRow class="site-resource-filter-row">
<VCol cols="12">
@@ -611,11 +611,9 @@ onMounted(() => {
}
.site-resource-filter-panel {
border-color: rgba(var(--v-border-color), calc(var(--v-border-opacity) * 0.9));
background:
radial-gradient(circle at top left, rgba(var(--v-theme-primary), 0.06), transparent 40%),
linear-gradient(180deg, rgba(var(--v-theme-surface), 0.98), rgba(var(--v-theme-surface), 0.93));
box-shadow: 0 10px 24px rgba(15, 23, 42, 4%);
}
.site-resource-filter-panel__inner {
@@ -623,7 +621,7 @@ onMounted(() => {
}
.site-resource-filter-input :deep(.v-field) {
border-radius: 0.75rem;
border-radius: var(--app-field-radius);
background: rgba(var(--v-theme-surface), 0.92);
box-shadow: inset 0 0 0 1px rgba(var(--v-border-color), calc(var(--v-border-opacity) * 0.8));
}
@@ -718,8 +716,6 @@ onMounted(() => {
}
.site-resource-card__meta-item {
border: 1px solid rgba(var(--v-border-color), calc(var(--v-border-opacity) * 0.7));
border-radius: var(--app-surface-radius);
background: rgba(var(--v-theme-surface), 0.78);
min-block-size: 0;
padding-block: 0.55rem;

View File

@@ -391,8 +391,6 @@ onMounted(() => {
.stat-card {
padding: 16px;
border: 1px solid var(--v-border-color);
border-radius: var(--app-surface-radius);
background: var(--v-theme-surface);
min-inline-size: 100px;
text-align: center;

View File

@@ -601,10 +601,7 @@ const isMacOS = computed(() => {
display: flex;
flex-direction: column;
padding: 16px;
border: 1px solid rgb(var(--v-theme-primary));
border-radius: var(--app-surface-radius);
background-color: rgb(var(--v-theme-surface));
box-shadow: 0 8px 24px rgba(var(--v-shadow-key-umbra-color), 0.32);
gap: 14px;
inline-size: min(360px, calc(100vw - 32px));
inset-block-start: 20px;
@@ -655,10 +652,7 @@ const isMacOS = computed(() => {
.vue-flow__minimap {
overflow: hidden;
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
background-color: rgba(var(--v-theme-surface), 0.8);
box-shadow: 0 4px 15px rgba(var(--v-shadow-key-umbra-color), 0.1);
inset-block-end: 20px;
inset-inline-end: 20px;
transform: scale(75%);
@@ -686,16 +680,12 @@ const isMacOS = computed(() => {
// 自定义节点样式
.vue-flow__node {
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
border-radius: var(--app-surface-radius);
&:hover {
box-shadow: 0 8px 16px rgba(var(--v-shadow-key-umbra-color), 0.15) !important;
transform: translateY(-2px);
}
&.selected {
box-shadow: 0 0 0 1px rgb(var(--v-theme-primary)) !important;
box-shadow: 0 0 0 1px rgb(var(--v-theme-primary));
}
}

View File

@@ -609,8 +609,6 @@ onMounted(() => {
.filter-toolbar-card {
overflow: hidden;
border: 1px solid rgba(var(--v-theme-on-surface), 0.08);
border-radius: var(--app-surface-radius);
background: rgba(var(--v-theme-surface), 0.82);
}
@@ -632,11 +630,6 @@ onMounted(() => {
margin-inline-end: 2px !important;
}
.sort-menu-list {
border: 1px solid rgba(var(--v-theme-on-surface), 0.08);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}
.sort-menu-list :deep(.v-list-item__prepend > .v-icon) {
margin-inline-end: 0px !important;
}
@@ -758,10 +751,6 @@ onMounted(() => {
}
@media (width <= 600px) {
.filter-toolbar-card {
border-radius: var(--app-surface-radius);
}
.filter-buttons-grid {
gap: 6px;
}

View File

@@ -425,7 +425,7 @@ function handleBackdropClick(event: MouseEvent) {
<VCard
ref="quickAccessRef"
:ripple="false"
class="plugin-quick-access"
class="plugin-quick-access app-surface-square app-surface-flat app-surface-borderless"
:class="{ 'visible': isVisible }"
:style="{
opacity: componentOpacity,
@@ -463,7 +463,7 @@ function handleBackdropClick(event: MouseEvent) {
<div
v-for="plugin in recentPlugins"
:key="`recent-${plugin.id}`"
class="plugin-item"
class="plugin-item app-surface-shape"
@click="handlePluginClick(plugin)"
>
<VBadge dot :color="plugin.state ? 'success' : 'secondary'" location="top end">
@@ -502,7 +502,7 @@ function handleBackdropClick(event: MouseEvent) {
<div
v-for="plugin in pluginsWithPage"
:key="plugin.id"
class="plugin-item"
class="plugin-item app-surface-shape"
@click="handlePluginClick(plugin)"
>
<VBadge
@@ -733,7 +733,6 @@ function handleBackdropClick(event: MouseEvent) {
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: var(--app-surface-radius);
block-size: 120px;
cursor: pointer;
gap: 4px;

View File

@@ -281,7 +281,6 @@ onMounted(() => {
display: flex;
align-items: center;
padding: 10px;
border-radius: var(--app-surface-radius);
background-color: rgb(var(--v-theme-surface-variant));
transition: all 0.2s ease;

View File

@@ -1387,8 +1387,6 @@ onUnmounted(() => {
.search-progress-card {
padding: 16px;
border: 1px solid rgba(var(--v-theme-primary), 0.18);
border-radius: var(--app-surface-radius);
backdrop-filter: blur(10px);
background: linear-gradient(135deg, rgba(var(--v-theme-primary), 0.08), transparent 42%), rgb(var(--v-theme-surface));
inline-size: 100%;
@@ -1455,8 +1453,6 @@ onUnmounted(() => {
.search-skeleton-card,
.search-skeleton-list {
overflow: hidden;
border: 1px solid rgba(var(--v-theme-on-surface), 0.08);
border-radius: var(--app-surface-radius);
background: rgb(var(--v-theme-surface));
}
@@ -1545,8 +1541,6 @@ onUnmounted(() => {
/* 列表视图样式 */
.resource-list-container {
padding: 8px;
border: 1px solid rgba(var(--v-theme-on-surface), 0.08);
border-radius: var(--app-surface-radius);
}
.resource-list {

View File

@@ -34,7 +34,11 @@ html.v-overlay-scroll-blocked body {
// 全局卡片外观 token圆角和阴影在主题定制器中即时切换。
html {
--app-surface-radius: 8px;
--app-theme-surface-radius: 8px;
--app-surface-radius: var(--app-theme-surface-radius);
--app-field-radius: var(--app-theme-surface-radius);
--app-surface-border-opacity: 0.06;
--app-surface-border: 1px solid rgba(var(--v-theme-on-surface), var(--app-surface-border-opacity));
--app-shadow-rgb: 15, 23, 42;
--app-card-rest-shadow: none;
--app-card-hover-shadow: none;
@@ -48,20 +52,24 @@ html {
--app-surface-hover-shadow: none;
}
html[data-theme-skin='bordered'] {
--app-surface-border-opacity: 0.1;
}
html[data-theme-radius='small'] {
--app-surface-radius: 4px;
--app-theme-surface-radius: 4px;
}
html[data-theme-radius='large'] {
--app-surface-radius: 12px;
--app-theme-surface-radius: 12px;
}
html[data-theme-radius='extra'] {
--app-surface-radius: 16px;
--app-theme-surface-radius: 16px;
}
html[data-theme-radius='huge'] {
--app-surface-radius: 24px;
--app-theme-surface-radius: 24px;
}
html[data-theme='dark'],
@@ -128,71 +136,105 @@ html[data-theme-shadow='high'] {
}
}
// 统一系统内卡片阴影,显式覆盖 Vuetify elevation 或局部卡片默认投影
// 统一系统内主要 surface 的边框、圆角和阴影,局部组件通过变量覆盖
.app-surface,
.v-card,
.v-application .v-card.v-card[class] {
.v-sheet,
.v-list,
.v-table,
.v-expansion-panel {
border: var(--app-surface-border);
border-radius: var(--app-surface-radius) !important;
box-shadow: var(--app-surface-shadow) !important;
transition: border-radius 0.2s ease, box-shadow 0.2s ease;
transition: border-color 0.2s ease, border-radius 0.2s ease, box-shadow 0.2s ease;
}
// 底部导航卡片原本就是胶囊形态,不参与主题圆角切换。
.footer-nav-card.v-card {
border-radius: 9999px !important;
--app-surface-radius: 9999px;
}
@media (hover: hover) {
.app-surface:hover,
.v-card:hover,
.v-application .v-card.v-card[class]:hover {
.v-sheet:hover,
.v-list:hover,
.v-table:hover,
.v-expansion-panel:hover {
box-shadow: var(--app-surface-hover-shadow) !important;
}
}
// 只给外层 surface 加阴影,卡片内部的子组件保持平面,避免层级噪声
.v-card .v-card,
.v-card .v-sheet,
.v-card .v-list,
.v-card .v-expansion-panel,
.v-card .v-table,
.v-card .v-window,
.v-card .v-toolbar,
.v-card .v-navigation-drawer,
.v-card .v-stepper,
.v-card .v-alert,
.v-card .v-avatar,
.v-card .v-chip {
box-shadow: none !important;
// 局部需要退出全局 surface 风格时使用这些工具类,避免再用 !important 抢优先级
.app-surface-borderless {
--app-surface-border: 0 solid transparent;
}
// 主题定制器的 bordered 皮肤:保持原布局密度,只给主要容器增加清晰边界。
.app-surface-flat,
.app-surface-flat:hover {
--app-surface-hover-shadow: none;
--app-surface-shadow: none;
}
.app-surface-square {
--app-surface-radius: 0;
}
.app-surface-shape {
border-radius: var(--app-surface-radius);
}
// 统一文本输入、下拉框、文本域等有框表单控件的圆角,显式 rounded 控件保留特殊形态。
.v-field:not(.v-field--variant-plain, .v-field--variant-underlined, .v-field--rounded, [class^='rounded-'], [class*=' rounded-']) {
border-radius: var(--app-field-radius);
transition: border-radius 0.2s ease, box-shadow 0.2s ease;
}
// 只给外层 surface 加边框和阴影,卡片内部的列表、表格等子组件保持平面,避免层级噪声。
.v-card .v-list:not(.app-surface),
.v-card .v-sheet:not(.app-surface),
.v-card .v-table:not(.app-surface),
.v-card .v-expansion-panel:not(.app-surface),
.v-card .v-window:not(.app-surface),
.v-card .v-toolbar:not(.app-surface),
.v-card .v-navigation-drawer:not(.app-surface),
.v-card .v-stepper:not(.app-surface),
.v-card .v-alert:not(.app-surface),
.v-card .v-avatar,
.v-card .v-chip {
--app-surface-hover-shadow: none;
--app-surface-shadow: none;
}
// 弹窗内容里的嵌套卡片默认保持平面;弹窗自身仍由 overlay 规则控制阴影和圆角。
.v-dialog > .v-overlay__content > .v-card :where(.v-card, .v-sheet, .v-list, .v-table, .v-expansion-panel):not(.app-card-colorful),
.v-dialog > .v-overlay__content > .v-sheet :where(.v-card, .v-sheet, .v-list, .v-table, .v-expansion-panel):not(.app-card-colorful) {
--app-surface-hover-shadow: none;
--app-surface-shadow: none;
}
// 菜单只让直接承载层拥有弹出阴影,内部嵌套 surface 不再重复制造层级。
.v-menu
> .v-overlay__content
> :where(.v-card, .v-sheet, .v-list)
:where(.v-card, .v-sheet, .v-list, .v-table, .v-expansion-panel):not(.app-card-colorful) {
--app-surface-hover-shadow: none;
--app-surface-shadow: none;
}
// 主题定制器的 bordered 皮肤:保持原布局密度,只给非 Vuetify 外壳增加清晰边界。
html[data-theme-skin='bordered'] {
.v-card:not(.bg-primary),
.v-sheet,
.v-table,
.v-expansion-panel,
.v-list {
border: 1px solid rgba(var(--v-theme-on-surface), 0.1) !important;
.layout-vertical-nav {
border: var(--app-surface-border);
}
.v-sheet,
.v-table,
.v-expansion-panel,
.v-list {
box-shadow: none !important;
.navbar-content-container {
border-block-end: var(--app-surface-border);
}
.layout-vertical-nav,
.footer-nav-card {
border: 1px solid rgba(var(--v-theme-on-surface), 0.1) !important;
}
.navbar-content-container {
border-block-end: 1px solid rgba(var(--v-theme-on-surface), 0.1) !important;
}
.layout-vertical-nav {
border-block: 0 !important;
border-inline-start: 0 !important;
border-block: 0;
border-inline-start: 0;
}
}
@@ -205,8 +247,6 @@ html[data-theme-skin='bordered'] {
// 设置项强调卡片:复用通知模板入口的弱强调条、轻渐变与悬浮反馈。
.app-card-colorful {
overflow: hidden;
border: 1px solid rgba(var(--app-card-accent-rgb), var(--app-card-border-opacity)) !important;
border-radius: var(--app-surface-radius) !important;
background:
linear-gradient(
135deg,
@@ -214,8 +254,8 @@ html[data-theme-skin='bordered'] {
rgba(var(--app-card-accent-end-rgb), var(--app-card-accent-end-opacity)) 46%,
rgba(var(--v-theme-surface), 0) 76%
),
rgba(var(--v-theme-surface), var(--app-card-surface-opacity)) !important;
box-shadow: var(--app-card-rest-shadow) !important;
rgba(var(--v-theme-surface), var(--app-card-surface-opacity));
box-shadow: var(--app-card-rest-shadow);
color: rgb(var(--v-theme-on-surface));
--app-card-accent-rgb: var(--v-theme-primary);
@@ -226,6 +266,9 @@ html[data-theme-skin='bordered'] {
--app-card-hover-border-opacity: 0.16;
--app-card-stripe-opacity: 0.22;
--app-card-surface-opacity: 0.92;
--app-surface-border: 1px solid rgba(var(--app-card-accent-rgb), var(--app-card-border-opacity));
--app-surface-hover-shadow: var(--app-card-hover-shadow);
--app-surface-shadow: var(--app-card-rest-shadow);
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
@@ -243,8 +286,7 @@ html[data-theme-skin='bordered'] {
}
.app-card-colorful:hover {
border-color: rgba(var(--app-card-accent-rgb), var(--app-card-hover-border-opacity)) !important;
box-shadow: var(--app-card-hover-shadow) !important;
--app-surface-border: 1px solid rgba(var(--app-card-accent-rgb), var(--app-card-hover-border-opacity));
}
.app-card-colorful:focus-visible {
@@ -264,7 +306,6 @@ html[data-theme-skin='bordered'] {
html[data-theme="transparent"] .app-card-colorful,
.v-theme--transparent .app-card-colorful {
border: 0 !important;
backdrop-filter: blur(var(--transparent-blur, 10px));
--app-card-accent-start-opacity: 0.018;
@@ -273,6 +314,7 @@ html[data-theme="transparent"] .app-card-colorful,
--app-card-hover-border-opacity: 0;
--app-card-stripe-opacity: 0.16;
--app-card-surface-opacity: var(--transparent-opacity-light, 0.2);
--app-surface-border: 0 solid transparent;
}
// 保证卡片右上角的浮动操作区始终高于可点击的卡片内容层,避免误触发详情打开。
@@ -640,7 +682,7 @@ html[data-theme="transparent"] .app-card-colorful,
.compact-fab .v-btn {
border: 1px solid rgba(var(--v-theme-on-surface), 0.08);
backdrop-filter: blur(14px);
box-shadow: var(--app-fab-shadow) !important;
box-shadow: var(--app-fab-shadow);
opacity: 0.98;
transition:
transform 0.18s ease,
@@ -651,7 +693,7 @@ html[data-theme="transparent"] .app-card-colorful,
.compact-fab--primary .v-btn {
block-size: 3rem !important;
box-shadow: var(--app-fab-shadow-strong) !important;
box-shadow: var(--app-fab-shadow-strong);
inline-size: 3rem !important;
}
@@ -670,18 +712,18 @@ html[data-theme="transparent"] .app-card-colorful,
@media (hover: hover) {
.compact-fab .v-btn:hover {
box-shadow: var(--app-fab-shadow-hover) !important;
box-shadow: var(--app-fab-shadow-hover);
filter: saturate(1.03);
transform: translateY(-2px);
}
.compact-fab--primary .v-btn:hover {
box-shadow: var(--app-fab-shadow-strong-hover) !important;
box-shadow: var(--app-fab-shadow-strong-hover);
}
}
.compact-fab .v-btn:active {
box-shadow: var(--app-fab-shadow-active) !important;
box-shadow: var(--app-fab-shadow-active);
transform: translateY(0) scale(0.98);
}
@@ -748,29 +790,29 @@ html[data-theme="transparent"] .app-card-colorful,
// 弹出层样式
.v-overlay__content .v-list{
overflow: hidden;
border-radius: var(--app-surface-radius) !important;
border-radius: var(--app-surface-radius);
backdrop-filter: blur(6px);
background-color: rgb(var(--v-theme-surface), 0.9) !important;
box-shadow: none !important;
background-color: rgb(var(--v-theme-surface), 0.9);
box-shadow: none;
padding-inline: 0.5rem !important;
}
.v-overlay__content .v-card:not(.bg-primary){
border-radius: var(--app-surface-radius) !important;
border-radius: var(--app-surface-radius);
backdrop-filter: blur(8px);
background-color: rgb(var(--v-theme-surface), 0.95) !important;
box-shadow: none !important;
background-color: rgb(var(--v-theme-surface), 0.95);
box-shadow: none;
.v-list, .v-table {
backdrop-filter: none;
background-color: transparent !important;
box-shadow: none !important;
background-color: transparent;
box-shadow: none;
}
}
.v-menu {
.v-list-item:hover {
background-color: rgba(var(--v-theme-on-surface), 0.04) !important;
background-color: rgba(var(--v-theme-on-surface), 0.04);
}
}
@@ -783,10 +825,10 @@ html[data-theme="transparent"] .app-card-colorful,
}
.v-overlay__content {
background: transparent !important;
box-shadow: none !important;
background: transparent;
box-shadow: none;
margin-block: env(safe-area-inset-top) env(safe-area-inset-bottom);
transition: opacity 0.2s ease, box-shadow 0.2s ease !important;
transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.v-menu > .v-overlay__content {
@@ -817,7 +859,6 @@ html[data-theme="transparent"] .app-card-colorful,
.v-bottom-sheet > .v-bottom-sheet__content.v-overlay__content > .v-card,
.v-menu > .v-overlay__content > .v-card,
.v-menu > .v-overlay__content > .v-list {
border-radius: var(--app-surface-radius) !important;
box-shadow: var(--app-overlay-shadow) !important;
}
@@ -825,7 +866,6 @@ html[data-theme="transparent"] .app-card-colorful,
.v-dialog--fullscreen > .v-overlay__content > .v-sheet,
.v-dialog--fullscreen > .v-overlay__content > form > .v-card,
.v-dialog--fullscreen > .v-overlay__content > form > .v-sheet {
border-radius: 0 !important;
box-shadow: none !important;
}
@@ -835,8 +875,8 @@ html[data-theme="transparent"] .app-card-colorful,
overflow: hidden;
border-end-end-radius: 0 !important;
border-end-start-radius: 0 !important;
border-start-end-radius: var(--app-surface-radius) !important;
border-start-start-radius: var(--app-surface-radius) !important;
border-start-end-radius: var(--app-theme-surface-radius) !important;
border-start-start-radius: var(--app-theme-surface-radius) !important;
}
.v-dialog--fullscreen > .v-overlay__content > .v-card,
@@ -845,8 +885,8 @@ html[data-theme="transparent"] .app-card-colorful,
.v-dialog--fullscreen > .v-overlay__content > form > .v-sheet {
border-end-end-radius: 0 !important;
border-end-start-radius: 0 !important;
border-start-end-radius: var(--app-surface-radius) !important;
border-start-start-radius: var(--app-surface-radius) !important;
border-start-end-radius: var(--app-theme-surface-radius) !important;
border-start-start-radius: var(--app-theme-surface-radius) !important;
}
}
@@ -881,5 +921,5 @@ html[data-theme="transparent"] .app-card-colorful,
}
.v-menu .v-overlay__content {
box-shadow: none !important;
box-shadow: none;
}

View File

@@ -41,7 +41,7 @@ html[data-theme="transparent"] {
// 设置页彩色卡片保留透明主题的玻璃质感,只叠加极轻的图标主色。
.app-card-colorful {
border: 0 !important;
border: 0;
background:
linear-gradient(
135deg,
@@ -49,7 +49,7 @@ html[data-theme="transparent"] {
rgba(var(--app-card-accent-end-rgb, var(--app-card-accent-rgb)), var(--app-card-accent-end-opacity, 0.01)) 46%,
rgba(var(--v-theme-surface), 0) 76%
),
rgba(var(--v-theme-surface), var(--transparent-opacity-light)) !important;
rgba(var(--v-theme-surface), var(--transparent-opacity-light));
}
// 工具栏
@@ -113,17 +113,17 @@ html[data-theme="transparent"] {
// 弹出层内容
.v-overlay__content {
border-radius: 12px !important;
backdrop-filter: blur(var(--transparent-blur)) !important;
border-radius: var(--app-surface-radius);
backdrop-filter: blur(var(--transparent-blur));
.v-card:not(.bg-primary) {
backdrop-filter: blur(var(--transparent-blur));
background-color: rgba(var(--v-theme-surface), var(--transparent-opacity-heavy)) !important;
background-color: rgba(var(--v-theme-surface), var(--transparent-opacity-heavy));
}
.v-list {
backdrop-filter: blur(var(--transparent-blur));
background-color: rgba(var(--v-theme-surface), var(--transparent-opacity-heavy)) !important;
background-color: rgba(var(--v-theme-surface), var(--transparent-opacity-heavy));
}
.v-table__wrapper table thead {

View File

@@ -324,7 +324,6 @@ const { wizardData, selectDownloader, validationErrors } = useSetupWizard()
}
.cursor-pointer:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 15%);
transform: translateY(-2px);
}

View File

@@ -716,7 +716,6 @@ watch(
}
.cursor-pointer:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 15%);
transform: translateY(-2px);
}

View File

@@ -766,7 +766,6 @@ const notificationTypes = [
}
.cursor-pointer:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 15%);
transform: translateY(-2px);
}

View File

@@ -222,7 +222,6 @@ onMounted(() => {
}
.preset-card:hover {
box-shadow: 0 8px 25px rgba(0, 0, 0, 15%);
transform: translateY(-4px);
}

View File

@@ -651,10 +651,8 @@ onUnmounted(() => {
--logging-shell-bg: rgba(var(--v-theme-surface), 0.96);
--logging-record-bg-even: rgba(var(--v-theme-surface-variant), 0.01);
--logging-record-bg-odd: rgba(var(--v-theme-surface-variant), 0.005);
--logging-border: rgba(var(--v-theme-on-surface), 0.08);
--logging-text: rgba(var(--v-theme-on-surface), 0.88);
--logging-muted: rgba(var(--v-theme-on-surface), 0.56);
--logging-shadow: 0 10px 32px rgba(15, 23, 42, 6%);
display: flex;
flex-direction: column;
@@ -666,16 +664,12 @@ onUnmounted(() => {
--logging-shell-bg: rgba(var(--v-theme-surface), 0.72);
--logging-record-bg-even: rgba(var(--v-theme-on-surface), 0.02);
--logging-record-bg-odd: rgba(var(--v-theme-on-surface), 0.008);
--logging-border: rgba(var(--v-theme-on-surface), 0.12);
--logging-shadow: inset 0 1px 0 rgba(255, 255, 255, 4%);
}
.logging-view.is-transparent-theme {
--logging-shell-bg: transparent;
--logging-record-bg-even: transparent;
--logging-record-bg-odd: transparent;
--logging-border: rgba(var(--v-theme-on-surface), 0.1);
--logging-shadow: none;
}
.logging-toolbar {
@@ -699,7 +693,7 @@ onUnmounted(() => {
}
.logging-search :deep(.v-field) {
border-radius: 0;
border-radius: var(--app-field-radius);
background: transparent !important;
box-shadow: none !important;
}
@@ -719,7 +713,7 @@ onUnmounted(() => {
}
.logging-level-select :deep(.v-field) {
border-radius: 0;
border-radius: var(--app-field-radius);
background: transparent !important;
box-shadow: none !important;
}
@@ -738,9 +732,7 @@ onUnmounted(() => {
overflow: auto;
flex: 1 1 auto;
padding: 0.875rem;
border: 1px solid var(--logging-border);
background: linear-gradient(180deg, var(--logging-shell-bg), rgba(var(--v-theme-surface), 0.9));
box-shadow: var(--logging-shadow);
}
.logging-view.is-transparent-theme .logging-shell {
@@ -816,8 +808,6 @@ onUnmounted(() => {
.logging-record-panel {
display: flex;
align-items: stretch;
border: 1px solid rgba(var(--v-theme-on-surface), 0.04);
border-radius: var(--app-surface-radius);
gap: 0.75rem;
min-inline-size: 0;
padding-block: 0.5rem;
@@ -832,10 +822,6 @@ onUnmounted(() => {
background: var(--logging-record-bg-odd);
}
.logging-view.is-dark-theme .logging-record-panel {
border-color: rgba(var(--v-theme-on-surface), 0.08);
}
.logging-record-accent {
flex: 0 0 auto;
align-self: flex-start;

View File

@@ -131,7 +131,7 @@ onMounted(getModules)
<div class="system-health-check">
<!-- 动态进度框 - 固定在顶部 -->
<div class="progress-container">
<div class="progress-card" :class="{ 'dark-theme': theme.global.current.value.dark }">
<div class="progress-card app-surface" :class="{ 'dark-theme': theme.global.current.value.dark }">
<div class="progress-header">
<VIcon
:icon="isChecking ? 'mdi-cog-sync' : checkComplete ? 'mdi-check-circle' : 'mdi-cog'"
@@ -184,7 +184,7 @@ onMounted(getModules)
<Transition v-for="(module, index) in modules" :key="module.id" name="module-item" appear>
<div
v-show="module.visible"
class="module-item"
class="module-item app-surface"
:class="[module.state, { 'dark-theme': theme.global.current.value.dark }]"
>
<div class="module-header">
@@ -244,7 +244,6 @@ onMounted(getModules)
.progress-card {
padding: 20px;
border-radius: var(--app-surface-radius);
margin: 16px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
@@ -333,8 +332,6 @@ onMounted(getModules)
.module-item {
padding: 12px;
border: 1px solid var(--v-border-color);
border-radius: 8px;
background: var(--v-surface);
transition: all 0.3s ease;
}