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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. &.shift-right {
  46. margin-left: $sidebarWidth;
  47. width: calc(100% - #{$sidebarWidth});
  48. #filmstripRemoteVideos {
  49. width: calc(100vw - #{$sidebarWidth});
  50. }
  51. }
  52. }
  53. /**
  54. * Regardless of the user setting, do not let the filmstrip be in a hidden
  55. * state.
  56. */
  57. .filmstrip__videos.hidden {
  58. display: block;
  59. }
  60. #filmstripRemoteVideos {
  61. box-sizing: border-box;
  62. /**
  63. * Allow vertical scrolling of the thumbnails.
  64. */
  65. overflow-x: hidden;
  66. overflow-y: auto;
  67. }
  68. /**
  69. * The size of the thumbnails should be set with javascript, based on
  70. * desired column count and window width. The rows are created using flex
  71. * and allowing the thumbnails to wrap.
  72. */
  73. #filmstripRemoteVideosContainer {
  74. align-content: center;
  75. align-items: center;
  76. box-sizing: border-box;
  77. display: flex;
  78. flex-wrap: wrap;
  79. margin-top: auto;
  80. margin-bottom: auto;
  81. justify-content: center;
  82. .videocontainer {
  83. border: 0;
  84. box-sizing: border-box;
  85. display: block;
  86. margin: 2px;
  87. }
  88. video {
  89. object-fit: contain;
  90. }
  91. }
  92. .has-overflow#filmstripRemoteVideosContainer {
  93. align-content: baseline;
  94. }
  95. .has-overflow .videocontainer {
  96. align-self: baseline;
  97. }
  98. }