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

Fix info right buttons layout

This commit is contained in:
Kazu Yokomizo
2018-01-23 20:50:48 -05:00
parent 6de5488a15
commit 30f6f07434
6 changed files with 21 additions and 29 deletions

View File

@@ -12,11 +12,9 @@
padding-bottom 3px padding-bottom 3px
.control-lockButton .control-lockButton
top 150px
topBarButtonRight() topBarButtonRight()
.trashed-infopanel .trashed-infopanel
top 40px
position relative position relative
.body .body

View File

@@ -1,6 +1,6 @@
@import('DetailVars') @import('DetailVars')
$info-height = 50px $info-height = 80px
$info-margin-under-border = 30px $info-margin-under-border = 30px
.info .info
@@ -8,11 +8,11 @@ $info-margin-under-border = 30px
left 0 left 0
right 0 right 0
height $info-height height $info-height
border-bottom 1px solid #eee
background-color $ui-noteDetail-backgroundColor background-color $ui-noteDetail-backgroundColor
width 100% width 100%
display flex display flex
align-items center align-items center
padding 0 20px
.info-left .info-left
padding 0 10px padding 0 10px
@@ -20,7 +20,6 @@ $info-margin-under-border = 30px
display flex display flex
align-items center align-items center
.info-left-top-folderSelect .info-left-top-folderSelect
display flex display flex
align-items center align-items center
@@ -45,12 +44,9 @@ $info-margin-under-border = 30px
color $ui-button--color color $ui-button--color
.info-right .info-right
position absolute
right 40px
top 60px
bottom 1px
padding-left 30px
z-index 101 z-index 101
display inline-flex
margin-top 5px
.undo-button .undo-button
width 34px width 34px

View File

@@ -6,7 +6,8 @@
width 100% width 100%
overflow-x scroll overflow-x scroll
white-space nowrap white-space nowrap
margin-right 10px padding-top 80px
position absolute
.root::-webkit-scrollbar .root::-webkit-scrollbar
display none display none

View File

@@ -8,10 +8,10 @@ const ToggleModeButton = ({
}) => ( }) => (
<div styleName='control-toggleModeButton'> <div styleName='control-toggleModeButton'>
<div styleName={editorType === 'SPLIT' ? 'active' : 'non-active'} onClick={() => onClick('SPLIT')}> <div styleName={editorType === 'SPLIT' ? 'active' : 'non-active'} onClick={() => onClick('SPLIT')}>
<img styleName='item-star' src={editorType === 'EDITOR_PREVIEW' ? '../resources/icon/icon-mode-split-on.svg' : '../resources/icon/icon-mode-split-on-active.svg'} /> <img styleName='item-star' src={editorType === 'EDITOR_PREVIEW' ? '../resources/icon/icon-mode-markdown-off-active.svg' : ''} />
</div> </div>
<div styleName={editorType === 'EDITOR_PREVIEW' ? 'active' : 'non-active'} onClick={() => onClick('EDITOR_PREVIEW')}> <div styleName={editorType === 'EDITOR_PREVIEW' ? 'active' : 'non-active'} onClick={() => onClick('EDITOR_PREVIEW')}>
<img styleName='item-star' src={editorType === 'EDITOR_PREVIEW' ? '../resources/icon/icon-mode-markdown-off-active.svg' : '../resources/icon/icon-mode-markdown-off.svg'} /> <img styleName='item-star' src={editorType === 'EDITOR_PREVIEW' ? '' : '../resources/icon/icon-mode-split-on-active.svg'} />
</div> </div>
<span styleName='tooltip'>Toggle Mode</span> <span styleName='tooltip'>Toggle Mode</span>
</div> </div>

View File

@@ -1,24 +1,28 @@
.control-toggleModeButton .control-toggleModeButton
border 1px solid #eee height 29px
height 34px border-radius 50px
background-color #F4F4F4
width 67px
display flex display flex
align-items center align-items center
position absolute
right 165px
.active
background-color #1EC38B
width 33px
height 30px
box-shadow 2px 0px 7px #eee
z-index 1
div div
width 40px width 40px
height 100% height 100%
background-color #f9f9f9 border-radius 50%
display flex display flex
align-items center align-items center
justify-content center justify-content center
cursor pointer cursor pointer
&:first-child
border-right 1px solid #eee
.active
background-color #fff
box-shadow 2px 0px 7px #eee
z-index 1
&:hover .tooltip &:hover .tooltip
opacity 1 opacity 1
@@ -40,22 +44,16 @@ body[data-theme="dark"]
topBarButtonDark() topBarButtonDark()
.control-toggleModeButton .control-toggleModeButton
border 1px solid #444444
div div
background-color $ui-dark-noteDetail-backgroundColor background-color $ui-dark-noteDetail-backgroundColor
&:first-child
border-right 1px solid #444444
.active .active
background-color #3A404C background-color #3A404C
box-shadow 2px 0px 7px #444444 box-shadow 2px 0px 7px #444444
body[data-theme="solarized-dark"] body[data-theme="solarized-dark"]
.control-toggleModeButton .control-toggleModeButton
border 1px solid #586E75
div div
background-color $ui-solarized-dark-noteDetail-backgroundColor background-color $ui-solarized-dark-noteDetail-backgroundColor
&:first-child
border-right 1px solid #586E75
.active .active
background-color #002B36 background-color #002B36
box-shadow 2px 0px 7px #222222 box-shadow 2px 0px 7px #222222

View File

@@ -188,7 +188,6 @@ modal()
border-radius $modal-border-radius border-radius $modal-border-radius
topBarButtonRight() topBarButtonRight()
position absolute
width 34px width 34px
height 34px height 34px
border-radius 17px border-radius 17px