brandocms / europacss

A design system for responsive websites
MIT License
0 stars 0 forks source link

Allow breakpoint fractions in parseSize() #20

Closed tmjoen closed 5 years ago

tmjoen commented 5 years ago

@ include spacer() chops the spacing in half. This is useful between dynamic blocks of the same kind.

.div 
7.5px
7.5px
.div
tmjoen commented 5 years ago
@space margin-top md/2

If we have a fraction, look up the first part in theme.spacing. If it matches, replace value. If not, pass on as a regular fraction.