From 564930d53b7e8d68a15cef571ff0e0453fd71d08 Mon Sep 17 00:00:00 2001 From: Brad Simpson Date: Thu, 7 Mar 2024 13:13:46 -0700 Subject: [PATCH 1/6] Fix grouped title and body alignment --- less/toc.less | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/less/toc.less b/less/toc.less index c9a26e5..242b14f 100644 --- a/less/toc.less +++ b/less/toc.less @@ -12,8 +12,9 @@ // -------------------------------------------------- .toc__group-item .toc__group { .toc__group-item-title, - .toc__item-title-inner { - text-indent: 1rem; + .toc__item-title-inner, + .toc__item-body-inner { + padding-inline-start: 1rem; } } From d4d308220f1a16829572f07f30cded974b33558f Mon Sep 17 00:00:00 2001 From: Brad Simpson Date: Thu, 7 Mar 2024 13:25:16 -0700 Subject: [PATCH 2/6] Fix lozenge widths --- less/toc.less | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/less/toc.less b/less/toc.less index 242b14f..999426e 100644 --- a/less/toc.less +++ b/less/toc.less @@ -76,6 +76,10 @@ border: 0.0625rem solid @black; border-radius: 50px; overflow: hidden; + + .drawer & { + margin: 0; + } } &__indicator-inner { @@ -115,6 +119,7 @@ // -------------------------------------------------- .toc { &__indicator { + min-width: 2rem; border-color: @progress-border; } From b1b1917e054c0f77ba4835e07af4ec77f75118dc Mon Sep 17 00:00:00 2001 From: Brad Simpson Date: Thu, 7 Mar 2024 13:28:33 -0700 Subject: [PATCH 3/6] Ensure content isn't too short --- less/toc.less | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/less/toc.less b/less/toc.less index 999426e..1c4eea3 100644 --- a/less/toc.less +++ b/less/toc.less @@ -69,6 +69,18 @@ // duplicate of pageLevelProgressIndicator.less // -------------------------------------------------- +.drawer .toc { + &__item-title, + &__item-subtitle, + &__item-body { + width: 100%; + } + + &__indicator { + margin-right: 0; + } +} + .toc { &__indicator { width: 2rem; @@ -76,10 +88,6 @@ border: 0.0625rem solid @black; border-radius: 50px; overflow: hidden; - - .drawer & { - margin: 0; - } } &__indicator-inner { From 1048af07885567546e118aab5457929b8ae21e16 Mon Sep 17 00:00:00 2001 From: Brad Simpson Date: Thu, 7 Mar 2024 13:29:05 -0700 Subject: [PATCH 4/6] Move styles under theme section --- less/toc.less | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/less/toc.less b/less/toc.less index 1c4eea3..dea9242 100644 --- a/less/toc.less +++ b/less/toc.less @@ -69,17 +69,6 @@ // duplicate of pageLevelProgressIndicator.less // -------------------------------------------------- -.drawer .toc { - &__item-title, - &__item-subtitle, - &__item-body { - width: 100%; - } - - &__indicator { - margin-right: 0; - } -} .toc { &__indicator { @@ -106,6 +95,18 @@ // THEME // -------------------------------------------------- +.drawer .toc { + &__item-title, + &__item-subtitle, + &__item-body { + width: 100%; + } + + &__indicator { + margin-right: 0; + } +} + .toc { &__item-content { display: flex; From 0a6cd385457fbcc5b1cdf6b6ee6319094e38ec10 Mon Sep 17 00:00:00 2001 From: Brad Simpson Date: Thu, 7 Mar 2024 13:37:55 -0700 Subject: [PATCH 5/6] Remove line break --- less/toc.less | 1 - 1 file changed, 1 deletion(-) diff --git a/less/toc.less b/less/toc.less index dea9242..56afaee 100644 --- a/less/toc.less +++ b/less/toc.less @@ -69,7 +69,6 @@ // duplicate of pageLevelProgressIndicator.less // -------------------------------------------------- - .toc { &__indicator { width: 2rem; From 973513b6e951ac00738a0771f89c6c797623faf4 Mon Sep 17 00:00:00 2001 From: Brad Simpson Date: Thu, 7 Mar 2024 13:39:09 -0700 Subject: [PATCH 6/6] Remove margin-right style on indicator --- less/toc.less | 4 ---- 1 file changed, 4 deletions(-) diff --git a/less/toc.less b/less/toc.less index 56afaee..674eb3b 100644 --- a/less/toc.less +++ b/less/toc.less @@ -100,10 +100,6 @@ &__item-body { width: 100%; } - - &__indicator { - margin-right: 0; - } } .toc {