1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +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' 'location'
])} ])}
/> />
<div styleName={this.state.isRightSliderFocused ? 'slider--active' : 'slider'} <div styleName={this.state.isRightSliderFocused ? 'slider-right--active' : 'slider-right'}
style={{left: this.state.listWidth}} style={{left: this.state.listWidth - 1}}
onMouseDown={(e) => this.handleRightSlideMouseDown(e)} onMouseDown={(e) => this.handleRightSlideMouseDown(e)}
draggable='false' draggable='false'
> >

View File

@@ -11,11 +11,21 @@
.slider .slider
absolute top bottom absolute top bottom
top -2px
width 0 width 0
.slider-right
@extend .slider
z-index $right-slider-z-index
width 1px
box-shadow 0 2px 10px 0px #b1b1b1
.slider--active .slider--active
@extend .slider @extend .slider
.slider-right--active
@extend .slider-right
.slider-hitbox .slider-hitbox
absolute top bottom left right absolute top bottom left right
width 7px width 7px
@@ -27,3 +37,7 @@
body[data-theme="dark"] body[data-theme="dark"]
.root .root
absolute top left bottom right 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 absolute left bottom
top $topBar-height - 1 top $topBar-height - 1
background-color $ui-noteList-backgroundColor background-color $ui-noteList-backgroundColor
z-index $notelist-z-index
.control .control
absolute top left right absolute top left right

View File

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

View File

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