mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
update design of SideNav
smaller menu
This commit is contained in:
@@ -30,8 +30,10 @@ $list-width = 250px
|
|||||||
absolute left top bottom
|
absolute left top bottom
|
||||||
width $nav-width
|
width $nav-width
|
||||||
background-color $ui-backgroundColor
|
background-color $ui-backgroundColor
|
||||||
|
|
||||||
.result-nav-filter
|
.result-nav-filter
|
||||||
margin-bottom 5px
|
margin-bottom 5px
|
||||||
|
|
||||||
.result-nav-filter-option
|
.result-nav-filter-option
|
||||||
height 25px
|
height 25px
|
||||||
line-height 25px
|
line-height 25px
|
||||||
@@ -41,13 +43,13 @@ $list-width = 250px
|
|||||||
|
|
||||||
.result-nav-menu
|
.result-nav-menu
|
||||||
navButtonColor()
|
navButtonColor()
|
||||||
height 40px
|
height 32px
|
||||||
padding 0 10px
|
padding 0 10px
|
||||||
font-size 14px
|
font-size 14px
|
||||||
width 100%
|
width 100%
|
||||||
outline none
|
outline none
|
||||||
text-align left
|
text-align left
|
||||||
line-height 40px
|
line-height 32px
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
cursor pointer
|
cursor pointer
|
||||||
|
|
||||||
@@ -60,7 +62,7 @@ $list-width = 250px
|
|||||||
|
|
||||||
.result-nav-storageList
|
.result-nav-storageList
|
||||||
absolute bottom left right
|
absolute bottom left right
|
||||||
top 80px + 50px + 10px
|
top 80px + 32px + 10px
|
||||||
overflow-y auto
|
overflow-y auto
|
||||||
|
|
||||||
.result-list
|
.result-list
|
||||||
|
|||||||
@@ -115,6 +115,7 @@
|
|||||||
color $ui-inactive-text-color
|
color $ui-inactive-text-color
|
||||||
vertical-align middle
|
vertical-align middle
|
||||||
font-size 10px
|
font-size 10px
|
||||||
|
margin-left 5px
|
||||||
|
|
||||||
.bottom-time
|
.bottom-time
|
||||||
color $ui-inactive-text-color
|
color $ui-inactive-text-color
|
||||||
|
|||||||
@@ -48,7 +48,13 @@ class StorageSection extends React.Component {
|
|||||||
<div styleName='header'>
|
<div styleName='header'>
|
||||||
<button styleName='header-toggleButton'
|
<button styleName='header-toggleButton'
|
||||||
onClick={(e) => this.handleToggleButtonClick(e)}
|
onClick={(e) => this.handleToggleButtonClick(e)}
|
||||||
><i className='fa fa-caret-down'/></button>
|
>
|
||||||
|
<i className={this.state.isOpen
|
||||||
|
? 'fa fa-caret-down'
|
||||||
|
: 'fa fa-caret-right'
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
<button styleName={filter.type === 'STORAGE' && filter.storage === storage.key
|
<button styleName={filter.type === 'STORAGE' && filter.storage === storage.key
|
||||||
? 'header-name--active'
|
? 'header-name--active'
|
||||||
: 'header-name'
|
: 'header-name'
|
||||||
|
|||||||
@@ -2,23 +2,23 @@
|
|||||||
position relative
|
position relative
|
||||||
|
|
||||||
.header
|
.header
|
||||||
height 30px
|
height 26px
|
||||||
.header-toggleButton
|
.header-toggleButton
|
||||||
absolute top left
|
absolute top left
|
||||||
width 25px
|
width 25px
|
||||||
height 30px
|
height 26px
|
||||||
navButtonColor()
|
navButtonColor()
|
||||||
border none
|
border none
|
||||||
outline none
|
outline none
|
||||||
.header-name
|
.header-name
|
||||||
display block
|
display block
|
||||||
height 30px
|
height 26px
|
||||||
navButtonColor()
|
navButtonColor()
|
||||||
padding 0 10px 0 25px
|
padding 0 10px 0 25px
|
||||||
font-size 14px
|
font-size 14px
|
||||||
width 100%
|
width 100%
|
||||||
text-align left
|
text-align left
|
||||||
line-height 30px
|
line-height 26px
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
cursor pointer
|
cursor pointer
|
||||||
outline none
|
outline none
|
||||||
@@ -33,20 +33,20 @@
|
|||||||
.folderList-item
|
.folderList-item
|
||||||
display block
|
display block
|
||||||
width 100%
|
width 100%
|
||||||
height 30px
|
height 26px
|
||||||
navButtonColor()
|
navButtonColor()
|
||||||
padding 0 10px 0 25px
|
padding 0 10px 0 25px
|
||||||
font-size 14px
|
font-size 14px
|
||||||
width 100%
|
width 100%
|
||||||
text-align left
|
text-align left
|
||||||
line-height 30px
|
line-height 26px
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
cursor pointer
|
cursor pointer
|
||||||
outline none
|
outline none
|
||||||
padding 0 10px
|
padding 0 10px
|
||||||
margin 2px 0
|
margin 2px 0
|
||||||
height 30px
|
height 26px
|
||||||
line-height 30px
|
line-height 26px
|
||||||
border-width 0 0 0 6px
|
border-width 0 0 0 6px
|
||||||
border-style solid
|
border-style solid
|
||||||
border-color transparent
|
border-color transparent
|
||||||
|
|||||||
@@ -146,6 +146,7 @@
|
|||||||
color $ui-inactive-text-color
|
color $ui-inactive-text-color
|
||||||
vertical-align middle
|
vertical-align middle
|
||||||
font-size 10px
|
font-size 10px
|
||||||
|
margin-left 5px
|
||||||
|
|
||||||
.item-bottom-time
|
.item-bottom-time
|
||||||
color $ui-inactive-text-color
|
color $ui-inactive-text-color
|
||||||
|
|||||||
@@ -25,11 +25,11 @@
|
|||||||
overflow ellipsis
|
overflow ellipsis
|
||||||
|
|
||||||
.menu
|
.menu
|
||||||
margin-top 15px
|
margin 0
|
||||||
|
|
||||||
.menu-button
|
.menu-button
|
||||||
navButtonColor()
|
navButtonColor()
|
||||||
height 44px
|
height 32px
|
||||||
padding 0 10px
|
padding 0 10px
|
||||||
font-size 14px
|
font-size 14px
|
||||||
width 100%
|
width 100%
|
||||||
@@ -48,8 +48,8 @@
|
|||||||
|
|
||||||
.storageList
|
.storageList
|
||||||
absolute left right
|
absolute left right
|
||||||
bottom 44px
|
bottom 32px
|
||||||
top 178px
|
top 120px
|
||||||
overflow-y auto
|
overflow-y auto
|
||||||
|
|
||||||
.storageList-empty
|
.storageList-empty
|
||||||
@@ -86,9 +86,9 @@
|
|||||||
position fixed
|
position fixed
|
||||||
display inline-block
|
display inline-block
|
||||||
height 30px
|
height 30px
|
||||||
left 44px
|
left 32px
|
||||||
padding 0 10px
|
padding 0 10px
|
||||||
margin-top -7px
|
margin-top -8px
|
||||||
opacity 0
|
opacity 0
|
||||||
margin-left 0
|
margin-left 0
|
||||||
overflow hidden
|
overflow hidden
|
||||||
@@ -105,20 +105,20 @@
|
|||||||
&:hover .menu-button-label
|
&:hover .menu-button-label
|
||||||
transition opacity 0.15s
|
transition opacity 0.15s
|
||||||
opacity 1
|
opacity 1
|
||||||
// TODO: extract tooltip style to a mixin
|
|
||||||
.menu-button-label
|
.menu-button-label
|
||||||
position fixed
|
position fixed
|
||||||
display inline-block
|
display inline-block
|
||||||
height 30px
|
height 32px
|
||||||
left 44px
|
left 44px
|
||||||
padding 0 10px
|
padding 0 10px
|
||||||
margin-top -7px
|
margin-top -8px
|
||||||
margin-left 0
|
margin-left 0
|
||||||
overflow ellipsis
|
overflow ellipsis
|
||||||
background-color $ui-tooltip-backgroundColor
|
background-color $ui-tooltip-backgroundColor
|
||||||
z-index 10
|
z-index 10
|
||||||
color white
|
color white
|
||||||
line-height 34px
|
line-height 32px
|
||||||
border-top-right-radius 2px
|
border-top-right-radius 2px
|
||||||
border-bottom-right-radius 2px
|
border-bottom-right-radius 2px
|
||||||
pointer-events none
|
pointer-events none
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
user-select none
|
user-select none
|
||||||
.header
|
.header
|
||||||
position relative
|
position relative
|
||||||
height 30px
|
height 26px
|
||||||
width 100%
|
width 100%
|
||||||
&:hover
|
&:hover
|
||||||
background-color $ui-button--hover-backgroundColor
|
background-color $ui-button--hover-backgroundColor
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
position absolute
|
position absolute
|
||||||
left 0
|
left 0
|
||||||
width 25px
|
width 25px
|
||||||
height 30px
|
height 26px
|
||||||
padding 0
|
padding 0
|
||||||
border none
|
border none
|
||||||
color $ui-inactive-text-color
|
color $ui-inactive-text-color
|
||||||
@@ -37,10 +37,10 @@
|
|||||||
.header-info
|
.header-info
|
||||||
display block
|
display block
|
||||||
width 100%
|
width 100%
|
||||||
height 30px
|
height 26px
|
||||||
padding-left 25px
|
padding-left 25px
|
||||||
padding-right 10px
|
padding-right 10px
|
||||||
line-height 30px
|
line-height 26px
|
||||||
cursor pointer
|
cursor pointer
|
||||||
font-size 14px
|
font-size 14px
|
||||||
border none
|
border none
|
||||||
@@ -58,11 +58,11 @@
|
|||||||
.folderList-item
|
.folderList-item
|
||||||
display block
|
display block
|
||||||
width 100%
|
width 100%
|
||||||
height 30px
|
height 26px
|
||||||
background-color transparent
|
background-color transparent
|
||||||
color $ui-inactive-text-color
|
color $ui-inactive-text-color
|
||||||
padding 0
|
padding 0
|
||||||
margin 2px 0
|
margin-bottom 2px
|
||||||
text-align left
|
text-align left
|
||||||
border none
|
border none
|
||||||
overflow ellipsis
|
overflow ellipsis
|
||||||
@@ -84,8 +84,8 @@
|
|||||||
.folderList-item-name
|
.folderList-item-name
|
||||||
display block
|
display block
|
||||||
padding 0 10px
|
padding 0 10px
|
||||||
height 30px
|
height 26px
|
||||||
line-height 30px
|
line-height 26px
|
||||||
border-width 0 0 0 6px
|
border-width 0 0 0 6px
|
||||||
border-style solid
|
border-style solid
|
||||||
border-color transparent
|
border-color transparent
|
||||||
@@ -99,9 +99,9 @@
|
|||||||
opacity 0
|
opacity 0
|
||||||
border-top-right-radius 2px
|
border-top-right-radius 2px
|
||||||
border-bottom-right-radius 2px
|
border-bottom-right-radius 2px
|
||||||
height 30px
|
height 26px
|
||||||
margin-top -30px
|
margin-top -26px
|
||||||
line-height 30px
|
line-height 26px
|
||||||
.root--folded
|
.root--folded
|
||||||
@extend .root
|
@extend .root
|
||||||
.header
|
.header
|
||||||
|
|||||||
Reference in New Issue
Block a user