With flex-box:
<body class="flex flex-col min-h-screen">
<main class="flex-1">content</main>
<footer>down</footer>
</body>
<body>
<div class="flex">
<!-- left -->
<div class="bg-blue-900 h-screen w-1/2 text-center text-gray-100 flex items-center">
<div class="font-bold text-center w-full text-6xl">X</div>
</div>
<!-- right -->
<div class="bg-indigo-300 h-screen w-1/2 text-center text-gray-900 flex items-center">
<div class="font-bold text-center w-full text-6xl">Y</div>
</div>
</div>
</body>
var supportsES6 = function() {
try {
new Function("(a = 0) => a");
return true;
}
catch (err) {
return false;
}
}();
The critical test is the a = 0. All browsers supporting default parameters have a fairly complete support of ES6 — for example, Edge 13 will be rejected by this test despite a decent ES6 coverage.
In tailwind.config.js
- add even docs
variants: {
backgroundColor: ['responsive', 'hover', 'focus', 'even'],
}