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.

_vertical_filmstrip_overrides.scss 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. /**
  2. * Override other styles to support vertical filmstrip mode.
  3. */
  4. .vertical-filmstrip {
  5. .filmstrip {
  6. align-items: flex-end;
  7. box-sizing: border-box;
  8. display: flex;
  9. flex-direction: column-reverse;
  10. height: 100%;
  11. /**
  12. * fixed positioning is necessary for remote menus and tooltips to pop
  13. * out of the scrolling filmstrip. AtlasKit dialogs and tooltips use
  14. * a library called popper which will position its elements fixed if
  15. * any parent is also fixed.
  16. */
  17. position: fixed;
  18. /**
  19. * z-index adjusting is needed because the video state indicator has to
  20. * display over the filmstrip when no videos are displayed but still be
  21. * clickable but its inline dialogs must display over the video state
  22. * indicator when videos are displayed.
  23. */
  24. z-index: #{$tooltipsZ + 1};
  25. /**
  26. * Hide videos by making them slight to the right.
  27. */
  28. .filmstrip__videos {
  29. right: 0;
  30. &.hidden {
  31. bottom: auto;
  32. right: -196px;
  33. }
  34. /**
  35. * An id selector is used to match id specificity with existing
  36. * filmstrip styles.
  37. */
  38. &#remoteVideos {
  39. /**
  40. * Remove horizontal filmstrip padding used to prevent videos
  41. * from overlapping the left-side toolbar. An id selector is
  42. * used to match id specificity with filmstrip styles.
  43. */
  44. padding-left: 0;
  45. transition: right 2s;
  46. }
  47. }
  48. /**
  49. * Re-styles the local Video and invite button to better fit the
  50. * vertical filmstrip layout.
  51. */
  52. #filmstripLocalVideo {
  53. bottom: 5px;
  54. display: flex;
  55. flex-direction: column-reverse;
  56. height: auto;
  57. justify-content: flex-start;
  58. .filmstrip__invite {
  59. padding-bottom: 0px;
  60. padding-top: 5px;
  61. z-index: $dropdownZ;
  62. }
  63. }
  64. /**
  65. * Remove unnecssary padding that is normally used to prevent horizontal
  66. * filmstrip from overlapping the left edge of the screen.
  67. */
  68. #filmstripLocalVideo,
  69. #filmstripRemoteVideos {
  70. padding: 0;
  71. }
  72. #filmstripRemoteVideos {
  73. display: flex;
  74. flex: 1;
  75. flex-direction: column;
  76. height: auto;
  77. justify-content: flex-end;
  78. #filmstripRemoteVideosContainer {
  79. flex-direction: column-reverse;
  80. overflow-x: hidden;
  81. }
  82. }
  83. /**
  84. * Rotate the hide filmstrip icon so it points towards the right edge
  85. * of the screen.
  86. */
  87. &__toolbar {
  88. transform: rotate(-90deg);
  89. }
  90. /**
  91. * Move the remote video menu trigger to the bottom left of the
  92. * video thumbnail.
  93. */
  94. .remotevideomenu,
  95. .remote-video-menu-trigger {
  96. bottom: 0;
  97. left: 0;
  98. top: auto;
  99. right: auto;
  100. }
  101. .remote-video-menu-trigger {
  102. margin-bottom: 7px;
  103. }
  104. #remoteVideos {
  105. flex-direction: column;
  106. flex-grow: 1;
  107. }
  108. .videocontainer {
  109. /**
  110. * Move status icons to the bottom right of the thumbnail.
  111. */
  112. &__toolbar {
  113. text-align: right;
  114. .right {
  115. float: none;
  116. margin: auto;
  117. }
  118. }
  119. }
  120. }
  121. &.filmstrip-only {
  122. .filmstrip {
  123. flex-direction: row-reverse;
  124. }
  125. .filmstrip__videos-filmstripOnly {
  126. height: 100%;
  127. }
  128. /**
  129. * In filmstrip only mode, the toolbar is normally displayed in the
  130. * vertical center of the filmstrip strip. In vertical filmstrip mode,
  131. * that alignment makes the toolbar appear floating and detached from
  132. * the filmstrip. So, instead anchor the toolbar next to the local
  133. * video.
  134. */
  135. .toolbar_filmstrip-only {
  136. bottom: 0;
  137. top: auto;
  138. transform: none;
  139. }
  140. }
  141. /**
  142. * These styles are for the video labels that display on the top right. The
  143. * styles adjust the labels' positioning as the filmstrip itself or
  144. * filmstrip's remote videos appear and disappear.
  145. *
  146. * The class with-filmstrip is for when the filmstrip is visible.
  147. * The class without-filmstrip is for when the filmstrip has been toggled to
  148. * be hidden.
  149. * The class opening is for when the filmstrip is transitioning from hidden
  150. * to visible.
  151. */
  152. .video-state-indicator.moveToCorner {
  153. transition: right 0.5s;
  154. &.with-filmstrip {
  155. &#recordingLabel {
  156. right: 200px;
  157. }
  158. &#videoResolutionLabel {
  159. right: 150px;
  160. }
  161. }
  162. &.with-filmstrip.opening {
  163. transition: 0.9s;
  164. transition-timing-function: ease-in-out;
  165. }
  166. &.without-filmstrip {
  167. transition: 1.2s ease-in-out;
  168. transition-delay: 0.1s;
  169. }
  170. }
  171. /**
  172. * Apply hardware acceleration to prevent flickering on scroll. The
  173. * selectors are specific to icon wrappers to prevent fixed position dialogs
  174. * and tooltips from getting a new location context due to translate3d.
  175. */
  176. .connection-indicator,
  177. .remote-video-menu-trigger,
  178. .indicator-icon-container {
  179. transform: translate3d(0, 0, 0);
  180. }
  181. .indicator-container {
  182. float: none;
  183. }
  184. /**
  185. * FIXME: disable pointer to allow any elements moved below to still be
  186. * clickable. The real fix would to make sure those moved elements are
  187. * actually part of the toolbar instead of positioning being faked.
  188. */
  189. .videocontainer__toolbar {
  190. pointer-events: none;
  191. > div {
  192. pointer-events: none;
  193. }
  194. .toolbar-icon {
  195. pointer-events: all;
  196. }
  197. }
  198. }