From 4613946cea03bdd5f3c0c30bfd36e5af2de886d4 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Mon, 27 Jul 2026 13:07:38 -0400 Subject: [PATCH] Use full browser width with 2-column layout at 1100px+ Widened admin-main to 1400px max-width and added panel-cols/panel-col wrappers so Kids, Courses, Spelling, and Flashcards all display content on the left and forms/editors on the right on wider screens. Falls back to single-column on smaller viewports. Co-Authored-By: Claude Sonnet 4.6 --- public/admin.html | 194 ++++++++++++++++++++++++++-------------------- public/styles.css | 11 ++- 2 files changed, 120 insertions(+), 85 deletions(-) diff --git a/public/admin.html b/public/admin.html index 262d0d3..7a0b5bf 100644 --- a/public/admin.html +++ b/public/admin.html @@ -39,28 +39,46 @@

Kids

-
-
- - - -
+
+
+
+
+
+
+

Add a kid

+
+ + + +
+
+
+

Courses

-
-
- - - - -
+
+
+
+
+
+
+

Add a course

+
+ + + + +
+
+
+
@@ -277,80 +295,88 @@

Spelling

-

This week's list per kid

-
- -

Word lists

-
-
- New list -
- - - - - -
- - -
-
-
- -
- Bulk import lists -
-

Start each list with # List name on its own line, then words below it. Optional group applies to all imported lists.

- - -
- - -
-

+
+
+

This week's list per kid

+
+

Word lists

+
+

Test results

+
-
- -

Test results

-
+
+
+ New list +
+ + + + + +
+ + +
+
+
+
+ Bulk import lists +
+

Start each list with # List name on its own line, then words below it. Optional group applies to all imported lists.

+ + +
+ + +
+

+
+
+
+

Flashcard Decks

-
-
- New deck -
- - - - - -
- - -
-
-
- -
- Bulk import decks -
-

Start each deck with # Deck name on its own line, then cards below as front | back. Optional group applies to all imported decks.

- - -
- - -
-

+
+
+
-
+
+
+ New deck +
+ + + + + +
+ + +
+
+
+
+ Bulk import decks +
+

Start each deck with # Deck name on its own line, then cards below as front | back. Optional group applies to all imported decks.

+ + +
+ + +
+

+
+
+
+
diff --git a/public/styles.css b/public/styles.css index 3490b8c..4e190af 100644 --- a/public/styles.css +++ b/public/styles.css @@ -333,11 +333,20 @@ table.results tr:nth-child(even) td { background: #faf7ee; } } .admin-logo { font-size: 1.3rem; font-weight: 800; color: var(--ink); text-decoration: none; } .admin-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; } -.admin-main { max-width: 900px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; } +.admin-main { max-width: 1400px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; } .admin-main h1 { margin-bottom: 1rem; clear: both; } .admin-main h2 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; } .panel { text-align: left; } +/* 2-column layout for wide screens */ +.panel-cols { display: flex; flex-direction: column; gap: 1.5rem; } +.panel-col { min-width: 0; } +@media (min-width: 1100px) { + .panel-cols { flex-direction: row; align-items: start; gap: 2.5rem; } + .panel-col { flex: 1; } + .panel-col:first-child { flex: 1.2; } +} + .admin-card { background: var(--card); border-radius: 14px; padding: 1.25rem; margin: 0.75rem 0; box-shadow: 0 2px 8px rgba(45, 49, 66, 0.06);