Просмотр исходного кода

ref(filmstrip): move around small video and quality label styles

master
Leonard Kim 7 лет назад
Родитель
Сommit
8f688c3535
1 измененных файлов: 59 добавлений и 62 удалений
  1. 59
    62
      css/filmstrip/_vertical_filmstrip_overrides.scss

+ 59
- 62
css/filmstrip/_vertical_filmstrip_overrides.scss Просмотреть файл

@@ -127,39 +127,6 @@
127 127
         }
128 128
     }
129 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
-
146
-        /**
147
-         * Move the remote video menu trigger to the bottom left of the
148
-         * video thumbnail.
149
-         */
150
-        .remotevideomenu,
151
-        .remote-video-menu-trigger {
152
-            bottom: 0;
153
-            left: 0;
154
-            top: auto;
155
-            right: auto;
156
-        }
157
-
158
-        .remote-video-menu-trigger {
159
-            margin-bottom: 7px;
160
-        }
161
-    }
162
-
163 130
     &.filmstrip-only {
164 131
         .filmstrip {
165 132
             flex-direction: row-reverse;
@@ -168,31 +135,35 @@
168 135
             height: 100%;
169 136
         }
170 137
     }
138
+}
171 139
 
140
+/**
141
+ * Overrides for small videos in vertical filmstrip mode.
142
+ */
143
+.vertical-filmstrip .filmstrip__videos .videocontainer {
172 144
     /**
173
-     * These styles are for the video labels that display on the top right. The
174
-     * styles adjust the labels' positioning as the filmstrip itself or
175
-     * filmstrip's remote videos appear and disappear.
176
-     *
177
-     * The class with-filmstrip is for when the filmstrip is visible.
178
-     * The class without-filmstrip is for when the filmstrip has been toggled to
179
-     * be hidden.
180
-     * The class opening is for when the filmstrip is transitioning from hidden
181
-     * to visible.
145
+     * Move status icons to the bottom right of the thumbnail.
182 146
      */
183
-    .large-video-labels {
184
-        &.with-filmstrip {
185
-            right: 150px;
147
+    .videocontainer__toolbar {
148
+        /**
149
+         * FIXME: disable pointer to allow any elements moved below to still
150
+         * be clickable. The real fix would to make sure those moved elements
151
+         * are actually part of the toolbar instead of positioning being faked.
152
+         */
153
+        pointer-events: none;
154
+        text-align: right;
155
+
156
+        > div {
157
+            pointer-events: none;
186 158
         }
187 159
 
188
-        &.with-filmstrip.opening {
189
-            transition: 0.9s;
190
-            transition-timing-function: ease-in-out;
160
+        .right {
161
+            float: none;
162
+            margin: auto;
191 163
         }
192 164
 
193
-        &.without-filmstrip {
194
-            transition: 1.2s ease-in-out;
195
-            transition-delay: 0.1s;
165
+        .toolbar-icon {
166
+            pointer-events: all;
196 167
         }
197 168
     }
198 169
 
@@ -212,20 +183,46 @@
212 183
     }
213 184
 
214 185
     /**
215
-     * FIXME: disable pointer to allow any elements moved below to still be
216
-     * clickable. The real fix would to make sure those moved elements are
217
-     * actually part of the toolbar instead of positioning being faked.
186
+     * Move the remote video menu trigger to the bottom left of the video
187
+     * thumbnail.
218 188
      */
219
-    .videocontainer__toolbar {
220
-        pointer-events: none;
189
+    .remotevideomenu,
190
+    .remote-video-menu-trigger {
191
+        bottom: 0;
192
+        left: 0;
193
+        top: auto;
194
+        right: auto;
195
+    }
221 196
 
222
-        > div {
223
-            pointer-events: none;
224
-        }
197
+    .remote-video-menu-trigger {
198
+        margin-bottom: 7px;
199
+    }
200
+}
225 201
 
226
-        .toolbar-icon {
227
-            pointer-events: all;
228
-        }
202
+/**
203
+ * Overrides for quality labels in filmstrip only mode. The styles adjust the
204
+ * labels' positioning as the filmstrip itself or filmstrip's remote videos
205
+ * appear and disappear.
206
+ *
207
+ * The class with-filmstrip is for when the filmstrip is visible.
208
+ * The class without-filmstrip is for when the filmstrip has been toggled to
209
+ * be hidden.
210
+ * The class opening is for when the filmstrip is transitioning from hidden
211
+ * to visible.
212
+ */
213
+.vertical-filmstrip .large-video-labels {
214
+    &.with-filmstrip {
215
+        right: 150px;
216
+    }
217
+
218
+    &.with-filmstrip.opening {
219
+        transition: 0.9s;
220
+        transition-timing-function: ease-in-out;
221
+    }
222
+
223
+    &.without-filmstrip {
224
+        transition: 1.2s ease-in-out;
225
+        transition-delay: 0.1s;
229 226
     }
230 227
 }
231 228
 

Загрузка…
Отмена
Сохранить