Skip to content

Commit

Permalink
Change the styleName info-right-button to control-trashButton because…
Browse files Browse the repository at this point in the history
… it's not good name

* fix the position of lock button
  • Loading branch information
asmsuechan committed Mar 19, 2017
1 parent 2af86df commit 45111e1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion browser/main/Detail/MarkdownNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class MarkdownNoteDetail extends React.Component {
this.state.isLockButtonShown ? lockButtonComponent : ''
)
})()}
<button styleName='info-right-button'
<button styleName='control-trashButton'
onClick={(e) => this.handleContextButtonClick(e)}
>
<svg height="17px" id="Capa_1" style={{"enableBackground":"new 0 0 753.23 753.23"}} width="17px" version="1.1" viewBox="0 0 753.23 753.23" x="0px" y="0px" xmlSpace="preserve">
Expand Down
24 changes: 24 additions & 0 deletions browser/main/Detail/MarkdownNoteDetail.styl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@
opacity 0
transition 0.1s

.control-trashButton
float right
width 34px
height 34px
border-radius 17px
font-size 14px
margin 13px 7px
padding-top 7px
border none
color $ui-button-color
fill $ui-button-color
background-color transparent
&:hover
opacity 1
background-color $ui-button--hover-backgroundColor

.body
absolute left right
left $note-detail-left-margin
Expand All @@ -64,3 +80,11 @@ body[data-theme="dark"]

.control-lockButton-tooltip
darkTooltip()

.control-trashButton
navDarkButtonColor()
border-color $ui-dark-borderColor
&:active
border-color $ui-dark-button--focus-borderColor
&:focus
border-color $ui-button--focus-borderColor
24 changes: 0 additions & 24 deletions browser/main/Detail/NoteDetailInfo.styl
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,6 @@ $info-margin-under-border = 27px
bottom 1px
padding-left 30px

.info-right-button
width 34px
height 34px
border-radius 17px
font-size 14px
margin 13px 7px
padding-top 7px
border none
color $ui-button-color
fill $ui-button-color
background-color transparent
&:hover
opacity 1
background-color $ui-button--hover-backgroundColor


body[data-theme="dark"]
.info
border-color $ui-dark-borderColor
Expand All @@ -89,11 +73,3 @@ body[data-theme="dark"]

.info-right
background-color $ui-dark-noteDetail-backgroundColor

.info-right-button
navDarkButtonColor()
border-color $ui-dark-borderColor
&:active
border-color $ui-dark-button--focus-borderColor
&:focus
border-color $ui-button--focus-borderColor

0 comments on commit 45111e1

Please sign in to comment.