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.

125 lines
2.2 KiB

  1. /*
  2. * # Semantic - Video
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'module';
  15. @element : 'video';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Video
  19. *******************************/
  20. .ui.video {
  21. position: relative;
  22. background-color: @background;
  23. position: relative;
  24. max-width: 100%;
  25. padding-bottom: 56.25%;
  26. height: 0px;
  27. overflow: hidden;
  28. }
  29. /*--------------
  30. Content
  31. ---------------*/
  32. /* Placeholder Image */
  33. .ui.video .placeholder {
  34. background-color: @placeholderBackground;
  35. }
  36. /* Play Icon Overlay */
  37. .ui.video .play {
  38. cursor: pointer;
  39. position: absolute;
  40. top: 0px;
  41. left: 0px;
  42. z-index: 10;
  43. width: 100%;
  44. height: 100%;
  45. opacity: @playOpacity;
  46. transition: opacity 0.3s;
  47. }
  48. .ui.video .play.icon:before {
  49. position: absolute;
  50. top: 50%;
  51. left: 50%;
  52. z-index: 11;
  53. background: @playBackground;
  54. width: (@playSize + @playBorderSize);
  55. height: (@playSize + @playBorderSize);
  56. line-height: (@playSize + @playBorderSize);
  57. border-radius: @playBorderRadius;
  58. color: @playColor;
  59. font-size: @playSize;
  60. text-shadow: @playShadow;
  61. transform: translateX(-50%) translateY(-50%);
  62. }
  63. .ui.video .placeholder {
  64. position: absolute;
  65. top: 0px;
  66. left: 0px;
  67. display: block;
  68. width: 100%;
  69. height: 100%;
  70. }
  71. /* IFrame Embed */
  72. .ui.video .embed iframe,
  73. .ui.video .embed embed,
  74. .ui.video .embed object {
  75. position: absolute;
  76. border: none;
  77. width: 100%;
  78. height: 100%;
  79. top: 0px;
  80. left: 0px;
  81. margin: 0em;
  82. padding: 0em;
  83. }
  84. /*******************************
  85. States
  86. *******************************/
  87. /*--------------
  88. Hover
  89. ---------------*/
  90. .ui.video .play:hover {
  91. opacity: @playHoverOpacity;
  92. }
  93. /*--------------
  94. Active
  95. ---------------*/
  96. .ui.video.active .play,
  97. .ui.video.active .placeholder {
  98. display: none;
  99. }
  100. .ui.video.active .embed {
  101. display: inline;
  102. }
  103. .loadUIOverrides();