53 lines
1010 B
Stylus
53 lines
1010 B
Stylus
.l_body
|
|
display: grid
|
|
grid-template-columns: 1fr minmax(200px,var(--width-main)) 1fr
|
|
grid-gap: var(--gap-l)
|
|
margin: auto
|
|
font-size: var(--fsp)
|
|
|
|
.l_body .l_left
|
|
z-index: 8
|
|
width: var(--width-left)
|
|
flex-shrink: 0
|
|
position: sticky
|
|
position: -webkit-sticky
|
|
top: 8px
|
|
|
|
// 手机布局
|
|
@media screen and (max-width: $device-mobile-max)
|
|
.mobile-only
|
|
display: block !important
|
|
.l_body
|
|
padding: 0
|
|
display: block
|
|
.l_left
|
|
position: fixed
|
|
transform: translateX(-320px)
|
|
margin: 0
|
|
left: 8px
|
|
box-shadow: $boxshadow-card-float
|
|
z-index: 10
|
|
.l_main
|
|
max-width: 100%
|
|
.l_body.mobile
|
|
.l_left
|
|
transition: transform .38s ease-out
|
|
.l_body.mobile.leftbar
|
|
.l_left
|
|
transform: translateX(0px)
|
|
.main-mask
|
|
opacity 1
|
|
pointer-events: inherit
|
|
|
|
|
|
.main-mask
|
|
position: fixed
|
|
pointer-events: none
|
|
top: 0
|
|
left: 0
|
|
width: 100%
|
|
height: 100%
|
|
background: rgba(black, 0.2)
|
|
z-index: 9
|
|
opacity 0
|
|
trans1 opacity |