| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- @layer theme, base, components, utilities;
- @import "tailwindcss/theme.css" layer(theme);
- @import "tailwindcss/utilities.css" layer(utilities);
- @import "tailwindcss/preflight"
- @tailwind utilities;
- @custom-variant dark (&:is(.dark *));
- @theme {
- --color-bg_color: var(--el-bg-color);
- --color-primary: var(--el-color-primary);
- --color-text_color_primary: var(--el-text-color-primary);
- --color-text_color_regular: var(--el-text-color-regular);
- }
- /*
- 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 {
- .sort-caret {
- @apply inline-block w-0 h-0 border-solid ml-1 align-middle;
- }
- .sort-caret.ascending {
- @apply border-0 border-r-4 border-b-4 border-l-4 border-transparent border-b-gray-400;
- }
- .sort-caret.descending {
- @apply border-t-4 border-r-4 border-0 border-l-4 border-gray-400 border-r-transparent border-l-transparent;
- }
- }
- @utility flex-c {
- @apply flex justify-center items-center;
- }
- @utility flex-ac {
- @apply flex justify-around items-center;
- }
- @utility flex-bc {
- @apply flex justify-between items-center;
- }
- @utility navbar-bg-hover {
- @apply dark:text-white dark:hover:bg-[#242424]!;
- }
|