1
0

input.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. @tailwind base;
  2. @tailwind components;
  3. @tailwind utilities;
  4. @layer base {
  5. /* Hide native spinner buttons on every number input app-wide. The
  6. team prefers keyboard typing over the tiny, inconsistent UA
  7. controls. */
  8. input[type="number"]::-webkit-outer-spin-button,
  9. input[type="number"]::-webkit-inner-spin-button {
  10. -webkit-appearance: none;
  11. margin: 0;
  12. }
  13. input[type="number"] {
  14. -moz-appearance: textfield;
  15. appearance: textfield;
  16. }
  17. }
  18. @layer utilities {
  19. /* Phase 13: the Focus filter temporarily hides entire sw columns when the
  20. focused worker has no assignment on any visible row. Separate from the
  21. .hidden set driven by the Columns dropdown so clearing Focus restores
  22. the user's manual column picks. */
  23. .focus-auto-hidden {
  24. display: none;
  25. }
  26. }
  27. @layer components {
  28. /* Phase 15: big-screen / beamer presentation scope. Applied via
  29. views/sprints/present.php on the root <main>. Tightens typography
  30. and cell padding so the task table fits the viewport without
  31. horizontal scroll at 1920×1080; hides drag handles and per-row
  32. delete buttons (not meaningful during a group discussion). */
  33. .beamer-root table {
  34. table-layout: fixed;
  35. font-size: clamp(0.75rem, 0.95vw, 1.05rem);
  36. }
  37. .beamer-root td,
  38. .beamer-root th {
  39. padding: 0.25rem 0.35rem;
  40. }
  41. .beamer-root .handle,
  42. .beamer-root [data-delete-task] {
  43. display: none;
  44. }
  45. /* JS-driven toggle (sprint-planner.js): when the rendered task table
  46. is wider than the viewport, rotate worker-column headers to save
  47. horizontal space. Leaves non-worker headers (Task / Owner / Prio
  48. / Tot) untouched. */
  49. .beamer-vertical-headers thead th[data-sort-col^="sw-"] {
  50. writing-mode: vertical-rl;
  51. transform: rotate(180deg);
  52. padding: 0.5rem 0.25rem;
  53. }
  54. /* Phase 18: per-cell task-assignment status. The colour class lives
  55. on the <td> (so JS / filters can read data-status off the cell),
  56. but the visible tint is applied to the day input / read-only span
  57. inside — colouring just the <td> made the cell padding stripe a
  58. different colour from the field, which read as visual noise. The
  59. four .assign-status-* class names are interpolated server-side
  60. ("assign-status-<?= $st ?>"), so they're held in
  61. tailwind.config.js's safelist; otherwise the JIT prunes them. */
  62. .assign-status-zugewiesen { /* default: no tint */ }
  63. .assign-status-gestartet input[data-assign],
  64. .assign-status-gestartet > span.font-mono { background-color: theme('colors.yellow.200'); }
  65. .assign-status-abgeschlossen input[data-assign],
  66. .assign-status-abgeschlossen > span.font-mono { background-color: theme('colors.green.200'); }
  67. .assign-status-abgebrochen input[data-assign],
  68. .assign-status-abgebrochen > span.font-mono { background-color: theme('colors.red.200'); }
  69. .dark .assign-status-gestartet input[data-assign],
  70. .dark .assign-status-gestartet > span.font-mono { background-color: theme('colors.yellow.700'); }
  71. .dark .assign-status-abgeschlossen input[data-assign],
  72. .dark .assign-status-abgeschlossen > span.font-mono { background-color: theme('colors.green.700'); }
  73. .dark .assign-status-abgebrochen input[data-assign],
  74. .dark .assign-status-abgebrochen > span.font-mono { background-color: theme('colors.red.700'); }
  75. /* Cell popover — replaces the per-cell chevron status select.
  76. Body-attached, position: absolute (set in JS), shown to the
  77. right of the bound input/cell. Carries a 0..N slider (max
  78. configured via /settings → assignment_slider_max) and a
  79. column of status pills with coloured bullets. */
  80. .cell-popover {
  81. position: absolute;
  82. z-index: 50;
  83. min-width: 18rem;
  84. padding: 0.75rem;
  85. border-radius: 0.5rem;
  86. border: 1px solid theme('colors.slate.200');
  87. background-color: theme('colors.white');
  88. box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  89. }
  90. .dark .cell-popover {
  91. border-color: theme('colors.slate.700');
  92. background-color: theme('colors.slate.800');
  93. }
  94. .cell-popover-grid {
  95. display: grid;
  96. grid-template-columns: 1fr auto;
  97. gap: 1rem;
  98. align-items: center;
  99. }
  100. .cell-popover-slider {
  101. display: flex;
  102. flex-direction: column;
  103. gap: 0.4rem;
  104. min-width: 8rem;
  105. }
  106. .cell-popover-slider input[type="range"] {
  107. width: 100%;
  108. accent-color: theme('colors.slate.600');
  109. cursor: pointer;
  110. }
  111. .dark .cell-popover-slider input[type="range"] {
  112. accent-color: theme('colors.slate.400');
  113. }
  114. .cell-popover-value {
  115. text-align: center;
  116. font-family: theme('fontFamily.mono');
  117. font-size: 0.875rem;
  118. color: theme('colors.slate.700');
  119. }
  120. .dark .cell-popover-value {
  121. color: theme('colors.slate.200');
  122. }
  123. .cell-popover-status {
  124. display: flex;
  125. flex-direction: column;
  126. gap: 0.25rem;
  127. min-width: 9rem;
  128. }
  129. .cell-popover-status-btn {
  130. display: flex;
  131. align-items: center;
  132. gap: 0.5rem;
  133. padding: 0.25rem 0.5rem;
  134. border-radius: 4px;
  135. text-align: left;
  136. font-size: 0.875rem;
  137. color: theme('colors.slate.700');
  138. background-color: transparent;
  139. border: 1px solid transparent;
  140. cursor: pointer;
  141. }
  142. .dark .cell-popover-status-btn {
  143. color: theme('colors.slate.200');
  144. }
  145. .cell-popover-status-btn:hover {
  146. background-color: theme('colors.slate.100');
  147. }
  148. .dark .cell-popover-status-btn:hover {
  149. background-color: theme('colors.slate.700');
  150. }
  151. .cell-popover-status-btn.cell-popover-active {
  152. border-color: theme('colors.slate.300');
  153. background-color: theme('colors.slate.50');
  154. }
  155. .dark .cell-popover-status-btn.cell-popover-active {
  156. border-color: theme('colors.slate.600');
  157. background-color: theme('colors.slate.700');
  158. }
  159. .cell-popover-bullet {
  160. display: inline-block;
  161. width: 0.75rem;
  162. height: 0.75rem;
  163. border-radius: 9999px;
  164. flex-shrink: 0;
  165. }
  166. .cell-popover-bullet.bullet-zugewiesen {
  167. border: 1px solid theme('colors.slate.300');
  168. }
  169. .dark .cell-popover-bullet.bullet-zugewiesen {
  170. border-color: theme('colors.slate.600');
  171. }
  172. .cell-popover-bullet.bullet-gestartet { background-color: theme('colors.yellow.300'); }
  173. .cell-popover-bullet.bullet-abgeschlossen { background-color: theme('colors.green.300'); }
  174. .cell-popover-bullet.bullet-abgebrochen { background-color: theme('colors.red.300'); }
  175. .dark .cell-popover-bullet.bullet-gestartet { background-color: theme('colors.yellow.500'); }
  176. .dark .cell-popover-bullet.bullet-abgeschlossen { background-color: theme('colors.green.500'); }
  177. .dark .cell-popover-bullet.bullet-abgebrochen { background-color: theme('colors.red.500'); }
  178. }