Task-add: Use a button instead of a link, and prevent default

Avoids the issue of re-loading the page on task-add
This commit is contained in:
2017-02-14 15:34:29 +01:00
parent 9aaa2365cf
commit aa90a4433f
3 changed files with 39 additions and 17 deletions

View File

@@ -206,18 +206,6 @@ nav.sidebar
&.active
background-image: none
&.task-add
width: auto
border-radius: initial
opacity: 0
vertical-align: middle
padding: 5px
display: flex
justify-content: center
&:hover, &:focus
opacity: 1
&:hover
&:before
opacity: .8
@@ -225,6 +213,22 @@ nav.sidebar
&.active:before
transform: translate(-50%, -50%) scale(1.3)
button.task-add
display: flex
width: auto
border-radius: initial
opacity: 0
vertical-align: middle
padding: 5px
justify-content: center
color: $color-primary
border: none
background: none
&:hover, &:focus
opacity: 1
.item-list-header
a
color: $color-text-dark