We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 810c6ad commit 8f85e0fCopy full SHA for 8f85e0f
src/pydata_sphinx_theme/assets/styles/content/_figures.scss
@@ -1,3 +1,12 @@
1
+figure > a,
2
+figure > a > img,
3
+figure > img,
4
+figure > video {
5
+ display: block;
6
+ margin-left: auto;
7
+ margin-right: auto;
8
+}
9
+
10
figure {
11
a.headerlink {
12
// So that header link doesn't push caption to be off-center.
@@ -16,12 +25,18 @@ figure {
16
25
margin-left: auto;
17
26
margin-right: auto;
18
27
margin-top: 0.3rem;
28
+ text-align: center;
19
29
20
30
& > p:last-child {
21
31
// Don't add extra margin to already existing figure bottom margin
22
32
margin-bottom: 0;
23
33
}
24
34
35
+ p {
36
+ text-align: start;
37
+ display: inline-block;
38
+ }
39
40
table.table {
41
width: fit-content;
42
0 commit comments