You are here

emvideo.custom-url.css in Embedded Media Field 6

A Play button overlay for Flowplayer thumbnails.

File

contrib/emvideo/emvideo.custom-url.css
View source
  1. /**
  2. * @file
  3. * A Play button overlay for Flowplayer thumbnails.
  4. */
  5. /**
  6. * The outer wrapper must be relative for the overlay to work.
  7. * When overriding this style in your own stylesheet,
  8. * you'll probably want to add the video's height and width here,
  9. * so that you avoid the div dropping momentarily while the thumnbail
  10. * is replaced by the video.
  11. */
  12. .emvideo-zzz_custom_url .flowplayer {
  13. position: relative;
  14. display: block;
  15. cursor: pointer;
  16. }
  17. /* This is the overlay of a play button on the video thumbnail. */
  18. /* The span is created automatically with jQuery. */
  19. .emvideo-zzz_custom_url .flowplayer span {
  20. display: block;
  21. /* This is the overlay image for use as a play button. */
  22. background: url(play_large.png) no-repeat;
  23. /* This is the size of our button. DOES NOT WORK WITH DEFAULT THUMB SIZE! */
  24. width: 83px;
  25. height: 83px;
  26. /* Absolute positioning in the relative wrapper creates the overlay. */
  27. position: absolute;
  28. }
  29. /* Subtract half of the width of the thumbnail by half of the width of the play
  30. button, and again for the height, to get these numbers, and the next. */
  31. .emvideo-zzz_custom_url .flowplayer span {
  32. left: 171px;
  33. top: 134px;
  34. }
  35. /* This is centered for the default placement of full-sized videos,
  36. which is 425x350. */
  37. .emvideo-zzz_custom_url .flowplayer span {
  38. left: 171px;
  39. top: 134px;
  40. }