From a827e66ba193b453e65804b8a6ee46b330ecb653 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 14 Mar 2018 00:15:51 +0100 Subject: [PATCH] [css.prof|ue.view] managed toggle icon with 2 differente sprites --- public_html/asset/svg/admin-disabled.svg | 45 ++++++++++++++++++++++++ public_html/asset/svg/bell-disabled.svg | 44 +++++++++++++++++++++++ public_html/asset/svg/bell.svg | 31 ++++++++-------- webpack/scss/container.scss | 8 ++--- 4 files changed, 109 insertions(+), 19 deletions(-) create mode 100644 public_html/asset/svg/admin-disabled.svg create mode 100644 public_html/asset/svg/bell-disabled.svg diff --git a/public_html/asset/svg/admin-disabled.svg b/public_html/asset/svg/admin-disabled.svg new file mode 100644 index 0000000..026ec56 --- /dev/null +++ b/public_html/asset/svg/admin-disabled.svg @@ -0,0 +1,45 @@ + +image/svg+xml \ No newline at end of file diff --git a/public_html/asset/svg/bell-disabled.svg b/public_html/asset/svg/bell-disabled.svg new file mode 100644 index 0000000..d2d29a5 --- /dev/null +++ b/public_html/asset/svg/bell-disabled.svg @@ -0,0 +1,44 @@ + +image/svg+xml \ No newline at end of file diff --git a/public_html/asset/svg/bell.svg b/public_html/asset/svg/bell.svg index 822f455..e074312 100644 --- a/public_html/asset/svg/bell.svg +++ b/public_html/asset/svg/bell.svg @@ -7,19 +7,19 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - enable-background="new 0 0 141.732 141.732" - height="141.732px" - id="Livello_1" + enable-background="new 0 0 49 49" + height="49px" + id="Layer_1" version="1.1" - viewBox="0 0 141.732 141.732" - width="141.732px" + viewBox="0 0 49 49" + width="49px" xml:space="preserve" sodipodi:docname="bell.svg" inkscape:version="0.92.2 5c3e80d, 2017-08-06">image/svg+xml \ No newline at end of file + inkscape:connector-curvature="0" /> \ No newline at end of file diff --git a/webpack/scss/container.scss b/webpack/scss/container.scss index ab09a9d..f68b919 100644 --- a/webpack/scss/container.scss +++ b/webpack/scss/container.scss @@ -284,20 +284,20 @@ /* (2.3) ADMIN switch */ &.admin[data-admin]{ - background-image: url('/asset/svg/admin.svg@aaaaaa'); + background-image: url('/asset/svg/admin-disabled.svg@aaaaaa'); z-index: 105; - &:hover{ background-image: url('/asset/svg/admin.svg@555555'); } + &:hover{ background-image: url('/asset/svg/admin-disabled.svg@555555'); } &[data-active='1']{ background-image: url('/asset/svg/admin.svg@f4bd18'); } &[data-active='1']:hover{ background-image: url('/asset/svg/admin.svg@f4a118'); } } /* (2.3) DISABLED switch */ &.enabled[data-enabled]{ - background-image: url('/asset/svg/bell.svg@aaaaaa'); + background-image: url('/asset/svg/bell-disabled.svg@aaaaaa'); z-index: 105; - &:hover{ background-image: url('/asset/svg/bell.svg@555555'); } + &:hover{ background-image: url('/asset/svg/bell-disabled.svg@555555'); } &[data-active='1']{ background-image: url('/asset/svg/bell.svg@f4bd18'); } &[data-active='1']:hover{ background-image: url('/asset/svg/bell.svg@f4a118'); } }