Browse Source

ref(filmstrip): move some small video specific styling to own file

master
Leonard Kim 7 years ago
parent
commit
60ae8497c0

+ 0
- 52
css/filmstrip/_horizontal_filmstrip.scss View File

@@ -48,58 +48,6 @@
48 48
         .remote-videos-container {
49 49
             display: flex;
50 50
         }
51
-
52
-        .videocontainer {
53
-            display: none;
54
-            position: relative;
55
-            background-size: contain;
56
-            border: $thumbnailVideoBorder solid transparent;
57
-            border-radius: $borderRadius;
58
-            margin: 0 $thumbnailVideoMargin;
59
-
60
-            &.videoContainerFocused, &:hover {
61
-                cursor: hand;
62
-            }
63
-
64
-            /**
65
-             * Focused video thumbnail.
66
-             */
67
-            &.videoContainerFocused {
68
-                transition-duration: 0.5s;
69
-                -webkit-transition-duration: 0.5s;
70
-                -webkit-animation-name: greyPulse;
71
-                -webkit-animation-duration: 2s;
72
-                -webkit-animation-iteration-count: 1;
73
-                border: $thumbnailVideoBorder solid $videoThumbnailSelected !important;
74
-                box-shadow: inset 0 0 3px $videoThumbnailSelected,
75
-                0 0 3px $videoThumbnailSelected !important;
76
-            }
77
-
78
-            .remotevideomenu > .icon-menu {
79
-                display: none;
80
-            }
81
-
82
-            /**
83
-             * Hovered video thumbnail.
84
-             */
85
-            &:hover {
86
-                cursor: hand;
87
-                border: $thumbnailVideoBorder solid $videoThumbnailHovered;
88
-                box-shadow: inset 0 0 3px $videoThumbnailHovered,
89
-                0 0 3px $videoThumbnailHovered;
90
-
91
-                .remotevideomenu > .icon-menu {
92
-                    display: inline-block;
93
-                }
94
-            }
95
-
96
-            & > video {
97
-                cursor: hand;
98
-                border-radius: $borderRadius;
99
-                object-fit: cover;
100
-                overflow: hidden;
101
-            }
102
-        }
103 51
     }
104 52
 
105 53
     /**

+ 51
- 0
css/filmstrip/_small_video.scss View File

@@ -0,0 +1,51 @@
1
+.filmstrip__videos .videocontainer {
2
+    display: none;
3
+    position: relative;
4
+    background-size: contain;
5
+    border: $thumbnailVideoBorder solid transparent;
6
+    border-radius: $borderRadius;
7
+    margin: 0 $thumbnailVideoMargin;
8
+
9
+    &.videoContainerFocused, &:hover {
10
+        cursor: hand;
11
+    }
12
+
13
+    /**
14
+     * Focused video thumbnail.
15
+     */
16
+    &.videoContainerFocused {
17
+        transition-duration: 0.5s;
18
+        -webkit-transition-duration: 0.5s;
19
+        -webkit-animation-name: greyPulse;
20
+        -webkit-animation-duration: 2s;
21
+        -webkit-animation-iteration-count: 1;
22
+        border: $thumbnailVideoBorder solid $videoThumbnailSelected !important;
23
+        box-shadow: inset 0 0 3px $videoThumbnailSelected,
24
+        0 0 3px $videoThumbnailSelected !important;
25
+    }
26
+
27
+    .remotevideomenu > .icon-menu {
28
+        display: none;
29
+    }
30
+
31
+    /**
32
+     * Hovered video thumbnail.
33
+     */
34
+    &:hover {
35
+        cursor: hand;
36
+        border: $thumbnailVideoBorder solid $videoThumbnailHovered;
37
+        box-shadow: inset 0 0 3px $videoThumbnailHovered,
38
+        0 0 3px $videoThumbnailHovered;
39
+
40
+        .remotevideomenu > .icon-menu {
41
+            display: inline-block;
42
+        }
43
+    }
44
+
45
+    & > video {
46
+        cursor: hand;
47
+        border-radius: $borderRadius;
48
+        object-fit: cover;
49
+        overflow: hidden;
50
+    }
51
+}

+ 24
- 21
css/filmstrip/_vertical_filmstrip_overrides.scss View File

@@ -119,6 +119,30 @@
119 119
             transform: rotate(-90deg);
120 120
         }
121 121
 
122
+        #remoteVideos {
123
+            @include minHWAutoFix();
124
+
125
+            flex-direction: column;
126
+            flex-grow: 1;
127
+        }
128
+    }
129
+
130
+    /**
131
+     * Overrides for small videos in vertical filmstrip mode.
132
+     */
133
+    .filmstrip__videos .videocontainer {
134
+        /**
135
+         * Move status icons to the bottom right of the thumbnail.
136
+         */
137
+        .videocontainer__toolbar {
138
+            text-align: right;
139
+
140
+            .right {
141
+                float: none;
142
+                margin: auto;
143
+            }
144
+        }
145
+
122 146
         /**
123 147
          * Move the remote video menu trigger to the bottom left of the
124 148
          * video thumbnail.
@@ -134,27 +158,6 @@
134 158
         .remote-video-menu-trigger {
135 159
             margin-bottom: 7px;
136 160
         }
137
-
138
-        #remoteVideos {
139
-            @include minHWAutoFix();
140
-
141
-            flex-direction: column;
142
-            flex-grow: 1;
143
-        }
144
-
145
-        .videocontainer {
146
-            /**
147
-             * Move status icons to the bottom right of the thumbnail.
148
-             */
149
-            &__toolbar {
150
-                text-align: right;
151
-
152
-                .right {
153
-                    float: none;
154
-                    margin: auto;
155
-                }
156
-            }
157
-        }
158 161
     }
159 162
 
160 163
     &.filmstrip-only {

+ 1
- 0
css/main.scss View File

@@ -71,6 +71,7 @@
71 71
 @import 'popover';
72 72
 @import 'filmstrip/filmstrip_toolbar';
73 73
 @import 'filmstrip/horizontal_filmstrip';
74
+@import 'filmstrip/small_video';
74 75
 @import 'filmstrip/vertical_filmstrip_overrides';
75 76
 @import 'unsupported-browser/main';
76 77
 @import 'modals/invite/add-people';

Loading…
Cancel
Save