Fix add icon path
authorChocobozzz <me@florianbigard.com>
Mon, 11 Jun 2018 08:05:42 +0000 (10:05 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 11 Jun 2018 08:05:42 +0000 (10:05 +0200)
client/src/app/+admin/users/user-list/user-list.component.scss
client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss
client/src/assets/images/admin/add.svg [deleted file]
client/src/assets/images/global/add.svg [new file with mode: 0644]
client/src/sass/include/_mixins.scss

index 4a66b5d8dd7969f85f9bf4017f478aa8a06b4ba7..4fc36e11ec26a0745a058a7891a241ea13d902cb 100644 (file)
@@ -2,5 +2,5 @@
 @import '_mixins';
 
 .add-button {
-  @include create-button;
+  @include create-button('../../../../assets/images/global/add.svg');
 }
index bcb58eac2a6634559d441199673a5fa7cd12c2e7..56a637a82291f34adc0365da7e6c95fec9914361 100644 (file)
@@ -2,7 +2,7 @@
 @import '_mixins';
 
 .create-button {
-  @include create-button;
+  @include create-button('../../../assets/images/global/add.svg');
 }
 
 /deep/ .action-button {
diff --git a/client/src/assets/images/admin/add.svg b/client/src/assets/images/admin/add.svg
deleted file mode 100644 (file)
index 42b269c..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <defs></defs>
-    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
-        <g id="Artboard-4" transform="translate(-92.000000, -115.000000)">
-            <g id="2" transform="translate(92.000000, 115.000000)">
-                <circle id="Oval-1" stroke="#ffffff" stroke-width="2" cx="12" cy="12" r="10"></circle>
-                <rect id="Rectangle-1" fill="#ffffff" x="11" y="7" width="2" height="10" rx="1"></rect>
-                <rect id="Rectangle-1" fill="#ffffff" x="7" y="11" width="10" height="2" rx="1"></rect>
-            </g>
-        </g>
-    </g>
-</svg>
diff --git a/client/src/assets/images/global/add.svg b/client/src/assets/images/global/add.svg
new file mode 100644 (file)
index 0000000..42b269c
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <defs></defs>
+    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="Artboard-4" transform="translate(-92.000000, -115.000000)">
+            <g id="2" transform="translate(92.000000, 115.000000)">
+                <circle id="Oval-1" stroke="#ffffff" stroke-width="2" cx="12" cy="12" r="10"></circle>
+                <rect id="Rectangle-1" fill="#ffffff" x="11" y="7" width="2" height="10" rx="1"></rect>
+                <rect id="Rectangle-1" fill="#ffffff" x="7" y="11" width="10" height="2" rx="1"></rect>
+            </g>
+        </g>
+    </g>
+</svg>
index dce3430fd12ef79ef69bb1b186069a1e5ff7a74c..748c98afa77ec6d831ccc6b075184203fba04f56 100644 (file)
   }
 }
 
-@mixin create-button {
+@mixin create-button ($imageUrl) {
   @include peertube-button-link;
   @include orange-button;
 
     @include icon(22px);
 
     margin-right: 3px;
-    background-image: url('/assets/images/admin/add.svg');
+    background-image: url($imageUrl);
   }
 }