Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

50 Zeilen
2.2KB

  1. {{define "nav"}}
  2. <nav>
  3. <a href="/" {{if eq .Current "/"}}aria-current="page"{{end}}>Home</a>
  4. <a href="/settings" {{if eq .Current "/settings"}}aria-current="page"{{end}}>Settings</a>
  5. <a href="/templates" {{if eq .Current "/templates"}}aria-current="page"{{end}}>Templates</a>
  6. <a href="/builds/new" {{if eq .Current "/builds/new"}}aria-current="page"{{end}}>New Build</a>
  7. </nav>
  8. {{end}}
  9. {{define "head"}}
  10. <meta charset="utf-8">
  11. <meta name="viewport" content="width=device-width, initial-scale=1">
  12. <style>
  13. :root { color-scheme: light; }
  14. body { font-family: "Segoe UI", Tahoma, sans-serif; margin: 2rem auto; max-width: 1100px; padding: 0 1rem; line-height: 1.35; }
  15. nav { margin-bottom: 1rem; display: flex; gap: 1rem; }
  16. a[aria-current="page"] { font-weight: 700; }
  17. h1, h2 { margin: .4rem 0 .6rem; }
  18. table { border-collapse: collapse; width: 100%; margin: .8rem 0 1.2rem; }
  19. th, td { border: 1px solid #ddd; padding: .45rem .5rem; vertical-align: top; }
  20. th { background: #f6f6f6; text-align: left; }
  21. form.inline { display: inline; }
  22. input[type="text"], input[type="email"], input[type="number"], textarea, select { width: 100%; padding: .4rem; box-sizing: border-box; }
  23. textarea { min-height: 4rem; }
  24. .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
  25. .flash { padding: .6rem .8rem; margin-bottom: .8rem; border-radius: 4px; }
  26. .flash-ok { background: #ecf8ed; border: 1px solid #84c08a; }
  27. .flash-err { background: #fdecec; border: 1px solid #dc8f8f; }
  28. .mono { font-family: Consolas, "Courier New", monospace; white-space: pre-wrap; word-break: break-word; }
  29. .thumb-hover { position: relative; display: inline-block; }
  30. .thumb-preview {
  31. display: none;
  32. position: absolute;
  33. left: 0;
  34. top: calc(100% + .35rem);
  35. z-index: 20;
  36. width: 260px;
  37. max-width: min(70vw, 360px);
  38. background: #fff;
  39. border: 1px solid #cfcfcf;
  40. box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  41. border-radius: 4px;
  42. padding: .35rem;
  43. }
  44. .thumb-preview img { display: block; width: 100%; height: auto; border-radius: 2px; }
  45. .thumb-hover:hover .thumb-preview,
  46. .thumb-hover:focus-within .thumb-preview { display: block; }
  47. </style>
  48. {{end}}