Skip to content

Commit fdd9bb0

Browse files
author
Kevin Paul
committed
Admonition styling
1 parent 161de7f commit fdd9bb0

File tree

3 files changed

+99
-15
lines changed

3 files changed

+99
-15
lines changed

sphinx_pythia_theme/static/css/pythia.css

Lines changed: 56 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sphinx_pythia_theme/static/css/pythia.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sphinx_pythia_theme/static/scss/pythia.scss

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ i.bi::before {
6565
}
6666

6767
pre {
68-
border: 1px solid $gray-400;
68+
border: 1px solid $gray-300;
6969
border-radius: 4px;
70-
background-color: $gray-100;
71-
padding: 0.4rem 0.6rem;
70+
background-color: $gray-200;
71+
padding: 0.5rem 0.65rem;
7272
}
7373

7474
section > p {
@@ -77,6 +77,45 @@ section > p {
7777

7878
// SPHINX BASE LAYOUT ---------------------------------------------------------
7979

80+
div.admonition {
81+
padding: 0.6rem;
82+
border-width: 1px;
83+
border-style: solid;
84+
border-radius: 5px;
85+
color: $gray-900;
86+
border-color: $gray-300;
87+
background-color: $gray-200;
88+
}
89+
90+
div.admonition.hint,
91+
div.admonition.note,
92+
div.admonition.tip {
93+
color: #245269;
94+
border-color: #bce8f1;
95+
background-color: #d9edf7;
96+
}
97+
98+
div.admonition.important {
99+
color: #316132;
100+
border-color: #d6e9c6;
101+
background-color: #dff0d8;
102+
}
103+
104+
div.admonition.attention,
105+
div.admonition.caution,
106+
div.admonition.warning {
107+
color: #836839;
108+
border-color: #fbeed5;
109+
background-color: #fcf8e3;
110+
}
111+
112+
div.admonition.danger,
113+
div.admonition.error {
114+
color: #803332;
115+
background-color: #f2dede;
116+
border-color: #eed3d7;
117+
}
118+
80119
div.document {
81120
margin-top: $navbar-height;
82121
padding: 2rem 0 0 0;

0 commit comments

Comments
 (0)