Extract hardcoded rgba colors and inline styles to CSS classes

- Add .inline-error and .inline-warning utility classes to dashboard.css
  with correctly-matched terminal palette rgba values (replaces off-palette
  rgba(231,76,60,0.1) and rgba(241,196,15,0.1))
- Add .key-generated-alert class for the new API key display frame
- Add base .dependency-item, .dependency-group h4, .dependency-item a,
  .dependency-title, .btn-small overrides to ticket.css
- Remove all inline styles from the dependency list template in ticket.js
  — layout, colors, and sizing now come from CSS classes
- Update CreateTicketView.php and ApiKeysView.php to use the new classes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-20 11:08:52 -04:00
parent d44a530018
commit b03a9cfc8c
5 changed files with 62 additions and 9 deletions

View File

@@ -4642,6 +4642,27 @@ table td:nth-child(4) {
border-top: 1px solid var(--terminal-green);
}
/* ===== INLINE ALERT BOXES ===== */
.inline-error {
color: var(--priority-1);
border: 2px solid var(--priority-1);
padding: 1rem;
background: rgba(255, 68, 68, 0.1);
}
.inline-warning {
border: 2px solid var(--terminal-amber);
background: rgba(255, 176, 0, 0.1);
padding: 1rem;
}
/* New API key display — amber tinted alert frame */
.key-generated-alert {
background: rgba(255, 176, 0, 0.1);
border-color: var(--terminal-amber);
}
/* ===== RELATIVE TIMESTAMP CELLS ===== */
/* Inline spans with data-ts show relative time; title attr has the full date */