custom_torchvision.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* This rule should be removed once
  2. https://github.com/pytorch/pytorch_sphinx_theme/issues/125 is fixed.
  3. We override the rule so that the links to the notebooks aren't hidden in the
  4. gallery examples. pytorch_sphinx_theme is supposed to customize those links so
  5. that they render nicely (look at the nice links on top of the tutorials
  6. examples) but it doesn't work for repos that are not the tutorial repo, and in
  7. torchvision it just hides the links. So we have to put them back here */
  8. article.pytorch-article .sphx-glr-download-link-note.admonition.note,
  9. article.pytorch-article .reference.download.internal, article.pytorch-article .sphx-glr-signature {
  10. display: block;
  11. }
  12. /* These 2 rules below are for the weight tables (generated in conf.py) to look
  13. * better. In particular we make their row height shorter */
  14. .table-weights td, .table-weights th {
  15. margin-bottom: 0.2rem;
  16. padding: 0 !important;
  17. line-height: 1 !important;
  18. }
  19. .table-weights p {
  20. margin-bottom: 0.2rem !important;
  21. }
  22. /* Fix for Sphinx gallery 0.11
  23. See https://github.com/sphinx-gallery/sphinx-gallery/issues/990
  24. */
  25. article.pytorch-article .sphx-glr-thumbnails .sphx-glr-thumbcontainer {
  26. width: unset;
  27. margin-right: 0;
  28. margin-left: 0;
  29. }
  30. article.pytorch-article div.section div.wy-table-responsive tbody td {
  31. width: 50%;
  32. }