1
0

input.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  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). The
  33. hamburger trigger stays visible — it carries the read-only task
  34. info pane (title / description / URL / refs) that presenters
  35. want during a discussion. */
  36. .beamer-root table {
  37. table-layout: fixed;
  38. font-size: clamp(0.75rem, 0.95vw, 1.05rem);
  39. }
  40. .beamer-root td,
  41. .beamer-root th {
  42. padding: 0.25rem 0.35rem;
  43. }
  44. .beamer-root .handle,
  45. .beamer-root [data-delete-task] {
  46. display: none;
  47. }
  48. /* JS-driven toggle (sprint-planner.js): when the rendered task table
  49. is wider than the viewport, rotate worker-column headers to save
  50. horizontal space. Leaves non-worker headers (Task / Owner / Prio
  51. / Tot) untouched. The rotation lives on an inline-block wrapper
  52. (.beamer-th-content) rather than the <th> itself, so the cell's
  53. `text-align: center` centers the vertical text horizontally
  54. inside the cell. */
  55. .beamer-vertical-headers thead th[data-sort-col^="sw-"] {
  56. padding: 0.5rem 0.25rem;
  57. }
  58. .beamer-vertical-headers thead th[data-sort-col^="sw-"] > .beamer-th-content {
  59. display: inline-block;
  60. writing-mode: vertical-rl;
  61. transform: rotate(180deg);
  62. }
  63. /* Phase 18: per-cell task-assignment status. The colour class lives
  64. on the <td> (so JS / filters can read data-status off the cell),
  65. but the visible tint is applied to the day input / read-only span
  66. inside — colouring just the <td> made the cell padding stripe a
  67. different colour from the field, which read as visual noise. The
  68. four .assign-status-* class names are interpolated server-side
  69. ("assign-status-<?= $st ?>"), so they're held in
  70. tailwind.config.js's safelist; otherwise the JIT prunes them. */
  71. .assign-status-zugewiesen { /* default: no tint */ }
  72. .assign-status-gestartet input[data-assign],
  73. .assign-status-gestartet > span.font-mono { background-color: theme('colors.yellow.200'); }
  74. .assign-status-abgeschlossen input[data-assign],
  75. .assign-status-abgeschlossen > span.font-mono { background-color: theme('colors.green.200'); }
  76. .assign-status-abgebrochen input[data-assign],
  77. .assign-status-abgebrochen > span.font-mono { background-color: theme('colors.red.200'); }
  78. .dark .assign-status-gestartet input[data-assign],
  79. .dark .assign-status-gestartet > span.font-mono { background-color: theme('colors.yellow.700'); }
  80. .dark .assign-status-abgeschlossen input[data-assign],
  81. .dark .assign-status-abgeschlossen > span.font-mono { background-color: theme('colors.green.700'); }
  82. .dark .assign-status-abgebrochen input[data-assign],
  83. .dark .assign-status-abgebrochen > span.font-mono { background-color: theme('colors.red.700'); }
  84. /* Cell popover — replaces the per-cell chevron status select.
  85. Body-attached, position: absolute (set in JS), shown to the
  86. right of the bound input/cell. Carries a 0..N slider (max
  87. configured via /settings → assignment_slider_max) and a
  88. column of status pills with coloured bullets. */
  89. .cell-popover {
  90. position: absolute;
  91. z-index: 50;
  92. min-width: 14rem;
  93. padding: 0.75rem;
  94. border-radius: 0.5rem;
  95. border: 1px solid theme('colors.slate.200');
  96. background-color: theme('colors.white');
  97. box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  98. }
  99. .dark .cell-popover {
  100. border-color: theme('colors.slate.700');
  101. background-color: theme('colors.slate.800');
  102. }
  103. .cell-popover-grid {
  104. display: grid;
  105. grid-template-columns: auto 1fr;
  106. gap: 1rem;
  107. align-items: center;
  108. }
  109. .cell-popover-slider {
  110. display: flex;
  111. flex-direction: column;
  112. align-items: center;
  113. gap: 0.4rem;
  114. min-width: 2.5rem;
  115. }
  116. /* Vertical slider — `writing-mode + direction: rtl` covers modern
  117. browsers (low at the bottom, high at the top); the WebKit
  118. `slider-vertical` appearance and the Firefox `orient="vertical"`
  119. attribute (set in JS) are belt-and-braces for older engines. */
  120. .cell-popover-slider input[type="range"] {
  121. writing-mode: vertical-lr;
  122. direction: rtl;
  123. -webkit-appearance: slider-vertical;
  124. appearance: slider-vertical;
  125. width: 1.5rem;
  126. height: 8rem;
  127. accent-color: theme('colors.slate.600');
  128. cursor: pointer;
  129. }
  130. .dark .cell-popover-slider input[type="range"] {
  131. accent-color: theme('colors.slate.400');
  132. }
  133. .cell-popover-value {
  134. text-align: center;
  135. font-family: theme('fontFamily.mono');
  136. font-size: 0.875rem;
  137. color: theme('colors.slate.700');
  138. }
  139. .dark .cell-popover-value {
  140. color: theme('colors.slate.200');
  141. }
  142. .cell-popover-status {
  143. display: flex;
  144. flex-direction: column;
  145. gap: 0.25rem;
  146. min-width: 9rem;
  147. }
  148. .cell-popover-status-btn {
  149. display: flex;
  150. align-items: center;
  151. gap: 0.5rem;
  152. padding: 0.25rem 0.5rem;
  153. border-radius: 4px;
  154. text-align: left;
  155. font-size: 0.875rem;
  156. color: theme('colors.slate.700');
  157. background-color: transparent;
  158. border: 1px solid transparent;
  159. cursor: pointer;
  160. }
  161. .dark .cell-popover-status-btn {
  162. color: theme('colors.slate.200');
  163. }
  164. .cell-popover-status-btn:hover {
  165. background-color: theme('colors.slate.100');
  166. }
  167. .dark .cell-popover-status-btn:hover {
  168. background-color: theme('colors.slate.700');
  169. }
  170. .cell-popover-status-btn.cell-popover-active {
  171. border-color: theme('colors.slate.300');
  172. background-color: theme('colors.slate.50');
  173. }
  174. .dark .cell-popover-status-btn.cell-popover-active {
  175. border-color: theme('colors.slate.600');
  176. background-color: theme('colors.slate.700');
  177. }
  178. .cell-popover-bullet {
  179. display: inline-block;
  180. width: 0.75rem;
  181. height: 0.75rem;
  182. border-radius: 9999px;
  183. flex-shrink: 0;
  184. }
  185. .cell-popover-bullet.bullet-zugewiesen {
  186. border: 1px solid theme('colors.slate.300');
  187. }
  188. .dark .cell-popover-bullet.bullet-zugewiesen {
  189. border-color: theme('colors.slate.600');
  190. }
  191. .cell-popover-bullet.bullet-gestartet { background-color: theme('colors.yellow.300'); }
  192. .cell-popover-bullet.bullet-abgeschlossen { background-color: theme('colors.green.300'); }
  193. .cell-popover-bullet.bullet-abgebrochen { background-color: theme('colors.red.300'); }
  194. .dark .cell-popover-bullet.bullet-gestartet { background-color: theme('colors.yellow.500'); }
  195. .dark .cell-popover-bullet.bullet-abgeschlossen { background-color: theme('colors.green.500'); }
  196. .dark .cell-popover-bullet.bullet-abgebrochen { background-color: theme('colors.red.500'); }
  197. /* Phase 22: per-task hamburger menu, details modal, click-to-pickup
  198. reorder indicator, description popover. All single body-attached
  199. nodes; the JS positions them with absolute coordinates. */
  200. /* Task hamburger popup — three flex panes:
  201. [ menu | info | flyout (hidden by default) ]
  202. Body-attached, positioned by JS to the right of the trigger and
  203. vertically centred on it (cellPopover positioning model). */
  204. .task-menu {
  205. position: absolute;
  206. z-index: 60;
  207. border-radius: 0.5rem;
  208. border: 1px solid theme('colors.slate.200');
  209. background-color: theme('colors.white');
  210. box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  211. }
  212. .dark .task-menu {
  213. border-color: theme('colors.slate.700');
  214. background-color: theme('colors.slate.800');
  215. }
  216. .task-menu-inner {
  217. display: flex;
  218. align-items: stretch;
  219. }
  220. .task-menu-list {
  221. display: flex;
  222. flex-direction: column;
  223. gap: 0.1rem;
  224. padding: 0.4rem;
  225. min-width: 12rem;
  226. border-right: 1px solid theme('colors.slate.100');
  227. }
  228. .dark .task-menu-list {
  229. border-right-color: theme('colors.slate.700');
  230. }
  231. .task-menu-item,
  232. .task-menu-sub-item {
  233. display: flex;
  234. width: 100%;
  235. align-items: center;
  236. justify-content: space-between;
  237. gap: 0.5rem;
  238. padding: 0.4rem 0.6rem;
  239. border-radius: 4px;
  240. text-align: left;
  241. font-size: 0.875rem;
  242. color: theme('colors.slate.700');
  243. background-color: transparent;
  244. cursor: pointer;
  245. white-space: nowrap;
  246. }
  247. .dark .task-menu-item,
  248. .dark .task-menu-sub-item {
  249. color: theme('colors.slate.200');
  250. }
  251. .task-menu-item:hover,
  252. .task-menu-sub-item:hover {
  253. background-color: theme('colors.slate.100');
  254. }
  255. .dark .task-menu-item:hover,
  256. .dark .task-menu-sub-item:hover {
  257. background-color: theme('colors.slate.700');
  258. }
  259. .task-menu-item-active {
  260. background-color: theme('colors.slate.100');
  261. }
  262. .dark .task-menu-item-active {
  263. background-color: theme('colors.slate.700');
  264. }
  265. .task-menu-item-danger {
  266. color: theme('colors.red.600');
  267. }
  268. .dark .task-menu-item-danger {
  269. color: theme('colors.red.400');
  270. }
  271. .task-menu-divider {
  272. height: 1px;
  273. margin: 0.25rem 0.25rem;
  274. background-color: theme('colors.slate.100');
  275. }
  276. .dark .task-menu-divider {
  277. background-color: theme('colors.slate.700');
  278. }
  279. /* Right pane: read-only task info. */
  280. .task-menu-info {
  281. display: flex;
  282. flex-direction: column;
  283. gap: 0.4rem;
  284. padding: 0.6rem 0.75rem;
  285. width: 18rem;
  286. max-width: 22rem;
  287. font-size: 0.825rem;
  288. color: theme('colors.slate.700');
  289. }
  290. .dark .task-menu-info {
  291. color: theme('colors.slate.100');
  292. }
  293. .task-menu-info-title {
  294. font-weight: 600;
  295. font-size: 0.9rem;
  296. color: theme('colors.slate.800');
  297. word-break: break-word;
  298. }
  299. .dark .task-menu-info-title {
  300. color: theme('colors.slate.100');
  301. }
  302. .task-menu-info-desc {
  303. white-space: pre-wrap;
  304. word-break: break-word;
  305. max-height: 12rem;
  306. overflow-y: auto;
  307. }
  308. .task-menu-info-url {
  309. font-size: 0.8rem;
  310. word-break: break-all;
  311. }
  312. .task-menu-info-url-link {
  313. color: theme('colors.blue.700');
  314. text-decoration: underline;
  315. }
  316. .dark .task-menu-info-url-link {
  317. color: theme('colors.blue.300');
  318. }
  319. .task-menu-info-refs-head {
  320. margin-top: 0.2rem;
  321. font-size: 0.7rem;
  322. text-transform: uppercase;
  323. letter-spacing: 0.05em;
  324. color: theme('colors.slate.500');
  325. margin-bottom: 0.2rem;
  326. }
  327. .dark .task-menu-info-refs-head {
  328. color: theme('colors.slate.400');
  329. }
  330. .task-menu-info-refs-list {
  331. display: flex;
  332. flex-wrap: wrap;
  333. gap: 0.25rem;
  334. }
  335. .task-menu-info-ref-chip {
  336. display: inline-flex;
  337. align-items: center;
  338. gap: 0.25rem;
  339. padding: 0.1rem 0.4rem;
  340. border-radius: 9999px;
  341. border: 1px solid theme('colors.slate.200');
  342. background-color: theme('colors.slate.50');
  343. color: theme('colors.slate.600');
  344. font-size: 0.75rem;
  345. text-decoration: none;
  346. }
  347. .task-menu-info-ref-chip:hover {
  348. background-color: theme('colors.slate.100');
  349. }
  350. .dark .task-menu-info-ref-chip {
  351. border-color: theme('colors.slate.600');
  352. background-color: theme('colors.slate.700');
  353. color: theme('colors.slate.300');
  354. }
  355. .dark .task-menu-info-ref-chip:hover {
  356. background-color: theme('colors.slate.600');
  357. }
  358. /* Flyout — third column for the sprint chooser when Move/Copy is
  359. picked. Slides in to the right of the info pane. */
  360. .task-menu-flyout {
  361. display: flex;
  362. flex-direction: column;
  363. padding: 0.4rem;
  364. width: 12rem;
  365. border-left: 1px solid theme('colors.slate.100');
  366. background-color: theme('colors.slate.50');
  367. }
  368. .dark .task-menu-flyout {
  369. border-left-color: theme('colors.slate.700');
  370. background-color: theme('colors.slate.700');
  371. }
  372. .task-menu-flyout-head {
  373. font-size: 0.7rem;
  374. text-transform: uppercase;
  375. letter-spacing: 0.05em;
  376. color: theme('colors.slate.500');
  377. padding: 0.2rem 0.5rem 0.4rem;
  378. }
  379. .dark .task-menu-flyout-head {
  380. color: theme('colors.slate.300');
  381. }
  382. .task-menu-flyout-list {
  383. display: flex;
  384. flex-direction: column;
  385. gap: 0.1rem;
  386. max-height: 16rem;
  387. overflow-y: auto;
  388. }
  389. .task-menu-sub-empty {
  390. padding: 0.4rem 0.6rem;
  391. font-size: 0.8rem;
  392. font-style: italic;
  393. color: theme('colors.slate.500');
  394. }
  395. .dark .task-menu-sub-empty {
  396. color: theme('colors.slate.400');
  397. }
  398. .task-modal-overlay {
  399. position: fixed;
  400. inset: 0;
  401. z-index: 70;
  402. display: flex;
  403. align-items: center;
  404. justify-content: center;
  405. padding: 1rem;
  406. background-color: rgb(15 23 42 / 0.45);
  407. }
  408. .task-modal-panel {
  409. width: 100%;
  410. max-width: 32rem;
  411. border-radius: 0.5rem;
  412. background-color: theme('colors.white');
  413. border: 1px solid theme('colors.slate.200');
  414. box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.3);
  415. display: flex;
  416. flex-direction: column;
  417. overflow: hidden;
  418. }
  419. .dark .task-modal-panel {
  420. background-color: theme('colors.slate.800');
  421. border-color: theme('colors.slate.700');
  422. }
  423. .task-modal-header {
  424. padding: 0.75rem 1rem;
  425. border-bottom: 1px solid theme('colors.slate.200');
  426. background-color: theme('colors.slate.50');
  427. color: theme('colors.slate.800');
  428. }
  429. .dark .task-modal-header {
  430. background-color: theme('colors.slate.700');
  431. border-color: theme('colors.slate.700');
  432. color: theme('colors.slate.100');
  433. }
  434. .task-modal-body {
  435. padding: 1rem;
  436. font-size: 0.875rem;
  437. }
  438. .task-modal-footer {
  439. padding: 0.5rem 1rem 0.75rem;
  440. display: flex;
  441. justify-content: flex-end;
  442. gap: 0.5rem;
  443. border-top: 1px solid theme('colors.slate.100');
  444. background-color: theme('colors.slate.50');
  445. }
  446. .dark .task-modal-footer {
  447. background-color: theme('colors.slate.700');
  448. border-color: theme('colors.slate.700');
  449. }
  450. .task-pickup-active {
  451. background-color: theme('colors.amber.100') !important;
  452. outline: 2px dashed theme('colors.amber.400');
  453. outline-offset: -2px;
  454. }
  455. .dark .task-pickup-active {
  456. background-color: theme('colors.amber.900') !important;
  457. outline-color: theme('colors.amber.500');
  458. }
  459. .task-pickup-indicator {
  460. position: absolute;
  461. height: 2px;
  462. background-color: theme('colors.amber.500');
  463. z-index: 65;
  464. pointer-events: none;
  465. box-shadow: 0 0 0 1px rgb(255 255 255 / 0.5);
  466. }
  467. }