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.

78 lines
1.5 KiB

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