You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

theme.css 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. @import '../../../../vendor/filament/filament/resources/css/theme.css';
  2. @config './tailwind.config.js';
  3. .fi-body {
  4. position: relative;
  5. background-color: #E8E9EB;
  6. z-index: 1;
  7. }
  8. .fi-body::before {
  9. content: '';
  10. position: absolute;
  11. top: 0;
  12. left: 0;
  13. width: 100%;
  14. height: 100%;
  15. background-image:
  16. linear-gradient(99.6deg,
  17. rgba(232, 233, 235, 1) 10.6%,
  18. rgba(240, 241, 243, 1) 32.9%,
  19. rgba(248, 249, 251, 0.7) 50%,
  20. rgba(240, 241, 243, 1) 67.1%,
  21. rgba(232, 233, 235, 1) 83.4%);
  22. pointer-events: none;
  23. z-index: -1;
  24. }
  25. :is(.dark .fi-body) {
  26. position: relative;
  27. background-color: rgb(3, 7, 18);
  28. z-index: 1;
  29. }
  30. :is(.dark .fi-body)::before {
  31. content: '';
  32. position: absolute;
  33. top: 0;
  34. right: 0;
  35. background-image: radial-gradient(
  36. ellipse at top right,
  37. rgba(var(--primary-950), 1) 0%,
  38. rgba(var(--primary-950), 0.9) 15%,
  39. rgba(var(--primary-900), 0.7) 30%,
  40. rgba(var(--primary-900), 0.5) 45%,
  41. rgba(var(--primary-950), 0.3) 60%,
  42. rgba(var(--primary-950), 0.1) 75%,
  43. rgba(3,7,18,0) 100%
  44. );
  45. width: 100%;
  46. height: 100%;
  47. pointer-events: none;
  48. z-index: -1;
  49. }
  50. .fi-topbar > nav, .fi-sidebar-header {
  51. @apply bg-transparent ring-0 shadow-none !important;
  52. transition: background-color 0.3s, top 0.3s;
  53. }
  54. .fi-topbar > nav {
  55. @apply relative flex justify-center;
  56. > ul {
  57. @apply absolute -translate-x-2/4 gap-x-0 left-2/4;
  58. }
  59. > div {
  60. @apply static;
  61. }
  62. }
  63. .fi-topbar > nav.topbar-hovered, .fi-sidebar-header.topbar-hovered {
  64. background-color: rgba(255, 255, 255, 0.75) !important;
  65. }
  66. :is(.dark .fi-topbar > nav.topbar-hovered, .dark .fi-sidebar-header.topbar-hovered) {
  67. background-color: rgba(10, 16, 33, 0.75) !important;
  68. }
  69. .fi-topbar > nav.topbar-scrolled, .fi-sidebar-header.topbar-scrolled {
  70. background-color: rgba(255, 255, 255, 0.5) !important;
  71. }
  72. :is(.dark .fi-topbar > nav.topbar-scrolled, .dark .fi-sidebar-header.topbar-scrolled) {
  73. background-color: rgba(10, 16, 33, 0.5) !important;
  74. }
  75. .fi-dropdown.fi-topbar-dropdown .fi-dropdown-panel {
  76. transition: max-width 0.3s linear 0.1s, opacity 0.1s linear 0.1s;
  77. @apply absolute -translate-x-1/2 left-1/2 !important;
  78. }
  79. .fi-topbar-item > * {
  80. @apply h-16 rounded-none !bg-transparent border-b-2 border-transparent;
  81. }
  82. .fi-topbar-item > button > svg {
  83. transition: transform 0.1s ease-in-out, color 0.1s ease-in-out;
  84. }
  85. .fi-topbar-item-active {
  86. & > a, & > button {
  87. @apply border-primary-600 dark:border-primary-400;
  88. }
  89. > button {
  90. @apply text-gray-700 dark:text-gray-200;
  91. }
  92. > button > svg {
  93. @apply text-gray-400 dark:text-gray-500;
  94. }
  95. }
  96. .fi-topbar-item > a:hover, a:focus-visible {
  97. @apply text-primary-600 dark:text-primary-400 border-primary-600 dark:border-primary-400;
  98. > svg {
  99. @apply text-primary-500;
  100. }
  101. }
  102. .fi-topbar-dropdown[aria-expanded="true"], .fi-topbar-dropdown[aria-expanded="false"] .fi-dropdown-trigger[aria-expanded="true"] {
  103. .fi-topbar-item > button {
  104. @apply text-primary-600 dark:text-primary-400 border-primary-600 dark:border-primary-400 !important;
  105. > svg {
  106. @apply rotate-180 text-primary-500;
  107. }
  108. }
  109. }
  110. .menu-groups {
  111. @apply flex flex-row relative transition-[unset] m-0 px-12 py-9;
  112. .menu-group {
  113. @apply flex flex-col justify-between relative z-[3] mx-2.5 my-0 p-0;
  114. }
  115. }
  116. .submenu-wrap {
  117. .submenu {
  118. @apply flex flex-wrap m-0 p-0;
  119. }
  120. .submenu.cols-1 {
  121. @apply w-60;
  122. }
  123. .menu-label, .menu-label-invisible-spacer {
  124. @apply text-gray-700 dark:text-gray-200 text-base font-medium mb-4 pb-4 border-b border-gray-200 dark:border-gray-700 min-h-[2.5625rem];
  125. }
  126. .menu-label-invisible-spacer {
  127. @apply invisible;
  128. }
  129. }
  130. .menu-item {
  131. @apply cursor-pointer -left-4 leading-tight relative w-[calc(100%_-_10px)] p-2;
  132. }
  133. .fi-topbar-dropdown-list-item {
  134. @apply flex justify-between relative transition-[left] duration-200 z-[2] rounded-none left-0;
  135. &::after {
  136. @apply bg-primary-600 dark:bg-primary-400 content-[''] block h-0 left-[-1rem] absolute transition-all duration-300 w-px top-[calc(100%_+_0.5rem)];
  137. }
  138. &:hover {
  139. @apply left-4 !bg-transparent;
  140. }
  141. &:hover > span {
  142. @apply text-primary-600 dark:text-primary-400;
  143. }
  144. &:hover::after {
  145. @apply -top-2 h-[calc(100%+1rem)];
  146. }
  147. &:hover .bg {
  148. @apply w-full;
  149. }
  150. > span {
  151. @apply flex flex-col relative z-[1] font-medium;
  152. }
  153. .bg {
  154. @apply h-[calc(100%+1rem)] -left-4 absolute -top-2 transition-[width] duration-200 delay-100 bg-gradient-to-r from-primary-600/10 dark:from-primary-400/10;
  155. }
  156. }
  157. .choices__inner {
  158. height: 2.25rem;
  159. }
  160. .fi-badge {
  161. display: inline-flex;
  162. }