custom.css 1.4 KB

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