2022-11-27 17:16:38 +08:00
|
|
|
.widgets .widget-wrapper.search
|
2022-12-09 23:56:58 +08:00
|
|
|
margin-top: 1rem
|
2022-11-27 17:16:38 +08:00
|
|
|
margin-bottom: 0
|
2022-12-09 23:56:58 +08:00
|
|
|
|
|
|
|
.search-wrapper
|
|
|
|
width: 100%
|
|
|
|
>.search-form
|
|
|
|
position: sticky
|
|
|
|
top: 1rem
|
|
|
|
display: flex
|
|
|
|
flex-direction: row
|
|
|
|
align-items: center
|
|
|
|
.search-input
|
|
|
|
width: 100%
|
|
|
|
padding: 0.5rem
|
|
|
|
line-height: 1
|
|
|
|
box-sizing: border-box
|
|
|
|
border-radius: $border-block
|
|
|
|
background-color: var(--card)
|
|
|
|
color: var(--text-p0)
|
|
|
|
border: 1px solid var(--block-border)
|
|
|
|
&:focus
|
|
|
|
trans1 border-color
|
|
|
|
|
|
|
|
&.noresult
|
|
|
|
.search-input
|
|
|
|
&:focus
|
|
|
|
border: 1px solid $c-red
|
|
|
|
.search-icon
|
|
|
|
color: $c-red
|
|
|
|
|
|
|
|
.search-no-result
|
|
|
|
display: none
|
|
|
|
margin: 1em auto
|
|
|
|
color: var(--text-p1)
|
|
|
|
text-align: center
|
|
|
|
font-size: $fs-14
|
|
|
|
padding: 2rem
|
|
|
|
background: var(--block)
|
|
|
|
border-radius: $border-block
|
|
|
|
|
|
|
|
#search-result
|
|
|
|
ul.search-result-list
|
|
|
|
padding: 0
|
|
|
|
margin: 0
|
|
|
|
list-style-type: none
|
|
|
|
li
|
|
|
|
margin: 1em auto
|
|
|
|
&:hover
|
|
|
|
.search-result-title
|
|
|
|
color: $color-hover
|
|
|
|
.search-result-title
|
|
|
|
color: var(--text-p1)
|
|
|
|
font-weight: 700
|
|
|
|
line-height: 1.2
|
|
|
|
|
|
|
|
.search-result-content
|
|
|
|
overflow: hidden
|
|
|
|
color: var(--text-p3)
|
|
|
|
margin: .4em auto
|
|
|
|
max-height: 13em
|
|
|
|
text-align: justify
|
|
|
|
font-size: $fs-12
|
|
|
|
line-height: 1.2
|
|
|
|
display: -webkit-box
|
|
|
|
-webkit-box-orient: vertical
|
|
|
|
overflow: hidden
|
|
|
|
-webkit-line-clamp: 3
|
|
|
|
|
|
|
|
.search-keyword
|
|
|
|
border-bottom: 1px dashed $color-hover
|
|
|
|
color: $color-hover
|
|
|
|
font-weight: bold
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.search-wrapper.noresult
|
|
|
|
.search-no-result
|
|
|
|
display: block
|
|
|
|
|
|
|
|
.widget-wrapper
|
|
|
|
.search-form
|
|
|
|
top: 0
|
|
|
|
background: var(--site-bg)
|
|
|
|
.search-input
|
|
|
|
margin-top: 1rem
|
|
|
|
margin-bottom: -1rem
|
|
|
|
padding-left: 1.75rem
|
|
|
|
.search-icon
|
|
|
|
margin-top: 1rem
|
|
|
|
margin-bottom: -1rem
|
|
|
|
position: absolute
|
|
|
|
margin-left: 0.5rem
|
|
|
|
left: 0
|
|
|
|
pointer-events: none
|
|
|
|
color: var(--text-p2)
|
|
|
|
|
|
|
|
#search-result,.search-no-result
|
|
|
|
margin-top: 2rem
|
|
|
|
|
|
|
|
.widget-wrapper:not(:first-child)
|
|
|
|
.search-wrapper
|
|
|
|
margin-top: -1rem
|