Compare commits
No commits in common. "5c04c58f6ade380dc5362c0aa53d786b5135caaa" and "bccf42928d312dff4d4a6721c4c4fbd82e5ca6ec" have entirely different histories.
5c04c58f6a
...
bccf42928d
|
@ -1,3 +0,0 @@
|
||||||
[submodule "static-html/postcss"]
|
|
||||||
path = static-html/postcss
|
|
||||||
url = ssh://git@git.rayelliott.dev:3222/rayelliott/postcss.git
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 1133e71b1627bdc7ac64653458988a0713f6cdb0
|
|
|
@ -1,13 +1,16 @@
|
||||||
const postcssFunctions = require('./postcss/functions');
|
const postcssFunctions = require('./src/js/postcss-functions');
|
||||||
const postcssMixins = require('./postcss/mixins');
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
'postcss-import',
|
'postcss-import',
|
||||||
['postcss-mixins', { mixins: postcssMixins }],
|
'postcss-mixins',
|
||||||
'postcss-preset-env',
|
'postcss-preset-env',
|
||||||
'postcss-nesting',
|
'postcss-nesting',
|
||||||
'postcss-simple-vars',
|
'postcss-simple-vars',
|
||||||
['postcss-functions', { functions: postcssFunctions }],
|
['postcss-functions',
|
||||||
|
{
|
||||||
|
functions: postcssFunctions,
|
||||||
|
},
|
||||||
|
],
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,9 +4,7 @@
|
||||||
$color: green;
|
$color: green;
|
||||||
color: $color;
|
color: $color;
|
||||||
|
|
||||||
@mixin defineColor --color-text, #f00;
|
opacity: half(1);
|
||||||
|
|
||||||
color: toHSLA(--color-text, 0.5);
|
|
||||||
|
|
||||||
@mixin size-big 2em;
|
@mixin size-big 2em;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
const postcssFunctions = {
|
||||||
|
half(val) {
|
||||||
|
return val / 2;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = postcssFunctions;
|
Loading…
Reference in New Issue