Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions browser/main/Detail/FolderSelect.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@
border solid 1px transparent
vertical-align middle
border-radius 2px
height 30px
transition 0.15s
user-select none
margin-right 10px
&:hover
background-color $ui-button--hover-backgroundColor

.root--search, .root--focus
@extend .root
background-color $ui-noteDetail-backgroundColor = #fff
border-color $ui-input--focus-borderColor
width 154px
height 30px
&:hover
border-color $ui-input--focus-borderColor = #fff

.idle
position relative
Expand Down
4 changes: 2 additions & 2 deletions browser/main/Detail/FullscreenButton.styl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
tooltip()
position absolute
pointer-events none
top 26px
right 0
top 50px
right 70px
z-index 200
padding 5px
line-height normal
Expand Down
4 changes: 2 additions & 2 deletions browser/main/Detail/InfoButton.styl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
tooltip()
position absolute
pointer-events none
top 26px
right 0
top 50px
right 20px
z-index 200
padding 5px
line-height normal
Expand Down
9 changes: 5 additions & 4 deletions browser/main/Detail/InfoPanel.styl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.control-infoButton-panel
z-index 200
margin-top 0px
right 0
right 25px
position absolute
padding 20px 25px 0 25px
width 300px
Expand Down Expand Up @@ -69,15 +69,16 @@
color $ui-text-color

.infoPanel-sub
font-size 14px
font-size 12px
font-weight 600
color $ui-inactive-text-color
padding-bottom 8px

.infoPanel-noteLink
padding-right 5px
width 200px
width 210px
height 25px
margin-bottom 6px
margin 6px 0

