1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-08 14:39:18 +00:00

Merge pull request #471 from BoostIO/escButton-to-ReactComponent

made escButton ReactComponent
This commit is contained in:
SuenagaRyota
2017-05-13 17:15:21 +09:00
committed by GitHub
12 changed files with 47 additions and 93 deletions

View File

@@ -0,0 +1,18 @@
import React, {PropTypes} from 'react'
import CSSModules from 'browser/lib/CSSModules'
import styles from './ModalEscButton.styl'
const ModalEscButton = ({
handleEscButtonClick
}) => (
<button styleName='escButton' onClick={handleEscButtonClick}>
<div styleName='esc-mark'>x</div>
<div styleName='esc-text'>esc</div>
</button>
)
ModalEscButton.propTypes = {
handleEscButtonClick: PropTypes.func.isRequired
}
export default CSSModules(ModalEscButton, styles)

View File

@@ -0,0 +1,14 @@
.escButton
height 50px
position absolute
background-color transparent
color $ui-inactive-text-color
border none
top 1px
right 10px
text-align center
width top-bar--height
height top-bar-height
.esc-mark
font-size 15px