Created
July 27, 2019 12:27
-
-
Save jeserodz/9122a27fd16cb9724f62b9167c795ef0 to your computer and use it in GitHub Desktop.
CSS-in-JS util for 12-column grids
This file contains hidden or 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
export default { | |
columns: { | |
one: 'calc(100% / 12)', | |
two: 'calc(100% / 6)', | |
three: 'calc(100% / 4)', | |
four: 'calc(100% / 3)', | |
five: 'calc(100% / 2.4)', | |
six: 'calc(100% / 2)', | |
seven: 'calc(100% / 1.7142857143)', | |
eigth: 'calc(100% / 1.5)', | |
nine: 'calc(100% / 1.3333333333)', | |
ten: 'calc(100% / 1.2)', | |
eleven: 'calc(100% / 1.0909090909)', | |
twelve: 'calc(100% / 1)', | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment