您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_horizontal_filmstrip.scss 2.9KB

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