custom.css 998 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
/* https://github.com/sphinx-doc/sphinx/issues/1514#issuecomment-742703082 */
/* Newlines (\a) and spaces (\20) before each parameter */
dt > em.sig-param:before {
    content: "\a\20\20\20\20";
    white-space: pre;
}
/* Newline after the last parameter (so the closing bracket is on a new line) */
dt > em.sig-param:last-of-type::after {
    content: "\a";
    white-space: pre;
}
moto's avatar
moto committed
12
13
14
15
16
17
/* For shields */
article.pytorch-article img.shield-badge {
    width: unset;
    margin-top: -18px;
    margin-bottom: 9px;
}
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* Fix for Sphinx gallery 0.11
See https://github.com/sphinx-gallery/sphinx-gallery/issues/990
*/
article.pytorch-article .sphx-glr-thumbnails .sphx-glr-thumbcontainer {
    width: unset;
    margin-right: 0;
    margin-left: 0;
}
article.pytorch-article .sphx-glr-thumbnails {
    display: flex;
    grid-template-columns: none;
}
article.pytorch-article .sphx-glr-thumbnails .sphx-glr-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}