Created
September 7, 2015 07:34
-
-
Save haustraliaer/715fcfd8ca65e34acc5c to your computer and use it in GitHub Desktop.
Modular ceshesh ay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.root { | |
padding: 40px; | |
} | |
.redButton { | |
composes: root from './Button/style.css'; | |
border: 1px solid #D85042; | |
&:active { | |
background: #D85042; | |
} | |
&:focus { | |
border-color: color(#D85042 shade(40%)); | |
.text { | |
color: color(#D85042 shade(40%)); | |
} | |
} | |
} | |
.redButton__text { | |
composes: text from './Button/style.css'; | |
color: #D85042; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import style from './index.css' | |
import React from 'react' | |
import Button from './Button' | |
export default React.createClass({ | |
render() { | |
return ( | |
<div className={style.root}> | |
<Button | |
onClick={this.handleClick} | |
icon="someIcon" | |
text="My Button" /> | |
<Button | |
onClick={this.handleClick} | |
icon="someIcon" | |
text="My Button" | |
style={{ | |
root: style.redButton, | |
text: style.redButton__text | |
}} /> | |
</div> | |
) | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment