From 695237b258b9d31269f047248f2b99af86f0d161 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 11 Jun 2018 10:05:42 +0200 Subject: Fix add icon path --- .../src/app/+admin/users/user-list/user-list.component.scss | 2 +- .../my-account-video-channels.component.scss | 2 +- client/src/assets/images/admin/add.svg | 13 ------------- client/src/assets/images/global/add.svg | 13 +++++++++++++ client/src/sass/include/_mixins.scss | 4 ++-- 5 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 client/src/assets/images/admin/add.svg create mode 100644 client/src/assets/images/global/add.svg diff --git a/client/src/app/+admin/users/user-list/user-list.component.scss b/client/src/app/+admin/users/user-list/user-list.component.scss index 4a66b5d8d..4fc36e11e 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.scss +++ b/client/src/app/+admin/users/user-list/user-list.component.scss @@ -2,5 +2,5 @@ @import '_mixins'; .add-button { - @include create-button; + @include create-button('../../../../assets/images/global/add.svg'); } diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss index bcb58eac2..56a637a82 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss @@ -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 index 42b269c43..000000000 --- a/client/src/assets/images/admin/add.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/client/src/assets/images/global/add.svg b/client/src/assets/images/global/add.svg new file mode 100644 index 000000000..42b269c43 --- /dev/null +++ b/client/src/assets/images/global/add.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index dce3430fd..748c98afa 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -400,7 +400,7 @@ } } -@mixin create-button { +@mixin create-button ($imageUrl) { @include peertube-button-link; @include orange-button; @@ -408,6 +408,6 @@ @include icon(22px); margin-right: 3px; - background-image: url('/assets/images/admin/add.svg'); + background-image: url($imageUrl); } } -- cgit v1.2.3