2018-06-25 21:16:06 +00:00
|
|
|
.vertical-filmstrip .filmstrip {
|
2018-06-25 21:44:05 +00:00
|
|
|
&.hide-videos {
|
|
|
|
.remote-videos-container {
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-25 21:16:06 +00:00
|
|
|
/*
|
|
|
|
* Firefox sets flex items to min-height: auto and min-width: auto,
|
|
|
|
* preventing flex children from shrinking like they do on other browsers.
|
|
|
|
* Setting min-height and min-width 0 is a workaround for the issue so
|
|
|
|
* Firefox behaves like other browsers.
|
|
|
|
* https://bugzilla.mozilla.org/show_bug.cgi?id=1043520
|
|
|
|
*/
|
|
|
|
@mixin minHWAutoFix() {
|
|
|
|
min-height: 0;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
2018-06-25 21:44:05 +00:00
|
|
|
@extend %align-right;
|
2018-06-25 21:16:06 +00:00
|
|
|
align-items: flex-end;
|
2018-06-25 21:44:05 +00:00
|
|
|
bottom: 0;
|
2018-06-25 21:16:06 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
height: 100%;
|
2020-01-24 16:28:47 +00:00
|
|
|
width: 100%;
|
2019-04-16 18:45:25 +00:00
|
|
|
padding: ($desktopAppDragBarHeight - 5px) 5px 10px;
|
2018-06-25 21:16:06 +00:00
|
|
|
/**
|
|
|
|
* fixed positioning is necessary for remote menus and tooltips to pop
|
|
|
|
* out of the scrolling filmstrip. AtlasKit dialogs and tooltips use
|
|
|
|
* a library called popper which will position its elements fixed if
|
|
|
|
* any parent is also fixed.
|
|
|
|
*/
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
transition: height .3s ease-in;
|
2018-06-25 21:44:05 +00:00
|
|
|
right: 0;
|
2018-06-25 21:16:06 +00:00
|
|
|
z-index: $filmstripVideosZ;
|
|
|
|
|
|
|
|
&.reduce-height {
|
|
|
|
height: calc(100% - #{$newToolbarSizeWithPadding});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Hide videos by making them slight to the right.
|
|
|
|
*/
|
|
|
|
.filmstrip__videos {
|
2018-06-25 21:44:05 +00:00
|
|
|
@extend %align-right;
|
|
|
|
bottom: 0;
|
|
|
|
padding: 0;
|
|
|
|
position:relative;
|
2018-06-25 21:16:06 +00:00
|
|
|
right: 0;
|
2018-06-25 21:44:05 +00:00
|
|
|
width: auto;
|
2018-06-25 21:16:06 +00:00
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
bottom: auto;
|
|
|
|
right: -196px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An id selector is used to match id specificity with existing
|
|
|
|
* filmstrip styles.
|
|
|
|
*/
|
|
|
|
&#remoteVideos {
|
2018-06-25 21:44:05 +00:00
|
|
|
border: $thumbnailsBorder solid transparent;
|
2018-06-25 21:16:06 +00:00
|
|
|
padding-left: 0;
|
|
|
|
transition: right 2s;
|
2020-01-24 16:28:47 +00:00
|
|
|
width: 100%;
|
2018-06-25 21:16:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Re-styles the local Video to better fit vertical filmstrip layout.
|
|
|
|
*/
|
|
|
|
#filmstripLocalVideo {
|
|
|
|
align-self: initial;
|
|
|
|
bottom: 5px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
height: auto;
|
|
|
|
justify-content: flex-start;
|
2020-01-24 16:28:47 +00:00
|
|
|
|
|
|
|
#filmstripLocalVideoThumbnail {
|
|
|
|
width: calc(100% - 15px);
|
|
|
|
|
|
|
|
.videocontainer {
|
|
|
|
height: 0px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-25 21:16:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove unnecssary padding that is normally used to prevent horizontal
|
|
|
|
* filmstrip from overlapping the left edge of the screen.
|
|
|
|
*/
|
|
|
|
#filmstripLocalVideo,
|
|
|
|
#filmstripRemoteVideos {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#filmstripRemoteVideos {
|
|
|
|
@include minHWAutoFix();
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
2020-01-24 16:28:47 +00:00
|
|
|
flex-direction: column-reverse;
|
2018-06-25 21:16:06 +00:00
|
|
|
height: auto;
|
2020-01-24 16:28:47 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
2018-06-25 21:16:06 +00:00
|
|
|
|
|
|
|
#filmstripRemoteVideosContainer {
|
2020-01-24 16:28:47 +00:00
|
|
|
@include minHWAutoFix();
|
2018-06-25 21:16:06 +00:00
|
|
|
flex-direction: column-reverse;
|
2020-01-24 16:28:47 +00:00
|
|
|
overflow: visible;
|
|
|
|
width: calc(100% - 8px); // 8px for margin + border of the thumbnails
|
|
|
|
|
|
|
|
.videocontainer {
|
|
|
|
height: 0px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-06-25 21:16:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#remoteVideos {
|
|
|
|
@include minHWAutoFix();
|
|
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2018-06-25 21:44:05 +00:00
|
|
|
|
|
|
|
.remote-videos-container {
|
|
|
|
display: flex;
|
|
|
|
transition: opacity 1s;
|
|
|
|
}
|
2020-02-25 12:06:58 +00:00
|
|
|
|
|
|
|
.hide-scrollbar#filmstripRemoteVideos {
|
|
|
|
margin-right: 7px; // Scrollbar size
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2018-06-25 21:16:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Override other styles to support vertical filmstrip mode.
|
|
|
|
*/
|
2018-07-25 20:00:00 +00:00
|
|
|
.filmstrip-only .vertical-filmstrip {
|
2018-06-25 21:16:06 +00:00
|
|
|
.filmstrip {
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
}
|
|
|
|
.filmstrip__videos-filmstripOnly {
|
2018-06-25 21:44:05 +00:00
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
2018-06-25 21:16:06 +00:00
|
|
|
height: 100%;
|
|
|
|
}
|
2018-06-25 21:44:05 +00:00
|
|
|
|
|
|
|
.filmstrip__videos {
|
|
|
|
&#filmstripLocalVideo {
|
|
|
|
bottom: 0px;
|
|
|
|
}
|
|
|
|
}
|
2018-06-25 21:16:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Workarounds for Edge and Firefox not handling scrolling properly with
|
|
|
|
* flex-direction: column-reverse. The remove videos in filmstrip should
|
|
|
|
* start scrolling from the bottom of the filmstrip, but in those browsers the
|
|
|
|
* scrolling won't happen. Per W3C spec, scrolling should happen from the
|
|
|
|
* bottom. As such, use css hacks to get around the css issue, with the intent
|
|
|
|
* being to remove the hacks as the spec is supported.
|
|
|
|
*/
|
|
|
|
@mixin undoColumnReverseVideos() {
|
|
|
|
.vertical-filmstrip {
|
|
|
|
#remoteVideos #filmstripRemoteVideos #filmstripRemoteVideosContainer {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-24 16:28:47 +00:00
|
|
|
/**
|
|
|
|
* FF does not include the scroll width when calculating the size of the content. That's why we need to include
|
|
|
|
* ourselves the width of the scroll so that the remote videos are aligned with the local one.
|
|
|
|
*/
|
|
|
|
@mixin filmstripSizeWithoutScroll {
|
|
|
|
.vertical-filmstrip {
|
|
|
|
#remoteVideos #filmstripRemoteVideos {
|
|
|
|
#filmstripRemoteVideosContainer {
|
|
|
|
width: calc(100% - 15px) // 8 px - margins + border of the thumbnails; 7px - for the scroll
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-25 21:16:06 +00:00
|
|
|
/** Firefox detection hack **/
|
|
|
|
@-moz-document url-prefix() {
|
|
|
|
@include undoColumnReverseVideos();
|
2020-01-24 16:28:47 +00:00
|
|
|
@include filmstripSizeWithoutScroll();
|
2018-06-25 21:16:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/** Edge detection hack **/
|
|
|
|
@supports (-ms-ime-align:auto) {
|
|
|
|
@include undoColumnReverseVideos();
|
|
|
|
}
|