Created
April 25, 2019 08:40
-
-
Save Nattarat/5e959881ed96e3b887539633ca904018 to your computer and use it in GitHub Desktop.
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
xport const ComponentWrapper = styled.div` | |
/* Parent | |
------------------------------- */ | |
/* Childrens | |
------------------------------- */ | |
/* Modifiers | |
------------------------------- */ | |
${() => { | |
let i = 0 | |
let styles = '' | |
for (i = 0; i <= 12; i++) { | |
styles += ` | |
&.is-grid-${i} { | |
flex: ${i}; | |
} | |
` | |
} | |
return styles | |
}} | |
/* Media queries | |
------------------------------- */ | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment