fix theme...
This commit is contained in:
156
themes/anzhiyu/source/css/_search/algolia.styl
Normal file
156
themes/anzhiyu/source/css/_search/algolia.styl
Normal file
@@ -0,0 +1,156 @@
|
||||
#algolia-search
|
||||
.search-dialog
|
||||
.ais-SearchBox
|
||||
input
|
||||
padding: .5rem 1rem
|
||||
width: 100%
|
||||
outline: none
|
||||
border: var(--style-border)
|
||||
border-radius: var(--anzhiyu-radius)
|
||||
background: var(--anzhiyu-secondbg)
|
||||
color: var(--search-input-color)
|
||||
&:focus
|
||||
border: var(--style-border-hover)
|
||||
.search-dialog-title
|
||||
font-weight: 700;
|
||||
color: var(--anzhiyu-main);
|
||||
|
||||
|
||||
.ais-Hits-list
|
||||
margin: 0
|
||||
padding: 0
|
||||
@extend .list-beauty
|
||||
|
||||
.ais-Hits-item
|
||||
&:hover
|
||||
background: var(--anzhiyu-main)
|
||||
cursor pointer
|
||||
transition: all .2s;
|
||||
a
|
||||
color: var(--anzhiyu-white)
|
||||
mark
|
||||
background: transparent
|
||||
color: $search-keyword-highlight
|
||||
font-weight: bold
|
||||
|
||||
.algolia-hit-item-content
|
||||
margin: 0 0 8px
|
||||
word-break: break-all
|
||||
|
||||
.ais-Pagination
|
||||
margin: 20px 0 0
|
||||
padding: 0
|
||||
text-align: center
|
||||
|
||||
.ais-Pagination-list
|
||||
margin: 0
|
||||
padding: 0
|
||||
list-style: none
|
||||
|
||||
.ais-Pagination-item
|
||||
display: inline
|
||||
margin: 0 4px
|
||||
padding: 0
|
||||
|
||||
.ais-Pagination-link
|
||||
display: inline-block
|
||||
min-width: 24px
|
||||
height: 24px
|
||||
text-align: center
|
||||
line-height: 24px
|
||||
|
||||
.ais-Pagination-item--selected
|
||||
a
|
||||
background: $theme-paginator-color
|
||||
color: #eee
|
||||
cursor: default
|
||||
|
||||
.ais-Pagination-item--disabled
|
||||
visibility: hidden
|
||||
|
||||
.algolia-logo
|
||||
padding-top: 2px
|
||||
width: 80px
|
||||
height: 30px
|
||||
|
||||
#algolia-hits
|
||||
overflow-y: scroll
|
||||
min-height: 20px
|
||||
.tag-list
|
||||
padding: 4px 8px;
|
||||
border-radius: 8px;
|
||||
margin-right: 0.5rem;
|
||||
margin-top: 0.5rem;
|
||||
border: var(--style-border-always);
|
||||
cursor: pointer;
|
||||
|
||||
#algolia-info
|
||||
div
|
||||
display: inline
|
||||
|
||||
.algolia-poweredBy
|
||||
float: right
|
||||
#algolia-search #search-mask
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
background: var(--anzhiyu-maskbg);
|
||||
|
||||
#algolia-search .search-dialog
|
||||
border-radius: 12px;
|
||||
box-shadow: var(--anzhiyu-shadow-lightblack);
|
||||
background: var(--anzhiyu-card-bg);
|
||||
border: var(--style-border);
|
||||
transition: 0.3s;
|
||||
|
||||
#algolia-search .search-dialog .ais-Pagination .ais-Pagination-item--selected a
|
||||
border-radius: 4px;
|
||||
background: var(--anzhiyu-main);
|
||||
color: var(--anzhiyu-white);
|
||||
|
||||
#algolia-search .search-dialog:hover
|
||||
border: var(--style-border-hover);
|
||||
box-shadow: var(--anzhiyu-shadow-theme);
|
||||
+maxWidth768()
|
||||
border: var(--style-border)
|
||||
|
||||
#algolia-search .list-beauty li,
|
||||
#algolia-search .category-lists ul li,
|
||||
#algolia-search .search-dialog .ais-Hits-list li
|
||||
padding: 0;
|
||||
|
||||
#algolia-search .list-beauty li:before,
|
||||
#algolia-search .category-lists ul li:before,
|
||||
#algolia-search .search-dialog .ais-Hits-list li:before
|
||||
display: none;
|
||||
|
||||
#algolia-search .list-beauty li,
|
||||
#algolia-search .category-lists ul li,
|
||||
#algolia-search .search-dialog .ais-Hits-list li
|
||||
border-radius: 8px;
|
||||
border: var(--style-border);
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
#algolia-search .search-dialog .ais-Hits-list a
|
||||
color: var(--search-result-title);
|
||||
display: block;
|
||||
font-weight: 600;
|
||||
padding: 5px 10px;
|
||||
width: 100%;
|
||||
transition: all .2s;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
#algolia-search .search-dialog .ais-Hits-list .search-result-tags a
|
||||
padding: 4px 8px;
|
||||
border-radius: 8px;
|
||||
margin-right: 0.5rem;
|
||||
margin-top: 0.5rem;
|
||||
border: var(--style-border);
|
||||
display: inline;
|
||||
|
||||
#algolia-search .ais-SearchBox-loadingIndicator
|
||||
display: none;
|
||||
65
themes/anzhiyu/source/css/_search/index.styl
Normal file
65
themes/anzhiyu/source/css/_search/index.styl
Normal file
@@ -0,0 +1,65 @@
|
||||
.search-dialog
|
||||
position: fixed
|
||||
top: 5rem
|
||||
left: 50%
|
||||
z-index: 1001
|
||||
display: none
|
||||
margin-left: -18.75rem;
|
||||
padding: 1.25rem;
|
||||
width: 37.5rem;
|
||||
border-radius: 8px
|
||||
background: var(--search-bg)
|
||||
border-radius: 12px;
|
||||
box-shadow: var(--anzhiyu-shadow-lightblack);
|
||||
background: var(--anzhiyu-card-bg);
|
||||
border: var(--style-border);
|
||||
transition: .3s;
|
||||
|
||||
+maxWidth768()
|
||||
top: 0
|
||||
left: 0
|
||||
margin: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
border-radius: 0 !important
|
||||
|
||||
+maxHeight680()
|
||||
top: 2rem;
|
||||
|
||||
+maxHeight580()
|
||||
top: 0
|
||||
left: 0
|
||||
margin: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
border-radius: 0 !important
|
||||
|
||||
hr
|
||||
margin: 20px auto
|
||||
|
||||
.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
|
||||
right: 0
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: 1000
|
||||
display: none
|
||||
background: rgba($dark-black, .6)
|
||||
67
themes/anzhiyu/source/css/_search/local-search.styl
Normal file
67
themes/anzhiyu/source/css/_search/local-search.styl
Normal file
@@ -0,0 +1,67 @@
|
||||
#local-search
|
||||
.search-dialog
|
||||
.local-search-box
|
||||
margin: 0 auto
|
||||
max-width: 100%
|
||||
width: 100%
|
||||
|
||||
input
|
||||
padding: 5px 14px
|
||||
width: 100%
|
||||
outline: none
|
||||
border: 2px solid $search-color
|
||||
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: 24px
|
||||
line-height: 1.7
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
border-color: var(--pseudo-hover)
|
||||
|
||||
&:before
|
||||
$w = .5em
|
||||
position: absolute
|
||||
top: .45em
|
||||
left: 0
|
||||
width: w = $w
|
||||
height: h = w
|
||||
border: 3px solid $search-color
|
||||
border-radius: w
|
||||
background: transparent
|
||||
content: ''
|
||||
line-height: h
|
||||
transition: all .2s ease-in-out
|
||||
|
||||
a
|
||||
display: block
|
||||
color: var(--search-result-title)
|
||||
font-weight: 600
|
||||
cursor: pointer
|
||||
|
||||
&:hover
|
||||
color: $search-color
|
||||
|
||||
.search-result
|
||||
margin: 0 8px 8px 0
|
||||
word-break: break-all
|
||||
|
||||
.search-keyword
|
||||
color: $search-keyword-highlight
|
||||
font-weight: bold
|
||||
|
||||
.search-result-list
|
||||
overflow-y: auto
|
||||
max-height: calc(80vh - 130px)
|
||||
|
||||
+maxWidth768()
|
||||
padding-bottom: 40px
|
||||
max-height: 75vh !important
|
||||
Reference in New Issue
Block a user