Fix landscape mode

This commit is contained in:
Pieter Vander Vennet 2021-01-27 02:26:57 +01:00
parent 593ac5381a
commit 1b73f0a43a
9 changed files with 43 additions and 98 deletions

View file

@ -1,24 +1,32 @@
const plugin = require('tailwindcss/plugin')
module.exports = {
purge: [
// './**/*.html',
// './**/*.js',
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
maxHeight: {
'65vh': '65vh',
'20vh': '20vh',
},
screens: {
'landscape': { 'raw': '(max-height: 600px) and (min-width: 600px)' },
},
purge: [
// './**/*.html',
// './**/*.js',
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
maxHeight: {
'65vh': '65vh',
'20vh': '20vh',
}
},
},
},
variants: {
extend: {
ringColor: ['hover'],
}
},
plugins: [],
variants: {
extend: {
ringColor: ['hover'],
}
},
plugins: [
plugin(function ({addVariant, e}) {
addVariant('landscape', ({modifySelectors, separator}) => {
modifySelectors(({className}) => {
return `.${e(`landscape${separator}${className}`)}:landscape`
})
})
})
]
}