Compare commits

..

No commits in common. "63567a4d7bc131c8641532c076c1f04c2d22c420" and "a36710cb4c464edfac75819ce7061076a22b9da4" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View File

@ -4,12 +4,11 @@ Simple CSS framework.
**Heavily** inspired by [GitHub - CodyHouse/codyhouse-framework](https://github.com/CodyHouse/codyhouse-framework).
## TODO
**NOTE** media queries based on variables have only been implemented for SASS. No postccss solution has yet been implemented.
* css - minified for production (cssnano should be doing this)
* Images and SVGs
* sass loader - ensure mixins don't conflict with postcss mixins
## TODO
* documentation
- .text-component
- visibility.css - make notes on classes with `\:` in the selectors
- media queries (sass codyhouse implementation)

View File

@ -6,7 +6,7 @@ const postcssMixins = {
// TODO - untest
defineHSL(mixin, name, hue, sat, light) {
const obj = {};
obj[name] = `hsl(${hue}, ${sat}, ${light})`;
obj[name] = name;
// need to ensure hue is a string otherwise postcss (is it postcss?) appends
// 'px' to the property's value.
obj[`${name}__h`] = hue.toString();