diff --git a/browser/main/Detail/MarkdownNoteDetail.styl b/browser/main/Detail/MarkdownNoteDetail.styl index da3fd0b6..6c8e245d 100644 --- a/browser/main/Detail/MarkdownNoteDetail.styl +++ b/browser/main/Detail/MarkdownNoteDetail.styl @@ -1,4 +1,4 @@ -$info-height = 60px +@import('NoteDetailInfo') .root absolute top right bottom @@ -6,44 +6,6 @@ $info-height = 60px border-style solid border-color $ui-borderColor -.info - absolute top left right - height $info-height - border-bottom $ui-border - background-color $ui-backgroundColor - -.info-left - float left - padding 0 5px - margin 18px 2px - -.info-right - float right - -.info-right-button - width 34px - height 34px - border-radius 17px - navButtonColor() - border $ui-border - font-size 14px - margin 13px 2px - padding 0 - &:active - border-color $ui-button--focus-borderColor - &:hover .info-right-button-tooltip - opacity 1 - &:focus - border-color $ui-button--focus-borderColor - -.info-right-button-tooltip - tooltip() - position fixed - top 45px - padding 5px - opacity 0 - border-radius 2px - .body absolute left right top $info-height diff --git a/browser/main/Detail/NoteDetailInfo.styl b/browser/main/Detail/NoteDetailInfo.styl new file mode 100644 index 00000000..2e5774fd --- /dev/null +++ b/browser/main/Detail/NoteDetailInfo.styl @@ -0,0 +1,39 @@ +$info-height = 60px + +.info + absolute top left right + height $info-height + border-bottom $ui-border + background-color $ui-backgroundColor + +.info-left + float left + padding 0 5px + margin 18px 2px + +.info-right + float right + +.info-right-button + width 34px + height 34px + border-radius 17px + navButtonColor() + border $ui-border + font-size 14px + margin 13px 2px + padding 0 + &:active + border-color $ui-button--focus-borderColor + &:hover .info-right-button-tooltip + opacity 1 + &:focus + border-color $ui-button--focus-borderColor + +.info-right-button-tooltip + tooltip() + position fixed + top 45px + padding 5px + opacity 0 + border-radius 2px diff --git a/browser/main/Detail/SnippetNoteDetail.styl b/browser/main/Detail/SnippetNoteDetail.styl index 58ce40c5..5acec1ab 100644 --- a/browser/main/Detail/SnippetNoteDetail.styl +++ b/browser/main/Detail/SnippetNoteDetail.styl @@ -1,4 +1,4 @@ -$info-height = 60px +@import('NoteDetailInfo') .root absolute top bottom right @@ -6,42 +6,6 @@ $info-height = 60px border-style solid border-color $ui-borderColor -.info - absolute top left right - height $info-height - border-bottom $ui-border - background-color $ui-backgroundColor - -.info-left - float left - padding 0 5px - margin 18px 2px - -.info-right - float right - -.info-right-button - width 34px - height 34px - border-radius 17px - navButtonColor() - border $ui-border - font-size 14px - margin 13px 2px - padding 0 - &:active - border-color $ui-button--focus-borderColor - &:hover .info-right-button-tooltip - opacity 1 - &:focus - border-color $ui-button--focus-borderColor -.info-right-button-tooltip - tooltip() - position fixed - top 45px - padding 5px - opacity 0 - .body absolute left right top $info-height