You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
857 B

  1. .ui.video {
  2. position: relative;
  3. max-width: 100%;
  4. }
  5. .ui.video .placeholder {
  6. background-color: #333;
  7. }
  8. .ui.video .play {
  9. cursor: pointer;
  10. position: absolute;
  11. top: 0;
  12. right: 0;
  13. z-index: 10;
  14. width: 100%;
  15. height: 100%;
  16. -ms-filter: "alpha(Opacity=60)";
  17. filter: alpha(opacity=60);
  18. opacity: .6;
  19. -webkit-transition: opacity .3s;
  20. transition: opacity .3s;
  21. }
  22. .ui.video .play.icon:before {
  23. position: absolute;
  24. top: 50%;
  25. right: 50%;
  26. z-index: 11;
  27. font-size: 6rem;
  28. margin: -3rem -3rem 0 0;
  29. color: #FFF;
  30. text-shadow: 0 3px 3px rgba(0,0,0,.4);
  31. }
  32. .ui.video .placeholder {
  33. display: block;
  34. width: 100%;
  35. height: 100%;
  36. }
  37. .ui.video .embed {
  38. display: none;
  39. }
  40. .ui.video .play:hover {
  41. opacity: 1;
  42. }
  43. .ui.video.active .play,
  44. .ui.video.active .placeholder {
  45. display: none;
  46. }
  47. .ui.video.active .embed {
  48. display: block;
  49. }