asteroid/css/modules/_side-nav.sass

66 lines
1.1 KiB
Sass
Raw Normal View History

.side-nav
position: relative
display: flex
width: 100px
height: 70%
max-height: 750px
flex-direction: column
justify-content: space-around
margin: 0
padding: 0
list-style-position: inside
z-index: 10
& > li
position: relative
top: -5px
color: $white
font-size: 6px
cursor: pointer
span
position: relative
top: 3px
left: 10px
color: $white
font-size: 14px
font-weight: 300
opacity: 0
visibility: hidden
&::before
position: absolute
top: 3px
left: 10px
color: #555
font-size: 14px
font-weight: 300
li:nth-child(1)::before
content: "01"
li:nth-child(2)::before
content: "02"
li:nth-child(3)::before
content: "03"
li:nth-child(4)::before
content: "04"
li:nth-child(5)::before
content: "05"
li.is-active
color: $highlight
transition: color .4s ease-in-out
span
opacity: 1
visibility: visible
transition: opacity .4s ease-in-out
&::before
left: -33px
color: $white