From 73b958e809e01517598727ec49cce7712bf685c5 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 13 Aug 2026 17:43:50 +0200 Subject: Name the desktop label band Convert the gutter, the label column and the gap from four literals in three rules two named variables. --- public/stylesheets/admin.css | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'public') diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index a36ece5b..94e6c546 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css @@ -56,6 +56,14 @@ --radius: 6px; + /* The desktop label band: #wrapper's left gutter, which row labels reach + back into. --label-column plus --label-gap must equal --page-gutter, or + a row's content no longer starts where the page's other elements do. */ + --page-gutter: 125px; + --page-gutter-neg: -125px; + --label-column: 115px; + --label-gap: 10px; + /* Type scale. Everything secondary is --text-sm; --text-xs is for hints and paths. */ --text-xs: 0.75rem; @@ -141,7 +149,7 @@ input[type=radio] { @media(min-width:1016px) { #wrapper { - margin: 0 125px; + margin: 0 var(--page-gutter); } } @@ -1014,9 +1022,9 @@ form.button_to svg { @media(min-width:1016px) { .layout_row { display: grid; - grid-template-columns: 115px 1fr; - column-gap: 10px; - margin-left: -125px; + grid-template-columns: var(--label-column) 1fr; + column-gap: var(--label-gap); + margin-left: var(--page-gutter-neg); } #edit_grid .layout_row { @@ -1449,7 +1457,7 @@ form.button_to svg { "body body"; column-gap: 2rem; align-items: start; - margin-left: -125px; + margin-left: var(--page-gutter-neg); } #main_fields { grid-area: main; } #metadata_details { grid-area: meta; } @@ -1551,10 +1559,6 @@ input#menu_item_title { padding: 5px; height: 250px; } - - #admin_overview { - margin-left: -125px; - } } .page_actions { -- cgit v1.3