mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-21 20:42:04 +08:00
1523 lines
39 KiB
SCSS
1523 lines
39 KiB
SCSS
/* stylelint-disable custom-property-pattern */
|
||
/* stylelint-disable no-duplicate-selectors */
|
||
/* stylelint-disable scss/at-rule-no-unknown */
|
||
/* stylelint-disable no-descending-specificity */
|
||
@use 'sass:map';
|
||
@use 'vuetify/settings' as vuetify-settings;
|
||
|
||
// 返回 Vuetify 指定 elevation 的完整三层 box-shadow,供主题定制器映射全局阴影档位。
|
||
@function app-vuetify-elevation($level) {
|
||
@return map.get(vuetify-settings.$shadow-key-umbra, $level),
|
||
map.get(vuetify-settings.$shadow-key-penumbra, $level),
|
||
map.get(vuetify-settings.$shadow-key-ambient, $level);
|
||
}
|
||
|
||
// 将相对阴影层级限制在 Vuetify elevation 的 0 到 24 档范围内。
|
||
@function app-clamp-elevation($level) {
|
||
@if $level < 0 {
|
||
@return 0;
|
||
}
|
||
|
||
@if $level > 24 {
|
||
@return 24;
|
||
}
|
||
|
||
@return $level;
|
||
}
|
||
|
||
// 公共样式 - 所有主题都需要
|
||
@tailwind base;
|
||
@tailwind components;
|
||
@tailwind utilities;
|
||
|
||
html.v-overlay-scroll-blocked {
|
||
position: static;
|
||
}
|
||
|
||
html.v-overlay-scroll-blocked body {
|
||
position: fixed;
|
||
overflow: hidden;
|
||
inset: 0;
|
||
inset-block-start: var(--v-body-scroll-y);
|
||
}
|
||
|
||
html.quick-access-scroll-locked,
|
||
html.quick-access-scroll-locked body {
|
||
overflow: hidden !important;
|
||
overscroll-behavior: none;
|
||
}
|
||
|
||
@mixin hide-scrollbar {
|
||
-ms-overflow-style: none;
|
||
scrollbar-width: none;
|
||
|
||
&::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
@media (width <= 768px) {
|
||
html,body {
|
||
@include hide-scrollbar;
|
||
}
|
||
}
|
||
|
||
// 全局外观 token:圆角和阴影复用 Vuetify 的 rounded / elevation 分级。
|
||
html {
|
||
--app-vuetify-rounded-0: #{map.get(vuetify-settings.$rounded, 0)};
|
||
--app-vuetify-rounded-sm: #{map.get(vuetify-settings.$rounded, 'sm')};
|
||
--app-vuetify-rounded: #{map.get(vuetify-settings.$rounded, null)};
|
||
--app-vuetify-rounded-lg: #{map.get(vuetify-settings.$rounded, 'lg')};
|
||
--app-vuetify-rounded-xl: #{map.get(vuetify-settings.$rounded, 'xl')};
|
||
--app-vuetify-rounded-pill: #{map.get(vuetify-settings.$rounded, 'pill')};
|
||
|
||
@for $level from 0 through 24 {
|
||
--app-elevation-#{$level}: #{app-vuetify-elevation($level)};
|
||
}
|
||
|
||
--app-theme-surface-radius: var(--app-vuetify-rounded-lg);
|
||
--app-surface-radius: var(--app-theme-surface-radius);
|
||
--app-field-radius: var(--app-vuetify-rounded-lg);
|
||
--app-control-radius: var(--app-vuetify-rounded);
|
||
--app-overlay-radius: var(--app-vuetify-rounded-lg);
|
||
--app-surface-border-opacity: 0.06;
|
||
--app-surface-border: 1px solid rgba(var(--v-theme-on-surface), var(--app-surface-border-opacity));
|
||
--app-card-light-border-opacity: 0.12;
|
||
--app-card-light-border: 1px solid rgba(var(--v-theme-on-surface), var(--app-card-light-border-opacity));
|
||
--app-card-rest-shadow: var(--app-elevation-0);
|
||
--app-card-hover-shadow: var(--app-elevation-0);
|
||
--app-fab-shadow: var(--app-elevation-0);
|
||
--app-fab-shadow-strong: var(--app-elevation-0);
|
||
--app-fab-shadow-hover: var(--app-elevation-0);
|
||
--app-fab-shadow-strong-hover: var(--app-elevation-0);
|
||
--app-fab-shadow-active: var(--app-elevation-0);
|
||
--app-overlay-shadow: var(--app-elevation-0);
|
||
--app-surface-shadow: var(--app-elevation-0);
|
||
--app-surface-hover-shadow: var(--app-elevation-0);
|
||
--mp-motion-duration-page: 180ms;
|
||
--mp-motion-duration-overlay: 160ms;
|
||
--mp-motion-ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
|
||
--mp-motion-ease-exit: cubic-bezier(0.4, 0, 1, 1);
|
||
}
|
||
|
||
html[data-theme-skin='bordered'] {
|
||
--app-surface-border-opacity: 0.1;
|
||
--app-card-light-border-opacity: 0.16;
|
||
}
|
||
|
||
// 默认档位保留按钮等 control 的 Vuetify 原始圆角,同时让卡片、列表、弹窗和输入区使用更舒展的大圆角。
|
||
html[data-theme-radius='default'] {
|
||
--app-theme-surface-radius: var(--app-vuetify-rounded-lg);
|
||
--app-field-radius: var(--app-vuetify-rounded-lg);
|
||
--app-control-radius: var(--app-vuetify-rounded);
|
||
--app-overlay-radius: var(--app-vuetify-rounded-lg);
|
||
}
|
||
|
||
html[data-theme-radius='none'] {
|
||
--app-theme-surface-radius: var(--app-vuetify-rounded-sm);
|
||
--app-field-radius: var(--app-vuetify-rounded-sm);
|
||
--app-control-radius: var(--app-vuetify-rounded-sm);
|
||
--app-overlay-radius: var(--app-vuetify-rounded-sm);
|
||
}
|
||
|
||
html[data-theme-radius='small'] {
|
||
--app-theme-surface-radius: var(--app-vuetify-rounded);
|
||
--app-field-radius: var(--app-vuetify-rounded);
|
||
--app-control-radius: var(--app-vuetify-rounded);
|
||
--app-overlay-radius: var(--app-vuetify-rounded);
|
||
}
|
||
|
||
html[data-theme-radius='large'] {
|
||
--app-theme-surface-radius: var(--app-vuetify-rounded-lg);
|
||
--app-field-radius: var(--app-vuetify-rounded-lg);
|
||
--app-control-radius: var(--app-vuetify-rounded-lg);
|
||
--app-overlay-radius: var(--app-vuetify-rounded-lg);
|
||
}
|
||
|
||
html[data-theme-radius='extra'] {
|
||
--app-theme-surface-radius: var(--app-vuetify-rounded-xl);
|
||
--app-field-radius: var(--app-vuetify-rounded-xl);
|
||
--app-control-radius: var(--app-vuetify-rounded-xl);
|
||
--app-overlay-radius: var(--app-vuetify-rounded-xl);
|
||
}
|
||
|
||
@for $level from 1 through 24 {
|
||
html[data-theme-shadow='#{$level}'] {
|
||
--app-card-rest-shadow: var(--app-elevation-#{app-clamp-elevation($level - 1)});
|
||
--app-card-hover-shadow: var(--app-elevation-#{app-clamp-elevation($level + 1)});
|
||
--app-fab-shadow: var(--app-elevation-#{$level});
|
||
--app-fab-shadow-active: var(--app-elevation-#{app-clamp-elevation($level - 2)});
|
||
--app-fab-shadow-hover: var(--app-elevation-#{app-clamp-elevation($level + 3)});
|
||
--app-fab-shadow-strong: var(--app-elevation-#{app-clamp-elevation($level + 2)});
|
||
--app-fab-shadow-strong-hover: var(--app-elevation-#{app-clamp-elevation($level + 4)});
|
||
--app-overlay-shadow: var(--app-elevation-#{app-clamp-elevation($level + 6)});
|
||
--app-surface-shadow: var(--app-elevation-#{$level});
|
||
--app-surface-hover-shadow: var(--app-elevation-#{app-clamp-elevation($level + 2)});
|
||
}
|
||
}
|
||
|
||
// 进度条样式
|
||
#nprogress .bar {
|
||
background: rgb(var(--v-theme-primary)) !important;
|
||
inset-block-start: env(safe-area-inset-top) !important;
|
||
}
|
||
|
||
#nprogress .peg {
|
||
box-shadow: 0 0 10px rgb(var(--v-theme-primary)), 0 0 5px rgb(var(--v-theme-primary)) !important;
|
||
inline-size: 5px;
|
||
transform: rotate(0deg) translate(0, 0);
|
||
}
|
||
|
||
// 卡片高度匹配
|
||
.match-height.v-row {
|
||
.v-card {
|
||
block-size: 100%;
|
||
}
|
||
}
|
||
|
||
// 统一系统内主要 surface 的边框、圆角和阴影,局部组件通过变量覆盖。
|
||
.app-surface,
|
||
.v-card,
|
||
.v-sheet,
|
||
.v-list,
|
||
.v-expansion-panel {
|
||
border-radius: var(--app-surface-radius) !important;
|
||
box-shadow: var(--app-surface-shadow) !important;
|
||
transition: border-color 0.2s ease, border-radius 0.2s ease, box-shadow 0.2s ease;
|
||
}
|
||
|
||
.app-surface-static {
|
||
border-radius: var(--app-surface-radius) !important;
|
||
box-shadow: var(--app-surface-shadow) !important;
|
||
}
|
||
|
||
.app-surface-static:hover {
|
||
box-shadow: var(--app-surface-shadow) !important;
|
||
}
|
||
|
||
// 统一卡片上浮反馈;hover 命中区域应放在静止外层,避免上浮后底边反复触发 mouseleave。
|
||
.v-card.app-hover-lift-card,
|
||
.subscribe-card-shell {
|
||
border: var(--app-card-light-border);
|
||
}
|
||
|
||
.app-hover-lift-card {
|
||
transform: translateZ(0);
|
||
transition: transform 0.3s ease, box-shadow 0.2s ease;
|
||
}
|
||
|
||
.app-hover-lift-card--hovering {
|
||
transform: translate3d(0, -0.25rem, 0);
|
||
}
|
||
|
||
// 全局页面与 overlay 动效:短距离、轻缩放,保持快速但不生硬。
|
||
.mp-page-route {
|
||
inline-size: 100%;
|
||
min-block-size: 100%;
|
||
}
|
||
|
||
.mp-page-route--entering {
|
||
animation: mp-page-route-enter var(--mp-motion-duration-page) var(--mp-motion-ease-standard) both;
|
||
will-change: opacity, transform;
|
||
}
|
||
|
||
@keyframes mp-page-route-enter {
|
||
from {
|
||
filter: blur(1px);
|
||
opacity: 0;
|
||
transform: translate3d(0, 0.5rem, 0) scale(0.992);
|
||
}
|
||
|
||
to {
|
||
filter: blur(0);
|
||
opacity: 1;
|
||
transform: translate3d(0, 0, 0) scale(1);
|
||
}
|
||
}
|
||
|
||
.mp-page-enter-active,
|
||
.mp-page-leave-active {
|
||
backface-visibility: hidden;
|
||
transform-origin: center top;
|
||
transition:
|
||
opacity var(--mp-motion-duration-page) var(--mp-motion-ease-standard),
|
||
transform var(--mp-motion-duration-page) var(--mp-motion-ease-standard),
|
||
filter var(--mp-motion-duration-page) var(--mp-motion-ease-standard);
|
||
will-change: opacity, transform;
|
||
}
|
||
|
||
.mp-page-leave-active {
|
||
transition-duration: 120ms;
|
||
transition-timing-function: var(--mp-motion-ease-exit);
|
||
}
|
||
|
||
.mp-page-enter-from {
|
||
filter: blur(1px);
|
||
opacity: 0;
|
||
transform: translate3d(0, 0.5rem, 0) scale(0.992);
|
||
}
|
||
|
||
.mp-page-leave-to {
|
||
opacity: 0;
|
||
transform: translate3d(0, -0.25rem, 0) scale(0.998);
|
||
}
|
||
|
||
.mp-dialog-transition-enter-active,
|
||
.mp-dialog-transition-leave-active,
|
||
.dialog-transition-enter-active,
|
||
.dialog-transition-leave-active,
|
||
.v-overlay__content.mp-dialog-transition-enter-active,
|
||
.v-overlay__content.mp-dialog-transition-leave-active,
|
||
.v-overlay__content.dialog-transition-enter-active,
|
||
.v-overlay__content.dialog-transition-leave-active {
|
||
transition:
|
||
opacity var(--mp-motion-duration-overlay) var(--mp-motion-ease-standard),
|
||
transform var(--mp-motion-duration-overlay) var(--mp-motion-ease-standard),
|
||
filter var(--mp-motion-duration-overlay) var(--mp-motion-ease-standard);
|
||
will-change: opacity, transform;
|
||
}
|
||
|
||
.mp-dialog-transition-leave-active,
|
||
.dialog-transition-leave-active {
|
||
transition-duration: 120ms;
|
||
transition-timing-function: var(--mp-motion-ease-exit);
|
||
}
|
||
|
||
.mp-dialog-transition-enter-from,
|
||
.mp-dialog-transition-leave-to,
|
||
.dialog-transition-enter-from,
|
||
.dialog-transition-leave-to {
|
||
filter: blur(0.5px);
|
||
opacity: 0;
|
||
transform: translate3d(0, 0.625rem, 0) scale(0.985);
|
||
}
|
||
|
||
.mp-popover-transition-enter-active,
|
||
.mp-popover-transition-leave-active,
|
||
.v-overlay__content.mp-popover-transition-enter-active,
|
||
.v-overlay__content.mp-popover-transition-leave-active {
|
||
transition:
|
||
opacity 120ms var(--mp-motion-ease-standard),
|
||
transform 120ms var(--mp-motion-ease-standard);
|
||
will-change: opacity, transform;
|
||
}
|
||
|
||
.mp-popover-transition-leave-active {
|
||
transition-duration: 90ms;
|
||
transition-timing-function: var(--mp-motion-ease-exit);
|
||
}
|
||
|
||
.mp-popover-transition-enter-from,
|
||
.mp-popover-transition-leave-to {
|
||
opacity: 0;
|
||
transform: translate3d(0, -0.25rem, 0) scale(0.98);
|
||
}
|
||
|
||
.mp-bottom-sheet-transition-enter-active,
|
||
.mp-bottom-sheet-transition-leave-active,
|
||
.dialog-bottom-transition-enter-active,
|
||
.dialog-bottom-transition-leave-active,
|
||
.v-overlay__content.mp-bottom-sheet-transition-enter-active,
|
||
.v-overlay__content.mp-bottom-sheet-transition-leave-active,
|
||
.v-overlay__content.dialog-bottom-transition-enter-active,
|
||
.v-overlay__content.dialog-bottom-transition-leave-active {
|
||
transition:
|
||
opacity var(--mp-motion-duration-overlay) var(--mp-motion-ease-standard),
|
||
transform var(--mp-motion-duration-overlay) var(--mp-motion-ease-standard);
|
||
will-change: opacity, transform;
|
||
}
|
||
|
||
.mp-bottom-sheet-transition-leave-active,
|
||
.dialog-bottom-transition-leave-active {
|
||
transition-duration: 120ms;
|
||
transition-timing-function: var(--mp-motion-ease-exit);
|
||
}
|
||
|
||
.mp-bottom-sheet-transition-enter-from,
|
||
.mp-bottom-sheet-transition-leave-to,
|
||
.dialog-bottom-transition-enter-from,
|
||
.dialog-bottom-transition-leave-to {
|
||
opacity: 0;
|
||
transform: translate3d(0, 1.25rem, 0);
|
||
}
|
||
|
||
.v-dialog > .v-overlay__content {
|
||
transform-origin: center;
|
||
}
|
||
|
||
.v-menu > .v-overlay__content,
|
||
.v-tooltip > .v-overlay__content {
|
||
transform-origin: top center;
|
||
}
|
||
|
||
.v-overlay__scrim,
|
||
.v-navigation-drawer__scrim {
|
||
transition:
|
||
background-color var(--mp-motion-duration-overlay) var(--mp-motion-ease-standard),
|
||
opacity var(--mp-motion-duration-overlay) var(--mp-motion-ease-standard);
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.mp-page-route--entering {
|
||
animation-duration: 1ms !important;
|
||
}
|
||
|
||
.mp-page-enter-active,
|
||
.mp-page-leave-active,
|
||
.mp-dialog-transition-enter-active,
|
||
.mp-dialog-transition-leave-active,
|
||
.dialog-transition-enter-active,
|
||
.dialog-transition-leave-active,
|
||
.mp-popover-transition-enter-active,
|
||
.mp-popover-transition-leave-active,
|
||
.mp-bottom-sheet-transition-enter-active,
|
||
.mp-bottom-sheet-transition-leave-active,
|
||
.dialog-bottom-transition-enter-active,
|
||
.dialog-bottom-transition-leave-active {
|
||
transition-duration: 1ms !important;
|
||
}
|
||
|
||
.mp-page-enter-from,
|
||
.mp-page-leave-to,
|
||
.mp-dialog-transition-enter-from,
|
||
.mp-dialog-transition-leave-to,
|
||
.dialog-transition-enter-from,
|
||
.dialog-transition-leave-to,
|
||
.mp-popover-transition-enter-from,
|
||
.mp-popover-transition-leave-to,
|
||
.mp-bottom-sheet-transition-enter-from,
|
||
.mp-bottom-sheet-transition-leave-to,
|
||
.dialog-bottom-transition-enter-from,
|
||
.dialog-bottom-transition-leave-to {
|
||
filter: none !important;
|
||
transform: none !important;
|
||
}
|
||
}
|
||
|
||
// 底部导航卡片原本就是胶囊形态,不参与主题圆角切换。
|
||
.footer-nav-card.v-card {
|
||
--app-surface-radius: 9999px;
|
||
}
|
||
|
||
@media (hover: hover) {
|
||
.app-surface:hover,
|
||
.v-card:hover,
|
||
.v-sheet:hover,
|
||
.v-list:hover,
|
||
.v-expansion-panel:hover {
|
||
box-shadow: var(--app-surface-hover-shadow) !important;
|
||
}
|
||
}
|
||
|
||
// 局部需要退出全局 surface 风格时使用这些工具类,避免再用 !important 抢优先级。
|
||
.app-surface-borderless {
|
||
--app-surface-border: 0 solid transparent;
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
// 自定义字段圆角时,outlined 字段带左侧 inner icon 需要同步放大左侧描边弧度。
|
||
.v-field:not(
|
||
.v-field--variant-plain,
|
||
.v-field--variant-underlined,
|
||
.v-field--rounded,
|
||
[class^='rounded-'],
|
||
[class*=' rounded-']
|
||
).v-field--variant-outlined.v-field--prepended {
|
||
--app-field-outline-start-size: max(12px, calc(var(--app-field-radius) + 8px));
|
||
|
||
.v-field__outline__start {
|
||
flex-basis: var(--app-field-outline-start-size);
|
||
}
|
||
|
||
.v-field__outline__notch {
|
||
max-inline-size: calc(100% - var(--app-field-outline-start-size));
|
||
}
|
||
}
|
||
|
||
.v-btn:not(.v-btn--variant-plain, .v-btn--variant-text, .v-btn--flat, .theme-horizontal-nav__item) {
|
||
box-shadow: var(--app-surface-shadow) !important;
|
||
transition: box-shadow 0.2s ease;
|
||
}
|
||
|
||
.v-btn:not(.v-btn--rounded, .v-btn--flat, .v-btn--icon, [class^='rounded-'], [class*=' rounded-']) {
|
||
border-radius: var(--app-control-radius);
|
||
transition: border-radius 0.2s ease;
|
||
}
|
||
|
||
.v-btn-group:not(.v-btn-group--variant-plain, .v-btn-group--variant-text) {
|
||
border-radius: var(--app-control-radius);
|
||
box-shadow: var(--app-surface-shadow) !important;
|
||
transition: box-shadow 0.2s ease, border-radius 0.2s ease;
|
||
}
|
||
|
||
// 只给外层卡片和弹窗外壳保留阴影,内部 surface / control / elevation 工具类统一保持平面,避免多层阴影叠加。
|
||
.v-card :where(
|
||
.app-surface,
|
||
.app-surface-static,
|
||
.v-alert,
|
||
.v-avatar,
|
||
.v-btn,
|
||
.v-btn-group,
|
||
.v-card,
|
||
.v-chip,
|
||
.v-expansion-panel,
|
||
.v-expansion-panel__shadow,
|
||
.v-list,
|
||
.v-navigation-drawer,
|
||
.v-sheet,
|
||
.v-stepper,
|
||
.v-table,
|
||
.v-toolbar,
|
||
.v-window,
|
||
[class^='elevation-'],
|
||
[class*=' elevation-'],
|
||
[class^='shadow-'],
|
||
[class*=' shadow-']
|
||
),
|
||
.v-overlay__content > .v-card :where(
|
||
.app-surface,
|
||
.app-surface-static,
|
||
.v-alert,
|
||
.v-avatar,
|
||
.v-btn,
|
||
.v-btn-group,
|
||
.v-card,
|
||
.v-chip,
|
||
.v-expansion-panel,
|
||
.v-expansion-panel__shadow,
|
||
.v-list,
|
||
.v-navigation-drawer,
|
||
.v-sheet,
|
||
.v-stepper,
|
||
.v-table,
|
||
.v-toolbar,
|
||
.v-window,
|
||
[class^='elevation-'],
|
||
[class*=' elevation-'],
|
||
[class^='shadow-'],
|
||
[class*=' shadow-']
|
||
),
|
||
.v-overlay__content > .v-sheet :where(
|
||
.app-surface,
|
||
.app-surface-static,
|
||
.v-alert,
|
||
.v-avatar,
|
||
.v-btn,
|
||
.v-btn-group,
|
||
.v-card,
|
||
.v-chip,
|
||
.v-expansion-panel,
|
||
.v-expansion-panel__shadow,
|
||
.v-list,
|
||
.v-navigation-drawer,
|
||
.v-sheet,
|
||
.v-stepper,
|
||
.v-table,
|
||
.v-toolbar,
|
||
.v-window,
|
||
[class^='elevation-'],
|
||
[class*=' elevation-'],
|
||
[class^='shadow-'],
|
||
[class*=' shadow-']
|
||
),
|
||
.v-overlay__content > form > .v-card :where(
|
||
.app-surface,
|
||
.app-surface-static,
|
||
.v-alert,
|
||
.v-avatar,
|
||
.v-btn,
|
||
.v-btn-group,
|
||
.v-card,
|
||
.v-chip,
|
||
.v-expansion-panel,
|
||
.v-expansion-panel__shadow,
|
||
.v-list,
|
||
.v-navigation-drawer,
|
||
.v-sheet,
|
||
.v-stepper,
|
||
.v-table,
|
||
.v-toolbar,
|
||
.v-window,
|
||
[class^='elevation-'],
|
||
[class*=' elevation-'],
|
||
[class^='shadow-'],
|
||
[class*=' shadow-']
|
||
),
|
||
.v-overlay__content > form > .v-sheet :where(
|
||
.app-surface,
|
||
.app-surface-static,
|
||
.v-alert,
|
||
.v-avatar,
|
||
.v-btn,
|
||
.v-btn-group,
|
||
.v-card,
|
||
.v-chip,
|
||
.v-expansion-panel,
|
||
.v-expansion-panel__shadow,
|
||
.v-list,
|
||
.v-navigation-drawer,
|
||
.v-sheet,
|
||
.v-stepper,
|
||
.v-table,
|
||
.v-toolbar,
|
||
.v-window,
|
||
[class^='elevation-'],
|
||
[class*=' elevation-'],
|
||
[class^='shadow-'],
|
||
[class*=' shadow-']
|
||
) {
|
||
--app-card-hover-shadow: none;
|
||
--app-card-rest-shadow: none;
|
||
--app-fab-shadow: none;
|
||
--app-fab-shadow-active: none;
|
||
--app-fab-shadow-hover: none;
|
||
--app-fab-shadow-strong: none;
|
||
--app-fab-shadow-strong-hover: none;
|
||
--app-surface-hover-shadow: none;
|
||
--app-surface-shadow: none;
|
||
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
// 主题定制器的 bordered 皮肤:保持原布局密度,只给非 Vuetify 外壳增加清晰边界。
|
||
html[data-theme-skin='bordered'] {
|
||
.layout-vertical-nav {
|
||
border: var(--app-surface-border);
|
||
}
|
||
|
||
.navbar-content-container {
|
||
border-block-end: var(--app-surface-border);
|
||
}
|
||
|
||
.layout-vertical-nav {
|
||
border-block: 0;
|
||
border-inline-start: 0;
|
||
}
|
||
|
||
.app-surface,
|
||
.v-card,
|
||
.v-sheet,
|
||
.v-list,
|
||
.v-expansion-panel {
|
||
border: var(--app-surface-border);
|
||
}
|
||
}
|
||
|
||
// 应用类信息卡片:固定右侧媒体槽位,避免图片被左侧文字挤压变形。
|
||
.app-card-shell {
|
||
position: relative;
|
||
border: var(--app-card-light-border);
|
||
block-size: 100%;
|
||
}
|
||
|
||
// 设置项强调卡片:复用通知模板入口的弱强调条、轻渐变与悬浮反馈。
|
||
.app-card-colorful {
|
||
overflow: hidden;
|
||
border-radius: var(--app-surface-radius);
|
||
background:
|
||
linear-gradient(
|
||
135deg,
|
||
rgba(var(--app-card-accent-rgb), var(--app-card-accent-start-opacity)),
|
||
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));
|
||
color: rgb(var(--v-theme-on-surface));
|
||
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
|
||
|
||
--app-card-accent-rgb: var(--v-theme-primary);
|
||
--app-card-accent-end-rgb: var(--app-card-accent-rgb);
|
||
--app-card-accent-start-opacity: 0.025;
|
||
--app-card-accent-end-opacity: 0.012;
|
||
--app-card-border-opacity: 0.08;
|
||
--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);
|
||
}
|
||
|
||
.app-card-colorful::before {
|
||
position: absolute;
|
||
background: rgb(var(--app-card-accent-rgb));
|
||
block-size: 100%;
|
||
content: "";
|
||
inline-size: 0.125rem;
|
||
inset-block: 0;
|
||
inset-inline-start: 0;
|
||
opacity: var(--app-card-stripe-opacity);
|
||
pointer-events: none;
|
||
}
|
||
|
||
.app-card-colorful:hover {
|
||
--app-surface-border: 1px solid rgba(var(--app-card-accent-rgb), var(--app-card-hover-border-opacity));
|
||
}
|
||
|
||
.app-card-colorful:focus-visible {
|
||
outline: 2px solid rgba(var(--app-card-accent-rgb), 0.7);
|
||
outline-offset: 3px;
|
||
}
|
||
|
||
.app-card-color-probe {
|
||
position: absolute;
|
||
block-size: 3rem;
|
||
inline-size: 3rem;
|
||
inset-block-start: 0;
|
||
inset-inline-start: 0;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
}
|
||
|
||
html[data-theme="transparent"] .app-card-colorful,
|
||
.v-theme--transparent .app-card-colorful {
|
||
backdrop-filter: blur(var(--transparent-blur, 10px));
|
||
|
||
--app-card-accent-start-opacity: 0.018;
|
||
--app-card-accent-end-opacity: 0.01;
|
||
--app-card-border-opacity: 0;
|
||
--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;
|
||
}
|
||
|
||
// 保证卡片右上角的浮动操作区始终高于可点击的卡片内容层,避免误触发详情打开。
|
||
.app-card-top-action {
|
||
z-index: 2;
|
||
}
|
||
|
||
.app-card-summary {
|
||
position: relative;
|
||
display: flex;
|
||
overflow: hidden;
|
||
align-items: stretch;
|
||
justify-content: flex-start;
|
||
block-size: 7.5rem;
|
||
min-block-size: 7.5rem;
|
||
}
|
||
|
||
.app-card-summary__content {
|
||
position: relative;
|
||
z-index: 1;
|
||
display: flex;
|
||
flex: 1 1 auto;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
min-inline-size: 0;
|
||
padding-block: 0.25rem 0.5rem;
|
||
row-gap: 0.25rem;
|
||
}
|
||
|
||
.app-card-summary__title-row {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
column-gap: 0.25rem;
|
||
min-inline-size: 0;
|
||
}
|
||
|
||
.app-card-summary__title-row > .v-badge {
|
||
flex-shrink: 0;
|
||
align-self: center;
|
||
}
|
||
|
||
.app-card-summary__subtitle,
|
||
.app-card-summary__meta-item {
|
||
overflow: hidden;
|
||
min-inline-size: 0;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.app-card-summary__title {
|
||
display: -webkit-box;
|
||
overflow: hidden;
|
||
flex: 0 0 auto;
|
||
-webkit-box-orient: vertical;
|
||
-webkit-line-clamp: 2;
|
||
line-clamp: 2;
|
||
line-height: 1.35;
|
||
max-block-size: calc(1.35em * 2);
|
||
min-inline-size: 0;
|
||
text-overflow: ellipsis;
|
||
white-space: normal;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.app-card-summary__title-row .app-card-summary__title {
|
||
flex: 1 1 auto;
|
||
}
|
||
|
||
.app-card-summary__meta {
|
||
display: flex;
|
||
overflow: hidden;
|
||
align-items: center;
|
||
column-gap: 0.5rem;
|
||
min-block-size: 1.5rem;
|
||
min-inline-size: 0;
|
||
}
|
||
|
||
.app-card-summary--single-action .app-card-summary__content {
|
||
padding-inline-end: 3.75rem;
|
||
}
|
||
|
||
.app-card-summary--double-action .app-card-summary__content {
|
||
padding-inline-end: 5rem;
|
||
}
|
||
|
||
.app-card-summary--title-subtitle {
|
||
padding-block: 0.75rem !important;
|
||
}
|
||
|
||
.app-card-summary--title-subtitle .app-card-summary__content {
|
||
justify-content: space-between;
|
||
block-size: 100%;
|
||
padding-block: 0;
|
||
}
|
||
|
||
.app-card-summary--title-subtitle .app-card-summary__title {
|
||
flex: 0 1 auto;
|
||
}
|
||
|
||
.app-card-summary--title-subtitle .app-card-summary__subtitle {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.app-card-summary__media {
|
||
position: absolute;
|
||
z-index: 0;
|
||
display: flex;
|
||
align-items: flex-end;
|
||
justify-content: flex-end;
|
||
inset-block-end: 0.75rem;
|
||
inset-inline-end: 1rem;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.app-card-summary--single-action .app-card-summary__media,
|
||
.app-card-summary--double-action .app-card-summary__media {
|
||
inset-inline-end: 1rem;
|
||
}
|
||
|
||
.app-card-summary__image {
|
||
flex-shrink: 0;
|
||
block-size: 3.5rem;
|
||
inline-size: 3.5rem;
|
||
max-block-size: 3.5rem;
|
||
max-inline-size: 3.5rem;
|
||
min-block-size: 3.5rem;
|
||
min-inline-size: 3.5rem;
|
||
}
|
||
|
||
.app-card-summary__image .v-img__img {
|
||
object-fit: contain;
|
||
}
|
||
|
||
// Toast通知样式
|
||
.Vue-Toastification__container {
|
||
z-index: 2500;
|
||
margin-block: env(safe-area-inset-top) env(safe-area-inset-bottom);
|
||
}
|
||
|
||
@media only screen and (width <= 600px){
|
||
.Vue-Toastification__container {
|
||
inline-size: 100vw;
|
||
padding-block: 4.5rem;
|
||
padding-inline: 1rem;
|
||
}
|
||
}
|
||
|
||
.Vue-Toastification__toast {
|
||
border-radius: var(--app-overlay-radius);
|
||
box-shadow: var(--app-overlay-shadow);
|
||
}
|
||
|
||
// 对话框样式
|
||
.v-dialog > .v-overlay__content > .v-card > .v-card-item {
|
||
padding: 16px;
|
||
}
|
||
|
||
// 弹窗底部左右动作区:对齐插件仓库设置弹窗的按钮间距、主次样式和移动端铺排。
|
||
.app-dialog-actions {
|
||
flex: 0 0 auto;
|
||
gap: 0.5rem;
|
||
padding-block: 0.75rem 1rem !important;
|
||
padding-inline: 1.5rem !important;
|
||
|
||
> .v-btn {
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
> .app-dialog-actions__icon-btn {
|
||
inline-size: 2.5rem;
|
||
min-inline-size: 2.5rem;
|
||
padding-inline: 0;
|
||
}
|
||
}
|
||
|
||
@media (width <= 960px) {
|
||
.app-dialog-actions {
|
||
padding-block-end: calc(0.75rem + env(safe-area-inset-bottom)) !important;
|
||
}
|
||
}
|
||
|
||
@media (width <= 600px) {
|
||
.app-dialog-actions {
|
||
flex-wrap: wrap;
|
||
padding-block: 0.75rem calc(0.75rem + env(safe-area-inset-bottom)) !important;
|
||
padding-inline: 1rem !important;
|
||
|
||
> .v-btn:not(.app-dialog-actions__icon-btn) {
|
||
flex: 1 1 9rem;
|
||
min-inline-size: 0;
|
||
}
|
||
|
||
> .app-dialog-actions__icon-btn {
|
||
flex: 0 0 2.75rem;
|
||
inline-size: 2.75rem;
|
||
min-inline-size: 2.75rem;
|
||
}
|
||
|
||
> .v-spacer {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
// 路由过渡动画
|
||
.fade-slide-leave-active,
|
||
.fade-slide-enter-active {
|
||
transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
|
||
}
|
||
|
||
.fade-slide-enter-from {
|
||
opacity: 0;
|
||
transform: translateX(20px);
|
||
}
|
||
|
||
.fade-slide-leave-to {
|
||
opacity: 0;
|
||
transform: translateX(20px);
|
||
}
|
||
|
||
// 网格布局样式
|
||
.grid-info-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
|
||
padding-block-end: 1rem;
|
||
}
|
||
|
||
.grid-site-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
||
padding-block-end: 1rem;
|
||
}
|
||
|
||
.grid-media-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
|
||
}
|
||
|
||
.grid-backdrop-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
|
||
}
|
||
|
||
.grid-torrent-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
|
||
}
|
||
|
||
.grid-plugin-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
||
}
|
||
|
||
.grid-downloading-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
|
||
}
|
||
|
||
.grid-directory-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
|
||
}
|
||
|
||
.grid-filterrule-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
|
||
}
|
||
|
||
.grid-customrule-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
|
||
}
|
||
|
||
.grid-subscribe-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
|
||
}
|
||
|
||
.grid-user-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
|
||
}
|
||
|
||
.grid-app-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
||
}
|
||
|
||
.grid-workflow-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
|
||
}
|
||
|
||
.grid-workflow-share-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
|
||
}
|
||
|
||
// 文本样式
|
||
.text-moviepilot {
|
||
background-clip: text;
|
||
background-image: linear-gradient(to bottom right,var(--tw-gradient-stops));
|
||
color: transparent;
|
||
|
||
--tw-gradient-from: #818cf8;
|
||
--tw-gradient-stops: var(--tw-gradient-from),var(--tw-gradient-to);
|
||
--tw-gradient-to: #c084fc;
|
||
}
|
||
|
||
.text-shadow {
|
||
text-shadow: 1px 1px #777;
|
||
}
|
||
|
||
// 滑块标题样式
|
||
.slider-header {
|
||
position: relative;
|
||
display: flex;
|
||
}
|
||
|
||
.slider-title {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
font-size: 1.25rem;
|
||
font-weight: 700;
|
||
line-height: 1.75rem;
|
||
}
|
||
|
||
@media (width >= 640px){
|
||
.slider-title {
|
||
overflow: hidden;
|
||
font-size: 1.5rem;
|
||
line-height: 2.25rem;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
}
|
||
|
||
// 滚动条样式
|
||
::-webkit-scrollbar {
|
||
block-size: 4px;
|
||
inline-size: 4px;
|
||
opacity: 0;
|
||
transition: opacity 0.3s;
|
||
}
|
||
|
||
::-webkit-scrollbar-thumb {
|
||
border-radius: 2px;
|
||
background: rgb(var(--v-theme-perfect-scrollbar-thumb));
|
||
box-shadow: inset 0 0 10px rgba(0,0,0,20%);
|
||
|
||
@media(hover){
|
||
&:hover{
|
||
background: #a1a1a1;
|
||
}
|
||
}
|
||
}
|
||
|
||
*:hover::-webkit-scrollbar {
|
||
opacity: 1;
|
||
}
|
||
|
||
*:active::-webkit-scrollbar {
|
||
opacity: 1;
|
||
}
|
||
|
||
// 组件样式
|
||
.v-alert--variant-elevated, .v-alert--variant-flat {
|
||
border-radius: var(--app-surface-radius);
|
||
background: rgb(var(--v-table-header-background));
|
||
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
||
}
|
||
|
||
.backdrop-blur {
|
||
--tw-backdrop-blur: blur(8px)!important;
|
||
|
||
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;
|
||
}
|
||
|
||
.v-toolbar{
|
||
background: rgb(var(--v-table-header-background));
|
||
}
|
||
|
||
.v-divider {
|
||
border-color: rgba(var(--v-theme-on-background), var(--v-selected-opacity));
|
||
opacity:0.75;
|
||
}
|
||
|
||
:root {
|
||
--agent-assistant-fab-offset: 30rem;
|
||
--theme-customizer-fab-offset: 420px;
|
||
}
|
||
|
||
// 紧凑型悬浮操作按钮
|
||
.compact-fab-stack {
|
||
position: fixed;
|
||
z-index: 1100;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-end;
|
||
gap: 0.75rem;
|
||
inset-block-end: max(1rem, calc(env(safe-area-inset-bottom) + 1rem));
|
||
inset-inline-end: max(1rem, calc(env(safe-area-inset-right) + 1rem));
|
||
pointer-events: none;
|
||
transition: inset-inline-end 0.2s ease;
|
||
}
|
||
|
||
.compact-fab-stack > * {
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.compact-fab-stack > :last-child {
|
||
position: relative;
|
||
z-index: 1;
|
||
}
|
||
|
||
.compact-fab-stack--history {
|
||
inset-block-end: max(4.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
|
||
}
|
||
|
||
.compact-fab.v-fab {
|
||
display: inline-flex;
|
||
overflow: visible;
|
||
flex: none;
|
||
min-inline-size: 0 !important;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.compact-fab .v-fab__container {
|
||
position: static;
|
||
display: inline-flex;
|
||
overflow: visible;
|
||
margin: 0 !important;
|
||
}
|
||
|
||
.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);
|
||
opacity: 0.98;
|
||
transition:
|
||
transform 0.18s ease,
|
||
box-shadow 0.18s ease,
|
||
filter 0.18s ease,
|
||
opacity 0.18s ease;
|
||
}
|
||
|
||
.compact-fab--primary .v-btn {
|
||
block-size: 3rem !important;
|
||
box-shadow: var(--app-fab-shadow-strong);
|
||
inline-size: 3rem !important;
|
||
}
|
||
|
||
.compact-fab--secondary .v-btn {
|
||
block-size: 3rem !important;
|
||
inline-size: 3rem !important;
|
||
}
|
||
|
||
.compact-fab--primary .v-icon {
|
||
font-size: 1.75rem !important;
|
||
}
|
||
|
||
.compact-fab--secondary .v-icon {
|
||
font-size: 1.75rem !important;
|
||
}
|
||
|
||
@media (hover: hover) {
|
||
.compact-fab .v-btn:hover {
|
||
box-shadow: var(--app-fab-shadow-hover);
|
||
}
|
||
|
||
.compact-fab--primary .v-btn:hover {
|
||
box-shadow: var(--app-fab-shadow-strong-hover);
|
||
}
|
||
}
|
||
|
||
@media (hover: hover) and (pointer: fine) and (width > 768px) {
|
||
.compact-fab .v-btn {
|
||
backdrop-filter: blur(18px) saturate(1.12);
|
||
opacity: 1;
|
||
}
|
||
|
||
.compact-fab-stack:not(:has(> :nth-child(2))) .compact-fab--primary .v-btn {
|
||
background-color: rgba(var(--v-theme-primary), 0.82) !important;
|
||
color: rgb(var(--v-theme-on-primary)) !important;
|
||
}
|
||
|
||
.compact-fab-stack:not(:has(> :nth-child(2))):hover .compact-fab--primary .v-btn,
|
||
.compact-fab-stack:not(:has(> :nth-child(2))):focus-within .compact-fab--primary .v-btn {
|
||
background-color: rgb(var(--v-theme-primary)) !important;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(2)) {
|
||
--compact-fab-step: 3.75rem;
|
||
|
||
padding-block-start: calc((var(--compact-fab-count, 8) - 1) * var(--compact-fab-step));
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(2)):hover,
|
||
.compact-fab-stack:has(> :nth-child(2)):focus-within {
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(2):last-child) {
|
||
--compact-fab-count: 2;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(3):last-child) {
|
||
--compact-fab-count: 3;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(4):last-child) {
|
||
--compact-fab-count: 4;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(5):last-child) {
|
||
--compact-fab-count: 5;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(6):last-child) {
|
||
--compact-fab-count: 6;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(7):last-child) {
|
||
--compact-fab-count: 7;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(8):last-child) {
|
||
--compact-fab-count: 8;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(2)) > :not(:last-child) {
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transform: translateY(calc(var(--compact-fab-order, 1) * var(--compact-fab-step)));
|
||
transition:
|
||
opacity 0.12s ease,
|
||
transform 0.12s ease;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(2)):not(:hover, :focus-within) > :last-child .v-icon {
|
||
opacity: 0;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(2)):not(:hover, :focus-within) > :last-child .v-btn {
|
||
border-color: transparent;
|
||
background-color: rgba(var(--v-theme-primary), 0.82) !important;
|
||
box-shadow: var(--app-fab-shadow-strong);
|
||
color: rgb(var(--v-theme-on-primary)) !important;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(2)):not(:hover, :focus-within) > :last-child .v-btn__content {
|
||
position: relative;
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(2)):not(:hover, :focus-within) > :last-child .v-btn__content::before {
|
||
position: absolute;
|
||
display: block;
|
||
background: radial-gradient(circle, currentcolor 0 34%, transparent 40%) 0 0 / 0.35rem 0.35rem;
|
||
block-size: 1.05rem;
|
||
content: '';
|
||
inline-size: 1.05rem;
|
||
inset-block-start: 50%;
|
||
inset-inline-start: 50%;
|
||
transform: translate(-50%, -50%);
|
||
}
|
||
|
||
.compact-fab-stack:has(> :nth-child(2)):hover > :not(:last-child),
|
||
.compact-fab-stack:has(> :nth-child(2)):focus-within > :not(:last-child) {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.compact-fab-stack > :nth-last-child(2) {
|
||
--compact-fab-order: 1;
|
||
}
|
||
|
||
.compact-fab-stack > :nth-last-child(3) {
|
||
--compact-fab-order: 2;
|
||
}
|
||
|
||
.compact-fab-stack > :nth-last-child(4) {
|
||
--compact-fab-order: 3;
|
||
}
|
||
|
||
.compact-fab-stack > :nth-last-child(5) {
|
||
--compact-fab-order: 4;
|
||
}
|
||
|
||
.compact-fab-stack > :nth-last-child(6) {
|
||
--compact-fab-order: 5;
|
||
}
|
||
|
||
.compact-fab-stack > :nth-last-child(7) {
|
||
--compact-fab-order: 6;
|
||
}
|
||
|
||
.compact-fab-stack > :nth-last-child(8) {
|
||
--compact-fab-order: 7;
|
||
}
|
||
}
|
||
|
||
.compact-fab .v-btn:active {
|
||
box-shadow: var(--app-fab-shadow-active);
|
||
transform: translateY(0) scale(0.98);
|
||
}
|
||
|
||
@media (width <= 768px) {
|
||
.compact-fab-stack {
|
||
gap: 0.625rem;
|
||
inset-block-end: max(0.875rem, calc(env(safe-area-inset-bottom) + 0.875rem));
|
||
inset-inline-end: max(0.875rem, calc(env(safe-area-inset-right) + 0.875rem));
|
||
}
|
||
|
||
.compact-fab-stack--history {
|
||
inset-block-end: max(4rem, calc(env(safe-area-inset-bottom) + 4rem));
|
||
}
|
||
|
||
.compact-fab--primary .v-btn {
|
||
block-size: 3.5rem !important;
|
||
inline-size: 3.5rem !important;
|
||
}
|
||
|
||
.compact-fab--secondary .v-btn {
|
||
block-size: 3rem !important;
|
||
inline-size: 3rem !important;
|
||
}
|
||
}
|
||
|
||
@media (width >= 601px) {
|
||
html[data-theme-customizer-open='true'] .compact-fab-stack {
|
||
inset-inline-end: calc(var(--theme-customizer-fab-offset) + max(1rem, calc(env(safe-area-inset-right) + 1rem)));
|
||
}
|
||
|
||
html[data-theme-customizer-open='true'] .global-action-buttons {
|
||
inset-inline-end: calc(var(--theme-customizer-fab-offset) + 2rem);
|
||
}
|
||
|
||
html[data-agent-assistant-open='true'] .compact-fab-stack {
|
||
inset-inline-end: calc(var(--agent-assistant-fab-offset) + max(1rem, calc(env(safe-area-inset-right) + 1rem)));
|
||
}
|
||
|
||
html[data-agent-assistant-open='true'] .global-action-buttons {
|
||
inset-inline-end: calc(var(--agent-assistant-fab-offset) + 2rem);
|
||
}
|
||
}
|
||
|
||
@media (width >= 601px) and (width <= 768px) {
|
||
html[data-theme-customizer-open='true'] .compact-fab-stack {
|
||
inset-inline-end: calc(
|
||
var(--theme-customizer-fab-offset) + max(0.875rem, calc(env(safe-area-inset-right) + 0.875rem))
|
||
);
|
||
}
|
||
|
||
html[data-agent-assistant-open='true'] .compact-fab-stack {
|
||
inset-inline-end: calc(
|
||
var(--agent-assistant-fab-offset) + max(0.875rem, calc(env(safe-area-inset-right) + 0.875rem))
|
||
);
|
||
}
|
||
}
|
||
|
||
.apexcharts-title-text {
|
||
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)) !important;
|
||
}
|
||
|
||
.v-tabs:not(.v-tabs-pill).v-tabs--horizontal {
|
||
border-block-end: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
|
||
}
|
||
|
||
.v-fab__container {
|
||
padding-block-end: env(safe-area-inset-bottom);
|
||
}
|
||
|
||
.card-cover-blurred::before {
|
||
position: absolute;
|
||
backdrop-filter: blur(2px);
|
||
background: rgba(29, 39, 59, 48%);
|
||
content: '';
|
||
inset: 0;
|
||
}
|
||
|
||
// 弹出层样式
|
||
.v-overlay__content .v-list{
|
||
border-radius: var(--app-surface-radius);
|
||
backdrop-filter: blur(6px);
|
||
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);
|
||
backdrop-filter: blur(8px);
|
||
background-color: rgb(var(--v-theme-surface), 0.95);
|
||
box-shadow: none;
|
||
|
||
.v-list, .v-table {
|
||
backdrop-filter: none;
|
||
background-color: transparent;
|
||
box-shadow: none;
|
||
}
|
||
}
|
||
|
||
.v-menu {
|
||
.v-list-item:hover {
|
||
background-color: rgba(var(--v-theme-on-surface), 0.04);
|
||
}
|
||
}
|
||
|
||
.v-btn.v-btn--icon {
|
||
transition: opacity 0.15s ease;
|
||
}
|
||
|
||
.v-btn.v-btn--icon:hover {
|
||
opacity: 0.85;
|
||
}
|
||
|
||
.v-overlay__content {
|
||
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;
|
||
}
|
||
|
||
.v-menu > .v-overlay__content {
|
||
overflow: visible;
|
||
}
|
||
|
||
.v-dialog--fullscreen > .v-overlay__content > .v-card {
|
||
padding-block-end: calc(env(safe-area-inset-top) + env(safe-area-inset-bottom));
|
||
}
|
||
|
||
.v-dialog--fullscreen > .v-overlay__content {
|
||
display: flex;
|
||
justify-content: center;
|
||
border-radius: 0 !important;
|
||
box-shadow: none !important;
|
||
inline-size: 100%;
|
||
inset-inline: 0 !important;
|
||
margin-inline: auto;
|
||
}
|
||
|
||
// 全屏弹窗触发后,未横向铺满的卡片仍保持居中。
|
||
.v-dialog--fullscreen > .v-overlay__content > .v-card,
|
||
.v-dialog--fullscreen > .v-overlay__content > .v-sheet,
|
||
.v-dialog--fullscreen > .v-overlay__content > form {
|
||
margin-inline: auto;
|
||
max-inline-size: 100%;
|
||
}
|
||
|
||
.v-dialog > .v-overlay__content {
|
||
margin-block: env(safe-area-inset-top) env(safe-area-inset-bottom);
|
||
}
|
||
|
||
.v-bottom-sheet > .v-bottom-sheet__content.v-overlay__content > .v-card {
|
||
padding-block-end: env(safe-area-inset-bottom);
|
||
}
|
||
|
||
.v-dialog > .v-overlay__content > .v-card,
|
||
.v-dialog > .v-overlay__content > .v-sheet,
|
||
.v-dialog > .v-overlay__content > form > .v-card,
|
||
.v-dialog > .v-overlay__content > form > .v-sheet,
|
||
.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-overlay-radius) !important;
|
||
box-shadow: var(--app-overlay-shadow) !important;
|
||
}
|
||
|
||
.v-dialog--fullscreen > .v-overlay__content > .v-card,
|
||
.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 {
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
// 小屏全屏弹窗仍贴底铺满,但顶部两个角跟随主题定制器圆角。
|
||
@media (width <= 600px) {
|
||
.v-dialog--fullscreen > .v-overlay__content {
|
||
overflow: hidden;
|
||
border-end-end-radius: 0 !important;
|
||
border-end-start-radius: 0 !important;
|
||
border-start-end-radius: var(--app-overlay-radius) !important;
|
||
border-start-start-radius: var(--app-overlay-radius) !important;
|
||
}
|
||
|
||
.v-dialog--fullscreen > .v-overlay__content > .v-card,
|
||
.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-end-end-radius: 0 !important;
|
||
border-end-start-radius: 0 !important;
|
||
border-start-end-radius: var(--app-overlay-radius) !important;
|
||
border-start-start-radius: var(--app-overlay-radius) !important;
|
||
}
|
||
}
|
||
|
||
.settings-icon-button {
|
||
flex-shrink: 0;
|
||
border-radius: 0.95rem;
|
||
block-size: 2.75rem;
|
||
inline-size: 2.75rem;
|
||
margin-inline-start: 0.25rem;
|
||
min-inline-size: 2.75rem;
|
||
}
|
||
|
||
.settings-icon-button .v-icon {
|
||
font-size: 1.35rem;
|
||
}
|
||
|
||
@media (width <= 768px) {
|
||
.settings-icon-button {
|
||
border-radius: 0.825rem;
|
||
block-size: 2.5rem;
|
||
inline-size: 2.5rem;
|
||
min-inline-size: 2.5rem;
|
||
}
|
||
|
||
.settings-icon-button .v-icon {
|
||
font-size: 1.25rem;
|
||
}
|
||
}
|
||
|
||
.v-infinite-scroll__side {
|
||
padding: 0;
|
||
}
|
||
|
||
.v-menu .v-overlay__content {
|
||
box-shadow: none;
|
||
}
|