Adjusted sidebar menuitem and added hover animation

pull/4/head
Nikan Dalvand 2019-07-20 21:28:47 +04:30
parent 0acde51857
commit f2decf0aec
3 changed files with 11 additions and 4 deletions

View File

@ -31,6 +31,7 @@ $lato-font-path: '/node_modules/lato-font/fonts'
display: flex
@include lato-font('normal')
max-height: 100vh
user-select: none
.page-wrapper
flex-direction: column

View File

@ -3,9 +3,9 @@
<span>
<slot name="icon"></slot>
</span>
<a>
<span>
<slot>Nothing to show</slot>
</a>
</span>
</router-link>
</template>
@ -20,7 +20,13 @@ export default {
li.menu-item
display: flex
align-items: center
margin: 1rem 0
padding: 0.5rem
border-radius: 100px
cursor: pointer
transition: background-color 300ms
&:hover
background-color: rgba(0,0,0,0.05)
&.fade
a
outline: unset

View File

@ -100,7 +100,7 @@ section
width: 100%
max-width: 250px
min-height: 100vh
padding: 2rem 3rem
padding: 2rem 2rem
box-sizing: border-box
background-color: #fcfcfc
display: flex