1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #520 from BoostIO/improvement-of-sidebar-uiux

Improvement of sidebar uiux
This commit is contained in:
Kazu Yokomizo
2017-04-29 11:17:03 +09:00
committed by GitHub
2 changed files with 29 additions and 10 deletions

View File

@@ -35,7 +35,7 @@
.folderList-item-name
display block
flex 1
padding 0 15px
padding 0 25px
height 26px
line-height 26px
border-width 0 0 0 2px

View File

@@ -4,12 +4,13 @@
.header
position relative
height 26px
height 25px
width 100%
margin-bottom 5px
transition 0.15s
.header--active
margin-bottom 5px
background-color $ui-button--active-backgroundColor
transition color background-color 0.15s
@@ -30,26 +31,29 @@
position absolute
left 0
width 25px
height 26px
height 25px
padding 0
border none
border-radius 50%
&:hover
background-color transparent
transition 0.2s
background-color alpha($ui-button--active-backgroundColor, 40%)
color $ui-text-color
.header-info
navButtonColor()
display block
width 100%
height 30px
padding-left 25px
height 25px
padding-left 23px
padding-right 10px
line-height 26px
line-height 22px
cursor pointer
font-size 13px
border none
overflow ellipsis
text-align left
background-color alpha($ui-button--active-backgroundColor, 20%)
.header-info-path
font-size 10px
@@ -60,11 +64,14 @@
position absolute
right 0
width 25px
height 26px
height 25px
padding 0
border none
margin-right 5px
border-radius 50%
&:hover
background-color transparent
transition 0.2s
background-color alpha($ui-button--active-backgroundColor, 40%)
color $ui-text-color
.root--folded
@@ -117,10 +124,17 @@ body[data-theme="dark"]
.header-toggleButton
&:hover
transition 0.2s
color $ui-dark-text-color
background-color alpha($ui-dark-button--active-backgroundColor, 60%)
&:active, &:active:hover
color $ui-dark-text-color
background-color $ui-dark-button--active-backgroundColor
.header-info
background-color alpha($ui-dark-button--active-backgroundColor, 20%)
&:hover
transition 0.2s
color $ui-dark-text-color
background-color alpha($ui-dark-button--active-backgroundColor, 20%)
&:active, &:active:hover
@@ -129,4 +143,9 @@ body[data-theme="dark"]
.header-addFolderButton
&:hover
transition 0.2s
color $ui-dark-text-color
background-color alpha($ui-dark-button--active-backgroundColor, 60%)
&:active, &:active:hover
color $ui-dark-text-color
background-color $ui-dark-button--active-backgroundColor