You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_tile_view.scss 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /**
  2. * CSS styles that are specific to the filmstrip that shows the thumbnail tiles.
  3. */
  4. .tile-view {
  5. /**
  6. * Add a border around the active speaker to make the thumbnail easier to
  7. * see.
  8. */
  9. .active-speaker {
  10. box-shadow: 0 0 5px 3px $videoThumbnailSelected
  11. }
  12. #filmstripRemoteVideos {
  13. align-items: center;
  14. box-sizing: border-box;
  15. display: flex;
  16. flex-direction: column;
  17. height: 100vh;
  18. width: 100vw;
  19. }
  20. .filmstrip__videos .videocontainer {
  21. &:not(.active-speaker),
  22. &:hover:not(.active-speaker) {
  23. border: none;
  24. box-shadow: none;
  25. }
  26. }
  27. #remoteVideos {
  28. /**
  29. * Height is modified with an inline style in horizontal filmstrip mode
  30. * so !important is used to override that.
  31. */
  32. height: 100% !important;
  33. width: 100%;
  34. }
  35. .filmstrip {
  36. align-items: center;
  37. display: flex;
  38. height: 100%;
  39. justify-content: center;
  40. left: 0;
  41. position: fixed;
  42. top: 0;
  43. width: 100%;
  44. z-index: $filmstripVideosZ;
  45. @media (min-width: 581px) {
  46. &.shift-right {
  47. margin-left: $sidebarWidth;
  48. width: calc(100% - #{$sidebarWidth});
  49. #filmstripRemoteVideos {
  50. width: calc(100vw - #{$sidebarWidth});
  51. }
  52. }
  53. }
  54. }
  55. /**
  56. * Regardless of the user setting, do not let the filmstrip be in a hidden
  57. * state.
  58. */
  59. .filmstrip__videos.hidden {
  60. display: block;
  61. }
  62. #filmstripRemoteVideos {
  63. box-sizing: border-box;
  64. /**
  65. * Allow vertical scrolling of the thumbnails.
  66. */
  67. overflow-x: hidden;
  68. overflow-y: auto;
  69. }
  70. /**
  71. * The size of the thumbnails should be set with javascript, based on
  72. * desired column count and window width. The rows are created using flex
  73. * and allowing the thumbnails to wrap.
  74. */
  75. #filmstripRemoteVideosContainer {
  76. align-content: center;
  77. align-items: center;
  78. box-sizing: border-box;
  79. display: flex;
  80. flex-wrap: wrap;
  81. margin-top: auto;
  82. margin-bottom: auto;
  83. justify-content: center;
  84. .videocontainer {
  85. border: 0;
  86. box-sizing: border-box;
  87. display: block;
  88. margin: 2px;
  89. }
  90. video {
  91. object-fit: contain;
  92. }
  93. /**
  94. * Max-width corresponding to the ASPECT_RATIO_BREAKPOINT from features/filmstrip/constants.
  95. */
  96. @media only screen and (max-width: 500px) {
  97. video {
  98. object-fit: cover;
  99. }
  100. }
  101. }
  102. .has-overflow#filmstripRemoteVideosContainer {
  103. align-content: baseline;
  104. }
  105. .has-overflow .videocontainer {
  106. align-self: baseline;
  107. }
  108. }