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.scss 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. .vertical-filmstrip .filmstrip {
  2. &.hide-videos {
  3. .remote-videos-container {
  4. opacity: 0;
  5. pointer-events: none;
  6. }
  7. }
  8. /*
  9. * Firefox sets flex items to min-height: auto and min-width: auto,
  10. * preventing flex children from shrinking like they do on other browsers.
  11. * Setting min-height and min-width 0 is a workaround for the issue so
  12. * Firefox behaves like other browsers.
  13. * https://bugzilla.mozilla.org/show_bug.cgi?id=1043520
  14. */
  15. @mixin minHWAutoFix() {
  16. min-height: 0;
  17. min-width: 0;
  18. }
  19. @extend %align-right;
  20. align-items: flex-end;
  21. bottom: 0;
  22. box-sizing: border-box;
  23. display: flex;
  24. flex-direction: column-reverse;
  25. height: 100%;
  26. padding: 10px 5px;
  27. /**
  28. * fixed positioning is necessary for remote menus and tooltips to pop
  29. * out of the scrolling filmstrip. AtlasKit dialogs and tooltips use
  30. * a library called popper which will position its elements fixed if
  31. * any parent is also fixed.
  32. */
  33. position: fixed;
  34. top: 0;
  35. transition: height .3s ease-in;
  36. right: 0;
  37. z-index: $filmstripVideosZ;
  38. &.reduce-height {
  39. height: calc(100% - #{$newToolbarSizeWithPadding});
  40. }
  41. /**
  42. * Hide videos by making them slight to the right.
  43. */
  44. .filmstrip__videos {
  45. @extend %align-right;
  46. bottom: 0;
  47. overflow: visible !important;
  48. padding: 0;
  49. position:relative;
  50. right: 0;
  51. width: auto;
  52. &.hidden {
  53. bottom: auto;
  54. right: -196px;
  55. }
  56. /**
  57. * An id selector is used to match id specificity with existing
  58. * filmstrip styles.
  59. */
  60. &#remoteVideos {
  61. border: $thumbnailsBorder solid transparent;
  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. #remoteVideos {
  103. @include minHWAutoFix();
  104. flex-direction: column;
  105. flex-grow: 1;
  106. }
  107. .remote-videos-container {
  108. display: flex;
  109. transition: opacity 1s;
  110. }
  111. }
  112. /**
  113. * Override other styles to support vertical filmstrip mode.
  114. */
  115. .filmstrip-only .vertical-filmstrip {
  116. .filmstrip {
  117. flex-direction: row-reverse;
  118. }
  119. .filmstrip__videos-filmstripOnly {
  120. margin-top: auto;
  121. margin-bottom: auto;
  122. height: 100%;
  123. }
  124. .filmstrip__videos {
  125. &#filmstripLocalVideo {
  126. bottom: 0px;
  127. }
  128. }
  129. }
  130. /**
  131. * Workarounds for Edge and Firefox not handling scrolling properly with
  132. * flex-direction: column-reverse. The remove videos in filmstrip should
  133. * start scrolling from the bottom of the filmstrip, but in those browsers the
  134. * scrolling won't happen. Per W3C spec, scrolling should happen from the
  135. * bottom. As such, use css hacks to get around the css issue, with the intent
  136. * being to remove the hacks as the spec is supported.
  137. */
  138. @mixin undoColumnReverseVideos() {
  139. .vertical-filmstrip {
  140. #remoteVideos #filmstripRemoteVideos #filmstripRemoteVideosContainer {
  141. flex-direction: column;
  142. }
  143. }
  144. }
  145. /** Firefox detection hack **/
  146. @-moz-document url-prefix() {
  147. @include undoColumnReverseVideos();
  148. }
  149. /** Edge detection hack **/
  150. @supports (-ms-ime-align:auto) {
  151. @include undoColumnReverseVideos();
  152. }