2021-04-20 23:11:27 +08:00
|
|
|
.mobile-only
|
|
|
|
display: none
|
2022-10-09 13:42:03 +08:00
|
|
|
@media screen and (max-width: $device-mobile-max)
|
2021-04-20 23:11:27 +08:00
|
|
|
display: block !important
|
|
|
|
|
|
|
|
.mobile-hidden
|
2022-10-09 13:42:03 +08:00
|
|
|
@media screen and (max-width: $device-mobile-max)
|
2021-08-19 23:13:05 +08:00
|
|
|
display: none !important
|
2021-04-20 23:11:27 +08:00
|
|
|
|
|
|
|
.float-panel
|
|
|
|
position: sticky
|
2024-02-05 18:01:50 +08:00
|
|
|
grid-column-end: span 3
|
2021-04-20 23:11:27 +08:00
|
|
|
right: 0
|
|
|
|
bottom: 2rem
|
|
|
|
float: right
|
2021-11-20 12:32:53 +08:00
|
|
|
z-index: 10
|
2021-04-20 23:11:27 +08:00
|
|
|
display: flex
|
2024-02-05 18:01:50 +08:00
|
|
|
flex-direction: column
|
2024-02-06 23:39:51 +08:00
|
|
|
border-radius: $border-bar
|
2024-02-05 18:01:50 +08:00
|
|
|
margin-left: auto
|
2022-11-13 00:45:15 +08:00
|
|
|
margin-right: 1rem
|
2024-02-06 23:39:51 +08:00
|
|
|
@media screen and (min-width: $device-mobile-max)
|
|
|
|
margin-right: 2rem
|
2021-04-20 23:11:27 +08:00
|
|
|
overflow: hidden
|
2022-11-13 00:45:15 +08:00
|
|
|
--blur-px: 16px
|
|
|
|
--blur-bg: alpha(#fff, .4)
|
|
|
|
trans1: all
|
2024-02-07 16:21:19 +08:00
|
|
|
ondark()
|
2022-11-13 00:45:15 +08:00
|
|
|
--blur-bg: alpha(#000, .4)
|
2024-02-07 16:21:19 +08:00
|
|
|
if theme(dark)
|
|
|
|
ondark()
|
|
|
|
else if theme(auto)
|
|
|
|
@media (prefers-color-scheme: dark)
|
|
|
|
ondark()
|
2021-04-20 23:11:27 +08:00
|
|
|
|
2024-02-02 14:53:35 +08:00
|
|
|
// 侧边栏弹出按钮
|
2024-02-05 18:01:50 +08:00
|
|
|
.float-panel button
|
2021-04-20 23:11:27 +08:00
|
|
|
cursor: pointer
|
2024-01-31 22:45:07 +08:00
|
|
|
color: var(--text)
|
2021-04-20 23:11:27 +08:00
|
|
|
background: none
|
2024-01-17 00:27:48 +08:00
|
|
|
padding: 8px
|
2021-04-20 23:11:27 +08:00
|
|
|
line-height: 0
|
2024-02-02 14:53:35 +08:00
|
|
|
font-size: 28px
|
2021-04-21 23:46:28 +08:00
|
|
|
margin: 0
|
2024-02-02 14:53:35 +08:00
|
|
|
display: flex
|
|
|
|
>*
|
|
|
|
path#sep
|
|
|
|
trans1 transform
|
|
|
|
width: auto
|
|
|
|
height: 28px
|
2024-02-05 18:01:50 +08:00
|
|
|
|
2024-02-02 14:53:35 +08:00
|
|
|
// 侧边栏弹出后
|
2024-02-05 18:01:50 +08:00
|
|
|
.l_body[leftbar] .float-panel, .l_body[rightbar] .float-panel
|
2024-02-06 23:39:51 +08:00
|
|
|
box-shadow: 0 0 4px -1px $color-theme, 0 0 16px -4px $color-theme, 0 0 32px -12px $color-theme, 0 0 128px -32px $color-theme
|
|
|
|
|
|
|
|
.l_body[leftbar] .float-panel button.leftbar-toggle
|
|
|
|
background: var(--alpha100)
|
2024-02-05 18:01:50 +08:00
|
|
|
|
|
|
|
.l_body[leftbar] .float-panel button.leftbar-toggle
|
|
|
|
color: $color-theme
|
|
|
|
border-color: var(--block-border)
|
2024-02-02 14:53:35 +08:00
|
|
|
svg g
|
|
|
|
fill: currentColor
|
|
|
|
fill-opacity: 0.3
|
|
|
|
path#sep
|
|
|
|
transform: translateX(2px)
|
2021-04-20 23:11:27 +08:00
|
|
|
|
|
|
|
|
2024-02-06 23:39:51 +08:00
|
|
|
// 侧边栏有内容时才显示弹出按钮
|
|
|
|
.l_body .l_right:empty+.float-panel button.rightbar-toggle
|
|
|
|
display: none !important
|
|
|
|
|
|
|
|
.l_body[rightbar] .float-panel button.rightbar-toggle
|
|
|
|
background: var(--alpha100)
|
2024-02-05 18:01:50 +08:00
|
|
|
|
|
|
|
.l_body[rightbar] .float-panel button.rightbar-toggle
|
|
|
|
color: $color-theme
|
|
|
|
border-color: var(--block-border)
|
|
|
|
svg g
|
|
|
|
fill: currentColor
|
|
|
|
fill-opacity: 0.3
|
|
|
|
path#sep
|
|
|
|
transform: translateX(2px)
|
|
|
|
|