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

58 lines
1.2 KiB
Stylus

.mobile-only
display: none
@media screen and (max-width: $device-mobile-max)
display: block !important
.mobile-hidden
@media screen and (max-width: $device-mobile-max)
display: none !important
.float-panel
position: sticky
right: 0
bottom: 2rem
float: right
z-index: 10
display: flex
border-radius: 2rem
margin-right: 1rem
overflow: hidden
--blur-px: 16px
--blur-bg: alpha(#fff, .4)
trans1: all
if hexo-config('style.darkmode') == 'auto'
@media (prefers-color-scheme: dark)
--blur-bg: alpha(#000, .4)
if hexo-config('style.darkmode') == 'always'
--blur-bg: alpha(#000, .4)
//
.sidebar-toggle.mobile
cursor: pointer
color: var(--text)
background: none
padding: 8px
line-height: 0
font-size: 28px
margin: 0
display: flex
>*
path#sep
trans1 transform
width: auto
height: 28px
//
.l_body.mobile.sidebar .sidebar-toggle.mobile
svg g
fill: currentColor
fill-opacity: 0.3
path#sep
transform: translateX(2px)
.l_body.mobile.sidebar
.sidebar-toggle.mobile
background: var(--card)
color: $color-hover
border-color: var(--block-border)