alt-yt-player.css 753 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * @Author: Joachim M. Giæver
  3. * URL: https://git.giaever.org/Magy/alt-youtube-player
  4. */
  5. /*
  6. Adapt to your needs,
  7. but it shouldn't be necessary to add much of css
  8. as the js-script will handle sizing.
  9. */
  10. * {padding: 0;margin: 0;} /* Not necessary when using frameworks */
  11. .player {
  12. position: relative;
  13. z-index: 2;
  14. width: 70vw;
  15. margin: 0 auto;
  16. }
  17. /*
  18. Note that the > restricts the img to be on the root level of .player
  19. */
  20. .player > img.thumb {
  21. position: absolute;
  22. z-index: 1;
  23. width: 100%;
  24. }
  25. .player > iframe {
  26. position: absolute;
  27. z-index: -1;
  28. width: 100%;
  29. height: 100%;
  30. }
  31. .player.play {
  32. cursor: pointer;
  33. }
  34. .player.stop {
  35. cursor: not-allowed;
  36. }
  37. .player.loading {
  38. cursor: wait;
  39. }