Skip to content

Commit 737183f

Browse files
committed
Add div.highlight configurability
div.highlight wraps syntax highlighted code blocks.
1 parent 437833d commit 737183f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

alabaster/static/alabaster.css_t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% set theme_body_bg = theme_body_bg or theme_base_bg %}
2+
{% set theme_code_highlight_bg = theme_code_highlight_bg or theme_body_bg %}
23
{% set theme_sidebar_header = theme_sidebar_header or theme_gray_1 %}
34
{% set theme_sidebar_link = theme_sidebar_link or theme_gray_1 %}
45
{% set theme_anchor_hover_fg = theme_anchor_hover_fg or theme_gray_1 %}
@@ -262,7 +263,7 @@ div.admonition p.last {
262263
}
263264

264265
div.highlight {
265-
background-color: white;
266+
background-color: {{ theme_code_highlight_bg }};
266267
}
267268

268269
dt:target, .highlight {

alabaster/theme.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ note_bg =
6060
note_border = #CCC
6161
seealso_bg =
6262
seealso_border = #CCC
63+
code_highlight_bg =
6364
highlight_bg = #FAF3E8
6465
xref_border = #fff
6566
xref_bg = #FBFBFB

0 commit comments

Comments
 (0)