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

47 lines
995 B
Stylus
Raw Normal View History

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
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
2022-11-13 00:45:15 +08:00
border-radius: 2rem
margin-right: 1rem
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
2021-04-20 23:11:27 +08:00
if hexo-config('style.darkmode') == 'auto'
@media (prefers-color-scheme: dark)
2022-11-13 00:45:15 +08:00
--blur-bg: alpha(#000, .4)
2022-10-22 13:59:21 +08:00
if hexo-config('style.darkmode') == 'always'
2022-11-13 00:45:15 +08:00
--blur-bg: alpha(#000, .4)
2021-04-20 23:11:27 +08:00
.sidebar-toggle.mobile
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-01-17 00:27:48 +08:00
font-size: 24px
2021-04-21 23:46:28 +08:00
margin: 0
2021-04-20 23:11:27 +08:00
.l_body.mobile.sidebar
2022-11-13 00:45:15 +08:00
.float-panel
box-shadow: $boxshadow-float
transform: translateY(-2px)
2021-04-20 23:11:27 +08:00
.sidebar-toggle.mobile
background: var(--card)
color: $color-hover
border-color: var(--block-border)