Move custom max-height-version to Config

As it turns out, the config does work once you restart the server … 🤦
This commit is contained in:
Tobias 2021-01-24 22:21:28 +01:00
parent e1daade961
commit 397a4414f3
2 changed files with 4 additions and 13 deletions

View file

@ -3,14 +3,6 @@
@tailwind utilities;
@layer utilities {
@variants responsive {
.max-h-65vh {
max-height: 65vh;
}
.max-h-20vh {
max-height: 20vh;
}
.btn {
@apply inline-flex justify-center;
@apply py-2 px-4;

View file

@ -6,11 +6,10 @@ module.exports = {
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
// This does not work and I don't know why.
// Luckily index.css "@layer utilities" has the same effekt.
// maxHeight: {
// '65vh': '65vh',
// },
maxHeight: {
'65vh': '65vh',
'20vh': '20vh',
},
},
},
variants: {