[opt] navbar blur
This commit is contained in:
parent
1066aa0dd8
commit
fd30e01366
|
@ -25,7 +25,7 @@ module.exports = ctx => function(args) {
|
|||
let text = matches[1]
|
||||
let href = matches[2]
|
||||
if (href == args.active) {
|
||||
el += `<a class="link blur active" href="${href}">${text}</a>`
|
||||
el += `<a class="link active" href="${href}">${text}</a>`
|
||||
} else {
|
||||
el += `<a class="link" href="${href}">${text}</a>`
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ if hexo-config('style.darkmode') == 'always'
|
|||
:root
|
||||
--blur-bg: alpha(black, .5)
|
||||
|
||||
.blur
|
||||
blur-effect()
|
||||
background: var(--blur-bg)
|
||||
@supports ((-webkit-backdrop-filter:blur(var(--blur-px))) or (backdrop-filter:blur(var(--blur-px))))
|
||||
background: var(--blur-bg) !important
|
||||
|
@ -17,3 +17,6 @@ if hexo-config('style.darkmode') == 'always'
|
|||
-webkit-backdrop-filter: saturate(200%) blur(var(--blur-px))
|
||||
&:hover
|
||||
background: var(--card)
|
||||
|
||||
.blur
|
||||
blur-effect()
|
||||
|
|
|
@ -119,3 +119,6 @@
|
|||
@media screen and (max-width: $device-mobile)
|
||||
margin: 0
|
||||
border-radius: 0
|
||||
|
||||
.tag-plugin.banner .navbar a.active
|
||||
blur-effect()
|
Loading…
Reference in New Issue