From 07123261f413bb17c81da4fedc8b249a03b85003 Mon Sep 17 00:00:00 2001 From: Frank Tovar Date: Wed, 4 Feb 2026 21:05:31 +0100 Subject: [PATCH] Style fixes --- AGENTS.md | 19 +++++++++---------- wwwroot/css/base.css | 12 ------------ wwwroot/css/components.css | 3 ++- wwwroot/css/results.css | 1 - 4 files changed, 11 insertions(+), 24 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 3d90e5b..6a8d944 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,6 +2,15 @@ Also see the other related files: API.md, IIS.md, SPEC.md +## Working Style + +- After every iteration, do a git commit with a brief summary of the changes as a commit message. +- If you find unexpected changes in the code (deletions, changes, diff results that were not communicated.), never revert them and never restore the old state. Assume that those changes happened with intent. +- Keep changes small and testable +- Avoid introducing new dependencies unless they remove complexity. +- Keep endpoint logic in `Endpoints/` and shared helpers/DTOs in their folders to avoid Program.cs bloat. +- Keep css and js files diverse to avoid styles.css or app.js bloat. + ## Tech constraints: - .NET 10 - ASP.NET Core Minimal API @@ -10,13 +19,3 @@ Also see the other related files: API.md, IIS.md, SPEC.md - Username+Password identity (account stored in database) - Single active “session” (one room) unless extended later - Runs on IIS (Windows Server) - -## Working Style - -- After every iteration, do a git commit with a brief summary of the changes as a commit message. -- If you find unexpected changes in the code, never revert them without asking first. -- Implement API first, UI second -- Keep changes small and testable -- Prefer clarity over abstraction -- Avoid introducing new dependencies unless they remove complexity. -- Keep endpoint logic in `Endpoints/` and shared helpers/DTOs in their folders to avoid Program.cs bloat. diff --git a/wwwroot/css/base.css b/wwwroot/css/base.css index 7cb1d02..6956c15 100644 --- a/wwwroot/css/base.css +++ b/wwwroot/css/base.css @@ -164,15 +164,3 @@ h3 { background: #e0564f; color: #fffaf3; } - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border: 0; -} diff --git a/wwwroot/css/components.css b/wwwroot/css/components.css index 066ac0a..6ded783 100644 --- a/wwwroot/css/components.css +++ b/wwwroot/css/components.css @@ -8,7 +8,8 @@ } .card h2 { margin-top: 0; - margin-bottom: 8px; + margin-bottom: 0; + vertical-align: middle; } .card-grid { diff --git a/wwwroot/css/results.css b/wwwroot/css/results.css index d9b2c86..7a1ca99 100644 --- a/wwwroot/css/results.css +++ b/wwwroot/css/results.css @@ -1,7 +1,6 @@ .results-table { width: 100%; border-collapse: collapse; - table-layout: fixed; } .results-table th, .results-table td {