Restore outlined Classic search action

This commit is contained in:
Jonathan Sykes
2026-10-13 08:08:20 +08:00
parent 3c68e56b21
commit 2fe453bfb9

View File

@@ -234,6 +234,18 @@ html[data-layout="classic"] .card:has(.card-note-btn) .card-menu { grid-column:
html[data-layout="classic"] .card:has(.card-note-btn) .card-del { grid-column: 4; grid-row: 2; } html[data-layout="classic"] .card:has(.card-note-btn) .card-del { grid-column: 4; grid-row: 2; }
html[data-layout="classic"] .card:has(.card-note-btn) { column-gap: 8px; } html[data-layout="classic"] .card:has(.card-note-btn) { column-gap: 8px; }
/* Search action stays outlined, with its label on the theme surface. */ /* Restored from a22b8b4: the Classic action is an outlined accent button. */
html[data-layout="classic"] .search-btn { background: transparent; color: var(--search-action-foreground); border: 1.5px solid color-mix(in srgb, var(--search-action-foreground) 45%, var(--accent-deep)); box-shadow: none; } html[data-layout="classic"] #searchForm .search-btn {
html[data-layout="classic"] .search-btn:hover { background: var(--search-action-surface); border-color: var(--accent); color: var(--search-action-foreground); transform: none; box-shadow: none; } min-height:46px; padding:0 22px; border-radius:8px; border:1.5px solid var(--accent);
background:transparent; color:var(--accent); box-shadow:none; transform:none; gap:8px;
}
html[data-layout="classic"] #searchForm .search-btn::before {
-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
}
html[data-layout="classic"] #searchForm .search-btn:hover { background:var(--accent); color:var(--bg); transform:none; box-shadow:none; }
html[data-layout="classic"][data-theme="contrast"] #searchForm .search-btn { background:transparent; color:var(--accent-bright); border-color:var(--accent-bright); }
html[data-layout="classic"][data-theme="contrast"] #searchForm .search-btn:hover { background:var(--accent-bright); border-color:var(--accent-bright); color:#000; }
html[data-layout="classic"][data-theme="light"] #searchForm .search-btn { color:var(--accent-deep); border-color:var(--accent-deep); }
html[data-layout="classic"][data-theme="light"] #searchForm .search-btn:hover { background:var(--accent-deep); color:#fff; }
html[data-layout="classic"] #searchForm .search-btn:disabled { background:var(--bg-1); color:var(--text-dim); border:1px dashed var(--accent-deep); cursor:not-allowed; }