Skip to content

Commit ff53a71

Browse files
committed
Add div.topic configurability
See http://web.archive.org/web/20160624142741/http://docutils.sourceforge.net/docs/ref/rst/directives.html#topic For the markup that generates a div.topic.
1 parent 737183f commit ff53a71

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

alabaster/static/alabaster.css_t

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
{% set theme_seealso_bg = theme_seealso_bg or theme_gray_2 %}
1717

18+
{% set theme_topic_bg = theme_topic_bg or theme_gray_2 %}
19+
1820
{% set theme_narrow_sidebar_link = theme_narrow_sidebar_link or theme_gray_3 %}
1921
{% set theme_sidebar_hr = theme_sidebar_hr or theme_gray_3 %}
2022

@@ -281,7 +283,7 @@ div.seealso {
281283
}
282284

283285
div.topic {
284-
background-color: #eee;
286+
background-color: {{ theme_topic_bg }};
285287
}
286288

287289
p.admonition-title {

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+
topic_bg =
6364
code_highlight_bg =
6465
highlight_bg = #FAF3E8
6566
xref_border = #fff

0 commit comments

Comments
 (0)