forked from bai/curriculum-project-hub
style(admin-web): apply Prettier formatting
Run `prettier --write .` across all source files. Changes are purely formatting: trailing commas, line wrapping at 120 chars, import reordering, and CSS whitespace. No logic changes. Verified with `prettier --check .` and `svelte-check` (0 errors, 0 warnings).
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
/* Flat industrial: zero radius, higher-contrast surfaces, CJK-first type */
|
||||
@theme {
|
||||
--font-sans:
|
||||
'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Inter', ui-sans-serif,
|
||||
system-ui, -apple-system, 'Segoe UI', sans-serif;
|
||||
'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Inter', ui-sans-serif, system-ui,
|
||||
-apple-system, 'Segoe UI', sans-serif;
|
||||
--font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
|
||||
|
||||
--radius-none: 0;
|
||||
@@ -30,7 +30,9 @@
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-rendering: optimizeLegibility;
|
||||
font-feature-settings: 'kern' 1, 'liga' 1;
|
||||
font-feature-settings:
|
||||
'kern' 1,
|
||||
'liga' 1;
|
||||
/* Prefer readable CJK metrics over Latin optical sizing */
|
||||
text-size-adjust: 100%;
|
||||
}
|
||||
@@ -275,7 +277,10 @@
|
||||
font-weight: 500;
|
||||
color: var(--color-surface-700);
|
||||
border-left: 2px solid transparent;
|
||||
transition: color 0.1s, background-color 0.1s, border-color 0.1s;
|
||||
transition:
|
||||
color 0.1s,
|
||||
background-color 0.1s,
|
||||
border-color 0.1s;
|
||||
}
|
||||
|
||||
.saas-nav-item:hover {
|
||||
@@ -378,7 +383,9 @@
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.5;
|
||||
outline: none;
|
||||
transition: border-color 0.1s, box-shadow 0.1s;
|
||||
transition:
|
||||
border-color 0.1s,
|
||||
box-shadow 0.1s;
|
||||
}
|
||||
|
||||
.saas-input::placeholder,
|
||||
@@ -411,7 +418,9 @@
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.5;
|
||||
outline: none;
|
||||
transition: border-color 0.1s, box-shadow 0.1s;
|
||||
transition:
|
||||
border-color 0.1s,
|
||||
box-shadow 0.1s;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
@@ -489,7 +498,11 @@
|
||||
letter-spacing: 0.01em;
|
||||
border: 1px solid transparent;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.1s, color 0.1s, border-color 0.1s, opacity 0.1s;
|
||||
transition:
|
||||
background-color 0.1s,
|
||||
color 0.1s,
|
||||
border-color 0.1s,
|
||||
opacity 0.1s;
|
||||
}
|
||||
|
||||
.saas-btn-primary:disabled,
|
||||
@@ -556,7 +569,9 @@
|
||||
background: var(--color-surface-50);
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
transition: background 0.1s, border-color 0.1s;
|
||||
transition:
|
||||
background 0.1s,
|
||||
border-color 0.1s;
|
||||
}
|
||||
|
||||
.saas-checkbox[data-state='checked'] {
|
||||
@@ -566,7 +581,9 @@
|
||||
|
||||
.saas-checkbox:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 2px var(--color-surface-50), 0 0 0 4px var(--color-primary-600);
|
||||
box-shadow:
|
||||
0 0 0 2px var(--color-surface-50),
|
||||
0 0 0 4px var(--color-primary-600);
|
||||
}
|
||||
|
||||
.saas-checkbox[data-disabled] {
|
||||
@@ -587,7 +604,9 @@
|
||||
background: var(--color-surface-300);
|
||||
padding: 0.125rem;
|
||||
cursor: pointer;
|
||||
transition: background 0.1s, border-color 0.1s;
|
||||
transition:
|
||||
background 0.1s,
|
||||
border-color 0.1s;
|
||||
}
|
||||
|
||||
.saas-switch[data-state='checked'] {
|
||||
@@ -597,7 +616,9 @@
|
||||
|
||||
.saas-switch:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 2px var(--color-surface-50), 0 0 0 4px var(--color-primary-600);
|
||||
box-shadow:
|
||||
0 0 0 2px var(--color-surface-50),
|
||||
0 0 0 4px var(--color-primary-600);
|
||||
}
|
||||
|
||||
.saas-switch[data-disabled] {
|
||||
|
||||
Reference in New Issue
Block a user