1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 10:16:26 +00:00

update style of buttons in SideNav

This commit is contained in:
Rokt33r
2016-05-14 19:01:57 +09:00
parent be20c2c800
commit da19066fb8
3 changed files with 38 additions and 16 deletions

View File

@@ -12,8 +12,13 @@
&:hover &:hover
background-color $ui-button--active-backgroundColor background-color $ui-button--active-backgroundColor
color $ui-button--active-color color $ui-button--active-color
.control .control-button
opacity 1 opacity 1
color white
&:hover
background-color alpha(white, 30%)
&:active, &:hover:active
background-color alpha(white, 15%)
.label .label
position absolute position absolute
@@ -29,20 +34,21 @@
margin-left 5px margin-left 5px
.control .control
opacity 0
position absolute position absolute
top 0 top 0
bottom 0 bottom 0
right 5px right 5px
width 24px width 24px
transition opacity 0.15s
.control-button .control-button
opacity 0
navButtonColor() navButtonColor()
width 24px width 24px
height 24px height 24px
margin-top 4.5px margin-top 4.5px
border-radius 5px border-radius 5px
transition opacity 0.15s
.root--edit .root--edit
@extend .root @extend .root

View File

@@ -3,25 +3,33 @@
color $nav-text-color color $nav-text-color
.header .header
navButtonColor()
position relative position relative
width 100% width 100%
height 33px height 33px
cursor pointer cursor pointer
text-align left text-align left
font-size 14px font-size 14px
color $ui-inactive-text-color
&:hover .header-control-button &:hover .header-control-button
opacity 1 opacity 1
&:active
background-color $ui-button--active-backgroundColor !important
color $ui-button--active-color
.header-control-button, .header-control-button--show
color white
.header--active .header--active, .header--active:hover, .header--active:active
@extend .header @extend .header
background-color $ui-button--active-backgroundColor background-color $ui-button--active-backgroundColor
color $ui-button--active-color color $ui-button--active-color
.header-control-button .header-control-button,
.header-control-button--show
color white
opacity 1 opacity 1
&:hover &:hover
background-color $ui-button--active-backgroundColor background-color alpha(white, 30%)
color $ui-button--active-color &:active
background-color alpha(white, 15%)
.header-name .header-name
position absolute position absolute
@@ -43,13 +51,18 @@
width 48px width 48px
.header-control-button .header-control-button
navButtonColor() border none
background-color transparent
width 24px width 24px
height 24px height 24px
padding 0 padding 0
margin-top 4.5px margin-top 4.5px
border-radius 5px border-radius 5px
opacity 0 opacity 0
color $ui-inactive-text-color
transition color background-color 0.15s
&:hover
background-color $ui-button--hover-backgroundColor
.header-control-button--show .header-control-button--show
@extend .header-control-button @extend .header-control-button
@@ -77,7 +90,7 @@
height 34px height 34px
width 100% width 100%
border none border none
padding-left 20px padding 0 0 0 20px
text-align left text-align left
line-height 34px line-height 34px

View File

@@ -1,7 +1,7 @@
.root .root
absolute top left absolute top left
bottom 24px bottom $statusBar-height
width 200px width $sideNav-width
border-right $ui-border border-right $ui-border
background-color $ui-backgroundColor background-color $ui-backgroundColor
user-select none user-select none
@@ -44,7 +44,8 @@
margin-left 5px margin-left 5px
.repositoryList .repositoryList
absolute left right bottom absolute left right
bottom 44px
top 178px top 178px
overflow-y auto overflow-y auto
@@ -61,8 +62,10 @@
right 5px right 5px
bottom 5px bottom 5px
border-radius 16.5px border-radius 16.5px
height 33px height 34px
width 33px width 34px
line-height 32px
padding 0
.root-folded .root-folded
@extend .root @extend .root