custom.css 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. .wy-nav-side p.caption {
  2. color: #f5f5f5;
  3. }
  4. div.wy-side-nav-search {
  5. background: #f37626;
  6. }
  7. .wy-nav-content iframe {
  8. margin: auto;
  9. display: block;
  10. }
  11. .wy-breadcrumbs-aside img {
  12. height: 1em !important;
  13. }
  14. .wy
  15. /* Elevation
  16. *
  17. * We style box-shadows using Material Design's idea of elevation. These particular numbers are taken from here:
  18. *
  19. * https://github.com/material-components/material-components-web
  20. * https://material-components-web.appspot.com/elevation.html
  21. */
  22. .rst-content img.jp-screenshot {
  23. border: none;
  24. /* MD Elevation 8 */
  25. box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
  26. 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
  27. margin-bottom: 24px;
  28. }
  29. /*
  30. * The div.jp-youtube-video styling is done to get the YouTube video to size dynamically
  31. * to 100% of the content width.
  32. */
  33. .rst-content div.jp-youtube-video {
  34. position: relative;
  35. width: 100%;
  36. height: 0px;
  37. /* This must be equal to the inverse of the aspect ratio of the video */
  38. /* The current value is: 56.25% = 315/560 */
  39. padding-bottom: 56.25%;
  40. border: none;
  41. /* MD Elevation 8 */
  42. box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
  43. 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
  44. margin-bottom: 24px;
  45. }
  46. .rst-content div.jp-youtube-video iframe {
  47. position: absolute;
  48. left: 0px;
  49. top: 0px;
  50. width: 100%;
  51. height: 100%;
  52. }