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

44 lines
948 B
Stylus
Raw Normal View History

2021-04-20 23:11:27 +08:00
.mobile-only
display: none
@media screen and (max-width: $device-tablet)
display: block !important
.mobile-hidden
@media screen and (max-width: $device-tablet)
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
2021-08-02 22:48:25 +08:00
border-radius: $border-block 0 0 $border-block
2021-04-20 23:11:27 +08:00
padding-right: 1rem
border: 1px solid var(--block-border)
border-right: 0
overflow: hidden
--blur-px: 24px
--blur-bg: alpha(#eaeaea, .6)
if hexo-config('style.darkmode') == 'auto'
@media (prefers-color-scheme: dark)
--blur-bg: alpha(#555, .6)
.sidebar-toggle.mobile
cursor: pointer
color: var(--text-p2)
border-right: 1px solid transparent
background: none
padding: 0.5rem
line-height: 0
font-size: 20px
2021-04-21 23:46:28 +08:00
margin: 0
2021-04-20 23:11:27 +08:00
.l_body.mobile.sidebar
.sidebar-toggle.mobile
background: var(--card)
color: $color-hover
border-color: var(--block-border)