Compare commits

...

2 Commits

Author SHA1 Message Date
Ray Elliott 5c04c58f6a update 2021-01-05 11:45:02 +00:00
Ray Elliott bd97cc5388 add postcss submodule 2021-01-05 11:09:01 +00:00
5 changed files with 11 additions and 15 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "static-html/postcss"]
path = static-html/postcss
url = ssh://git@git.rayelliott.dev:3222/rayelliott/postcss.git

1
static-html/postcss Submodule

@ -0,0 +1 @@
Subproject commit 1133e71b1627bdc7ac64653458988a0713f6cdb0

View File

@ -1,16 +1,13 @@
const postcssFunctions = require('./src/js/postcss-functions'); const postcssFunctions = require('./postcss/functions');
const postcssMixins = require('./postcss/mixins');
module.exports = { module.exports = {
plugins: [ plugins: [
'postcss-import', 'postcss-import',
'postcss-mixins', ['postcss-mixins', { mixins: postcssMixins }],
'postcss-preset-env', 'postcss-preset-env',
'postcss-nesting', 'postcss-nesting',
'postcss-simple-vars', 'postcss-simple-vars',
['postcss-functions', ['postcss-functions', { functions: postcssFunctions }],
{
functions: postcssFunctions,
},
],
], ],
}; };

View File

@ -4,7 +4,9 @@
$color: green; $color: green;
color: $color; color: $color;
opacity: half(1); @mixin defineColor --color-text, #f00;
color: toHSLA(--color-text, 0.5);
@mixin size-big 2em; @mixin size-big 2em;

View File

@ -1,7 +0,0 @@
const postcssFunctions = {
half(val) {
return val / 2;
},
};
module.exports = postcssFunctions;