hexo-theme-stellar/source/css/_layout/sidebar/sidebar.styl

41 lines
1.4 KiB
Stylus
Raw Normal View History

2021-03-05 21:37:28 +08:00
.l_left
2024-02-06 23:39:51 +08:00
margin: 8px
2024-01-17 00:27:48 +08:00
height: 'calc(%s - 16px)' % 100vh
2024-02-03 16:36:29 +08:00
border-radius: $border-card-l
2024-01-17 00:27:48 +08:00
overflow: hidden
overflow: clip
overflow-clip-margin: .5px
2022-10-29 19:21:33 +08:00
.header
2024-02-05 18:01:50 +08:00
margin: var(--gap-max) var(--gap-margin) 0
.l_right
2024-02-06 23:39:51 +08:00
margin: 8px
2024-02-05 18:01:50 +08:00
border-radius: $border-card-l
2024-02-06 23:39:51 +08:00
@media screen and (min-width: $device-2k)
2024-02-05 18:01:50 +08:00
.l_left
margin-left: auto
2024-02-05 22:55:10 +08:00
margin-right: calc(2 * var(--gap-max))
2024-02-05 18:01:50 +08:00
.l_right
2024-02-05 22:55:10 +08:00
margin-left: var(--gap-max)
2024-02-05 18:01:50 +08:00
margin-right: auto
2024-01-18 22:11:58 +08:00
.l_left
background-size: cover
2024-02-04 21:09:44 +08:00
if hexo-config('style.leftbar') && hexo-config('style.leftbar.background-image')
background-image: convert(hexo-config('style.leftbar.background-image'))
else if hexo-config('style.leftbar') && hexo-config('style.leftbar.background')
background: convert(hexo-config('style.leftbar.background'))
.leftbar-container
2024-01-17 00:27:48 +08:00
height: 100%
2024-01-18 22:11:58 +08:00
display: flex
flex-direction: column
word-break: break-all
text-align: justify
2024-02-04 21:09:44 +08:00
if hexo-config('style.leftbar') && hexo-config('style.leftbar.blur-px')
--blur-px: convert(hexo-config('style.leftbar.blur-px'))
2024-01-25 22:50:17 +08:00
@supports ((-webkit-backdrop-filter:blur(var(--blur-px))) or (backdrop-filter:blur(var(--blur-px))))
background: var(--blur-bg)
backdrop-filter: saturate(240%) blur(var(--blur-px))
-webkit-backdrop-filter: saturate(240%) blur(var(--blur-px))
2024-02-04 21:09:44 +08:00
if hexo-config('style.leftbar') && hexo-config('style.leftbar.blur-bg')
--blur-bg: convert(hexo-config('style.leftbar.blur-bg'))