Skip to content

Commit 212b284

Browse files
committed
Only apply highlight on the method heading
A 5px border-left as highlight. Added some padding left as breathe room between the method heading and highlight
1 parent eb05c44 commit 212b284

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,9 @@ main .method-detail {
579579
margin-bottom: 2.5em;
580580
}
581581

582-
main .method-detail:target {
583-
margin-left: -10px;
584-
border-left: 10px solid var(--border-color);
582+
main .method-detail:target .method-heading {
583+
border-left: 5px solid var(--border-color);
584+
padding-left: 10px;
585585
}
586586

587587
main .method-header {

0 commit comments

Comments
 (0)