mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-22 15:53:23 +00:00
c4d8f66322
* New: Native Theme Engine Co-Authored-By: Zak Saunders <thezak48@users.noreply.github.com> (cherry picked from commit 2291f3e00eb2ff9268a0b2f49da8dde82ee13c04) * Update CSS for themes Co-authored-by: Qstick <qstick@gmail.com>
31 lines
No EOL
765 B
JavaScript
31 lines
No EOL
765 B
JavaScript
const reload = require('require-nocache')(module);
|
|
|
|
const cssVarsFiles = [
|
|
'./src/Styles/Variables/dimensions',
|
|
'./src/Styles/Variables/fonts',
|
|
'./src/Styles/Variables/animations',
|
|
'./src/Styles/Variables/zIndexes'
|
|
].map(require.resolve);
|
|
|
|
const mixinsFiles = [
|
|
'frontend/src/Styles/Mixins/cover.css',
|
|
'frontend/src/Styles/Mixins/linkOverlay.css',
|
|
'frontend/src/Styles/Mixins/scroller.css',
|
|
'frontend/src/Styles/Mixins/truncate.css'
|
|
];
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
['postcss-mixins', {
|
|
mixinsFiles
|
|
}],
|
|
['postcss-simple-vars', {
|
|
variables: () =>
|
|
cssVarsFiles.reduce((acc, vars) => {
|
|
return Object.assign(acc, reload(vars));
|
|
}, {})
|
|
}],
|
|
'postcss-color-function',
|
|
'postcss-nested'
|
|
]
|
|
}; |