From c7331fd789cb51dd1e015383d0ecae696c174e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 22 Oct 2026 15:14:19 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20the=20light=20and=20dark?= =?UTF-8?q?=20colour=20tabs=20show=20their=20labels=20on=20phones=20and=20?= =?UTF-8?q?sit=20centred?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style/main.scss | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/style/main.scss b/style/main.scss index e9aea62..e25a239 100644 --- a/style/main.scss +++ b/style/main.scss @@ -2166,18 +2166,24 @@ code { height: var(--control-h); min-height: 0; border-radius: var(--radius-full); - - // Text-only segments: keep the words on phones too (the shared rule hides them for icons). - .segment > span { - width: auto; - height: calc(var(--control-h) - 6px); - padding: 0 12px; - font-size: 0.8125rem; - line-height: 1; - } } } +// Text-only segmented controls (the sidebar side and the colour tabs). They keep their words on +// phones (the shared 480px rule hides them for icons), and the 12px padding replaces the 32px +// icon padding, so the label sits centred in the pill. +.side-picker .segmented .segment > span, +.colour-tabs.segmented .segment > span { + width: auto; + padding: 0 12px; + font-size: 0.8125rem; + line-height: 1; +} + +.side-picker .segmented .segment > span { + height: calc(var(--control-h) - 6px); +} + // One card for both themes, with Light and Dark tabs. nav.js sets data-tab on the card; the panel // that is not shown is hidden, but it stays in the form, so a save still posts all four colours. .colour-group[data-tab="light"] > .colour-panel[data-colour-panel="dark"],