[opt] search placeholder & toc style
This commit is contained in:
parent
cf907f014e
commit
5c3d1ed20c
|
@ -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">`
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue