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"],