[opt] search placeholder & toc style

This commit is contained in:
xaoxuu 2024-01-21 22:49:17 +08:00
parent cf907f014e
commit 5c3d1ed20c
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,11 @@
if (item.filter == null) { if (item.filter == null) {
item.filter = 'auto' item.filter = 'auto'
} }
if (item.placeholder == null && item.filter == 'auto') {
if (theme.wiki.tree[page.wiki]?.name) {
item.placeholder = __('search.search_in', theme.wiki.tree[page.wiki]?.name)
}
}
function layoutDiv() { function layoutDiv() {
var el = '' var el = ''
el += `<div class="search-wrapper" id="search-wrapper">` el += `<div class="search-wrapper" id="search-wrapper">`

View File

@ -55,7 +55,8 @@
border-bottom-left-radius: $border-card border-bottom-left-radius: $border-card
border-bottom-right-radius: $border-card border-bottom-right-radius: $border-card
a.toc-link:before a.toc-link:before
left: -2px left: -7px
width: 4px width: 4px
background: var(--text-p2)
a.toc-link:hover a.toc-link:hover
background: var(--alpha100) background: var(--alpha100)