forked from MapComplete/MapComplete
chore: remove deprecations following tailwind update
This commit is contained in:
parent
99a12a040b
commit
1d80b0436c
5 changed files with 340 additions and 249 deletions
|
@ -1,33 +1,23 @@
|
|||
const plugin = require('tailwindcss/plugin')
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
const plugin = require("tailwindcss/plugin");
|
||||
|
||||
module.exports = {
|
||||
mode: 'jit',
|
||||
purge: [
|
||||
'./**/*.html',
|
||||
'./**/*.ts',
|
||||
],
|
||||
darkMode: false, // or 'media' or 'class'
|
||||
theme: {
|
||||
extend: {
|
||||
maxHeight: {
|
||||
'65vh': '65vh',
|
||||
'20vh': '20vh',
|
||||
}
|
||||
},
|
||||
content: ["./**/*.html", "./**/*.ts"],
|
||||
theme: {
|
||||
extend: {
|
||||
maxHeight: {
|
||||
"65vh": "65vh",
|
||||
"20vh": "20vh",
|
||||
},
|
||||
},
|
||||
variants: {
|
||||
extend: {
|
||||
ringColor: ['hover'],
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
plugin(function ({addVariant, e}) {
|
||||
addVariant('landscape', ({modifySelectors, separator}) => {
|
||||
modifySelectors(({className}) => {
|
||||
return `.${e(`landscape${separator}${className}`)}:landscape`
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
]
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
plugin(function ({ addVariant, e }) {
|
||||
addVariant("landscape", ({ modifySelectors, separator }) => {
|
||||
modifySelectors(({ className }) => {
|
||||
return `.${e(`landscape${separator}${className}`)}:landscape`;
|
||||
});
|
||||
});
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue