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.

166 lines
3.0 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. /*!
  2. * # Semantic UI 2.0.0 - Video
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Types
  13. *******************************/
  14. .ui.embed {
  15. position: relative;
  16. max-width: 100%;
  17. height: 0px;
  18. overflow: hidden;
  19. background: #dcddde;
  20. padding-bottom: 56.25%;
  21. }
  22. /*-----------------
  23. Embedded Content
  24. ------------------*/
  25. .ui.embed iframe,
  26. .ui.embed embed,
  27. .ui.embed object {
  28. position: absolute;
  29. border: none;
  30. width: 100%;
  31. height: 100%;
  32. top: 0px;
  33. left: 0px;
  34. margin: 0em;
  35. padding: 0em;
  36. }
  37. /*-----------------
  38. Embed
  39. ------------------*/
  40. .ui.embed > .embed {
  41. display: none;
  42. }
  43. /*--------------
  44. Placeholder
  45. ---------------*/
  46. /* Placeholder Image */
  47. .ui.embed > .placeholder {
  48. position: absolute;
  49. cursor: pointer;
  50. top: 0px;
  51. left: 0px;
  52. display: block;
  53. width: 100%;
  54. height: 100%;
  55. background-color: radial-gradient(transparent 45%, rgba(0, 0, 0, 0.3));
  56. }
  57. /*--------------
  58. Play
  59. ---------------*/
  60. /* Play Icon */
  61. .ui.embed > .icon {
  62. cursor: pointer;
  63. position: absolute;
  64. top: 0px;
  65. left: 0px;
  66. width: 100%;
  67. height: 100%;
  68. z-index: 2;
  69. }
  70. .ui.embed > .icon:after {
  71. position: absolute;
  72. top: 0%;
  73. left: 0%;
  74. width: 100%;
  75. height: 100%;
  76. z-index: 3;
  77. content: '';
  78. background: -webkit-radial-gradient(transparent 45%, rgba(0, 0, 0, 0.3));
  79. background: radial-gradient(transparent 45%, rgba(0, 0, 0, 0.3));
  80. opacity: 0.5;
  81. -webkit-transition: opacity 0.5s ease;
  82. transition: opacity 0.5s ease;
  83. }
  84. .ui.embed > .icon:before {
  85. position: absolute;
  86. top: 50%;
  87. left: 50%;
  88. z-index: 4;
  89. -webkit-transform: translateX(-50%) translateY(-50%);
  90. -ms-transform: translateX(-50%) translateY(-50%);
  91. transform: translateX(-50%) translateY(-50%);
  92. color: #ffffff;
  93. font-size: 6rem;
  94. text-shadow: 0px 2px 10px rgba(34, 36, 38, 0.2);
  95. -webkit-transition: opacity 0.5s ease, color 0.5s ease;
  96. transition: opacity 0.5s ease, color 0.5s ease;
  97. z-index: 10;
  98. }
  99. /*******************************
  100. States
  101. *******************************/
  102. /*--------------
  103. Hover
  104. ---------------*/
  105. .ui.embed .icon:hover:after {
  106. background: -webkit-radial-gradient(transparent 45%, rgba(0, 0, 0, 0.3));
  107. background: radial-gradient(transparent 45%, rgba(0, 0, 0, 0.3));
  108. opacity: 1;
  109. }
  110. .ui.embed .icon:hover:before {
  111. color: #ffffff;
  112. }
  113. /*--------------
  114. Active
  115. ---------------*/
  116. .ui.active.embed .play,
  117. .ui.active.embed .placeholder {
  118. display: none;
  119. }
  120. .ui.active.embed .embed {
  121. display: block;
  122. }
  123. /*******************************
  124. Video Overrides
  125. *******************************/
  126. /*******************************
  127. Variations
  128. *******************************/
  129. .ui.square.embed {
  130. padding-bottom: 100%;
  131. }
  132. .ui[class*="4:3"].embed {
  133. padding-bottom: 75%;
  134. }
  135. .ui[class*="16:9"].embed {
  136. padding-bottom: 56.25%;
  137. }
  138. .ui[class*="21:9"].embed {
  139. padding-bottom: 42.85714286%;
  140. }