File tree Expand file tree Collapse file tree
src/quantecon_book_theme/assets/styles Expand file tree Collapse file tree Original file line number Diff line number Diff line change 156156
157157// Reset emphasis styling inside citation reference links
158158// Prevents "et al." in references from inheriting emphasis color
159- a .reference em {
159+ a .reference em ,
160+ span :has (> a .reference ) > em {
160161 font-style : normal ;
161162 font-weight : inherit ;
162163 color : inherit ;
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ body.color-scheme-gruvbox {
2525 }
2626
2727 // Reset emphasis styling inside citation reference links (gruvbox)
28- a .reference em {
28+ a .reference em ,
29+ span :has (> a .reference ) > em {
2930 color : inherit ;
3031 font-weight : inherit ;
3132 }
@@ -51,7 +52,8 @@ body.color-scheme-gruvbox {
5152 }
5253
5354 // Reset emphasis styling inside citation reference links (gruvbox dark)
54- a .reference em {
55+ a .reference em ,
56+ span :has (> a .reference ) > em {
5557 color : inherit ;
5658 }
5759
Original file line number Diff line number Diff line change @@ -154,7 +154,8 @@ body.dark-theme {
154154 }
155155
156156 // Reset emphasis styling inside citation reference links (dark mode)
157- a .reference em {
157+ a .reference em ,
158+ span :has (> a .reference ) > em {
158159 color : inherit ;
159160 }
160161
You can’t perform that action at this time.
0 commit comments