Skip to content

Commit

Permalink
Adjust admonition title background specificity to allow proof override (
Browse files Browse the repository at this point in the history
#248)

By changing the way we address the admonition title, we allow the sphinx proof stylesheet to affect background colour when using QuantEcon book theme.
  • Loading branch information
DrDrij authored Sep 8, 2024
1 parent 555f1c8 commit 51969bf
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions src/quantecon_book_theme/assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -953,23 +953,6 @@ tt {
}
}

.admonition {
font-size: 0.9rem;
margin: 1.5rem auto;
padding: 0 1rem 0.5rem 1rem;
page-break-inside: avoid;
box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1),
0 0 0.05rem rgba(0, 0, 0, 0.1);

.admonition-title {
position: relative;
margin: 0 -1rem;
padding: 0.25rem 2rem;
font-weight: 700;
background-color: #0072bc26;
}
}

a.copybtn {
top: 0.4em;
opacity: 0.2;
Expand Down Expand Up @@ -1210,6 +1193,22 @@ tt {
}
}

div.admonition, .admonition {
font-size: 0.9rem;
margin: 1.5rem auto;
padding: 0 1rem 0.5rem 1rem;
page-break-inside: avoid;
box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1),
0 0 0.05rem rgba(0, 0, 0, 0.1);
> .admonition-title {
position: relative;
margin: 0 -1rem;
padding: 0.25rem 2rem;
font-weight: 700;
background-color: #0072bc26;
}
}

// Cell-specific controls
div.cell {
&.container,
Expand Down

0 comments on commit 51969bf

Please sign in to comment.