From cc94d0bb377daee6fc0b453669391e55dfb82ae6 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 9 Aug 2024 21:42:46 -0400 Subject: Only apply style to direct descent of list items in panel. --- common.css | 4 ++-- panel.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common.css b/common.css index 48a45ac..2145836 100644 --- a/common.css +++ b/common.css @@ -100,10 +100,10 @@ body{ del{ text-decoration-color: var(--principal-fg); } -#panel li a.active{ +#panel li>a.active{ background-color: var(--list-active-bg); } -#panel li a:hover:not(.active){ +#panel li>a:hover:not(.active){ background-color: var(--list-highlighted-bg); } #panel,div.footer{ diff --git a/panel.css b/panel.css index 21f9a0a..aa3f63f 100644 --- a/panel.css +++ b/panel.css @@ -20,7 +20,7 @@ left:-0.3em; margin:0; font-weight:normal; } -#panel li a { +#panel li>a { display:block; padding-left:1.5em; padding-top:0.5em; -- cgit v1.2.3