tailwind.css 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @import 'tailwindcss' layer(tailwind);
  2. @layer tailwind {
  3. @layer base {
  4. /* preflight disabled - using Ant Design's base styles */
  5. }
  6. }
  7. @layer components {
  8. .flex-c {
  9. @apply flex justify-center items-center;
  10. }
  11. .flex-ac {
  12. @apply flex justify-around items-center;
  13. }
  14. .flex-bc {
  15. @apply flex justify-between items-center;
  16. }
  17. .navbar-bg-hover {
  18. @apply dark:text-white dark:hover:bg-[#242424]!;
  19. }
  20. }
  21. @layer utilities {
  22. .no-scrollbar::-webkit-scrollbar {
  23. display: none;
  24. }
  25. .no-scrollbar {
  26. -ms-overflow-style: none;
  27. scrollbar-width: none;
  28. }
  29. .abs-c {
  30. position: absolute;
  31. top: 50%;
  32. left: 50%;
  33. transform: translate(-50%, -50%);
  34. }
  35. .abs-tc {
  36. position: absolute;
  37. top: 0;
  38. left: 50%;
  39. transform: translateX(-50%);
  40. }
  41. .abs-lc {
  42. position: absolute;
  43. top: 50%;
  44. left: 0;
  45. transform: translateY(-50%);
  46. }
  47. .abs-bc {
  48. position: absolute;
  49. bottom: 0;
  50. left: 50%;
  51. transform: translateX(-50%);
  52. }
  53. .abs-rc {
  54. position: absolute;
  55. top: 50%;
  56. right: 0;
  57. transform: translateY(-50%);
  58. }
  59. }