Skip to content

Commit 4b2c97d

Browse files
committed
Fix how admonitions are rendered
This is only a quick fix, we would need to make a proper admonitions support. See: - https://docutils.sourceforge.io/docs/ref/rst/directives.html#specific-admonitions - https://sphinx-book-theme.readthedocs.io/en/stable/reference/kitchen-sink/admonitions.html
1 parent c1de3a4 commit 4b2c97d

File tree

1 file changed

+4
-45
lines changed

1 file changed

+4
-45
lines changed

theme/static/css/code.css

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -52,62 +52,21 @@ blockquote
5252
background-color: #fff;
5353
}
5454

55-
div.admonition-wrapper
55+
div.admonition
5656
{
5757
margin: 20px 0;
5858
padding: 15px;
5959
padding-right: 0;
6060
position: relative;
61+
background-color: #F5F5F5;
6162
}
6263

63-
.body-web div.admonition-wrapper
64+
.body-web div.admonition
6465
{
6566
overflow: auto;
6667
}
6768

68-
div.admonition
69-
{
70-
background-color: #F5F5F5;
71-
padding: 35px 35px 13px 50px;
72-
}
73-
74-
div.note
75-
{
76-
background: url(../images/admonition/note.gif) no-repeat 0 0;
77-
height: 51px; left: 0; position: absolute; top: 0; width: 51px;
78-
}
79-
80-
div.caution
81-
{
82-
background: url(../images/admonition/caution.gif) no-repeat 0 0;
83-
height: 51px; left: 0; position: absolute; top: 0; width: 51px;
84-
}
85-
86-
div.warning
87-
{
88-
background: url(../images/admonition/warning.gif) no-repeat 0 0;
89-
height: 51px; left: 0; position: absolute; top: 0; width: 51px;
90-
}
91-
92-
div.tip
93-
{
94-
background: url(../images/admonition/tip.gif) no-repeat 0 0;
95-
height: 51px; left: 0; position: absolute; top: 0; width: 51px;
96-
}
97-
98-
div.sidebar
99-
{
100-
background: url(../images/admonition/sidebar.gif) no-repeat 0 0;
101-
height: 51px; left: 0; position: absolute; top: 0; width: 51px;
102-
}
103-
104-
div.seealso
105-
{
106-
background: url(../images/admonition/seealso.png) no-repeat 0 0;
107-
height: 51px; left: 0; position: absolute; top: 0; width: 51px;
108-
}
109-
110-
div.admonition-wrapper p.admonition-title
69+
p.admonition-title
11170
{
11271
display: none;
11372
}

0 commit comments

Comments
 (0)