Changeset 974de34 in Klonkt


Ignore:
Timestamp:
06/16/2026 04:25:40 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
83faa57
Parents:
bdc3c1e
Message:

Style: site-edit dropdowns polished (custom chevron + focus instead of bare native select)

The <select> fields on the Appearance page fell outside the input styling
and showed the raw browser style. Now matches the input look, with a custom
chevron and accent focus ring.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

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

    rbdc3c1e r974de34  
    400400.site-form input[readonly] { opacity: 0.6; cursor: not-allowed; background: var(--paper-2); }
    401401
     402/* Selects: zelfde look als de inputs, met een eigen chevron i.p.v. de kale
     403   native pijl. De geopende optielijst blijft door de browser gerenderd. */
     404.site-form select {
     405  appearance: none;
     406  -webkit-appearance: none;
     407  padding: 0.55rem 2.2rem 0.55rem 0.85rem;
     408  border: 1px solid var(--rule);
     409  border-radius: 5px;
     410  background-color: var(--paper);
     411  color: var(--ink);
     412  font-family: inherit;
     413  font-size: 0.95rem;
     414  cursor: pointer;
     415  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
     416  background-repeat: no-repeat;
     417  background-position: right 0.7rem center;
     418  transition: border-color 0.15s ease, box-shadow 0.15s ease;
     419}
     420.site-form select:hover { border-color: var(--ink-soft, #888); }
     421.site-form select:focus,
     422.site-form input[type="text"]:focus,
     423.site-form textarea:focus {
     424  outline: none;
     425  border-color: var(--accent, #c2410c);
     426  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #c2410c) 22%, transparent);
     427}
     428
    402429/* Reuse the palette-swatch styles from account.ejs */
    403430.palette-swatch {
Note: See TracChangeset for help on using the changeset viewer.