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

  1. /* Fossiliser /style.css
  2. "!important" only where the HTML has
  3. inline style='...' (body, h1, h3, logo, login box). Delete those inline
  4. styles later and the "!importants" can go. */
  5.  
  6.  
  7. :root {
  8. --bg: #ffffff;
  9. --surface: #eef3fb;
  10. --ink: #14213d;
  11. --muted: #4a5a78;
  12. --line: #cbd8ee;
  13. --accent: #2456a8; /* blue, complements the olive logo */
  14. --accent-ink: #ffffff;
  15. --bar: #888800; /* exact logo olive */
  16. --focus: #b45309;
  17. --radius: 8px;
  18. --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  19. --font-head: var(--font-ui);
  20. --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  21. }
  22. @media (prefers-color-scheme: dark) {
  23. :root {
  24. --bg:#0d1524; --surface:#16213a; --ink:#e8eefb; --muted:#9fb0d0;
  25. --line:#27385c; --accent:#7fb0ff; --accent-ink:#0d1524; --bar:#888800; --focus:#fbbf24;
  26. }
  27. }
  28.  
  29. *, *::before, *::after { box-sizing: border-box; }
  30. html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }
  31.  
  32. /* body: solid navy top rule + 2-col grid */
  33. body {
  34. margin: 0 !important;
  35. min-height: 100dvh;
  36. padding: 1.75rem max(1.25rem, calc((100% - 72rem) / 2)) 4rem;
  37. color: var(--ink);
  38. font: 1rem/1.55 var(--font-ui);
  39. background: var(--bg) !important; /* replaces inline gradient */
  40. border-top: 8px solid var(--bar);
  41. display: grid;
  42. grid-template-columns: minmax(0, 1fr) auto;
  43. align-content: start;
  44. column-gap: 2rem;
  45. }
  46.  
  47. /* title row */
  48. h1 {
  49. grid-column: 1; grid-row: 1;
  50. display: flex; align-items: center; gap: .75rem;
  51. margin: 0 !important;
  52. font: 650 clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem)/1.15 var(--font-head);
  53. letter-spacing: -0.015em;
  54. color: var(--ink) !important;
  55. }
  56. h1 a { color: inherit; text-decoration: none; display: flex; }
  57. h1 img, h1 svg { float: none !important; width: 2.75rem !important; height: auto; }
  58. h1 span { font-size: .5em !important; font-weight: 500; color: var(--muted); }
  59.  
  60. /* login box (first div) */
  61. body > div:first-child {
  62. float: none !important;
  63. grid-column: 2; grid-row: 1; align-self: center;
  64. }
  65. body > div:first-child form {
  66. display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  67. gap: .5rem; max-width: 18rem; margin: 0;
  68. font-size: .875rem; color: var(--muted);
  69. }
  70. body > div:first-child br { display: none; }
  71.  
  72. input[type=submit], button {
  73. min-height: 2.5rem; padding: 0 1rem;
  74. font: 600 .875rem var(--font-ui);
  75. color: var(--ink); background: transparent;
  76. border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  77. }
  78. input[type=submit]:hover:not(:disabled) { background: var(--surface); }
  79. input[type=submit]:first-of-type { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
  80. input[type=submit]:first-of-type:hover:not(:disabled) { filter: brightness(1.12); background: var(--accent); }
  81. input:disabled { opacity: .45; cursor: not-allowed; }
  82.  
  83. /* tagline (h3) */
  84. h3 {
  85. grid-column: 1 / -1;
  86. max-width: 60ch;
  87. margin: .75rem 0 2.25rem !important;
  88. padding: 0;
  89. background: none !important;
  90. color: var(--muted) !important;
  91. font: 400 1.125rem/1.5 var(--font-ui);
  92. text-wrap: pretty;
  93. }
  94. h3 strong { color: var(--ink); font-weight: 600; }
  95.  
  96. a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
  97. a:hover { text-decoration-thickness: 2px; }
  98. :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
  99. ::selection { background: #e9e48a; color: #14213d; }
  100.  
  101. /* project table */
  102. table {
  103. grid-column: 1 / -1;
  104. width: 100%;
  105. border: 1px solid var(--line); /* overrides frame='box' */
  106. border-collapse: separate; /* overrides cellspacing */
  107. border-spacing: 0;
  108. border-radius: var(--radius);
  109. overflow: hidden;
  110. background: var(--surface);
  111. font-size: .9375rem;
  112. }
  113. th, td {
  114. border: 0; /* overrides rules='all' */
  115. border-bottom: 1px solid var(--line);
  116. padding: .875rem 1rem; /* overrides cellpadding */
  117. text-align: left; vertical-align: top;
  118. }
  119. tbody tr:last-child td { border-bottom: 0; }
  120. thead th {
  121. font: 600 .8125rem var(--font-ui);
  122. color: var(--muted);
  123. border-bottom: 1px solid var(--line);
  124. background: var(--surface);
  125. white-space: nowrap;
  126. }
  127. .sortable th { cursor: pointer; user-select: none; }
  128. .sortable th:hover { color: var(--ink); }
  129. #sorttable_sortfwdind, #sorttable_sortrevind { margin-left: .35em; color: var(--accent); }
  130. tbody { background: var(--bg); }
  131. tbody tr:hover td { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
  132.  
  133. td:nth-child(1) { font: .875rem/1.5 var(--font-mono); white-space: nowrap; }
  134. td:nth-child(2) { font-weight: 600; min-width: 11rem; }
  135. td:nth-child(3) { color: var(--muted); max-width: 52ch; text-wrap: pretty; }
  136. td:nth-child(4) { font-size: .875rem; color: var(--muted); }
  137. td:empty::after { content: "\2014"; color: var(--muted); opacity: .5; }
  138.  
  139. /* narrow screens: rows become labelled cards */
  140. @media (max-width: 720px) {
  141. body { grid-template-columns: 1fr; }
  142. h1, body > div:first-child { grid-column: 1; grid-row: auto; }
  143. body > div:first-child { margin-top: 1rem; }
  144. body > div:first-child form { justify-content: flex-start; max-width: none; }
  145. table, tbody, tr { display: block; }
  146. thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  147. tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  148. tbody tr:last-child { border-bottom: 0; }
  149. td { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; border: 0; padding: .35rem 1rem; }
  150. td::before { font: 600 .8125rem var(--font-ui); color: var(--muted); }
  151. td:nth-child(1)::before { content: "File"; }
  152. td:nth-child(2)::before { content: "Project"; }
  153. td:nth-child(3)::before { content: "About"; }
  154. td:nth-child(4)::before { content: "Admin"; }
  155. td:nth-child(2) { min-width: 0; }
  156. }
  157.  
  158. @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
  159. @media print { body { background: #fff !important; } input { display: none; } }

Add a comment

Please note that this site uses the meta tags nofollow,noindex for all pages that contain comments.
Items are closed for new comments after 1 week