Skip to content

Commit

Permalink
Change admonition title CSS specificity (#111)
Browse files Browse the repository at this point in the history
This CSS tweak adjust the styling so that styles can be overriden without having to be forced. 

They will cascade from py_data -> quantecon_book_theme -> sphinx_proof.

QuantEcon/lecture-python-intro#493
  • Loading branch information
DrDrij authored Sep 8, 2024
1 parent 36b78cb commit 946965a
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions sphinx_proof/_static/minimal/proof.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*********************************************/

/* Remove content box */
div.proof p.admonition-title::before {
div.proof > .admonition-title::before {
content: none;
}

Expand All @@ -55,7 +55,7 @@ div.theorem {
background-color: none;
}

div.theorem p.admonition-title {
div.theorem > .admonition-title {
background-color: transparent;
}

Expand All @@ -67,7 +67,7 @@ div.axiom {
background-color: none;
}

div.axiom p.admonition-title {
div.axiom > .admonition-title {
background-color: transparent;
}

Expand All @@ -79,7 +79,7 @@ div.criterion {
background-color: none;
}

div.criterion p.admonition-title {
div.criterion > .admonition-title {
background-color: transparent;
}

Expand All @@ -91,7 +91,7 @@ div.lemma {
background-color: none;
}

div.lemma p.admonition-title {
div.lemma > .admonition-title {
background-color: transparent;
}

Expand All @@ -103,7 +103,7 @@ div.definition {
background-color: none;
}

div.definition p.admonition-title {
div.definition > .admonition-title {
background-color: transparent;
}

Expand All @@ -115,7 +115,7 @@ div.remark {
background-color: none;
}

div.remark p.admonition-title {
div.remark > .admonition-title {
background-color: transparent;
}

Expand All @@ -127,7 +127,7 @@ div.conjecture {
background-color: none;
}

div.conjecture p.admonition-title {
div.conjecture > .admonition-title {
background-color: transparent;
}

Expand All @@ -139,7 +139,7 @@ div.corollary {
background-color: none;
}

div.corollary p.admonition-title {
div.corollary > .admonition-title {
background-color: transparent;
}

Expand All @@ -151,7 +151,7 @@ div.algorithm {
background-color: none;
}

div.algorithm p.admonition-title {
div.algorithm > .admonition-title {
background-color: transparent;
border-top: .15rem solid var(--grey-border-color);
border-bottom: .15rem solid var(--grey-border-color);
Expand All @@ -170,7 +170,7 @@ div.example {
background-color: none;
}

div.example p.admonition-title {
div.example > .admonition-title {
background-color: transparent;
}

Expand All @@ -182,7 +182,7 @@ div.property {
background-color: none;
}

div.property p.admonition-title {
div.property > .admonition-title {
background-color: transparent;
}

Expand All @@ -194,7 +194,7 @@ div.observation {
background-color: none;
}

div.observation p.admonition-title {
div.observation > .admonition-title {
background-color: transparent;
}

Expand All @@ -206,7 +206,7 @@ div.proposition {
background-color: none;
}

div.proposition p.admonition-title {
div.proposition > .admonition-title {
background-color: transparent;
}
/*********************************************
Expand All @@ -217,6 +217,6 @@ div.assumption {
background-color: none;
}

div.assumption p.admonition-title {
div.assumption > .admonition-title {
background-color: transparent;
}

0 comments on commit 946965a

Please sign in to comment.