Optimized the sidebar and handle transform
parent
60b41c838f
commit
9cc2c0434f
|
|
@ -156,7 +156,7 @@ section.handle
|
||||||
box-sizing: border-box
|
box-sizing: border-box
|
||||||
transition: transform 300ms,box-shadow 200ms
|
transition: transform 300ms,box-shadow 200ms
|
||||||
background-color: #fcfcfc
|
background-color: #fcfcfc
|
||||||
transform: translateY(-100%)
|
transform: translate3d(0,-100%,0)
|
||||||
display: flex
|
display: flex
|
||||||
align-items: center
|
align-items: center
|
||||||
z-index: 1210
|
z-index: 1210
|
||||||
|
|
@ -209,7 +209,7 @@ section.sidebar
|
||||||
.icon
|
.icon
|
||||||
display: none
|
display: none
|
||||||
&.open
|
&.open
|
||||||
transform: translateX(0%)
|
transform: translate3d(0%,0,0)
|
||||||
padding: 1rem 0rem 0rem 1rem
|
padding: 1rem 0rem 0rem 1rem
|
||||||
width: 300px
|
width: 300px
|
||||||
overflow-y: hidden
|
overflow-y: hidden
|
||||||
|
|
@ -230,7 +230,7 @@ section.sidebar
|
||||||
padding: 1rem 0rem 0rem 1rem
|
padding: 1rem 0rem 0rem 1rem
|
||||||
@media(max-width: 800px)
|
@media(max-width: 800px)
|
||||||
section.sidebar
|
section.sidebar
|
||||||
transform: translateX(-100%)
|
transform: translate3d(-100%,0,0)
|
||||||
overflow-y: hidden
|
overflow-y: hidden
|
||||||
z-index: 1200
|
z-index: 1200
|
||||||
position: absolute
|
position: absolute
|
||||||
|
|
@ -254,5 +254,5 @@ section.sidebar
|
||||||
.logo
|
.logo
|
||||||
display: none
|
display: none
|
||||||
section.handle
|
section.handle
|
||||||
transform: translateY(0%)
|
transform: translate3d(0,0%,0)
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue