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 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. /**
  2. * Override other styles to support vertical filmstrip mode.
  3. */
  4. .vertical-filmstrip {
  5. /*
  6. * Firefox sets flex items to min-height: auto and min-width: auto,
  7. * preventing flex children from shrinking like they do on other browsers.
  8. * Setting min-height and min-width 0 is a workaround for the issue so
  9. * Firefox behaves like other browsers.
  10. * https://bugzilla.mozilla.org/show_bug.cgi?id=1043520
  11. */
  12. @mixin minHWAutoFix() {
  13. min-height: 0;
  14. min-width: 0;
  15. }
  16. #etherpad,
  17. #sharedvideo {
  18. text-align: left;
  19. }
  20. .filmstrip {
  21. align-items: flex-end;
  22. box-sizing: border-box;
  23. display: flex;
  24. flex-direction: column-reverse;
  25. height: 100%;
  26. /**
  27. * fixed positioning is necessary for remote menus and tooltips to pop
  28. * out of the scrolling filmstrip. AtlasKit dialogs and tooltips use
  29. * a library called popper which will position its elements fixed if
  30. * any parent is also fixed.
  31. */
  32. position: fixed;
  33. /**
  34. * z-index adjusting is needed because the video state indicator has to
  35. * display over the filmstrip when no videos are displayed but still be
  36. * clickable but its inline dialogs must display over the video state
  37. * indicator when videos are displayed.
  38. */
  39. z-index: #{$tooltipsZ + 1};
  40. /**
  41. * Hide videos by making them slight to the right.
  42. */
  43. .filmstrip__videos {
  44. right: 0;
  45. &.hidden {
  46. bottom: auto;
  47. right: -196px;
  48. }
  49. /**
  50. * An id selector is used to match id specificity with existing
  51. * filmstrip styles.
  52. */
  53. &#remoteVideos {
  54. /**
  55. * Remove horizontal filmstrip padding used to prevent videos
  56. * from overlapping the left-side toolbar. An id selector is
  57. * used to match id specificity with filmstrip styles.
  58. */
  59. padding-left: 0;
  60. transition: right 2s;
  61. }
  62. }
  63. /**
  64. * Re-styles the local Video and invite button to better fit the
  65. * vertical filmstrip layout.
  66. */
  67. #filmstripLocalVideo {
  68. bottom: 5px;
  69. display: flex;
  70. flex-direction: column-reverse;
  71. height: auto;
  72. justify-content: flex-start;
  73. .filmstrip__invite {
  74. padding-bottom: 0px;
  75. padding-top: 5px;
  76. z-index: $dropdownZ;
  77. }
  78. }
  79. /**
  80. * Remove unnecssary padding that is normally used to prevent horizontal
  81. * filmstrip from overlapping the left edge of the screen.
  82. */
  83. #filmstripLocalVideo,
  84. #filmstripRemoteVideos {
  85. padding: 0;
  86. }
  87. #filmstripRemoteVideos {
  88. @include minHWAutoFix();
  89. display: flex;
  90. flex: 1;
  91. flex-direction: column;
  92. height: auto;
  93. justify-content: flex-end;
  94. #filmstripRemoteVideosContainer {
  95. flex-direction: column-reverse;
  96. /**
  97. * Add padding as a hack for Firefox not to show scrollbars when
  98. * unnecessary.
  99. */
  100. padding: 1px 0;
  101. overflow-x: hidden;
  102. }
  103. }
  104. /**
  105. * Rotate the hide filmstrip icon so it points towards the right edge
  106. * of the screen.
  107. */
  108. &__toolbar {
  109. transform: rotate(-90deg);
  110. }
  111. /**
  112. * Move the remote video menu trigger to the bottom left of the
  113. * video thumbnail.
  114. */
  115. .remotevideomenu,
  116. .remote-video-menu-trigger {
  117. bottom: 0;
  118. left: 0;
  119. top: auto;
  120. right: auto;
  121. }
  122. .remote-video-menu-trigger {
  123. margin-bottom: 7px;
  124. }
  125. #remoteVideos {
  126. @include minHWAutoFix();
  127. flex-direction: column;
  128. flex-grow: 1;
  129. }
  130. .videocontainer {
  131. /**
  132. * Move status icons to the bottom right of the thumbnail.
  133. */
  134. &__toolbar {
  135. text-align: right;
  136. .right {
  137. float: none;
  138. margin: auto;
  139. }
  140. }
  141. }
  142. }
  143. &.filmstrip-only {
  144. .filmstrip {
  145. flex-direction: row-reverse;
  146. }
  147. .filmstrip__videos-filmstripOnly {
  148. height: 100%;
  149. }
  150. /**
  151. * In filmstrip only mode, the toolbar is normally displayed in the
  152. * vertical center of the filmstrip strip. In vertical filmstrip mode,
  153. * that alignment makes the toolbar appear floating and detached from
  154. * the filmstrip. So, instead anchor the toolbar next to the local
  155. * video.
  156. */
  157. .toolbar_filmstrip-only {
  158. bottom: 0;
  159. top: auto;
  160. transform: none;
  161. }
  162. }
  163. /**
  164. * These styles are for the video labels that display on the top right. The
  165. * styles adjust the labels' positioning as the filmstrip itself or
  166. * filmstrip's remote videos appear and disappear.
  167. *
  168. * The class with-filmstrip is for when the filmstrip is visible.
  169. * The class without-filmstrip is for when the filmstrip has been toggled to
  170. * be hidden.
  171. * The class opening is for when the filmstrip is transitioning from hidden
  172. * to visible.
  173. */
  174. .video-state-indicator.moveToCorner {
  175. transition: right 0.5s;
  176. &.with-filmstrip {
  177. &#recordingLabel {
  178. right: 200px;
  179. }
  180. &#videoResolutionLabel {
  181. right: 150px;
  182. }
  183. }
  184. &.with-filmstrip.opening {
  185. transition: 0.9s;
  186. transition-timing-function: ease-in-out;
  187. }
  188. &.without-filmstrip {
  189. transition: 1.2s ease-in-out;
  190. transition-delay: 0.1s;
  191. }
  192. }
  193. /**
  194. * Apply hardware acceleration to prevent flickering on scroll. The
  195. * selectors are specific to icon wrappers to prevent fixed position dialogs
  196. * and tooltips from getting a new location context due to translate3d.
  197. */
  198. .connection-indicator,
  199. .remote-video-menu-trigger,
  200. .indicator-icon-container {
  201. transform: translate3d(0, 0, 0);
  202. }
  203. .indicator-container {
  204. float: none;
  205. }
  206. /**
  207. * FIXME: disable pointer to allow any elements moved below to still be
  208. * clickable. The real fix would to make sure those moved elements are
  209. * actually part of the toolbar instead of positioning being faked.
  210. */
  211. .videocontainer__toolbar {
  212. pointer-events: none;
  213. > div {
  214. pointer-events: none;
  215. }
  216. .toolbar-icon {
  217. pointer-events: all;
  218. }
  219. }
  220. }
  221. /**
  222. * Workarounds for Edge, IE11, and Firefox not handling scrolling properly
  223. * with flex-direction: column-reverse. The remove videos in filmstrip should
  224. * start scrolling from the bottom of the filmstrip, but in those browsers the
  225. * scrolling won't happen. Per W3C spec, scrolling should happen from the
  226. * bottom. As such, use css hacks to get around the css issue, with the intent
  227. * being to remove the hacks as the spec is supported.
  228. */
  229. @mixin undoColumnReverseVideos() {
  230. #remoteVideos #filmstripRemoteVideos #filmstripRemoteVideosContainer {
  231. flex-direction:column;
  232. }
  233. }
  234. /** Firefox detection hack **/
  235. @-moz-document url-prefix() {
  236. @include undoColumnReverseVideos();
  237. }
  238. /** IE11 detection hack **/
  239. @media screen and (-ms-high-contrast: active),
  240. screen and (-ms-high-contrast: none) {
  241. @include undoColumnReverseVideos();
  242. }
  243. /** Edge detection hack **/
  244. @supports (-ms-ime-align:auto) {
  245. @include undoColumnReverseVideos();
  246. }