mirror of
https://github.com/BradNut/personal-website-sveltekit
synced 2025-09-08 23:20:18 +00:00
31 lines
759 B
JavaScript
31 lines
759 B
JavaScript
const postcssPresetEnv = require('postcss-preset-env');
|
|
const atImport = require('postcss-import');
|
|
const postCssCustomMedia = require('postcss-custom-media');
|
|
|
|
const config = {
|
|
plugins: [
|
|
atImport(),
|
|
postcssPresetEnv({
|
|
stage: 3,
|
|
features: {
|
|
'nesting-rules': true,
|
|
'custom-media-queries': true,
|
|
'media-query-ranges': true
|
|
}
|
|
}),
|
|
postCssCustomMedia({
|
|
customMedia: {
|
|
'--below_small': '(width < 400px)',
|
|
'--below_med': '(width < 700px)',
|
|
'--below_large': '(width < 900px)',
|
|
'--below_xlarge': '(width < 1200px)',
|
|
'--above_small': '(width > 400px)',
|
|
'--above_med': '(width > 700px)',
|
|
'--above_large': '(width > 900px)',
|
|
'--above_xlarge': '(width > 1200px)',
|
|
}
|
|
})
|
|
]
|
|
};
|
|
|
|
module.exports = config;
|