Changeset 57b1843 in Klonkt


Ignore:
Timestamp:
06/20/2026 06:44:46 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
e6ad948
Parents:
9d9f3c1
Message:

fix(epk): clean form styling on the press kit edit page

The .set-* styling was inline in admin-settings.ejs → the EPK page didn't
get it (inline labels, cramped layout). Added own <style>: stacked labels,
full-width input and textarea, focus accent.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/admin-epk.ejs

    r9d9f3c1 r57b1843  
    3030  </section>
    3131</div>
     32
     33<style>
     34  .admin-page .set-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem; margin-top: 1rem; }
     35  .admin-page .set-card h2 { font-family: var(--font-display, serif); font-size: 1.25rem; margin: 0 0 0.5rem; }
     36  .admin-page .set-help { font-size: 0.85rem; color: var(--ink-soft, var(--ink-muted)); line-height: 1.5; margin: 0 0 1rem; max-width: 60ch; }
     37  .admin-page .set-form { display: flex; flex-direction: column; gap: 1rem; max-width: 520px; }
     38  .admin-page .set-field { display: flex; flex-direction: column; gap: 0.3rem; }
     39  .admin-page .set-field > span { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft, var(--ink-muted)); }
     40  .admin-page .set-field input,
     41  .admin-page .set-field textarea {
     42    width: 100%; box-sizing: border-box;
     43    padding: 0.6rem 0.75rem;
     44    border: 1px solid var(--rule); border-radius: 6px;
     45    background: var(--paper); color: var(--ink);
     46    font-family: var(--font-ui, system-ui), sans-serif; font-size: 0.95rem;
     47    -webkit-appearance: none; appearance: none;
     48  }
     49  .admin-page .set-field textarea { resize: vertical; line-height: 1.5; }
     50  .admin-page .set-field input:focus,
     51  .admin-page .set-field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
     52  .admin-page .set-form .btn { align-self: flex-start; }
     53</style>
Note: See TracChangeset for help on using the changeset viewer.