Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

_vertical_filmstrip_overrides.scss 7.8KB

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