1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

実装 - PlanetHeaderにPrivate鍵表示

This commit is contained in:
Rokt33r
2015-08-20 16:41:05 +09:00
parent 2fb51fe37c
commit caf7606893
3 changed files with 39 additions and 2 deletions

View File

@@ -37,6 +37,14 @@ module.exports = React.createClass({
<div className='headerLabel'> <div className='headerLabel'>
<span className='userName'>{currentUserName}</span><br/> <span className='userName'>{currentUserName}</span><br/>
<span className='planetName'>{currentPlanetName}</span> <span className='planetName'>{currentPlanetName}</span>
{this.props.currentPlanet.public ? null : (
<div className='private'>
<i className='fa fa-lock'/>
<div className='privateTooltip'>Private planet</div>
</div>
)}
<button onClick={this.openPlanetSettingModal} className='menuBtn'> <button onClick={this.openPlanetSettingModal} className='menuBtn'>
<i className='fa fa-chevron-down'></i> <i className='fa fa-chevron-down'></i>
</button> </button>

View File

@@ -51,6 +51,35 @@ articleListWidth= 275px
white-space nowrap white-space nowrap
&:hover &:hover
color darken(brandBorderColor, 30%) color darken(brandBorderColor, 30%)
.private
position absolute
top 12px
right 38px
width 33px
height 33px
line-height 33px
text-align center
color inactiveColor
&:hover
color textColor
.privateTooltip
position fixed
z-index popupZIndex
background-color transparentify(invBackgroundColor, 80%)
color invTextColor
padding 10px
font-size 0.9em
line-height 0.9em
border-radius 5px
white-space nowrap
opacity 0
transition 0.1s
pointer-events none
margin-left -30px
&:hover .privateTooltip
opacity 1
.menuBtn .menuBtn
position absolute position absolute
top 12px top 12px

View File

@@ -126,7 +126,7 @@
background-color white background-color white
.planetTooltip .planetTooltip
position absolute position absolute
z-index 500 z-index popupZIndex
background-color transparentify(invBackgroundColor, 80%) background-color transparentify(invBackgroundColor, 80%)
color invTextColor color invTextColor
padding 10px padding 10px