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

Merge pull request #999 from BoostIO/fix-sideNav-style

Fix side nav style
This commit is contained in:
Kazu Yokomizo
2017-10-21 15:04:26 +09:00
committed by GitHub
3 changed files with 39 additions and 2 deletions

View File

@@ -15,7 +15,8 @@
navButtonColor() navButtonColor()
position absolute position absolute
top 22px top 22px
right 5px left 200px
height 23px
&:hover &:hover
color $ui-text-color color $ui-text-color
&:active, &:active:hover &:active, &:active:hover
@@ -49,6 +50,7 @@
.top-menu-label .top-menu-label
margin-left 5px margin-left 5px
overflow ellipsis overflow ellipsis
opacity 0
.tabBody .tabBody
flex 1 flex 1
@@ -65,6 +67,40 @@
overflow-y auto overflow-y auto
flex: 1 flex: 1
.root--folded
height 100vh
width $sideNav--folded-width
.switch-buttons
display none
.top
height 60px
.top-menu
position static
width $sideNav--folded-width
height 60px
text-align center
&:hover .top-menu-label
transition opacity 0.15s
opacity 1
.top-menu-label
position fixed
display inline-block
height 30px
left $sideNav--folded-width
padding 0 10px
margin-top -8px
opacity 0
margin-left 0
overflow hidden
background-color $ui-tooltip-backgroundColor
z-index 10
color white
line-height 30px
border-top-right-radius 2px
border-bottom-right-radius 2px
pointer-events none
font-size 12px
body[data-theme="dark"] body[data-theme="dark"]
.root, .root--folded .root, .root--folded
border-color $ui-dark-borderColor border-color $ui-dark-borderColor

View File

@@ -150,6 +150,7 @@ class SideNav extends React.Component {
onClick={(e) => this.handleMenuButtonClick(e)} onClick={(e) => this.handleMenuButtonClick(e)}
> >
<i className='fa fa-wrench fa-fw' /> <i className='fa fa-wrench fa-fw' />
<span styleName='top-menu-label'>Preferences</span>
</button> </button>
</div> </div>
</div> </div>