mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Tag button at topbar in sidenav
This commit is contained in:
@@ -21,11 +21,27 @@
|
||||
color $ui-text-color
|
||||
background-color alpha($ui-button--active-backgroundColor, 20%)
|
||||
|
||||
.active-button
|
||||
background-color $ui-button--active-color
|
||||
.switch-buttons
|
||||
background-color transparent
|
||||
border 1px solid $ui-borderColor
|
||||
width 100px
|
||||
margin 20px auto 0px auto
|
||||
border-radius 1px
|
||||
|
||||
.non-active-button
|
||||
background-color $ui-button-color
|
||||
navButtonColor()
|
||||
font-weight 600
|
||||
width 49px
|
||||
|
||||
.active-button
|
||||
@extend .non-active-button
|
||||
background-color $ui-button--active-backgroundColor
|
||||
color $ui-text-color
|
||||
&:hover
|
||||
background-color alpha($ui-button--active-backgroundColor, 70%)
|
||||
color alpha($ui-text-color, 70%)
|
||||
&:active, &:active:hover
|
||||
background-color $ui-button--active-backgroundColor
|
||||
|
||||
.top-menu-label
|
||||
margin-left 5px
|
||||
|
||||
@@ -145,11 +145,13 @@ class SideNav extends React.Component {
|
||||
<button styleName={isTagActive ? 'non-active-button' : 'active-button'} onClick={this.handleSwitchFoldersButtonClick.bind(this)}>Folders</button>
|
||||
<button styleName={isTagActive ? 'active-button' : 'non-active-button'} onClick={this.handleSwitchTagsButtonClick.bind(this)}>Tags</button>
|
||||
</div>
|
||||
<button styleName='top-menu'
|
||||
onClick={(e) => this.handleMenuButtonClick(e)}
|
||||
>
|
||||
<i className='fa fa-wrench fa-fw' />
|
||||
</button>
|
||||
<div>
|
||||
<button styleName='top-menu'
|
||||
onClick={(e) => this.handleMenuButtonClick(e)}
|
||||
>
|
||||
<i className='fa fa-wrench fa-fw' />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{this.SideNavComponent(isFolded, storageList)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user