|
|
@@ -2,6 +2,18 @@
|
|
2
|
2
|
* Override other styles to support vertical filmstrip mode.
|
|
3
|
3
|
*/
|
|
4
|
4
|
.vertical-filmstrip {
|
|
|
5
|
+ /*
|
|
|
6
|
+ * Firefox sets flex items to min-height: auto and min-width: auto,
|
|
|
7
|
+ * preventing flex children from shrinking like they do on other browsers.
|
|
|
8
|
+ * Setting min-height and min-width 0 is a workaround for the issue so
|
|
|
9
|
+ * Firefox behaves like other browsers.
|
|
|
10
|
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=1043520
|
|
|
11
|
+ */
|
|
|
12
|
+ @mixin minHWAutoFix() {
|
|
|
13
|
+ min-height: 0;
|
|
|
14
|
+ min-width: 0;
|
|
|
15
|
+ }
|
|
|
16
|
+
|
|
5
|
17
|
.filmstrip {
|
|
6
|
18
|
align-items: flex-end;
|
|
7
|
19
|
box-sizing: border-box;
|
|
|
@@ -78,6 +90,8 @@
|
|
78
|
90
|
}
|
|
79
|
91
|
|
|
80
|
92
|
#filmstripRemoteVideos {
|
|
|
93
|
+ @include minHWAutoFix();
|
|
|
94
|
+
|
|
81
|
95
|
display: flex;
|
|
82
|
96
|
flex: 1;
|
|
83
|
97
|
flex-direction: column;
|
|
|
@@ -115,6 +129,8 @@
|
|
115
|
129
|
}
|
|
116
|
130
|
|
|
117
|
131
|
#remoteVideos {
|
|
|
132
|
+ @include minHWAutoFix();
|
|
|
133
|
+
|
|
118
|
134
|
flex-direction: column;
|
|
119
|
135
|
flex-grow: 1;
|
|
120
|
136
|
}
|
|
|
@@ -224,3 +240,33 @@
|
|
224
|
240
|
}
|
|
225
|
241
|
}
|
|
226
|
242
|
}
|
|
|
243
|
+
|
|
|
244
|
+/**
|
|
|
245
|
+ * Workarounds for Edge, IE11, and Firefox not handling scrolling properly
|
|
|
246
|
+ * with flex-direction: column-reverse. The remove videos in filmstrip should
|
|
|
247
|
+ * start scrolling from the bottom of the filmstrip, but in those browsers the
|
|
|
248
|
+ * scrolling won't happen. Per W3C spec, scrolling should happen from the
|
|
|
249
|
+ * bottom. As such, use css hacks to get around the css issue, with the intent
|
|
|
250
|
+ * being to remove the hacks as the spec is supported.
|
|
|
251
|
+ */
|
|
|
252
|
+@mixin undoColumnReverseVideos() {
|
|
|
253
|
+ #remoteVideos #filmstripRemoteVideos #filmstripRemoteVideosContainer {
|
|
|
254
|
+ flex-direction:column;
|
|
|
255
|
+ }
|
|
|
256
|
+}
|
|
|
257
|
+
|
|
|
258
|
+/** Firefox detection hack **/
|
|
|
259
|
+@-moz-document url-prefix() {
|
|
|
260
|
+ @include undoColumnReverseVideos();
|
|
|
261
|
+}
|
|
|
262
|
+
|
|
|
263
|
+/** IE11 detection hack **/
|
|
|
264
|
+@media screen and (-ms-high-contrast: active),
|
|
|
265
|
+screen and (-ms-high-contrast: none) {
|
|
|
266
|
+ @include undoColumnReverseVideos();
|
|
|
267
|
+}
|
|
|
268
|
+
|
|
|
269
|
+/** Edge detection hack **/
|
|
|
270
|
+@supports (-ms-ime-align:auto) {
|
|
|
271
|
+ @include undoColumnReverseVideos();
|
|
|
272
|
+}
|