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.

form-fields.css 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. /* Filament Repeater Styles */
  2. .fi-fo-repeater.uncontained .fi-fo-repeater-item {
  3. @apply divide-y-0 rounded-none bg-none shadow-none ring-0 ring-gray-950/5 dark:divide-white/10 dark:bg-white/5 dark:ring-white/10;
  4. .fi-fo-repeater-item-header {
  5. @apply px-0;
  6. > h4 {
  7. @apply text-base font-semibold leading-6 text-gray-950 dark:text-white;
  8. }
  9. }
  10. .fi-fo-repeater-item-content {
  11. @apply py-4 px-0;
  12. }
  13. }
  14. .fi-fo-repeater-item {
  15. @apply divide-y divide-gray-200 rounded-xl bg-white dark:bg-gray-900;
  16. }
  17. /* Report Field Styles */
  18. .fi-fo-field-wrp.report-hidden-label > div.grid.gap-y-2 > div.flex.items-center {
  19. @apply hidden;
  20. }
  21. .fi-fo-field-wrp.report-hidden-label {
  22. @apply lg:mt-8;
  23. }
  24. /* Choices.js select field overrides */
  25. .choices__list.choices__list--single {
  26. @apply w-full;
  27. }
  28. .choices:focus-visible {
  29. outline: none;
  30. }
  31. .choices__group {
  32. @apply text-gray-900 dark:text-white font-semibold;
  33. }
  34. .choices[data-type="select-one"] .choices__inner {
  35. line-height: 1.5;
  36. display: flex;
  37. align-items: center;
  38. min-height: 2.25rem;
  39. box-sizing: border-box;
  40. }
  41. .choices:not(.is-disabled) .choices__item {
  42. cursor: pointer;
  43. }
  44. /* Base horizontal scrolling */
  45. .table-repeater-container {
  46. overflow-x: auto;
  47. max-width: 100%;
  48. -webkit-overflow-scrolling: touch;
  49. }
  50. .table-repeater-container:has(.choices.is-open) {
  51. overflow: visible;
  52. }
  53. .table-repeater-container table {
  54. min-width: 100%;
  55. width: max-content;
  56. }
  57. /* Excel/Spreadsheet styling */
  58. .is-spreadsheet {
  59. /* Container styles */
  60. .table-repeater-container {
  61. border: 1px solid #e5e7eb !important;
  62. border-radius: 0 !important;
  63. @apply ring-0 !important;
  64. }
  65. /* Header styles */
  66. .table-repeater-header {
  67. background-color: #f8f9fa !important;
  68. }
  69. .table-repeater-header-column {
  70. border: 1px solid #e5e7eb !important;
  71. background-color: #f8f9fa !important;
  72. font-weight: 600 !important;
  73. padding: 8px 12px !important;
  74. }
  75. /* Cell styles */
  76. .table-repeater-column {
  77. border: 1px solid #e5e7eb !important;
  78. padding: 8px 12px !important;
  79. }
  80. /* Input styles */
  81. .table-repeater-column input {
  82. text-align: right !important;
  83. }
  84. /* Flatten inputs */
  85. .fi-input-wrapper,
  86. .fi-input {
  87. padding: 0 !important;
  88. }
  89. .fi-input-wrp,
  90. .fi-fo-file-upload .filepond--root {
  91. @apply ring-0 bg-transparent shadow-none rounded-none !important;
  92. }
  93. .fi-input-wrp input {
  94. @apply bg-transparent !important;
  95. }
  96. /* Focus states */
  97. .table-repeater-column:focus-within {
  98. outline: 2px solid #2563eb !important;
  99. outline-offset: -2px !important;
  100. z-index: 1 !important;
  101. }
  102. input:focus,
  103. select:focus,
  104. textarea:focus {
  105. @apply ring-0 shadow-none !important;
  106. outline: none !important;
  107. }
  108. /* Row styling */
  109. .table-repeater-row:nth-child(even) {
  110. background-color: #f9fafb;
  111. }
  112. /* Form control spacing */
  113. .fi-fo-field-wrp:has(.fi-fo-checkbox-list),
  114. .fi-fo-field-wrp:has(.fi-checkbox-input),
  115. .fi-fo-field-wrp:has(.fi-fo-radio) {
  116. @apply py-2 px-3 !important;
  117. }
  118. .fi-fo-field-wrp:has(.fi-fo-toggle) {
  119. @apply inline-block mt-1 !important;
  120. }
  121. }
  122. /* Responsive behavior */
  123. @media (max-width: theme('screens.sm')) {
  124. .table-repeater-component.break-point-sm .table-repeater-container {
  125. overflow-x: visible;
  126. }
  127. }
  128. @media (max-width: theme('screens.md')) {
  129. .table-repeater-component.break-point-md .table-repeater-container {
  130. overflow-x: visible;
  131. }
  132. }
  133. @media (max-width: theme('screens.lg')) {
  134. .table-repeater-component.break-point-lg .table-repeater-container {
  135. overflow-x: visible;
  136. }
  137. }
  138. @media (max-width: theme('screens.xl')) {
  139. .table-repeater-component.break-point-xl .table-repeater-container {
  140. overflow-x: visible;
  141. }
  142. }
  143. @media (max-width: theme('screens.2xl')) {
  144. .table-repeater-component.break-point-2xl .table-repeater-container {
  145. overflow-x: visible;
  146. }
  147. }
  148. .is-spreadsheet .table-repeater-column .fi-input-wrp-suffix {
  149. padding-right: 0 !important;
  150. }