1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
|
#local-search-input .local-search-box position: relative margin: 0 auto max-width: 100% width: 100%
input width: 100% padding: 12px 24px font-size: 16px line-height: 1.4 outline: none border: 1px solid rgba(0, 0, 0, .08) border-radius: 28px background: rgba(255, 255, 255, .95) color: var(--search-input-color) -webkit-appearance: none transition: all .3s ease box-shadow: 0 1px 3px rgba(0, 0, 0, .06) caret-color: #7c3aed animation: caret_blink 1s step-end infinite
&:focus border-color: rgba(0, 0, 0, .08) box-shadow: 0 1px 3px rgba(0, 0, 0, .06) animation: none
+maxWidth768() font-size: 16px padding: 10px 18px
.search-highlight-bar position: absolute bottom: 10px left: 24px width: 0 height: 2px background: #7c3aed border-radius: 2px transition: width .3s ease pointer-events: none
&:focus-within .search-highlight-bar width: calc(100% - 48px)
+maxWidth768() .search-highlight-bar left: 18px
&:focus-within .search-highlight-bar width: calc(100% - 36px)
@keyframes caret_blink 0%, 100% caret-color: #7c3aed 50% caret-color: transparent
#local-search-results padding: 20px 0
.search-result-list max-width: 680px margin: 0 auto padding: 0 20px 40px
.local-search-hit-item margin-bottom: 16px padding: 20px 24px background: rgba(255, 255, 255, .95) border: 1px solid rgba(0, 0, 0, .08) border-radius: 12px box-shadow: 0 1px 3px rgba(0, 0, 0, .06) transition: all .3s ease line-height: 1.7 -webkit-backdrop-filter: blur(8px) backdrop-filter: blur(8px)
&:hover box-shadow: 0 4px 16px rgba(0, 0, 0, .12) transform: translateY(-2px) border-color: transparent
&:last-child margin-bottom: 0
a display: block color: var(--search-a-color) text-decoration: none
&:hover color: var(--search-a-color)
.search-result-title display: block font-size: 18px font-weight: 600 color: #1a0dab margin-bottom: 8px line-height: 1.4
&:hover text-decoration: underline
.search-result margin: 4px 0 0 font-size: 14px color: #545454 line-height: 1.6
&:first-of-type margin-top: 8px
#local-search-stats-wrap max-width: 680px margin: 0 auto padding: 0 20px
.search-result-stats padding: 4px 0 8px font-size: 14px color: rgba(0, 0, 0, .45)
hr display: none
.search-keyword background: transparent color: $search-keyword-highlight font-weight: bold
[data-theme='dark'] #local-search-input .local-search-box input border-color: rgba(255, 255, 255, .08) background: rgba(30, 30, 30, .92) color: rgba(255, 255, 255, .85) box-shadow: 0 1px 3px rgba(0, 0, 0, .3)
&:focus border-color: rgba(255, 255, 255, .08) box-shadow: 0 1px 3px rgba(0, 0, 0, .3)
.search-highlight-bar background: #a78bfa
.local-search-hit-item background: rgba(30, 30, 30, .92) border-color: rgba(255, 255, 255, .08) box-shadow: 0 1px 3px rgba(0, 0, 0, .3)
&:hover box-shadow: 0 4px 16px rgba(0, 0, 0, .5) border-color: transparent
.search-result-title color: #8ab4f8
.search-result color: rgba(255, 255, 255, .65)
#local-search-stats-wrap .search-result-stats color: rgba(255, 255, 255, .35)
|