Browse Source

Doc: Don't underline parent nodes.

They don't navigate to a page, so it isn't correct.

Consistent with MDN's contents pane.
Jordan Russell 1 tháng trước cách đây
mục cha
commit
70163d4b18
1 tập tin đã thay đổi với 4 bổ sung9 xóa
  1. 4 9
      ISHelp/Staging/contents.css

+ 4 - 9
ISHelp/Staging/contents.css

@@ -87,18 +87,13 @@ INPUT {
 		background-color: transparent;
 		text-decoration: none;
 
-		&:hover {
+		&:hover:not([aria-expanded]):not([aria-selected="true"]) {
 			color: var(--link-hover-fg-color);
 			text-decoration: underline;
 		}
-		&[aria-selected="true"] {
-			color: inherit;
-			text-decoration: none;
-
-			& > span {
-				background-color: var(--selected-bg-color);
-				border-radius: 4px;
-			}
+		&[aria-selected="true"] > span {
+			background-color: var(--selected-bg-color);
+			border-radius: 4px;
 		}
 		& > img {
 			/* The images are 16x16, but using "min-" in case the alt text is shown and it's larger */