mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-17 03:31:52 +00:00
Fix: minor features
設定ボタンアイコンの変更 削除Modalでcmd+enterの使用 検索バーデザイン
This commit is contained in:
@@ -7,6 +7,9 @@ var BlueprintDeleteModal = React.createClass({
|
|||||||
close: React.PropTypes.func,
|
close: React.PropTypes.func,
|
||||||
blueprint: React.PropTypes.object
|
blueprint: React.PropTypes.object
|
||||||
},
|
},
|
||||||
|
componentDidMount: function () {
|
||||||
|
React.findDOMNode(this).focus()
|
||||||
|
},
|
||||||
stopPropagation: function (e) {
|
stopPropagation: function (e) {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
},
|
},
|
||||||
@@ -21,7 +24,7 @@ var BlueprintDeleteModal = React.createClass({
|
|||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
return (
|
return (
|
||||||
<div onKeyDown={this.handleKeyDown} onClick={this.stopPropagation} className='BlueprintDeleteModal modal'>
|
<div tabIndex='3' onKeyDown={this.handleKeyDown} onClick={this.stopPropagation} className='BlueprintDeleteModal modal'>
|
||||||
<div className='modal-header'>
|
<div className='modal-header'>
|
||||||
<h1>Delete Blueprint</h1>
|
<h1>Delete Blueprint</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -27,15 +27,15 @@ var PlanetHeader = 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>
|
||||||
<button onClick={this.props.openSettingModal} className={'menuBtn'}>
|
<button onClick={this.props.openSettingModal} className='menuBtn'>
|
||||||
<i className='fa fa-gears'></i>
|
<i className='fa fa-chevron-down'></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className='headerControl'>
|
<div className='headerControl'>
|
||||||
<span className='searchInput'>
|
<div className='searchInput'>
|
||||||
<i className='fa fa-search'/>
|
<i className='fa fa-search'/>
|
||||||
<input onChange={this.props.onSearchChange} value={this.props.search} ref='search' tabIndex='1' type='text' className='inline-input circleInput' placeholder='Search...'/>
|
<input onChange={this.props.onSearchChange} value={this.props.search} ref='search' tabIndex='1' type='text' className='inline-input circleInput' placeholder='Search...'/>
|
||||||
</span>
|
</div>
|
||||||
<a className='downloadButtton btn-primary'>Download Mac app</a>
|
<a className='downloadButtton btn-primary'>Download Mac app</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,11 +7,15 @@ var SnippetDeleteModal = React.createClass({
|
|||||||
close: React.PropTypes.func,
|
close: React.PropTypes.func,
|
||||||
snippet: React.PropTypes.object
|
snippet: React.PropTypes.object
|
||||||
},
|
},
|
||||||
|
componentDidMount: function () {
|
||||||
|
React.findDOMNode(this).focus()
|
||||||
|
},
|
||||||
stopPropagation: function (e) {
|
stopPropagation: function (e) {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
},
|
},
|
||||||
handleKeyDown: function (e) {
|
handleKeyDown: function (e) {
|
||||||
if ((e.keyCode === 13 && e.metaKey)) {
|
console.log(e)
|
||||||
|
if (e.keyCode === 13 && e.metaKey) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
this.submit()
|
this.submit()
|
||||||
}
|
}
|
||||||
@@ -21,7 +25,7 @@ var SnippetDeleteModal = React.createClass({
|
|||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
return (
|
return (
|
||||||
<div onKeyDown={this.handleKeyDown} onClick={this.stopPropagation} className='SnippetDeleteModal modal'>
|
<div tabIndex='3' onKeyDown={this.handleKeyDown} onClick={this.stopPropagation} className='SnippetDeleteModal modal'>
|
||||||
<div className='modal-header'>
|
<div className='modal-header'>
|
||||||
<h1>Delete Snippet</h1>
|
<h1>Delete Snippet</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
.PlanetContainer
|
.PlanetContainer
|
||||||
absolute top bottom right
|
absolute top bottom right
|
||||||
left 50px
|
left 50px
|
||||||
@@ -50,30 +49,20 @@
|
|||||||
color darken(brandBorderColor, 30%)
|
color darken(brandBorderColor, 30%)
|
||||||
.menuBtn
|
.menuBtn
|
||||||
position absolute
|
position absolute
|
||||||
top 10px
|
top 15px
|
||||||
right 5px
|
right 5px
|
||||||
font-size 1em
|
font-size 1em
|
||||||
color lightButtonColor
|
btnDefault()
|
||||||
border none
|
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
circle()
|
circle()
|
||||||
background-image none
|
width 33px
|
||||||
background-color transparent
|
height 33px
|
||||||
width 44px
|
|
||||||
height 44px
|
|
||||||
text-align center
|
text-align center
|
||||||
cursor pointer
|
cursor pointer
|
||||||
transition 0.1s
|
transition 0.1s
|
||||||
transform scale(0.8)
|
transform scale(0.8)
|
||||||
&:focus, &.focus
|
&:focus, &.focus
|
||||||
outline none
|
outline none
|
||||||
&:hover, &.hover, &:focus, &.focus
|
|
||||||
border-color darken(lightButtonColor, 50%)
|
|
||||||
color darken(lightButtonColor, 50%)
|
|
||||||
&:active, &.active
|
|
||||||
border-color darken(brandBorderColor, 30%)
|
|
||||||
background-color brandColor
|
|
||||||
color white
|
|
||||||
.headerControl
|
.headerControl
|
||||||
absolute top bottom right
|
absolute top bottom right
|
||||||
left 200px
|
left 200px
|
||||||
@@ -84,10 +73,12 @@
|
|||||||
left 0
|
left 0
|
||||||
input
|
input
|
||||||
padding-left 32px
|
padding-left 32px
|
||||||
|
width 300px
|
||||||
.fa
|
.fa
|
||||||
position absolute
|
position absolute
|
||||||
top 8px
|
top 8px
|
||||||
left 12px
|
left 12px
|
||||||
|
color inactiveTextColor
|
||||||
.downloadButtton
|
.downloadButtton
|
||||||
position absolute
|
position absolute
|
||||||
right 5px
|
right 5px
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ btnDefault()
|
|||||||
background-color brandColor
|
background-color brandColor
|
||||||
color white
|
color white
|
||||||
|
|
||||||
|
|
||||||
btnPrimary()
|
btnPrimary()
|
||||||
border-style solid
|
border-style solid
|
||||||
border-width 1px
|
border-width 1px
|
||||||
|
|||||||
@@ -126,6 +126,7 @@
|
|||||||
margin 40px auto
|
margin 40px auto
|
||||||
font-size 1.5em
|
font-size 1.5em
|
||||||
color brandColor
|
color brandColor
|
||||||
|
text-align center
|
||||||
nav
|
nav
|
||||||
button
|
button
|
||||||
font-size 1em
|
font-size 1em
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ hoverBackgroundColor= transparentify(#444, 3%)
|
|||||||
inactiveTextColor = #888
|
inactiveTextColor = #888
|
||||||
textColor = #4D4D4D
|
textColor = #4D4D4D
|
||||||
backgroundColor= white
|
backgroundColor= white
|
||||||
fontSize= 16px
|
fontSize= 14px
|
||||||
|
|
||||||
shadowColor= #C5C5C5
|
shadowColor= #C5C5C5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user