-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from gabdallah222/css-in-js
Transition from css to js for tabs/inkbar
- Loading branch information
Showing
7 changed files
with
73 additions
and
101 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,38 @@ | ||
var React = require('react'); | ||
var Transitions = require('./styles/mixins/transitions.js'); | ||
var StylePropable = require('./mixins/style-propable.js'); | ||
var Colors = require('./styles/colors.js') | ||
|
||
|
||
var InkBar = React.createClass({ | ||
|
||
propTypes: { | ||
position: React.PropTypes.string | ||
}, | ||
|
||
mixins: [StylePropable], | ||
|
||
render: function() { | ||
|
||
var styles = { | ||
var styles = this.mergeAndPrefix({ | ||
left: this.props.left, | ||
width: this.props.width | ||
} | ||
width: this.props.width, | ||
bottom: '0', | ||
display: 'block', | ||
backgroundColor: Colors.yellowA200, | ||
height: '2px', | ||
marginTop: '-2px', | ||
position: 'relative', | ||
transition: Transitions.easeOut('1s', 'left') | ||
}); | ||
|
||
return ( | ||
<div className='mui-ink-bar' style={styles}> | ||
<div style={styles}> | ||
| ||
</div> | ||
); | ||
} | ||
|
||
}); | ||
|
||
module.exports = InkBar; | ||
module.exports = InkBar; |
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
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.