2017-05-17 22:40:41 +00:00
|
|
|
/**
|
|
|
|
* Override other styles to support vertical filmstrip mode.
|
|
|
|
*/
|
|
|
|
.vertical-filmstrip {
|
2017-12-04 22:18:25 +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;
|
|
|
|
}
|
|
|
|
|
2017-06-14 23:52:59 +00:00
|
|
|
#etherpad,
|
|
|
|
#sharedvideo {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2017-05-17 22:40:41 +00:00
|
|
|
.filmstrip {
|
|
|
|
align-items: flex-end;
|
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
height: 100%;
|
2017-08-14 15:02:58 +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;
|
2017-08-14 18:45:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* z-index adjusting is needed because the video state indicator has to
|
|
|
|
* display over the filmstrip when no videos are displayed but still be
|
|
|
|
* clickable but its inline dialogs must display over the video state
|
|
|
|
* indicator when videos are displayed.
|
|
|
|
*/
|
2017-08-22 18:32:51 +00:00
|
|
|
z-index: #{$tooltipsZ + 1};
|
2017-08-14 18:45:17 +00:00
|
|
|
|
2017-05-17 22:40:41 +00:00
|
|
|
/**
|
|
|
|
* Hide videos by making them slight to the right.
|
|
|
|
*/
|
|
|
|
.filmstrip__videos {
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
bottom: auto;
|
|
|
|
right: -196px;
|
|
|
|
}
|
2017-08-14 18:45:17 +00:00
|
|
|
|
|
|
|
/**
|
2017-10-24 18:49:40 +00:00
|
|
|
* An id selector is used to match id specificity with existing
|
|
|
|
* filmstrip styles.
|
2017-08-14 18:45:17 +00:00
|
|
|
*/
|
|
|
|
&#remoteVideos {
|
2017-10-24 18:49:40 +00:00
|
|
|
/**
|
|
|
|
* Remove horizontal filmstrip padding used to prevent videos
|
|
|
|
* from overlapping the left-side toolbar. An id selector is
|
|
|
|
* used to match id specificity with filmstrip styles.
|
|
|
|
*/
|
2017-08-14 18:45:17 +00:00
|
|
|
padding-left: 0;
|
2017-10-24 18:49:40 +00:00
|
|
|
transition: right 2s;
|
2017-08-14 18:45:17 +00:00
|
|
|
}
|
2017-05-17 22:40:41 +00:00
|
|
|
}
|
|
|
|
|
2017-10-03 16:30:42 +00:00
|
|
|
/**
|
|
|
|
* Re-styles the local Video and invite button to better fit the
|
|
|
|
* vertical filmstrip layout.
|
|
|
|
*/
|
2017-05-17 22:40:41 +00:00
|
|
|
#filmstripLocalVideo {
|
2017-10-03 16:30:42 +00:00
|
|
|
bottom: 5px;
|
2017-10-24 19:00:22 +00:00
|
|
|
display: flex;
|
2017-10-03 16:30:42 +00:00
|
|
|
flex-direction: column-reverse;
|
2017-05-17 22:40:41 +00:00
|
|
|
height: auto;
|
2017-10-03 16:30:42 +00:00
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
.filmstrip__invite {
|
|
|
|
padding-bottom: 0px;
|
|
|
|
padding-top: 5px;
|
|
|
|
z-index: $dropdownZ;
|
|
|
|
}
|
2017-05-17 22:40:41 +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 {
|
2017-12-04 22:18:25 +00:00
|
|
|
@include minHWAutoFix();
|
|
|
|
|
2017-05-17 22:40:41 +00:00
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
height: auto;
|
2017-10-03 16:30:42 +00:00
|
|
|
justify-content: flex-end;
|
2017-05-17 22:40:41 +00:00
|
|
|
|
2017-10-03 16:30:42 +00:00
|
|
|
#filmstripRemoteVideosContainer {
|
|
|
|
flex-direction: column-reverse;
|
2017-12-04 22:44:45 +00:00
|
|
|
/**
|
|
|
|
* Add padding as a hack for Firefox not to show scrollbars when
|
|
|
|
* unnecessary.
|
|
|
|
*/
|
|
|
|
padding: 1px 0;
|
2017-10-03 16:30:42 +00:00
|
|
|
overflow-x: hidden;
|
2017-05-17 22:40:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Rotate the hide filmstrip icon so it points towards the right edge
|
|
|
|
* of the screen.
|
|
|
|
*/
|
|
|
|
&__toolbar {
|
|
|
|
transform: rotate(-90deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Move the remote video menu trigger to the bottom left of the
|
|
|
|
* video thumbnail.
|
|
|
|
*/
|
2017-08-14 15:02:58 +00:00
|
|
|
.remotevideomenu,
|
|
|
|
.remote-video-menu-trigger {
|
2017-05-17 22:40:41 +00:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
top: auto;
|
|
|
|
right: auto;
|
2017-08-14 15:02:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.remote-video-menu-trigger {
|
2017-07-12 22:12:35 +00:00
|
|
|
margin-bottom: 7px;
|
2017-05-17 22:40:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#remoteVideos {
|
2017-12-04 22:18:25 +00:00
|
|
|
@include minHWAutoFix();
|
|
|
|
|
2017-10-03 16:30:42 +00:00
|
|
|
flex-direction: column;
|
2017-05-26 18:54:33 +00:00
|
|
|
flex-grow: 1;
|
2017-05-17 22:40:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.videocontainer {
|
|
|
|
/**
|
|
|
|
* Move status icons to the bottom right of the thumbnail.
|
|
|
|
*/
|
|
|
|
&__toolbar {
|
|
|
|
text-align: right;
|
|
|
|
|
2017-08-15 22:14:49 +00:00
|
|
|
.right {
|
2017-05-17 22:40:41 +00:00
|
|
|
float: none;
|
2017-06-19 16:01:44 +00:00
|
|
|
margin: auto;
|
2017-05-17 22:40:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-06 02:07:00 +00:00
|
|
|
&.filmstrip-only {
|
|
|
|
.filmstrip {
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
}
|
|
|
|
.filmstrip__videos-filmstripOnly {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* In filmstrip only mode, the toolbar is normally displayed in the
|
|
|
|
* vertical center of the filmstrip strip. In vertical filmstrip mode,
|
|
|
|
* that alignment makes the toolbar appear floating and detached from
|
|
|
|
* the filmstrip. So, instead anchor the toolbar next to the local
|
|
|
|
* video.
|
|
|
|
*/
|
|
|
|
.toolbar_filmstrip-only {
|
|
|
|
bottom: 0;
|
|
|
|
top: auto;
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-05-23 18:58:07 +00:00
|
|
|
/**
|
2017-05-25 01:57:55 +00:00
|
|
|
* These styles are for the video labels that display on the top right. The
|
|
|
|
* styles adjust the labels' positioning as the filmstrip itself or
|
|
|
|
* filmstrip's remote videos appear and disappear.
|
|
|
|
*
|
|
|
|
* The class with-filmstrip is for when the filmstrip is visible.
|
|
|
|
* The class without-filmstrip is for when the filmstrip has been toggled to
|
|
|
|
* be hidden.
|
|
|
|
* The class opening is for when the filmstrip is transitioning from hidden
|
|
|
|
* to visible.
|
2017-05-23 18:58:07 +00:00
|
|
|
*/
|
2017-05-24 00:14:48 +00:00
|
|
|
.video-state-indicator.moveToCorner {
|
2017-05-25 01:57:55 +00:00
|
|
|
transition: right 0.5s;
|
2017-05-17 22:40:41 +00:00
|
|
|
|
2017-10-03 16:30:42 +00:00
|
|
|
&.with-filmstrip {
|
2017-05-23 18:58:07 +00:00
|
|
|
&#recordingLabel {
|
|
|
|
right: 200px;
|
2017-05-17 22:40:41 +00:00
|
|
|
}
|
|
|
|
|
2017-05-23 18:58:07 +00:00
|
|
|
&#videoResolutionLabel {
|
|
|
|
right: 150px;
|
|
|
|
}
|
2017-05-17 22:40:41 +00:00
|
|
|
}
|
2017-05-25 01:57:55 +00:00
|
|
|
|
2017-10-03 16:30:42 +00:00
|
|
|
&.with-filmstrip.opening {
|
2017-05-25 01:57:55 +00:00
|
|
|
transition: 0.9s;
|
|
|
|
transition-timing-function: ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.without-filmstrip {
|
|
|
|
transition: 1.2s ease-in-out;
|
|
|
|
transition-delay: 0.1s;
|
|
|
|
}
|
2017-05-17 22:40:41 +00:00
|
|
|
}
|
2017-08-14 15:02:58 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Apply hardware acceleration to prevent flickering on scroll. The
|
|
|
|
* selectors are specific to icon wrappers to prevent fixed position dialogs
|
|
|
|
* and tooltips from getting a new location context due to translate3d.
|
|
|
|
*/
|
|
|
|
.connection-indicator,
|
|
|
|
.remote-video-menu-trigger,
|
2017-08-15 22:14:49 +00:00
|
|
|
.indicator-icon-container {
|
2017-08-14 15:02:58 +00:00
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
}
|
2017-08-15 22:14:49 +00:00
|
|
|
|
|
|
|
.indicator-container {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* FIXME: disable pointer to allow any elements moved below to still be
|
|
|
|
* clickable. The real fix would to make sure those moved elements are
|
|
|
|
* actually part of the toolbar instead of positioning being faked.
|
|
|
|
*/
|
|
|
|
.videocontainer__toolbar {
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar-icon {
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
}
|
2017-05-17 22:40:41 +00:00
|
|
|
}
|
2017-12-04 22:18:25 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Workarounds for Edge, IE11, 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() {
|
|
|
|
#remoteVideos #filmstripRemoteVideos #filmstripRemoteVideosContainer {
|
|
|
|
flex-direction:column;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Firefox detection hack **/
|
|
|
|
@-moz-document url-prefix() {
|
|
|
|
@include undoColumnReverseVideos();
|
|
|
|
}
|
|
|
|
|
|
|
|
/** IE11 detection hack **/
|
|
|
|
@media screen and (-ms-high-contrast: active),
|
|
|
|
screen and (-ms-high-contrast: none) {
|
|
|
|
@include undoColumnReverseVideos();
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Edge detection hack **/
|
|
|
|
@supports (-ms-ime-align:auto) {
|
|
|
|
@include undoColumnReverseVideos();
|
|
|
|
}
|