Changeset 03af7f8 in Klonkt


Ignore:
Timestamp:
06/18/2026 08:02:13 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
fbc8628
Parents:
6623453
Message:

SEO page: own style block (label-per-row, clean fields)

The .site-form style was scoped to admin-site-edit; the standalone SEO page
didn't inherit it → bare inline fields. Same style now applied.

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

File:
1 edited

Legend:

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

    r6623453 r03af7f8  
    1111    <fieldset>
    1212      <legend>Indexeren</legend>
    13       <label class="checkbox-row">
     13      <label class="cb">
    1414        <input type="checkbox" name="robots_index" value="1" <%= site.robots_index ? 'checked' : '' %>>
    1515        <span>Zoekmachines mogen deze site indexeren <small class="form-hint-inline">— uit = <code>noindex</code> + sitemap.xml verborgen</small></span>
     
    103103  </form>
    104104</div>
     105
     106<style>
     107.admin-site-edit-page { max-width: 760px; margin: 3rem auto; padding: 0 1rem; }
     108.admin-site-edit-page h1 { font-family: var(--font-display, serif); font-size: 1.8rem; margin: 0 0 0.4rem; }
     109.admin-site-edit-page .admin-tagline { color: var(--ink-muted); margin: 0 0 1.75rem; }
     110
     111.site-form { display: flex; flex-direction: column; gap: 1.5rem; }
     112.site-form fieldset {
     113  border: 1px solid var(--rule);
     114  border-radius: 8px;
     115  padding: 1rem 1.25rem;
     116  background: var(--paper-2);
     117  display: flex;
     118  flex-direction: column;
     119  gap: 0.85rem;
     120}
     121.site-form fieldset legend { font-family: var(--font-display, serif); font-size: 1rem; padding: 0 0.4rem; }
     122.site-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--ink-muted, var(--ink-soft)); }
     123.site-form label.cb { flex-direction: row; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; color: var(--ink); }
     124.site-form label.cb input { margin-top: 0.15rem; }
     125.site-form label > span { line-height: 1.35; }
     126.form-hint-inline { font-weight: 400; color: var(--ink-muted); font-size: 0.82em; }
     127.site-form code { background: var(--paper); padding: 0.05rem 0.35rem; border-radius: 3px; font-size: 0.85em; }
     128.site-form input[type="text"], .site-form textarea, .site-form select {
     129  padding: 0.55rem 0.85rem;
     130  border: 1px solid var(--rule);
     131  border-radius: 5px;
     132  background: var(--paper);
     133  color: var(--ink);
     134  font-family: inherit;
     135  font-size: 0.95rem;
     136  width: 100%;
     137  box-sizing: border-box;
     138}
     139.site-form textarea { resize: vertical; min-height: 2.6rem; }
     140.site-form select { max-width: 320px; }
     141.site-form input:focus, .site-form textarea:focus, .site-form select:focus {
     142  outline: none; border-color: var(--accent);
     143}
     144.seo-pointer p { margin: 0; font-size: 0.9rem; color: var(--ink-muted); }
     145.seo-pointer a { color: var(--accent); font-weight: 600; }
     146.site-form > button[type="submit"] { align-self: flex-start; }
     147</style>
Note: See TracChangeset for help on using the changeset viewer.