Support standard css variables, dynamically set spacing-unit

This commit is contained in:
Chi Vinh Le
2018-07-12 03:19:14 -03:00
parent 1a08aba969
commit ff41fabb37
14 changed files with 499 additions and 113 deletions
+5
View File
@@ -0,0 +1,5 @@
@media (max-width: $breakpoints-sm) {
:root {
--spacing-unit: calc(0.5 * var(--spacing-unit));
}
}
+1 -1
View File
@@ -58,7 +58,7 @@ const variables = {
},
},
/* gitter and spacing */
spacingUnit: 5,
spacingUnit: 10,
/* Borders */
roundCorners: "2px",
/* Typography */