custom.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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(145, 145, 145, 0.14),
  29. 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
  30. margin-bottom: 24px;
  31. }
  32. /*
  33. * The div.jp-youtube-video styling is done to get the YouTube video to size dynamically
  34. * to 100% of the content width.
  35. */
  36. .rst-content div.jp-youtube-video {
  37. position: relative;
  38. width: 100%;
  39. height: 0px;
  40. /* This must be equal to the inverse of the aspect ratio of the video */
  41. /* The current value is: 56.25% = 315/560 */
  42. padding-bottom: 56.25%;
  43. border: none;
  44. /* MD Elevation 8 */
  45. box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
  46. 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
  47. margin-bottom: 24px;
  48. }
  49. .rst-content div.jp-youtube-video iframe {
  50. position: absolute;
  51. left: 0px;
  52. top: 0px;
  53. width: 100%;
  54. height: 100%;
  55. }