From a71b90bdd6f0e96cc78f7c711fa0f179c3c85bce Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sun, 13 Apr 2025 08:44:49 -0700 Subject: [PATCH] feat: Implement toggle buttons for view mode selection --- aider/website/docs/leaderboards/index.md | 50 ++++++++++++++++++++---- 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a/aider/website/docs/leaderboards/index.md b/aider/website/docs/leaderboards/index.md index 07219898d..3fa8f43c0 100644 --- a/aider/website/docs/leaderboards/index.md +++ b/aider/website/docs/leaderboards/index.md @@ -189,6 +189,27 @@ Aider works best with high-scoring models, though it [can connect to almost any display: none !important; } + /* --- Mode Toggle Button Styles --- */ + #view-mode-toggle { + height: 38px; /* Match input height */ + box-sizing: border-box; + } + .mode-button { + transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; + } + .mode-button.active { + background-color: #0d6efd; /* Bootstrap primary blue */ + color: white; + cursor: default; /* Indicate it's the active state */ + } + .mode-button:not(.active) { + background-color: #f8f9fa; /* Light grey background */ + color: #495057; /* Dark grey text */ + } + .mode-button:not(.active):hover { + background-color: #e2e6ea; /* Slightly darker grey on hover */ + } +