[opt] search css
This commit is contained in:
parent
232aa4322e
commit
01aacad761
|
@ -25,7 +25,7 @@ sidebar:
|
||||||
# about: '[关于](/about/)'
|
# about: '[关于](/about/)'
|
||||||
# Sidebar widgets
|
# Sidebar widgets
|
||||||
widgets:
|
widgets:
|
||||||
index: welcome, search, recent, timeline # for home/wiki/categories/tags/archives/404 pages
|
index: welcome, recent, search, timeline # for home/wiki/categories/tags/archives/404 pages
|
||||||
page: welcome, toc # for pages using 'layout:page'
|
page: welcome, toc # for pages using 'layout:page'
|
||||||
post: toc, ghrepo, search, ghissues # for pages using 'layout:post'
|
post: toc, ghrepo, search, ghissues # for pages using 'layout:post'
|
||||||
wiki: search, ghrepo, toc, ghissues, related # for pages using 'layout:wiki'
|
wiki: search, ghrepo, toc, ghissues, related # for pages using 'layout:wiki'
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
.l_left nav.menu
|
.l_left
|
||||||
margin-bottom: 1.5rem
|
nav.menu
|
||||||
|
margin-bottom: 0
|
||||||
|
|
||||||
nav.menu
|
nav.menu
|
||||||
margin: 1rem 0
|
margin: 1rem 0
|
||||||
|
|
|
@ -57,4 +57,4 @@
|
||||||
|
|
||||||
.widget-wrapper
|
.widget-wrapper
|
||||||
display: block
|
display: block
|
||||||
margin: 1rem 0 2rem
|
margin: 2rem 0
|
|
@ -14,9 +14,14 @@
|
||||||
box-shadow: $boxshadow-button
|
box-shadow: $boxshadow-button
|
||||||
trans1 box-shadow
|
trans1 box-shadow
|
||||||
&:hover
|
&:hover
|
||||||
box-shadow: 0 0 2px 0px alpha($color-theme, 0.2), 0 0 8px 0px alpha($color-theme, 0.2)
|
box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.16), 0 0 8px 0px rgba(0, 0, 0, 0.08)
|
||||||
|
|
||||||
|
&.noresult
|
||||||
|
.search-input
|
||||||
|
&:hover
|
||||||
|
box-shadow: 0 0 2px 0px alpha($c-red, 0.2), 0 0 8px 0px alpha($c-red, 0.2)
|
||||||
&:focus
|
&:focus
|
||||||
box-shadow: 0 0 2px 0px alpha($color-theme, 0.4), 0 0 8px 0px alpha($color-theme, 0.4)
|
box-shadow: 0 0 2px 0px alpha($c-red, 0.5), 0 0 8px 0px alpha($c-red, 0.4)
|
||||||
|
|
||||||
.search-no-result
|
.search-no-result
|
||||||
display: none
|
display: none
|
||||||
|
@ -68,3 +73,17 @@
|
||||||
.search-wrapper.noresult
|
.search-wrapper.noresult
|
||||||
.search-no-result
|
.search-no-result
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
|
.widget-wrapper
|
||||||
|
.search-form
|
||||||
|
top: 0
|
||||||
|
background: var(--site-bg)
|
||||||
|
.search-input
|
||||||
|
margin-top: 1rem
|
||||||
|
margin-bottom: -1rem
|
||||||
|
#search-result,.search-no-result
|
||||||
|
margin-top: 2rem
|
||||||
|
|
||||||
|
.widget-wrapper:not(:first-child)
|
||||||
|
.search-wrapper
|
||||||
|
margin-top: -1rem
|
Loading…
Reference in New Issue