Posted to tcl by torsten at Thu Oct 01 08:20:05 GMT 2026view pretty

/* Fossiliser /style.css  
   "!important" only where the HTML has
   inline style='...' (body, h1, h3, logo, login box). Delete those inline
   styles later and the "!importants" can go. */


:root {
  --bg:      #ffffff;
  --surface: #eef3fb;
  --ink:     #14213d;
  --muted:   #4a5a78;
  --line:    #cbd8ee;
  --accent:  #2456a8;   /* blue, complements the olive logo */
  --accent-ink: #ffffff;
  --bar:     #888800;   /* exact logo olive */
  --focus:   #b45309;
  --radius:  8px;
  --font-ui:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-head: var(--font-ui);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0d1524; --surface:#16213a; --ink:#e8eefb; --muted:#9fb0d0;
    --line:#27385c; --accent:#7fb0ff; --accent-ink:#0d1524; --bar:#888800; --focus:#fbbf24;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }

/* body: solid navy top rule + 2-col grid */
body {
  margin: 0 !important;
  min-height: 100dvh;
  padding: 1.75rem max(1.25rem, calc((100% - 72rem) / 2)) 4rem;
  color: var(--ink);
  font: 1rem/1.55 var(--font-ui);
  background: var(--bg) !important;   /* replaces inline gradient */
  border-top: 8px solid var(--bar);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  column-gap: 2rem;
}

/* title row */
h1 {
  grid-column: 1; grid-row: 1;
  display: flex; align-items: center; gap: .75rem;
  margin: 0 !important;
  font: 650 clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem)/1.15 var(--font-head);
  letter-spacing: -0.015em;
  color: var(--ink) !important;
}
h1 a { color: inherit; text-decoration: none; display: flex; }
h1 img, h1 svg { float: none !important; width: 2.75rem !important; height: auto; }
h1 span { font-size: .5em !important; font-weight: 500; color: var(--muted); }

/* login box (first div) */
body > div:first-child {
  float: none !important;
  grid-column: 2; grid-row: 1; align-self: center;
}
body > div:first-child form {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: .5rem; max-width: 18rem; margin: 0;
  font-size: .875rem; color: var(--muted);
}
body > div:first-child br { display: none; }

input[type=submit], button {
  min-height: 2.5rem; padding: 0 1rem;
  font: 600 .875rem var(--font-ui);
  color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
input[type=submit]:hover:not(:disabled) { background: var(--surface); }
input[type=submit]:first-of-type { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
input[type=submit]:first-of-type:hover:not(:disabled) { filter: brightness(1.12); background: var(--accent); }
input:disabled { opacity: .45; cursor: not-allowed; }

/* tagline (h3) */
h3 {
  grid-column: 1 / -1;
  max-width: 60ch;
  margin: .75rem 0 2.25rem !important;
  padding: 0;
  background: none !important;
  color: var(--muted) !important;
  font: 400 1.125rem/1.5 var(--font-ui);
  text-wrap: pretty;
}
h3 strong { color: var(--ink); font-weight: 600; }

a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: #e9e48a; color: #14213d; }

/* project table */
table {
  grid-column: 1 / -1;
  width: 100%;
  border: 1px solid var(--line);          /* overrides frame='box' */
  border-collapse: separate;              /* overrides cellspacing */
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  font-size: .9375rem;
}
th, td {
  border: 0;                              /* overrides rules='all' */
  border-bottom: 1px solid var(--line);
  padding: .875rem 1rem;                  /* overrides cellpadding */
  text-align: left; vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
thead th {
  font: 600 .8125rem var(--font-ui);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}
.sortable th { cursor: pointer; user-select: none; }
.sortable th:hover { color: var(--ink); }
#sorttable_sortfwdind, #sorttable_sortrevind { margin-left: .35em; color: var(--accent); }
tbody { background: var(--bg); }
tbody tr:hover td { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }

td:nth-child(1) { font: .875rem/1.5 var(--font-mono); white-space: nowrap; }
td:nth-child(2) { font-weight: 600; min-width: 11rem; }
td:nth-child(3) { color: var(--muted); max-width: 52ch; text-wrap: pretty; }
td:nth-child(4) { font-size: .875rem; color: var(--muted); }
td:empty::after { content: "\2014"; color: var(--muted); opacity: .5; }

/* narrow screens: rows become labelled cards */
@media (max-width: 720px) {
  body { grid-template-columns: 1fr; }
  h1, body > div:first-child { grid-column: 1; grid-row: auto; }
  body > div:first-child { margin-top: 1rem; }
  body > div:first-child form { justify-content: flex-start; max-width: none; }
  table, tbody, tr { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  td { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; border: 0; padding: .35rem 1rem; }
  td::before { font: 600 .8125rem var(--font-ui); color: var(--muted); }
  td:nth-child(1)::before { content: "File"; }
  td:nth-child(2)::before { content: "Project"; }
  td:nth-child(3)::before { content: "About"; }
  td:nth-child(4)::before { content: "Admin"; }
  td:nth-child(2) { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { body { background: #fff !important; } input { display: none; } }