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ů.

_horizontal_filmstrip.scss 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. %align-right {
  2. @include flex();
  3. flex-direction: row-reverse;
  4. flex-wrap: nowrap;
  5. justify-content: flex-start;
  6. }
  7. .horizontal-filmstrip .filmstrip {
  8. position: absolute;
  9. bottom: 0;
  10. right: 0;
  11. padding: 10px 5px;
  12. @extend %align-right;
  13. transition: bottom .3s;
  14. z-index: $filmstripVideosZ;
  15. box-sizing: border-box;
  16. width: 100%;
  17. position: fixed;
  18. /*
  19. * Firefox sets flex items to min-height: auto and min-width: auto,
  20. * preventing flex children from shrinking like they do on other browsers.
  21. * Setting min-height and min-width 0 is a workaround for the issue so
  22. * Firefox behaves like other browsers.
  23. * https://bugzilla.mozilla.org/show_bug.cgi?id=1043520
  24. */
  25. @mixin minHWAutoFix() {
  26. min-height: 0;
  27. min-width: 0;
  28. }
  29. &.reduce-height {
  30. bottom: calc(#{$newToolbarSizeWithPadding} + #{$scrollHeight});
  31. }
  32. &__videos {
  33. @extend %align-right;
  34. position:relative;
  35. padding: 0;
  36. /* The filmstrip should not be covered by the left toolbar. */
  37. bottom: 0;
  38. width:auto;
  39. overflow: visible !important;
  40. &#remoteVideos {
  41. border: $thumbnailsBorder solid transparent;
  42. transition: bottom 2s;
  43. flex-grow: 1;
  44. @include minHWAutoFix()
  45. }
  46. /**
  47. * The local video identifier.
  48. */
  49. &#filmstripLocalVideo {
  50. align-self: flex-end;
  51. display: block;
  52. margin-bottom: 8px;
  53. }
  54. &.hidden {
  55. bottom: calc(-196px - #{$newToolbarSizeWithPadding});
  56. }
  57. .remote-videos-container {
  58. display: flex;
  59. }
  60. }
  61. .remote-videos-container {
  62. transition: opacity 1s;
  63. }
  64. &.hide-videos {
  65. .remote-videos-container {
  66. opacity: 0;
  67. pointer-events: none;
  68. }
  69. }
  70. #filmstripRemoteVideos {
  71. @include minHWAutoFix();
  72. display: flex;
  73. flex: 1;
  74. width: auto;
  75. justify-content: flex-end;
  76. flex-direction: row;
  77. #filmstripRemoteVideosContainer {
  78. flex-direction: row-reverse;
  79. /**
  80. * Add padding as a hack for Firefox not to show scrollbars when
  81. * unnecessary.
  82. */
  83. padding: 1px 0;
  84. overflow-y: hidden;
  85. overflow-x: scroll;
  86. }
  87. }
  88. .videocontainer {
  89. margin-bottom: 10px;
  90. }
  91. }
  92. /**
  93. * Workarounds for Edge and Firefox not handling scrolling properly with
  94. * flex-direction: row-reverse.
  95. */
  96. @mixin undoRowReverseVideos() {
  97. .horizontal-filmstrip {
  98. #remoteVideos #filmstripRemoteVideos #filmstripRemoteVideosContainer {
  99. flex-direction: row;
  100. }
  101. }
  102. }
  103. /** Firefox detection hack **/
  104. @-moz-document url-prefix() {
  105. @include undoRowReverseVideos();
  106. }
  107. /** Edge detection hack **/
  108. @supports (-ms-ime-align:auto) {
  109. @include undoRowReverseVideos();
  110. }