aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit 5a2128f000f7ae59395a0e2a0466e5e822bf191f
parent 1ab9c2bb20df721b62f5a7f90d977c97e1a51a4b
Author: anon <anon@example.com>
Date:   Wed, 11 Nov 2026 04:29:55 +0000

Remove admin table row hover backgrounds

Diffstat:
Mserver/admin_pages.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/admin_pages.go b/server/admin_pages.go @@ -17,7 +17,7 @@ import ( func (server *server) adminPageStart(w http.ResponseWriter, title, section string) { w.Header().Set("Content-Type", "text/html; charset=utf-8") fmt.Fprintf(w, `<!doctype html><html lang='en'><head><meta charset='utf-8'><meta name='viewport' content='width=device-width,initial-scale=1'><base href='%s'><title>%s - AO Admin</title><style> - *{box-sizing:border-box}body{margin:0;background:#f4f6f8;color:#182634;font:15px system-ui,sans-serif}a{color:#175d8d;text-underline-offset:3px}header{background:#142c3e;color:white;padding:12px 24px;display:flex;align-items:center;gap:24px;flex-wrap:wrap}header strong{font-size:18px}nav{display:flex;gap:6px;flex-wrap:wrap}nav a{color:#d7e4ed;text-decoration:none;padding:10px 14px;border-radius:6px}nav a[aria-current=page],nav a:hover{background:#2b4d65;color:white}header form{margin-left:auto}main{padding:24px;max-width:1600px;margin:auto;overflow-x:auto}h1{font-size:26px;margin:0 0 20px}h2{font-size:19px;margin-top:26px}section,.cards>div{background:white;border:1px solid #d9e1e7;border-radius:8px;padding:20px;margin-bottom:20px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.cards strong{display:block;font-size:28px;margin-top:8px}label{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;margin:5px 10px 5px 0}input,select,textarea,button{font:inherit;border:1px solid #a7b8c5;border-radius:5px;padding:10px;max-width:100%%}input[type=checkbox]{width:20px;height:20px}button{background:#175d8d;color:white;border-color:#175d8d;cursor:pointer;min-height:44px}button:disabled{opacity:.5;cursor:default}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #e0a22a;outline-offset:2px}textarea{display:block;width:100%%;font:14px ui-monospace,monospace;line-height:1.5;background:white}table{border-collapse:collapse;background:white;width:100%%;margin:16px 0}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid #dce3e9;vertical-align:top}th{background:#e7edf2;position:sticky;top:0}tr:hover td{background:#f0f6fa}.login{max-width:430px;margin:8vh auto}.login label{display:flex;align-items:stretch;flex-direction:column;margin:16px 0}.login input{width:100%%}.muted{color:#526777}.error{color:#a02121;white-space:pre-wrap}pre{white-space:pre-wrap;overflow-wrap:anywhere}canvas[data-map-canvas]{width:100%%;height:calc(100dvh - 310px);min-height:320px;display:block;touch-action:none;border-radius:8px}body:has(.map-page){height:100dvh;display:flex;flex-direction:column}body:has(.map-page) header{flex-shrink:0}body:has(.map-page) main{flex:1;min-height:0;margin:0;width:100%%;max-width:none;display:flex;flex-direction:column}.map-page,.map-page [data-world-map]{flex:1;min-height:0;display:flex;flex-direction:column}.map-page h1{font-size:22px;margin:0}.map-page [hidden]{display:none}.map-page form{margin-bottom:8px}.map-page p{margin:6px 0}.map-page canvas{flex:1;min-height:200px;height:0}details{margin:16px 0}.item-icon{display:inline-block;width:32px;height:32px;object-fit:contain;vertical-align:middle;margin-right:8px;border-radius:3px;background:#e7edf2}summary{cursor:pointer;padding:10px 0}@media(max-width:600px){header{padding:12px;gap:10px}nav a{padding:10px}main{padding:14px}header form{margin-left:0}th,td{padding:8px}canvas[data-map-canvas]{height:60dvh}} + *{box-sizing:border-box}body{margin:0;background:#f4f6f8;color:#182634;font:15px system-ui,sans-serif}a{color:#175d8d;text-underline-offset:3px}header{background:#142c3e;color:white;padding:12px 24px;display:flex;align-items:center;gap:24px;flex-wrap:wrap}header strong{font-size:18px}nav{display:flex;gap:6px;flex-wrap:wrap}nav a{color:#d7e4ed;text-decoration:none;padding:10px 14px;border-radius:6px}nav a[aria-current=page],nav a:hover{background:#2b4d65;color:white}header form{margin-left:auto}main{padding:24px;max-width:1600px;margin:auto;overflow-x:auto}h1{font-size:26px;margin:0 0 20px}h2{font-size:19px;margin-top:26px}section,.cards>div{background:white;border:1px solid #d9e1e7;border-radius:8px;padding:20px;margin-bottom:20px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.cards strong{display:block;font-size:28px;margin-top:8px}label{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;margin:5px 10px 5px 0}input,select,textarea,button{font:inherit;border:1px solid #a7b8c5;border-radius:5px;padding:10px;max-width:100%%}input[type=checkbox]{width:20px;height:20px}button{background:#175d8d;color:white;border-color:#175d8d;cursor:pointer;min-height:44px}button:disabled{opacity:.5;cursor:default}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #e0a22a;outline-offset:2px}textarea{display:block;width:100%%;font:14px ui-monospace,monospace;line-height:1.5;background:white}table{border-collapse:collapse;background:white;width:100%%;margin:16px 0}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid #dce3e9;vertical-align:top}th{background:#e7edf2;position:sticky;top:0}.login{max-width:430px;margin:8vh auto}.login label{display:flex;align-items:stretch;flex-direction:column;margin:16px 0}.login input{width:100%%}.muted{color:#526777}.error{color:#a02121;white-space:pre-wrap}pre{white-space:pre-wrap;overflow-wrap:anywhere}canvas[data-map-canvas]{width:100%%;height:calc(100dvh - 310px);min-height:320px;display:block;touch-action:none;border-radius:8px}body:has(.map-page){height:100dvh;display:flex;flex-direction:column}body:has(.map-page) header{flex-shrink:0}body:has(.map-page) main{flex:1;min-height:0;margin:0;width:100%%;max-width:none;display:flex;flex-direction:column}.map-page,.map-page [data-world-map]{flex:1;min-height:0;display:flex;flex-direction:column}.map-page h1{font-size:22px;margin:0}.map-page [hidden]{display:none}.map-page form{margin-bottom:8px}.map-page p{margin:6px 0}.map-page canvas{flex:1;min-height:200px;height:0}details{margin:16px 0}.item-icon{display:inline-block;width:32px;height:32px;object-fit:contain;vertical-align:middle;margin-right:8px;border-radius:3px;background:#e7edf2}summary{cursor:pointer;padding:10px 0}@media(max-width:600px){header{padding:12px;gap:10px}nav a{padding:10px}main{padding:14px}header form{margin-left:0}th,td{padding:8px}canvas[data-map-canvas]{height:60dvh}} </style></head><body>`, html.EscapeString(server.baseURL), html.EscapeString(title)) if section != "" { fmt.Fprint(w, "<header><strong>AO Admin</strong><nav aria-label='Main navigation'>")