Last active
February 22, 2019 14:51
-
-
Save kachar/f3fab3d86e973def823d47e4c1913c40 to your computer and use it in GitHub Desktop.
nextjs + SASS
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
<div class="test___1F_O8 we-test-this-class">Test<div class="best___56sMK">Best</div></div> |
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
$stat-font-size: 2.5rem; | |
.fontStyle { | |
font-size: $stat-font-size; | |
} |
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
.fontStyle___2LBZd { | |
font-size: 2.5rem; } | |
.test___1F_O8 { | |
background-color: burlywood; } | |
.test___1F_O8 .best___56sMK { | |
background-color: cornflowerblue; } | |
/*# sourceMappingURL=styles.chunk.css.map*/ |
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 cn from 'classnames' | |
import globalStyles from 'assets/scss/style.scss' | |
import styles from './test-page.scss' | |
export default class TestPage extends React.Component { | |
render() { | |
return ( | |
<div className={cn(styles.test, globalStyles.fontStyle, 'we-test-this-class')}> | |
Test | |
<div className={styles.best}>Best</div> | |
</div> | |
) | |
} | |
} |
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
.test { | |
background-color: burlywood; | |
.best { | |
background-color: cornflowerblue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment