mirror of
https://github.com/panatgithub/AnkiHeadingSync.git
synced 2026-07-22 06:51:43 +00:00
中文: 恢复设置页开关使用 Obsidian 原生样式,仅保留操作按钮主题色背景,并更新相关测试与构建产物。 English: Restore native Obsidian toggle styling in settings, keep themed backgrounds for action buttons only, and update related tests and build output.
30 lines
948 B
CSS
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;
|
|
}
|