Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/quantecon_book_theme/assets/styles/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ em {
color: var(--qe-emphasis-color, colors.$emphasis);
}

// Reset emphasis styling inside citation reference links
// Prevents "et al." in references from inheriting emphasis color
a.reference em {
font-style: normal;
font-weight: inherit;
color: inherit;
}

// Strong/bold styling - semi-bold weight with color
strong,
b {
Expand Down
11 changes: 11 additions & 0 deletions src/quantecon_book_theme/assets/styles/_color-schemes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ body.color-scheme-gruvbox {
font-weight: 600;
}

// Reset emphasis styling inside citation reference links (gruvbox)
a.reference em {
color: inherit;
font-weight: inherit;
}

strong,
b {
color: var(--qe-strong-color, colors.$gruvbox-definition);
Expand All @@ -40,6 +46,11 @@ body.color-scheme-gruvbox {
color: var(--qe-emphasis-color, colors.$gruvbox-emphasis-dark);
}

// Reset emphasis styling inside citation reference links (gruvbox dark)
a.reference em {
color: inherit;
}

strong,
b {
color: var(--qe-strong-color, colors.$gruvbox-definition-dark);
Expand Down
5 changes: 5 additions & 0 deletions src/quantecon_book_theme/assets/styles/_dark-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ body.dark-theme {
color: var(--qe-emphasis-color, colors.$emphasis-dark);
}

// Reset emphasis styling inside citation reference links (dark mode)
a.reference em {
color: inherit;
}

strong,
b {
color: var(--qe-strong-color, colors.$definition-dark);
Expand Down
Loading