Skip to content

Commit 736198f

Browse files
committed
Remove syntax highlighting colors from type signatures
1 parent 83ae50e commit 736198f

File tree

1 file changed

+5
-6
lines changed
  • lib/rdoc/generator/template/aliki/css

1 file changed

+5
-6
lines changed

lib/rdoc/generator/template/aliki/css/rdoc.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,19 +1075,18 @@ main h6 a:hover {
10751075
font-style: italic;
10761076
}
10771077

1078-
/* RBS Type Signature Highlighting — only types and builtins get color */
1079-
.rbs-type { color: var(--code-blue); }
1080-
.rbs-builtin { color: var(--code-purple); }
1081-
1078+
/* RBS Type Signature Highlighting — linked types get subtle underline */
10821079
a.rbs-type {
1080+
color: inherit;
10831081
text-decoration: underline;
10841082
text-decoration-color: var(--color-border-default);
10851083
text-underline-offset: 0.2em;
1086-
transition: text-decoration-color var(--transition-fast);
1084+
transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
10871085
}
10881086

10891087
a.rbs-type:hover {
1090-
text-decoration-color: currentColor;
1088+
color: var(--color-link-hover);
1089+
text-decoration-color: var(--color-link-hover);
10911090
}
10921091

10931092
/* Emphasis */

0 commit comments

Comments
 (0)