1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

modify: add shadow on notelist and topbar component(light theme)

This commit is contained in:
sota1235
2016-12-30 13:15:07 +09:00
parent d0990be856
commit d19ff3ff17
5 changed files with 23 additions and 2 deletions

View File

@@ -194,8 +194,8 @@ class Main extends React.Component {
'location'
])}
/>
<div styleName={this.state.isRightSliderFocused ? 'slider--active' : 'slider'}
style={{left: this.state.listWidth}}
<div styleName={this.state.isRightSliderFocused ? 'slider-right--active' : 'slider-right'}
style={{left: this.state.listWidth - 1}}
onMouseDown={(e) => this.handleRightSlideMouseDown(e)}
draggable='false'
>

View File

@@ -11,11 +11,21 @@
.slider
absolute top bottom
top -2px
width 0
.slider-right
@extend .slider
z-index $right-slider-z-index
width 1px
box-shadow 0 2px 10px 0px #b1b1b1
.slider--active
@extend .slider
.slider-right--active
@extend .slider-right
.slider-hitbox
absolute top bottom left right
width 7px
@@ -27,3 +37,7 @@
body[data-theme="dark"]
.root
absolute top left bottom right
.slider-right
.slider-right--active
box-shadow none

View File

@@ -4,6 +4,7 @@ $control-height = 30px
absolute left bottom
top $topBar-height - 1
background-color $ui-noteList-backgroundColor
z-index $notelist-z-index
.control
absolute top left right

View File

@@ -2,6 +2,7 @@
position relative
background-color $ui-noteList-backgroundColor
height $topBar-height - 1
z-index $topbar-z-index
.root--expanded
@extend .root

View File

@@ -10,6 +10,11 @@ $sideNav-width = 200px
$sideNav--folded-width = 44px
$topBar-height = 60px
// z-index
$topbar-z-index = 20
$notelist-z-index = 20
$right-slider-z-index = 10
// UI default
$ui-text-color = #515151
$ui-inactive-text-color = #939395