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

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