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.

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