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.

81 lines
1.5 KiB

  1. /*
  2. * # Semantic Video
  3. * http://github.com/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: July 30, 2013
  11. */
  12. /*******************************
  13. Video
  14. *******************************/
  15. .ui.video {
  16. position: relative;
  17. max-width: 100%;
  18. }
  19. /*--------------
  20. Content
  21. ---------------*/
  22. /* Placeholder Image */
  23. .ui.video .placeholder {
  24. background-color: #333333;
  25. }
  26. /* Play Icon Overlay */
  27. .ui.video .play {
  28. cursor: pointer;
  29. position: absolute;
  30. top: 0px;
  31. left: 0px;
  32. z-index: 10;
  33. width: 100%;
  34. height: 100%;
  35. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
  36. filter: alpha(opacity=60);
  37. opacity: 0.6;
  38. -webkit-transition: opacity 0.3s;
  39. -moz-transition: opacity 0.3s;
  40. -o-transition: opacity 0.3s;
  41. -ms-transition: opacity 0.3s;
  42. transition: opacity 0.3s;
  43. }
  44. .ui.video .play.icon:before {
  45. position: absolute;
  46. top: 50%;
  47. left: 50%;
  48. z-index: 11;
  49. font-size: 6rem;
  50. margin: -3rem 0em 0em -3rem;
  51. color: #FFFFFF;
  52. text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.4);
  53. }
  54. .ui.video .placeholder {
  55. display: block;
  56. width: 100%;
  57. height: 100%;
  58. }
  59. /* IFrame Embed */
  60. .ui.video .embed {
  61. display: none;
  62. }
  63. /*******************************
  64. States
  65. *******************************/
  66. /*--------------
  67. Hover
  68. ---------------*/
  69. .ui.video .play:hover {
  70. opacity: 1;
  71. }
  72. /*--------------
  73. Active
  74. ---------------*/
  75. .ui.video.active .play,
  76. .ui.video.active .placeholder {
  77. display: none;
  78. }
  79. .ui.video.active .embed {
  80. display: block;
  81. }