mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Fix: Preview button修正
This commit is contained in:
@@ -132,7 +132,7 @@ var BlueprintForm = React.createClass({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='modal-footer'>
|
<div className='modal-footer'>
|
||||||
<button onClick={this.togglePreview} className='btn-default'>Toggle Preview</button>
|
<button onClick={this.togglePreview} className={'btn-default' + (this.state.mode === BlueprintForm.PREVIEW_MODE ? ' active' : '')}>Preview mode</button>
|
||||||
<div className='modal-control'>
|
<div className='modal-control'>
|
||||||
<button onClick={this.props.close} className='btn-default'>Cancel</button>
|
<button onClick={this.props.close} className='btn-default'>Cancel</button>
|
||||||
<button onClick={this.submit} className='btn-primary'>Launch</button>
|
<button onClick={this.submit} className='btn-primary'>Launch</button>
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ var PlanetArticleList = React.createClass({
|
|||||||
<div className='callSign'><i className='fa fa-file-text-o fa-fw'></i> {article.title}</div>
|
<div className='callSign'><i className='fa fa-file-text-o fa-fw'></i> {article.title}</div>
|
||||||
<div className='updatedAt'>{moment(article.updatedAt).fromNow()}</div>
|
<div className='updatedAt'>{moment(article.updatedAt).fromNow()}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='content'>{this.markdown(article.content.substring(0, 150)).replace(/(<([^>]+)>)/ig, '').substring(0, 75)}</div>
|
|
||||||
<div className='tags'><i className='fa fa-tags'/>{tags}</div>
|
<div className='tags'><i className='fa fa-tags'/>{tags}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='divider'></div>
|
<div className='divider'></div>
|
||||||
|
|||||||
@@ -165,19 +165,20 @@
|
|||||||
transition 0.1s
|
transition 0.1s
|
||||||
.itemHeader
|
.itemHeader
|
||||||
clearfix()
|
clearfix()
|
||||||
margin-bottom 5px
|
margin-bottom 15px
|
||||||
.callSign, .title
|
.callSign, .title
|
||||||
float left
|
float left
|
||||||
font-weight 600
|
font-weight 600
|
||||||
font-size 1.1em
|
font-size 1.1em
|
||||||
|
line-height 140%
|
||||||
.updatedAt
|
.updatedAt
|
||||||
float right
|
float right
|
||||||
line-height 16px
|
line-height 16px
|
||||||
color lighten(textColor, 25%)
|
color lighten(textColor, 25%)
|
||||||
font-size 0.8em
|
font-size 0.8em
|
||||||
.description, .content
|
.description
|
||||||
line-height 120%
|
line-height 120%
|
||||||
margin 10px 0 15px
|
margin-bottom 15px
|
||||||
&:hover, &.hover
|
&:hover, &.hover
|
||||||
background-color hoverBackgroundColor
|
background-color hoverBackgroundColor
|
||||||
&:active, &.active
|
&:active, &.active
|
||||||
|
|||||||
Reference in New Issue
Block a user