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.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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:focus-visible {
  26. outline: none;
  27. }
  28. .choices__group {
  29. @apply text-gray-900 dark:text-white font-semibold;
  30. }
  31. .choices:not(.is-disabled) .choices__item {
  32. cursor: pointer;
  33. }
  34. /* Table Repeater Styles */
  35. :not(.is-spreadsheet) {
  36. .table-repeater-container {
  37. @apply border border-gray-300 dark:border-gray-600 rounded-sm;
  38. }
  39. .table-repeater-row {
  40. @apply hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors;
  41. }
  42. .table-repeater-column {
  43. @apply p-3 text-sm text-gray-900 dark:text-gray-100;
  44. }
  45. .table-repeater-header {
  46. @apply bg-gray-50 dark:bg-gray-700/50 border-b border-gray-300 dark:border-gray-600;
  47. }
  48. .table-repeater-row {
  49. @apply divide-x-0 !important;
  50. }
  51. .table-repeater-header tr {
  52. @apply divide-x-0 text-sm;
  53. }
  54. .table-repeater-header-column {
  55. @apply p-3 font-semibold bg-gray-50 dark:bg-gray-700/50;
  56. }
  57. /* Chrome, Safari, Edge, Opera */
  58. input::-webkit-outer-spin-button,
  59. input::-webkit-inner-spin-button {
  60. -webkit-appearance: none;
  61. margin: 0;
  62. }
  63. /* Firefox */
  64. input[type=number] {
  65. -moz-appearance: textfield;
  66. }
  67. }
  68. /* Excel/Spreadsheet styling */
  69. .is-spreadsheet {
  70. .table-repeater-container {
  71. overflow-x: auto;
  72. max-width: 100%;
  73. -webkit-overflow-scrolling: touch;
  74. }
  75. .table-repeater-container:has(.choices.is-open) {
  76. overflow: visible;
  77. }
  78. .table-repeater-container table {
  79. min-width: 100%;
  80. width: max-content;
  81. }
  82. .table-repeater-container {
  83. border: 1px solid #e5e7eb !important;
  84. border-radius: 0 !important;
  85. @apply ring-0 !important;
  86. }
  87. .table-repeater-header {
  88. background-color: #f8f9fa !important;
  89. }
  90. .table-repeater-header-column {
  91. border: 1px solid #e5e7eb !important;
  92. background-color: #f8f9fa !important;
  93. font-weight: 600 !important;
  94. padding: 8px 12px !important;
  95. }
  96. .table-repeater-column {
  97. border: 1px solid #e5e7eb !important;
  98. padding: 8px 12px !important;
  99. }
  100. .table-repeater-column input {
  101. text-align: right !important;
  102. }
  103. .fi-input-wrapper,
  104. .fi-input {
  105. padding: 0 !important;
  106. }
  107. .fi-input-wrp,
  108. .fi-fo-file-upload .filepond--root {
  109. @apply ring-0 bg-transparent shadow-none rounded-none !important;
  110. }
  111. .fi-input-wrp input {
  112. @apply bg-transparent !important;
  113. }
  114. .table-repeater-column:focus-within {
  115. outline: 2px solid #2563eb !important;
  116. outline-offset: -2px !important;
  117. z-index: 1 !important;
  118. }
  119. input:focus,
  120. select:focus,
  121. textarea:focus {
  122. @apply ring-0 shadow-none !important;
  123. outline: none !important;
  124. }
  125. .table-repeater-row:nth-child(even) {
  126. background-color: #f9fafb;
  127. }
  128. .fi-fo-field-wrp:has(.fi-fo-checkbox-list),
  129. .fi-fo-field-wrp:has(.fi-checkbox-input),
  130. .fi-fo-field-wrp:has(.fi-fo-radio) {
  131. @apply py-2 px-3 !important;
  132. }
  133. .fi-fo-field-wrp:has(.fi-fo-toggle) {
  134. @apply inline-block mt-1 !important;
  135. }
  136. }
  137. .is-spreadsheet .table-repeater-column .fi-input-wrp-suffix {
  138. padding-right: 0 !important;
  139. }