Skip to content

Commit d9c0a65

Browse files
committed
Polish link underline in Darkfish CSS
This aims to make sure an underline in a link doesn't overlap with underscores in a method name.
1 parent 330a0f5 commit d9c0a65

File tree

1 file changed

+2
-0
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+2
-0
lines changed

lib/rdoc/generator/template/darkfish/css/rdoc.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ main .anchor-link:target {
9696
a {
9797
color: var(--link-color);
9898
transition: color 0.3s ease;
99+
text-decoration: underline;
100+
text-underline-offset: 2px; /* Make sure it doesn't overlap with underscores in a method name. */
99101
}
100102

101103
a:hover {

0 commit comments

Comments
 (0)