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.

_filmstrip.scss 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. %align-right {
  2. @include flex();
  3. flex-direction: row-reverse;
  4. flex-wrap: nowrap;
  5. justify-content: flex-start;
  6. }
  7. .filmstrip {
  8. position: absolute;
  9. bottom: 0;
  10. right: 0;
  11. padding: 10px 5px;
  12. @extend %align-right;
  13. z-index: $filmstripVideosZ;
  14. &__toolbar {
  15. @include flex();
  16. flex-direction: column-reverse;
  17. flex-wrap: nowrap;
  18. position: relative;
  19. width: $filmstripToggleButtonWidth;
  20. button {
  21. font-size: 14px;
  22. line-height: 1.2;
  23. text-align: center;
  24. background: transparent;
  25. opacity: 0.7;
  26. height: auto;
  27. width: 100%;
  28. padding: 0;
  29. margin: 0;
  30. border: none;
  31. outline: none;
  32. -webkit-appearance: none;
  33. &:hover {
  34. opacity: 1;
  35. }
  36. i {
  37. cursor: pointer;
  38. }
  39. }
  40. }
  41. &__videos {
  42. @extend %align-right;
  43. position:relative;
  44. padding: 0;
  45. /* The filmstrip should not be covered by the left toolbar. */
  46. bottom: 0;
  47. width:auto;
  48. overflow: visible !important;
  49. &#remoteVideos {
  50. border: $thumbnailsBorder solid transparent;
  51. padding-left: $defaultToolbarSize + 5;
  52. transition: bottom 2s;
  53. }
  54. /**
  55. * The local video identifier.
  56. */
  57. &#filmstripLocalVideo {
  58. bottom: 32px;
  59. display: block;
  60. /**
  61. * The invite button style.
  62. */
  63. .filmstrip__invite {
  64. padding-bottom: 5px;
  65. margin-left: 2px;
  66. }
  67. /**
  68. * The invite button group style.
  69. * TOFIX: use AtlasKit.ButtonGroup if it starts supporting different
  70. * flex grow options for the buttons.
  71. */
  72. .invite-button-group {
  73. display: inline-flex;
  74. justify-content: space-between;
  75. width: 100%;
  76. & button {
  77. flex-grow: 1;
  78. flex-shrink: 1;
  79. overflow: hidden;
  80. }
  81. & > * {
  82. flex-grow: 0;
  83. flex-shrink: 0;
  84. margin-left: 2px;
  85. }
  86. }
  87. }
  88. &.hidden {
  89. bottom: -196px;
  90. }
  91. .remote-videos-container {
  92. display: flex;
  93. }
  94. .videocontainer {
  95. display: none;
  96. position: relative;
  97. background-size: contain;
  98. border: $thumbnailVideoBorder solid transparent;
  99. border-radius: $borderRadius;
  100. margin: 0 $thumbnailVideoMargin;
  101. &.videoContainerFocused, &:hover {
  102. cursor: hand;
  103. }
  104. /**
  105. * Focused video thumbnail.
  106. */
  107. &.videoContainerFocused {
  108. transition-duration: 0.5s;
  109. -webkit-transition-duration: 0.5s;
  110. -webkit-animation-name: greyPulse;
  111. -webkit-animation-duration: 2s;
  112. -webkit-animation-iteration-count: 1;
  113. border: $thumbnailVideoBorder solid $videoThumbnailSelected !important;
  114. box-shadow: inset 0 0 3px $videoThumbnailSelected,
  115. 0 0 3px $videoThumbnailSelected !important;
  116. }
  117. .remotevideomenu > .icon-menu {
  118. display: none;
  119. }
  120. .presence-label {
  121. color: $participantNameColor;
  122. font-size: 12px;
  123. font-weight: 100;
  124. left: 0;
  125. margin: 0 auto;
  126. overflow: hidden;
  127. pointer-events: none;
  128. position: absolute;
  129. right: 0;
  130. text-align: center;
  131. text-overflow: ellipsis;
  132. top: calc(50% + 30px);
  133. white-space: nowrap;
  134. width: 100%;
  135. z-index: $zindex3;
  136. }
  137. /**
  138. * Hovered video thumbnail.
  139. */
  140. &:hover {
  141. cursor: hand;
  142. border: $thumbnailVideoBorder solid $videoThumbnailHovered;
  143. box-shadow: inset 0 0 3px $videoThumbnailHovered,
  144. 0 0 3px $videoThumbnailHovered;
  145. .remotevideomenu > .icon-menu {
  146. display: inline-block;
  147. }
  148. }
  149. /* With the TemasysWebRTC plugin <object/> element is used
  150. instead of <video/> */
  151. & > video,
  152. & > object {
  153. cursor: hand;
  154. border-radius: $borderRadius;
  155. object-fit: cover;
  156. overflow: hidden;
  157. }
  158. }
  159. }
  160. /**
  161. * Style the filmstrip videos in filmstrip-only mode.
  162. */
  163. &__videos-filmstripOnly {
  164. margin-top: auto;
  165. margin-bottom: auto;
  166. .filmstrip__videos {
  167. &#filmstripLocalVideo {
  168. bottom: 0px;
  169. }
  170. }
  171. }
  172. .remote-videos-container {
  173. transition: opacity 1s;
  174. }
  175. &.hide-videos {
  176. .remote-videos-container {
  177. opacity: 0;
  178. pointer-events: none;
  179. }
  180. }
  181. }