custom.css 1.4 KB

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