chore(web): 前端格式 - 统一十个文件的 Prettier 格式 (#561)
Original-Commit: ade0049c0b80733dfea563bac2aae9260e373cf0 style(web): 前端格式 - 补 Prettier 格式(10 个文件) 这 10 个文件(3 个组件/样式与设置页、4 个 admin 主题与控件、1 个 lib、2 个测试) 用仓库自带 Prettier 检查会 warn,`bun scripts/check-changed-formatting.mjs` 在改动到它们时 会直接判红。本次只做格式化,不改任何行为:合并的 CSS 声明、去掉多余换行与括号、 统一链式调用换行。 验证:prettier --write 后 `check-changed-formatting.mjs` 通过、typecheck 通过、 1940 条前端测试全过、eslint 通过。
This commit is contained in:
@@ -142,7 +142,9 @@
|
||||
font-weight: 500;
|
||||
line-height: 16px;
|
||||
text-decoration: none;
|
||||
transition: background-color var(--admin-motion), color var(--admin-motion);
|
||||
transition:
|
||||
background-color var(--admin-motion),
|
||||
color var(--admin-motion);
|
||||
}
|
||||
|
||||
[data-admin-root] .admin-nav-link.is-collapsed {
|
||||
@@ -651,18 +653,19 @@
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
[data-admin-root] :is(
|
||||
.admin-feature-command-bar,
|
||||
.admin-appearance-command-bar,
|
||||
.admin-access-command-bar,
|
||||
.admin-email-command-bar,
|
||||
.admin-storage-command-bar,
|
||||
.admin-ark-command-bar,
|
||||
.admin-intercept-command-bar,
|
||||
.admin-drawing-command-bar,
|
||||
.admin-runtime-policy-command-bar,
|
||||
.admin-third-party-command-bar
|
||||
) {
|
||||
[data-admin-root]
|
||||
:is(
|
||||
.admin-feature-command-bar,
|
||||
.admin-appearance-command-bar,
|
||||
.admin-access-command-bar,
|
||||
.admin-email-command-bar,
|
||||
.admin-storage-command-bar,
|
||||
.admin-ark-command-bar,
|
||||
.admin-intercept-command-bar,
|
||||
.admin-drawing-command-bar,
|
||||
.admin-runtime-policy-command-bar,
|
||||
.admin-third-party-command-bar
|
||||
) {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 8;
|
||||
@@ -681,26 +684,24 @@
|
||||
backdrop-filter: none !important;
|
||||
}
|
||||
|
||||
[data-admin-root] :is(
|
||||
.admin-feature-command-bar,
|
||||
.admin-appearance-command-bar,
|
||||
.admin-access-command-bar,
|
||||
.admin-email-command-bar,
|
||||
.admin-storage-command-bar,
|
||||
.admin-ark-command-bar,
|
||||
.admin-intercept-command-bar,
|
||||
.admin-drawing-command-bar,
|
||||
.admin-runtime-policy-command-bar,
|
||||
.admin-third-party-command-bar
|
||||
).is-dirty {
|
||||
[data-admin-root]
|
||||
:is(
|
||||
.admin-feature-command-bar,
|
||||
.admin-appearance-command-bar,
|
||||
.admin-access-command-bar,
|
||||
.admin-email-command-bar,
|
||||
.admin-storage-command-bar,
|
||||
.admin-ark-command-bar,
|
||||
.admin-intercept-command-bar,
|
||||
.admin-drawing-command-bar,
|
||||
.admin-runtime-policy-command-bar,
|
||||
.admin-third-party-command-bar
|
||||
).is-dirty {
|
||||
border-bottom-color: color-mix(in srgb, var(--admin-status-warning) 55%, var(--admin-border)) !important;
|
||||
background: color-mix(in srgb, var(--admin-status-warning) 8%, var(--admin-canvas)) !important;
|
||||
}
|
||||
|
||||
[data-admin-root] :is(
|
||||
.admin-feature-command-copy strong,
|
||||
.admin-appearance-command-copy strong
|
||||
) {
|
||||
[data-admin-root] :is(.admin-feature-command-copy strong, .admin-appearance-command-copy strong) {
|
||||
color: var(--admin-text);
|
||||
font-size: 12px;
|
||||
font-weight: 650;
|
||||
|
||||
@@ -2,15 +2,7 @@
|
||||
* Never alias --workspace-*, --user-*, or --skin-* from the product UI.
|
||||
* Light/dark follow the page theme class; product skins are ignored. */
|
||||
|
||||
:is(
|
||||
[data-admin-root],
|
||||
body.admin-overlays,
|
||||
.admin-drawer,
|
||||
.admin-secondary-drawer,
|
||||
.admin-modal-root,
|
||||
.admin-channel-modal-root,
|
||||
.admin-mobile-navigation-menu
|
||||
) {
|
||||
:is([data-admin-root], body.admin-overlays, .admin-drawer, .admin-secondary-drawer, .admin-modal-root, .admin-channel-modal-root, .admin-mobile-navigation-menu) {
|
||||
--admin-font: ui-sans-serif, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
|
||||
--admin-font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
||||
--admin-space: 8px;
|
||||
@@ -100,17 +92,12 @@
|
||||
font-family: var(--admin-font);
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
font-feature-settings: "ss01" 0, "cv11" 0;
|
||||
font-feature-settings:
|
||||
"ss01" 0,
|
||||
"cv11" 0;
|
||||
}
|
||||
|
||||
.dark :is(
|
||||
[data-admin-root],
|
||||
.admin-drawer,
|
||||
.admin-secondary-drawer,
|
||||
.admin-modal-root,
|
||||
.admin-channel-modal-root,
|
||||
.admin-mobile-navigation-menu
|
||||
),
|
||||
.dark :is([data-admin-root], .admin-drawer, .admin-secondary-drawer, .admin-modal-root, .admin-channel-modal-root, .admin-mobile-navigation-menu),
|
||||
.dark body.admin-overlays {
|
||||
--admin-canvas: #0f0f0f;
|
||||
--admin-sidebar: #0f0f0f;
|
||||
|
||||
Reference in New Issue
Block a user