.infoPanel-copyButton
outline none
Expand Down
8 changes: 4 additions & 4 deletions browser/main/Detail/MarkdownNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,6 @@ class MarkdownNoteDetail extends React.Component {
<TodoListPercentage percentageOfTodo={getTodoPercentageOfCompleted(note.content)} />
</div>
<div styleName='info-right'>
<InfoButton
onClick={(e) => this.handleInfoButtonClick(e)}
/>

<StarButton
onClick={(e) => this.handleStarButtonClick(e)}
isActive={note.isStarred}
Expand All @@ -395,6 +391,10 @@ class MarkdownNoteDetail extends React.Component {

<TrashButton onClick={(e) => this.handleTrashButtonClick(e)} />

<InfoButton
onClick={(e) => this.handleInfoButtonClick(e)}
/>

<InfoPanel
storageName={currentOption.storage.name}
folderName={currentOption.folder.name}
Expand Down
4 changes: 1 addition & 3 deletions browser/main/Detail/MarkdownNoteDetail.styl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
padding-bottom 3px

.control-lockButton
top 150px
topBarButtonRight()

.trashed-infopanel
top 40px
position relative

.body
Expand All @@ -25,7 +23,7 @@
right 0
top $info-height + $info-margin-under-border
bottom $statusBar-height
margin 0 45px
margin 0 30px
.body-noteEditor
absolute top bottom left right

Expand Down
12 changes: 4 additions & 8 deletions browser/main/Detail/NoteDetailInfo.styl
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
@import('DetailVars')

$info-height = 50px
$info-height = 60px
$info-margin-under-border = 30px

.info
absolute top left right
left 0
right 0
height $info-height
border-bottom 1px solid #eee
background-color $ui-noteDetail-backgroundColor
width 100%
display flex
align-items center
padding 0 20px

.info-left
padding 0 10px
width 100%
display flex
align-items center


.info-left-top-folderSelect
display flex
align-items center
Expand All @@ -45,12 +44,9 @@ $info-margin-under-border = 30px
color $ui-button--color

.info-right
position absolute
right 40px
top 60px
bottom 1px
padding-left 30px
z-index 101
display inline-flex
margin-top 3px

.undo-button
width 34px
Expand Down
12 changes: 7 additions & 5 deletions browser/main/Detail/SnippetNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,21 +626,23 @@ class SnippetNoteDetail extends React.Component {
/>
</div>
<div styleName='info-right'>
<InfoButton
onClick={(e) => this.handleInfoButtonClick(e)}
/>

<StarButton
onClick={(e) => this.handleStarButtonClick(e)}
isActive={note.isStarred}
/>

<button styleName='control-fullScreenButton' title='Fullscreen'
onMouseDown={(e) => this.handleFullScreenButton(e)}>
<img styleName='iconInfo' src='../resources/icon/icon-sidebar.svg' />
<img styleName='iconInfo' src='../resources/icon/icon-full.svg' />
<span styleName='tooltip'>Fullscreen</span>
</button>

<TrashButton onClick={(e) => this.handleTrashButtonClick(e)} />

<InfoButton
onClick={(e) => this.handleInfoButtonClick(e)}
/>

<InfoPanel
storageName={currentOption.storage.name}
folderName={currentOption.folder.name}
Expand Down
18 changes: 16 additions & 2 deletions browser/main/Detail/SnippetNoteDetail.styl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

.body
absolute left right
left $snippet-note-detail-left-margin
right $snippet-note-detail-right-margin
margin 0 30px
top $info-height + $info-margin-under-border
bottom $statusBar-height
background-color $ui-noteDetail-backgroundColor
Expand Down Expand Up @@ -70,6 +69,21 @@
top 80px
margin-bottom 10px
topBarButtonRight()
&:hover .tooltip
opacity 1

.tooltip
tooltip()
position absolute
pointer-events none
top 50px
right 70px
z-index 200
padding 5px
line-height normal
border-radius 2px
opacity 0
transition 0.1s

body[data-theme="white"]
.root
Expand Down
6 changes: 3 additions & 3 deletions browser/main/Detail/StarButton.styl
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
tooltip()
position absolute
pointer-events none
top 26px
right 0
width 100%
top 50px
right 115px
width 40px
z-index 200
padding 5px
line-height normal
Expand Down
3 changes: 2 additions & 1 deletion browser/main/Detail/TagSelect.styl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
width 100%
overflow-x scroll
white-space nowrap
margin-right 10px
margin-top 31px
position absolute

.root::-webkit-scrollbar
display none
Expand Down
4 changes: 2 additions & 2 deletions browser/main/Detail/ToggleModeButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const ToggleModeButton = ({
}) => (
<div styleName='control-toggleModeButton'>
<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 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>
<span styleName='tooltip'>Toggle Mode</span>
</div>
Expand Down
43 changes: 20 additions & 23 deletions browser/main/Detail/ToggleModeButton.styl
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
.control-toggleModeButton
border 1px solid #eee
height 34px
height 25px
border-radius 50px
background-color #F4F4F4
width 52px
display flex
align-items center
position absolute
right 165px
.active
background-color #1EC38B
width 33px
height 24px
box-shadow 2px 0px 7px #eee
z-index 1

div
width 40px
height 100%
background-color #f9f9f9
border-radius 50%
display flex
align-items center
justify-content center
cursor pointer

&:first-child
border-right 1px solid #eee
.active
background-color #fff
box-shadow 2px 0px 7px #eee
z-index 1
&:hover .tooltip
opacity 1

.tooltip
tooltip()
position absolute
pointer-events none
top 47px
right 11px
top 33px
left -10px
z-index 200
width 80px
padding 5px
line-height normal
border-radius 2px
Expand All @@ -40,22 +45,14 @@ body[data-theme="dark"]
topBarButtonDark()

.control-toggleModeButton
border 1px solid #444444
div
background-color $ui-dark-noteDetail-backgroundColor
&:first-child
border-right 1px solid #444444
.active
background-color #3A404C
.active
background-color #1EC38B
box-shadow 2px 0px 7px #444444

body[data-theme="solarized-dark"]
.control-toggleModeButton
border 1px solid #586E75
div
background-color $ui-solarized-dark-noteDetail-backgroundColor
&:first-child
border-right 1px solid #586E75
.active
background-color #002B36
.active
background-color #1EC38B
box-shadow 2px 0px 7px #222222
4 changes: 2 additions & 2 deletions browser/main/Detail/TrashButton.styl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
tooltip()
position absolute
pointer-events none
top 26px
right 0
top 50px
right 50px
z-index 200
padding 5px
line-height normal
Expand Down
27 changes: 14 additions & 13 deletions browser/main/StatusBar/StatusBar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,20 @@
color white

.zoom
navButtonColor()
color rgba(0,0,0,.54)
height 20px
display flex
padding 0
align-items center
background-color transparent
&:hover
color $ui-active-color
&:active
color $ui-active-color
span
margin-left 5px
display none
// navButtonColor()
// color rgba(0,0,0,.54)
// height 20px
// display flex
// padding 0
// align-items center
// background-color transparent
// &:hover
// color $ui-active-color
// &:active
// color $ui-active-color
// span
// margin-left 5px

.update
navButtonColor()
Expand Down
2 changes: 1 addition & 1 deletion browser/main/global.styl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ body[data-theme="dark"]
.CodeMirror
font-family inherit !important
line-height 1.4em
height 96%
height 100%
.CodeMirror > div > textarea
margin-bottom -1em
.CodeMirror-focused .CodeMirror-selected
Expand Down
1 change: 0 additions & 1 deletion browser/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ modal()
border-radius $modal-border-radius

topBarButtonRight()
position absolute
width 34px
height 34px
border-radius 17px
Expand Down
Loading