Revert "feat: upgrade tailwindcss v4"

This commit is contained in:
senshinya
2025-07-20 01:00:26 +08:00
committed by GitHub
parent 3c507d62c0
commit ffc9c6decf
38 changed files with 1246 additions and 669 deletions

View File

@@ -1,30 +1,14 @@
@import 'tailwindcss';
@tailwind base;
@tailwind components;
@tailwind utilities;
@config "../../tailwind.config.ts";
/*
The default border color has changed to `currentcolor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.
If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentcolor);
@layer utilities {
.scrollbar-hide {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
}
@utility scrollbar-hide {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
&::-webkit-scrollbar {
.scrollbar-hide::-webkit-scrollbar {
display: none; /* Chrome, Safari and Opera */
}
}