Skip to content

Instantly share code, notes, and snippets.

@jwaldrip
Created July 28, 2017 15:29
Show Gist options
  • Save jwaldrip/0fd722f55350dce971e9208a636318ee to your computer and use it in GitHub Desktop.
Save jwaldrip/0fd722f55350dce971e9208a636318ee to your computer and use it in GitHub Desktop.
<style ref='stylized'>
#stylized-785246 > span {
color: black;
}
#stylized-785246 > span:hover {
color: blue;
}
#stylized-785246:hover {
background-color: blue;
}
</style>
<div id="stylized-785246">
<span>Hello There</span>
</div>
import React from 'react':
import Stylized from 'stylized';
@Stylized
class SampleComponent extends React.Component {
style () {
return {
'> span': {
color: 'black',
':hover': {
'background-color': 'blue'
}
}
},
':hover': {
'background-color': 'blue'
}
}
}
render () {
<div>
<span>Hello There</span>
</div>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment