scheduled-jobs.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. .scheduled-jobs-page {
  2. display: flex;
  3. flex-direction: column;
  4. gap: 18px;
  5. padding-bottom: 24px;
  6. }
  7. .scheduled-jobs-page > .scheduled-jobs-head { align-items: center; margin: 0; }
  8. .scheduled-jobs-maint-trigger {
  9. display: inline-flex;
  10. align-items: center;
  11. gap: 9px;
  12. flex: none;
  13. min-height: 40px;
  14. padding: 0 12px;
  15. border: 1px solid var(--border);
  16. border-radius: 8px;
  17. background: var(--card);
  18. color: var(--foreground);
  19. font-size: var(--type-support);
  20. font-weight: 650;
  21. cursor: pointer;
  22. transition: color .18s, background-color .18s, border-color .18s;
  23. }
  24. .scheduled-jobs-maint-trigger > svg { flex: none; color: var(--primary); }
  25. .scheduled-jobs-maint-trigger:hover { border-color: var(--primary-border); background: var(--primary-soft); }
  26. .scheduled-jobs-maint-count {
  27. min-width: 22px;
  28. padding: 3px 5px;
  29. border-radius: 4px;
  30. background: var(--surface-subtle);
  31. color: var(--text-secondary);
  32. font: 650 var(--type-meta)/1.2 var(--font-mono);
  33. text-align: center;
  34. }
  35. .scheduled-jobs-overview {
  36. overflow: hidden;
  37. border: 1px solid var(--border);
  38. border-radius: var(--radius-card);
  39. background: var(--card);
  40. box-shadow: var(--shadow-card);
  41. }
  42. .scheduled-jobs-metrics { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
  43. .scheduled-jobs-metric { min-width: 0; padding: 14px clamp(12px, 1.5vw, 22px); }
  44. .scheduled-jobs-metric + .scheduled-jobs-metric { border-inline-start: 1px solid var(--border-subtle); }
  45. .scheduled-jobs-metric--lead {
  46. position: relative;
  47. display: flex;
  48. flex-direction: column;
  49. justify-content: center;
  50. padding-inline-start: 70px;
  51. background: var(--primary-soft);
  52. }
  53. .scheduled-jobs-metric-icon {
  54. position: absolute;
  55. inset-inline-start: 16px;
  56. top: 50%;
  57. display: grid;
  58. place-items: center;
  59. width: 40px;
  60. height: 40px;
  61. transform: translateY(-50%);
  62. border: 1px solid var(--primary-border);
  63. border-radius: 8px;
  64. background: var(--card);
  65. color: var(--primary);
  66. }
  67. .scheduled-jobs-metric dt { color: var(--text-secondary); font-size: var(--type-support); }
  68. .scheduled-jobs-metric dd {
  69. margin: 5px 0 0;
  70. color: var(--foreground);
  71. font: 650 clamp(21px, 2vw, 28px)/1.16 var(--font-mono);
  72. font-variant-numeric: tabular-nums;
  73. overflow-wrap: anywhere;
  74. }
  75. .scheduled-jobs-metric dd > small { color: var(--text-secondary); font-size: .65em; }
  76. .scheduled-jobs-metric--lead dd { color: var(--primary); }
  77. .scheduled-jobs-metric dd.is-attention { color: var(--destructive); }
  78. .scheduled-jobs-metric dd.scheduled-jobs-metric-note, .scheduled-jobs-runtime-note {
  79. color: var(--muted-foreground);
  80. font: 400 var(--type-meta)/1.5 var(--font-sans);
  81. }
  82. .scheduled-jobs-runtime-note { margin: 0; padding: 9px 16px; border-top: 1px solid var(--border-subtle); overflow-wrap: anywhere; }
  83. .scheduled-jobs-source {
  84. display: inline-flex;
  85. align-items: center;
  86. gap: 5px;
  87. padding: 2px 7px;
  88. border: 1px solid var(--border);
  89. border-radius: 999px;
  90. background: var(--card);
  91. color: var(--text-secondary);
  92. font-weight: 400;
  93. }
  94. .scheduled-jobs-source::before { width: 6px; height: 6px; border-radius: 50%; background: var(--success); content: ""; }
  95. .scheduled-jobs-source[data-scheduler-source="local"]::before { background: var(--warning); }
  96. .scheduled-jobs-source[data-scheduler-source="disabled"]::before { background: var(--muted-foreground); }
  97. .scheduled-jobs-reruns { border: 1px solid var(--warning-border); border-radius: 9px; background: var(--warning-soft); color: var(--foreground); }
  98. .scheduled-jobs-reruns summary, .scheduled-jobs-notes summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
  99. .scheduled-jobs-reruns summary::-webkit-details-marker, .scheduled-jobs-notes summary::-webkit-details-marker { display: none; }
  100. .scheduled-jobs-reruns summary { min-height: 46px; padding: 8px 14px; font-size: var(--type-support); }
  101. .scheduled-jobs-reruns summary > svg:first-child { color: var(--warning); }
  102. .scheduled-jobs-reruns summary > span { color: var(--text-secondary); }
  103. .scheduled-jobs-reruns summary > svg:last-child, .scheduled-jobs-notes summary > svg { flex: none; margin-inline-start: auto; }
  104. .scheduled-jobs-reruns[open] summary > svg:last-child, .scheduled-jobs-notes[open] summary > svg { transform: rotate(180deg); }
  105. .scheduled-jobs-reruns ul { margin: 0; padding: 0 14px 5px; list-style: none; }
  106. .scheduled-jobs-reruns li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--warning-border); font-size: var(--type-support); }
  107. .scheduled-jobs-reruns li > span { min-width: 0; overflow-wrap: anywhere; }
  108. .scheduled-jobs-reruns li small { display: block; color: var(--text-secondary); }
  109. .scheduled-jobs-reruns li button { flex: none; }
  110. .scheduled-jobs-panel { min-width: 0; }
  111. .scheduled-jobs-scroll-hint { margin: 0; padding: 7px 14px; border-top: 1px solid var(--border-subtle); color: var(--muted-foreground); font-size: var(--type-meta); }
  112. .scheduled-jobs-load-error { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 24px 14px; color: var(--destructive); font-size: var(--type-support); }
  113. .scheduled-jobs-load-error > p { min-width: 0; overflow-wrap: anywhere; }
  114. .ops-table.job-ledger { min-width: 1010px; table-layout: fixed; }
  115. .job-ledger th { padding-block: 10px; }
  116. .job-ledger th small { display: block; margin-top: 2px; font-weight: 400; }
  117. .job-ledger td { padding-block: 11px; white-space: normal; overflow-wrap: anywhere; }
  118. .job-ledger td small { margin-top: 3px; font-size: var(--type-meta); }
  119. .job-ledger td code { display: block; margin-top: 4px; font-size: var(--type-meta); }
  120. .job-task-name { color: var(--foreground); font-weight: 500; }
  121. .job-ledger-trigger, .job-ledger-time { color: var(--foreground); }
  122. .job-ledger-time { font-variant-numeric: tabular-nums; }
  123. .job-ledger td .job-ledger-counts { font-size: var(--type-meta); letter-spacing: 0; }
  124. .job-ledger-counts .is-failed { color: var(--destructive); font-weight: 700; }
  125. .job-ledger-actions { gap: 4px 8px; justify-content: flex-end; }
  126. .job-ledger th:last-child, .job-ledger td:last-child { text-align: right; }
  127. .job-ledger td .job-ledger-history {
  128. padding-inline: 8px;
  129. border: 1px solid var(--primary-border);
  130. border-radius: 6px;
  131. background: var(--primary-soft);
  132. color: var(--primary);
  133. white-space: nowrap;
  134. }
  135. .job-ledger td .job-ledger-history:hover { border-color: var(--primary); }
  136. .scheduled-jobs-page .ops-table-action.job-toggle-danger { color: var(--destructive); }
  137. .scheduled-jobs-page .ops-table-action.job-toggle-danger:hover { background: var(--destructive-soft); }
  138. .job-cell-pending, .job-cell-note { color: var(--muted-foreground); }
  139. .scheduled-jobs-notes { align-self: flex-start; max-width: 100%; color: var(--muted-foreground); font-size: var(--type-meta); }
  140. .scheduled-jobs-notes summary { width: fit-content; padding: 4px 0; font-weight: 650; }
  141. .scheduled-jobs-notes ul { max-width: 85ch; margin: 6px 0 0; padding-inline-start: 19px; list-style: disc; overflow-wrap: anywhere; }
  142. .scheduled-jobs-notes li + li { margin-top: 4px; }
  143. .scheduled-jobs-page :is(summary, .scheduled-jobs-maint-trigger, .job-ledger-actions button):focus-visible {
  144. outline: 2px solid var(--ring);
  145. outline-offset: 2px;
  146. }
  147. @media (max-width: 780px) {
  148. .scheduled-jobs-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  149. .scheduled-jobs-metric--lead { grid-column: 1 / -1; border-bottom: 1px solid var(--border-subtle); }
  150. .scheduled-jobs-metric:nth-child(2) { border-inline-start: 0; }
  151. }
  152. @media (max-width: 560px) {
  153. .scheduled-jobs-page { gap: 14px; }
  154. .scheduled-jobs-page > .scheduled-jobs-head { align-items: flex-start; gap: 10px; }
  155. .scheduled-jobs-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  156. .scheduled-jobs-metric:nth-child(n+4) { border-top: 1px solid var(--border-subtle); }
  157. .scheduled-jobs-metric:nth-child(4) { border-inline-start: 0; }
  158. .scheduled-jobs-metric dt { font-size: var(--type-meta); }
  159. }
  160. .job-definition-dialog {
  161. --job-definition-inset: clamp(14px, 3vw, 24px);
  162. width: min(820px, calc(100vw - 24px));
  163. }
  164. .job-definition-dialog > header div > p { font-family: var(--font-mono); overflow-wrap: anywhere; }
  165. .job-definition-body { display: grid; gap: 16px; padding: 18px var(--job-definition-inset); }
  166. .job-definition-overview {
  167. display: grid;
  168. grid-template-columns: minmax(0, .75fr) minmax(0, .85fr) minmax(0, 1.55fr);
  169. border: 1px solid var(--border-subtle);
  170. border-radius: 9px;
  171. background: var(--surface-subtle);
  172. }
  173. .job-definition-overview > div { min-width: 0; padding: 12px 14px; }
  174. .job-definition-overview > div + div { border-inline-start: 1px solid var(--border-subtle); }
  175. .job-definition-overview dt, .job-definition-panel dt { color: var(--muted-foreground); font-size: var(--type-support); }
  176. .job-definition-overview dd { margin: 6px 0 0; font-size: var(--type-support); }
  177. .job-definition-overview dd.job-definition-total { color: var(--primary); font: 650 20px/1.2 var(--font-mono); overflow-wrap: anywhere; }
  178. .job-definition-latest { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
  179. .job-definition-latest time { font-variant-numeric: tabular-nums; }
  180. .job-definition-sections { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
  181. .job-definition-panel { border: 1px solid var(--border); border-radius: 9px; }
  182. .job-definition-panel h3 { padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); font-size: var(--type-body); font-weight: 700; }
  183. .job-definition-panel dl { margin: 0; padding: 0 14px; }
  184. .job-definition-panel dl > div { padding: 10px 0; }
  185. .job-definition-panel dl > div + div { border-top: 1px solid var(--border-subtle); }
  186. .job-definition-panel dd { margin: 3px 0 0; color: var(--foreground); font-size: var(--type-support); line-height: 1.55; overflow-wrap: anywhere; }
  187. .job-definition-note { color: var(--muted-foreground); font-size: var(--type-meta); }
  188. .job-definition-footer {
  189. position: sticky;
  190. bottom: 0;
  191. z-index: 1;
  192. display: flex;
  193. flex-wrap: wrap;
  194. justify-content: flex-end;
  195. gap: 8px;
  196. padding: 11px var(--job-definition-inset);
  197. border-top: 1px solid var(--border-subtle);
  198. background: var(--card);
  199. }
  200. @media (max-width: 580px) {
  201. .job-definition-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  202. .job-definition-overview > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border-subtle); border-inline-start: 0; }
  203. .job-definition-sections { grid-template-columns: minmax(0, 1fr); }
  204. }
  205. .scheduled-jobs-filters .ops-search{flex:1;max-width:390px}
  206. .job-runs-dialog { width: min(1200px, calc(100vw - 24px)); }
  207. .job-runs-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
  208. .job-runs-dialog > header { flex: none; }
  209. .job-round-dialog { width: min(680px, calc(100vw - 24px)); }
  210. .job-runs-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px clamp(14px, 3vw, 24px) 22px; }
  211. .job-runs-dialog > .job-runs-body { display: flex; flex-direction: column; min-height: 0; }
  212. .job-runs-dialog > .job-runs-body > :not(.job-runs-list) { flex: none; }
  213. .job-runs-list { display: flex; flex-direction: column; min-height: 0; }
  214. .job-runs-table { min-height: 0; overflow: hidden auto; overscroll-behavior-y: contain; container-type: inline-size; }
  215. .job-runs-table:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
  216. .job-runs-table .ops-table { min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
  217. .job-runs-table thead th { position: sticky; top: 0; z-index: 1; }
  218. .job-runs-pagination { flex: none; display: flex; justify-content: center; padding: 8px 12px; border-top: 1px solid var(--border-subtle); }
  219. .job-runs-table .ops-table :is(th, td) { min-width: 0; padding-inline: 9px; }
  220. .job-runs-table .ops-table :is(th, td):where(:first-child) { padding-inline-start: 14px; }
  221. .job-runs-table .ops-table :is(th, td):where(:last-child) { padding-inline-end: 14px; }
  222. .job-runs-table .ops-table th { white-space: normal; }
  223. .job-runs-table th small, .job-runs-table td small { display: block; margin-top: 3px; font-size: var(--type-meta); line-height: 1.4; }
  224. .job-runs-table td code { display: block; font-size: var(--type-meta); }
  225. .job-run-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  226. .job-run-cell-label { display: none; }
  227. .job-runs-table .ops-status { max-width: 100%; }
  228. .job-runs-table .ops-status i { flex: none; }
  229. .job-runs-table .ops-table-actions { display: flex; gap: 0 3px; }
  230. .job-runs-table .ops-table-action { padding-inline: 4px; font-size: var(--type-meta); }
  231. @container (max-width: 650px) {
  232. .job-runs-table :is(table, tbody) { display: block; }
  233. .job-runs-table colgroup { display: none; }
  234. .job-runs-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  235. .job-runs-table tbody tr {
  236. display: grid;
  237. grid-template-columns: repeat(2, minmax(0, 1fr));
  238. gap: 11px 14px;
  239. padding: 14px;
  240. }
  241. .job-runs-table tbody tr + tr { border-top: 1px solid var(--border-subtle); }
  242. .job-runs-table .ops-table td { display: block; padding: 0; border: 0; white-space: normal; }
  243. .job-runs-table tbody td:last-child { grid-column: 1 / -1; }
  244. .job-run-cell-label { display: block; margin-bottom: 4px; color: var(--muted-foreground); font-size: var(--type-meta); line-height: 1.45; }
  245. }
  246. .job-runs-body > .ops-toolbar { padding: 0; }
  247. .job-runs-body .scheduled-jobs-filters input[type="date"] { width: auto; min-width: 0; }
  248. @media (max-height: 600px) {
  249. .job-runs-dialog { max-height: calc(100dvh - 16px); }
  250. .job-runs-dialog > header { padding-block: 8px; }
  251. .job-runs-dialog > .job-runs-body { gap: 6px; padding-block: 8px; }
  252. .job-runs-dialog .ops-toolbar { gap: 6px; }
  253. .job-runs-pagination { padding-block: 4px; }
  254. }
  255. .job-round-table { max-height: 260px; overflow: auto; }
  256. .job-round-table .ops-table { min-width: 0; overflow-wrap: anywhere; }
  257. .job-round-actions { display: flex; justify-content: flex-end; }
  258. .ops-maint-dialog .ops-table-actions { gap: 4px; }
  259. .ops-confirm.ops-maint-dialog{display:flex;flex-direction:column;width:min(900px,calc(100vw - 32px));max-height:calc(100vh - 40px);padding:0;text-align:left}
  260. .ops-maint-dialog > .ops-maint-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 14px;border-bottom:1px solid var(--border-subtle)}
  261. .ops-maint-dialog .ops-maint-meta{margin:6px 0 0;color:var(--text-secondary);font-size:var(--type-support)}
  262. .ops-maint-close{display:grid;place-items:center;flex:none;width:28px;height:28px;border:0;border-radius:5px;background:var(--surface-subtle);color:var(--text-secondary);cursor:pointer}
  263. .ops-maint-close:hover{background:var(--border);color:var(--foreground)}
  264. .ops-maint-dialog > .ops-maint-note{margin:12px 22px 0}
  265. .ops-maint-dialog > .ops-maint-body{display:block;flex:1;min-height:0;overflow:auto;padding:12px 22px 4px}
  266. .ops-maint-table{width:100%;border-collapse:collapse;font-size:var(--type-support)}
  267. .ops-maint-table th{padding:8px 10px;border-bottom:1px solid var(--border);color:var(--text-secondary);font-size:var(--type-meta);font-weight:650;text-align:left;white-space:nowrap}
  268. .ops-maint-table td{padding:11px 10px;border-bottom:1px solid var(--border-subtle);vertical-align:top}
  269. .ops-maint-table tbody tr:last-child td{border-bottom:0}
  270. .ops-maint-table td small{display:block;margin-top:2px;color:var(--muted-foreground);font-size:var(--type-meta)}
  271. .ops-maint-actions-head{text-align:right}
  272. .ops-maint-table .ops-table-actions{justify-content:flex-end;white-space:nowrap}
  273. .ops-maint-dialog > .ops-maint-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 22px 18px;border-top:1px solid var(--border-subtle)}
  274. @media (max-width: 760px) {
  275. .ops-confirm.ops-maint-dialog { width: calc(100vw - 24px); }
  276. .ops-maint-dialog > .ops-maint-head, .ops-maint-dialog > .ops-maint-body, .ops-maint-dialog > .ops-maint-foot { padding-inline: 14px; }
  277. }