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

fix button tooltip & popup menu style

This commit is contained in:
Rokt33r
2016-01-04 19:57:01 +09:00
parent 4e0e11a611
commit 08b0c43382
3 changed files with 12 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ othersMenu.append(new MenuItem({
}))
const BRAND_COLOR = '#18AF90'
const OSX = global.process.platform === 'darwin'
const editDeleteTutorialElement = (
<svg width='300' height='500' className='tutorial'>
@@ -318,6 +319,7 @@ export default class ArticleDetail extends React.Component {
disabled={!isUnsaved}
>
<i className='fa fa-fw fa-save'/>&nbsp;Save
<span className='tooltip' children={`Save Post (${OSX ? '⌘' : '^'} + S)`}/>
</button>
</div>

View File

@@ -186,7 +186,7 @@ export default class ArticleNavigator extends React.Component {
<div className='title'>Folders</div>
<button onClick={e => this.handleNewFolderButton(e)} className='addBtn'>
<i className='fa fa-fw fa-plus'/>
<span className='tooltip'>Create a new folder ({OSX === 'darwin' ? '⌘' : '^'} + Shift + n)</span>
<span className='tooltip'>Create a new folder ({OSX ? '⌘' : '^'} + Shift + n)</span>
</button>
{status.isTutorialOpen ? newFolderTutorialElement : null}

View File

@@ -110,6 +110,13 @@ infoButton()
&:focus
color white
background-color lighten(brandColor, 15%)
.tooltip
tooltip()
margin-top 30px
margin-left -90px
&:hover .tooltip
opacity 1
.ShareButton-open-button .tooltip
margin-left -40px
.ShareButton-dropdown
@@ -121,7 +128,7 @@ infoButton()
border-radius 5px
right 5px
top 95px
box-shadow 0px 0px 10px 1px #c0c0c0
box-shadow 0px 0px 10px 1px alpha(#bbb, 0.8)
border 1px solid #bcbcbc
&.hide
display none
@@ -133,7 +140,7 @@ infoButton()
padding-left 20px
text-align left
font-size 13px
font-family 'Helvetica Neue'
font-family '.HelveticaNeueDeskInterface-Regular'
&:hover
background-color #4297FE
color white