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.0KB

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