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.

153 lines
2.5 KiB

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. top: 0px;
  50. left: 0px;
  51. display: block;
  52. width: 100%;
  53. height: 100%;
  54. background-color: #dcddde;
  55. }
  56. /*--------------
  57. Play
  58. ---------------*/
  59. /* Play Icon */
  60. .ui.embed > .icon {
  61. cursor: pointer;
  62. position: absolute;
  63. top: 0px;
  64. left: 0px;
  65. width: 100%;
  66. height: 100%;
  67. }
  68. .ui.embed > .icon:before {
  69. position: absolute;
  70. top: 50%;
  71. left: 50%;
  72. -webkit-transform: translateX(-50%) translateY(-50%);
  73. -ms-transform: translateX(-50%) translateY(-50%);
  74. transform: translateX(-50%) translateY(-50%);
  75. color: rgba(255, 255, 255, 0.9);
  76. font-size: 7rem;
  77. text-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05);
  78. -webkit-transition: color 0.2s ease;
  79. transition: color 0.2s ease;
  80. z-index: 10;
  81. }
  82. /*******************************
  83. States
  84. *******************************/
  85. /*--------------
  86. Hover
  87. ---------------*/
  88. .ui.embed .icon:hover {
  89. background: rgba(0, 0, 0, 0);
  90. }
  91. .ui.embed .icon:hover:before {
  92. color: #ffffff;
  93. }
  94. /*--------------
  95. Active
  96. ---------------*/
  97. .ui.active.embed .play,
  98. .ui.active.embed .placeholder {
  99. display: none;
  100. }
  101. .ui.active.embed .embed {
  102. display: block;
  103. }
  104. /*******************************
  105. Video Overrides
  106. *******************************/
  107. /*******************************
  108. Site Overrides
  109. *******************************/
  110. /*******************************
  111. Variations
  112. *******************************/
  113. .ui.square.embed {
  114. padding-bottom: 100%;
  115. }
  116. .ui[class*="4:3"].embed {
  117. padding-bottom: 75%;
  118. }
  119. .ui[class*="16:9"].embed {
  120. padding-bottom: 56.25%;
  121. }
  122. .ui[class*="21:9"].embed {
  123. padding-bottom: 42.85714286%;
  124. }