Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

_vertical_filmstrip_overrides.scss 6.1KB

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