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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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: 0px 0px 1px 1.5px black, 0px 0px 1.3px 4px $videoThumbnailSelected;
  11. }
  12. .remote-videos {
  13. align-items: center;
  14. box-sizing: border-box;
  15. display: flex;
  16. flex-direction: column;
  17. }
  18. .filmstrip__videos .videocontainer {
  19. &:not(.active-speaker),
  20. &:hover:not(.active-speaker) {
  21. border: none;
  22. box-shadow: none;
  23. }
  24. }
  25. #remoteVideos {
  26. /**
  27. * Height is modified with an inline style in horizontal filmstrip mode
  28. * so !important is used to override that.
  29. */
  30. height: 100% !important;
  31. width: 100%;
  32. display: flex;
  33. justify-content: center;
  34. align-items: center;
  35. }
  36. .filmstrip {
  37. align-items: center;
  38. display: flex;
  39. height: 100%;
  40. justify-content: center;
  41. left: 0;
  42. position: absolute;
  43. top: 0;
  44. width: 100%;
  45. @media (min-width: 581px) {
  46. &.shift-right {
  47. margin-left: $sidebarWidth;
  48. width: calc(100% - #{$sidebarWidth});
  49. .remote-videos{
  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. .remote-videos {
  63. box-sizing: border-box;
  64. /**
  65. * The size of the thumbnails should be set with javascript, based on
  66. * desired column count and window width. The rows are created using flex
  67. * and allowing the thumbnails to wrap.
  68. */
  69. & > div {
  70. align-content: center;
  71. align-items: center;
  72. box-sizing: border-box;
  73. display: flex;
  74. margin-top: auto;
  75. margin-bottom: auto;
  76. justify-content: center;
  77. position: absolute;
  78. .videocontainer {
  79. border: 0;
  80. box-sizing: border-box;
  81. display: block;
  82. margin: 2px;
  83. }
  84. video {
  85. object-fit: contain;
  86. }
  87. /**
  88. * Max-width corresponding to the ASPECT_RATIO_BREAKPOINT from features/filmstrip/constants.
  89. */
  90. @media only screen and (max-width: 500px) {
  91. video {
  92. object-fit: cover;
  93. }
  94. }
  95. }
  96. }
  97. }
  98. .shift-right .remote-videos > div {
  99. /**
  100. * Max-width corresponding to the ASPECT_RATIO_BREAKPOINT from features/filmstrip/constants,
  101. * from which we subtract the chat size.
  102. */
  103. @media only screen and (max-width: calc(500px + #{$sidebarWidth})) {
  104. video {
  105. object-fit: cover;
  106. }
  107. }
  108. }