hexo-theme-stellar/source/css/_common/blur.styl

16 lines
424 B
Stylus
Raw Normal View History

2021-04-02 20:24:16 +08:00
:root
2021-04-20 23:11:27 +08:00
--blur-px: 12px
2024-01-17 00:27:48 +08:00
--blur-bg: var(--alpha50)
2021-04-20 23:11:27 +08:00
2024-01-14 02:08:40 +08:00
blur-effect()
2021-03-08 00:20:51 +08:00
background: var(--blur-bg)
2021-04-20 23:11:27 +08:00
@supports ((-webkit-backdrop-filter:blur(var(--blur-px))) or (backdrop-filter:blur(var(--blur-px))))
2021-03-08 00:20:51 +08:00
background: var(--blur-bg) !important
2021-04-20 23:11:27 +08:00
backdrop-filter: saturate(200%) blur(var(--blur-px))
-webkit-backdrop-filter: saturate(200%) blur(var(--blur-px))
2021-03-08 00:20:51 +08:00
&:hover
background: var(--card)
2024-01-14 02:08:40 +08:00
.blur
blur-effect()