Revert "Fix/tailwindcss v4"

This commit is contained in:
senshinya
2025-07-19 11:06:09 +08:00
committed by GitHub
parent cc7a388a1b
commit a9fd75d619
37 changed files with 1244 additions and 667 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 */
}
}