瀏覽代碼

ref(filmstrip): move toolbar css to own file

j8
Leonard Kim 6 年之前
父節點
當前提交
d9fa05f42e
共有 3 個檔案被更改,包括 32 行新增32 行删除
  1. 0
    32
      css/_filmstrip.scss
  2. 31
    0
      css/filmstrip/_filmstrip_toolbar.scss
  3. 1
    0
      css/main.scss

+ 0
- 32
css/_filmstrip.scss 查看文件

@@ -18,38 +18,6 @@
18 18
         bottom: $newToolbarSizeWithPadding;
19 19
     }
20 20
 
21
-    &__toolbar {
22
-        @include flex();
23
-        flex-direction: column-reverse;
24
-        flex-wrap: nowrap;
25
-        position: relative;
26
-        width: $filmstripToggleButtonWidth;
27
-
28
-        button {
29
-            font-size: 14px;
30
-            line-height: 1.2;
31
-            text-align: center;
32
-            background: transparent;
33
-            opacity: 0.7;
34
-            height: auto;
35
-            width: 100%;
36
-            padding: 0;
37
-            margin: 0;
38
-            border: none;
39
-            outline: none;
40
-
41
-            -webkit-appearance: none;
42
-
43
-            &:hover {
44
-                opacity: 1;
45
-            }
46
-
47
-            i {
48
-                cursor: pointer;
49
-            }
50
-        }
51
-    }
52
-
53 21
     &__videos {
54 22
         @extend %align-right;
55 23
         position:relative;

+ 31
- 0
css/filmstrip/_filmstrip_toolbar.scss 查看文件

@@ -0,0 +1,31 @@
1
+.filmstrip__toolbar {
2
+    @include flex();
3
+    flex-direction: column-reverse;
4
+    flex-wrap: nowrap;
5
+    position: relative;
6
+    width: $filmstripToggleButtonWidth;
7
+
8
+    button {
9
+        font-size: 14px;
10
+        line-height: 1.2;
11
+        text-align: center;
12
+        background: transparent;
13
+        opacity: 0.7;
14
+        height: auto;
15
+        width: 100%;
16
+        padding: 0;
17
+        margin: 0;
18
+        border: none;
19
+        outline: none;
20
+
21
+        -webkit-appearance: none;
22
+
23
+        &:hover {
24
+            opacity: 1;
25
+        }
26
+
27
+        i {
28
+            cursor: pointer;
29
+        }
30
+    }
31
+}

+ 1
- 0
css/main.scss 查看文件

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

Loading…
取消
儲存