custom.css 1.4 KB

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