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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. }
  46. /**
  47. * Regardless of the user setting, do not let the filmstrip be in a hidden
  48. * state.
  49. */
  50. .filmstrip__videos.hidden {
  51. display: block;
  52. }
  53. #filmstripRemoteVideos {
  54. box-sizing: border-box;
  55. /**
  56. * Allow vertical scrolling of the thumbnails.
  57. */
  58. overflow-x: hidden;
  59. overflow-y: auto;
  60. }
  61. /**
  62. * The size of the thumbnails should be set with javascript, based on
  63. * desired column count and window width. The rows are created using flex
  64. * and allowing the thumbnails to wrap.
  65. */
  66. #filmstripRemoteVideosContainer {
  67. align-content: center;
  68. align-items: center;
  69. box-sizing: border-box;
  70. display: flex;
  71. flex-wrap: wrap;
  72. height: 100vh;
  73. justify-content: center;
  74. padding: 100px 0;
  75. .videocontainer {
  76. border: 0;
  77. box-sizing: border-box;
  78. display: block;
  79. margin: 5px;
  80. }
  81. video {
  82. object-fit: contain;
  83. }
  84. }
  85. .has-overflow#filmstripRemoteVideosContainer {
  86. align-content: baseline;
  87. }
  88. .has-overflow .videocontainer {
  89. align-self: baseline;
  90. }
  91. /**
  92. * Firefox flex acts a little differently. To make sure the bottom row of
  93. * thumbnails is not overlapped by the horizontal toolbar, margin is added
  94. * to the local thumbnail to keep it from the bottom of the screen. It is
  95. * assumed the local thumbnail will always be on the bottom row.
  96. */
  97. .has-overflow #localVideoContainer {
  98. margin-bottom: 100px !important;
  99. }
  100. }