doc: update butterfly theme

This commit is contained in:
Leon Xu committed 2022-01-26 09:51:45 -08:00
1 parent b71987abfb
commit 20c5eb31dd
118 files changed
+2158 -2564

No files matched your search

@@ -1,69 +1,52 @@
#algolia-search
.search-dialog
.ais-search-box
margin: 0 auto
max-width: 100%
width: 100%
.ais-SearchBox
input
padding: .25rem .7rem
padding: 5px 14px
width: 100%
outline: none
border: 2px solid $search-color
border-radius: 2rem
border-radius: 40px
background: var(--search-bg)
color: var(--search-input-color)
.ais-hits--item.algolia-hit-item
position: relative
padding-left: 1.2rem
&:hover
&:before
border-color: $pseudo-hover
&:before
$w = .5em
position: absolute
top: .53em
left: 0
width: w = $w
height: h = w
border: .15rem solid $search-color
border-radius: w
background: transparent
content: ''
line-height: h
transition: all .2s ease-in-out
.ais-Hits-list
padding-left: 24px
@extend .list-beauty
a
display: block
color: var(--search-result-title)
cursor: pointer
&:hover
color: $search-color
em
mark
background: transparent
color: $search-keyword-highlight
font-weight: bold
.ais-pagination.pagination
margin: .8rem 0 0
.ais-Pagination
margin: 16px 0 0
padding: 0
text-align: center
.ais-pagination--item
margin: 0 .2rem
.ais-Pagination-list
padding: 0
list-style: none
.ais-Pagination-item
display: inline
margin: 0 4px
padding: 0
a
.ais-Pagination-link
display: inline-block
min-width: 1.2rem
height: 1.2rem
min-width: 24px
height: 24px
text-align: center
line-height: 1.2rem
line-height: 24px
.ais-pagination--item.current
.ais-Pagination-item--selected
a
background: $theme-paginator-color
color: #eee
@@ -71,5 +54,5 @@
.algolia-logo
padding-top: 2px
width: 4rem
height: 1.5rem
width: 80px
height: 30px
+18 -21
View File
@@ -1,15 +1,14 @@
.search-dialog
position: fixed
top: 5rem
top: 100px
left: 50%
z-index: 1001
display: none
margin-left: -15rem
padding: 1rem
width: 30rem
margin-left: -300px
padding: 20px
width: 600px
border-radius: 8px
background: var(--search-bg)
animation: titlescale .5s
+maxWidth768()
top: 0
@@ -20,27 +19,25 @@
border-radius: 0
hr
margin: 1rem auto
margin: 20px auto
span.search-close-button
position: absolute
top: .8rem
right: 1rem
color: $grey
font-size: 1.4em
line-height: 1
cursor: pointer
transition: color .2s ease-in-out
&:hover
color: $search-color
&__title
padding: 0 0 .7rem
.search-nav
margin: 0 0 14px
color: $search-color
font-size: 1.4em
line-height: 1
.search-dialog-title
margin-right: 10px
.search-close-button
float: right
color: $grey
transition: color .2s ease-in-out
&:hover
color: $search-color
#search-mask
position: fixed
top: 0
@@ -6,23 +6,26 @@
width: 100%
input
padding: .25rem .7rem
padding: 5px 14px
width: 100%
outline: none
border: 2px solid $search-color
border-radius: 2rem
border-radius: 40px
background: var(--search-bg)
color: var(--search-input-color)
-webkit-appearance: none
.search-wrap
display: none
.local-search__hit-item
position: relative
padding-left: 1.2rem
padding-left: 24px
line-height: 1.7
&:hover
&:before
border-color: $pseudo-hover
border-color: var(--pseudo-hover)
&:before
$w = .5em
@@ -31,7 +34,7 @@
left: 0
width: w = $w
height: h = w
border: .15rem solid $search-color
border: 3px solid $search-color
border-radius: w
background: transparent
content: ''
@@ -48,7 +51,7 @@
color: $search-color
.search-result
margin: 0 0 .4rem
margin: 0 0 8px
word-break: break-all
.search-keyword
@@ -57,8 +60,8 @@
.search-result-list
overflow-y: auto
max-height: 10.5rem
max-height: 210px
+maxWidth768()
padding-bottom: 2rem
padding-bottom: 40px
max-height: 75vh !important