Skip to content

Commit c26d0bf

Browse files
committed
Fix admonition cross-ref selector
After carefully examining the file, I found out this is just a context specific version of the code.xref selector set. Configuration for the admonition xref's background and border was also added.
1 parent ff53a71 commit c26d0bf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

alabaster/static/alabaster.css_t

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
{% set theme_footnote_border = theme_footnote_border or theme_gray_2 %}
99
{% set theme_pre_bg = theme_pre_bg or theme_gray_2 %}
1010

11+
{% set admonition_xref_bg = theme_admonition_xref_bg or theme_xref_bg %}
12+
1113
{% set theme_warn_bg = theme_warn_bg or theme_pink_1 %}
1214
{% set theme_warn_border = theme_warn_border or theme_pink_2 %}
1315

@@ -242,8 +244,9 @@ div.admonition {
242244
border: 1px solid {{ theme_warn_border }};
243245
}
244246

245-
div.admonition tt.xref, div.admonition a tt {
246-
border-bottom: 1px solid #fafafa;
247+
div.admonition tt.xref, div.admonition code.xref, div.admonition a tt {
248+
background-color: {{ theme_admonition_xref_bg }};
249+
border-bottom: 1px solid {{ theme_admonition_xref_border }};
247250
}
248251

249252
dd div.admonition {

alabaster/theme.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ code_highlight_bg =
6565
highlight_bg = #FAF3E8
6666
xref_border = #fff
6767
xref_bg = #FBFBFB
68+
admonition_xref_border = #fafafa
69+
admonition_xref_bg =
6870
warn_bg =
6971
warn_border =
7072
footnote_bg = #FDFDFD

0 commit comments

Comments
 (0)