panatgithub_AnkiHeadingSync/styles.css
Dusk c9e80d4034 fix(settings): keep toggles native
中文: 恢复设置页开关使用 Obsidian 原生样式,仅保留操作按钮主题色背景,并更新相关测试与构建产物。

English: Restore native Obsidian toggle styling in settings, keep themed backgrounds for action buttons only, and update related tests and build output.
2026-04-26 20:42:46 +08:00

30 lines
948 B
CSS

.anki-heading-sync-settings .ahs-theme-action-button {
background: var(--interactive-accent);
color: var(--text-on-accent);
border: 1px solid var(--interactive-accent-hover);
border-radius: 8px;
box-shadow: none;
transition:
background-color 140ms ease,
border-color 140ms ease,
opacity 140ms ease,
transform 140ms ease;
}
.anki-heading-sync-settings .ahs-theme-action-button:hover:not(:disabled),
.anki-heading-sync-settings .ahs-theme-action-button:focus-visible:not(:disabled) {
background: var(--interactive-accent-hover);
border-color: var(--interactive-accent-hover);
}
.anki-heading-sync-settings .ahs-theme-action-button:active:not(:disabled) {
transform: translateY(1px);
}
.anki-heading-sync-settings .ahs-theme-action-button:disabled {
background: var(--background-secondary);
color: var(--text-muted);
border-color: var(--background-modifier-border);
cursor: not-allowed;
opacity: 0.72;
}