From f8cfa5e6e3ae74b84bb94ca3f982554709d2f7d0 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 10 Feb 2022 19:15:21 +0100 Subject: chore: improve widgets * Make all widgets expanded by default. This way, without Javascript, thematics and topics are still available. * Improve collapse/expand transition. * Remove widget scrollbar: the height was sometimes weird because of that. Except for ToC on large devices. --- src/components/WidgetParts/List/List.module.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components/WidgetParts/List/List.module.scss') diff --git a/src/components/WidgetParts/List/List.module.scss b/src/components/WidgetParts/List/List.module.scss index 5da5741..958f792 100644 --- a/src/components/WidgetParts/List/List.module.scss +++ b/src/components/WidgetParts/List/List.module.scss @@ -25,11 +25,13 @@ padding: var(--spacing-2xs) var(--spacing-xs); background: none; text-decoration: underline solid transparent 0; - transition: all 0.16s ease-in-out 0s, text-decoration-color 0s; + transition: all 0.2s ease-in-out 0s, font-weight 0s, + text-decoration-color 0s; &:hover, &:focus { background: var(--color-bg-secondary); + font-weight: 600; } &:focus { -- cgit v1.2.3