Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

_vertical_filmstrip_overrides.scss 7.1KB

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