Skip to content

Commit 437833d

Browse files
committed
Add viewcode target highlighting
1 parent cd0255d commit 437833d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

alabaster/static/alabaster.css_t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,10 @@ pre {
400400
line-height: 1.3em;
401401
}
402402

403+
div.viewcode-block:target {
404+
background: {{ theme_viewcode_target_bg }};
405+
}
406+
403407
dl pre, blockquote pre, li pre {
404408
margin-left: 0;
405409
padding-left: 30px;

alabaster/theme.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ narrow_sidebar_fg = #FFF
7373
narrow_sidebar_link =
7474
font_size = 17px
7575
caption_font_size = inherit
76+
viewcode_target_bg = #ffd
7677
code_bg = #ecf0f3
7778
code_text = #222
7879
code_hover = #EEE

0 commit comments

Comments
 (0)