From 4b982127716e0fcf1685c7d8033ca710dd68a55f Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 29 Jul 2020 13:55:16 +0000 Subject: [PATCH] [Library | Assets]: Fix custom icons git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/assets@59192 d315682c-612b-4755-9ff5-7f18f6832af3 --- library-css/utils.scss | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/library-css/utils.scss b/library-css/utils.scss index 52dfaa0..3b5b545 100644 --- a/library-css/utils.scss +++ b/library-css/utils.scss @@ -15,14 +15,15 @@ } .custom-icon { - line-height: unset; + display: inline-block; + width: 16px; + height: 18px; + vertical-align: middle; } .custom-external { - background: rgba(0, 0, 0, 0) url("/assets/common-assets/external-link.svg") no-repeat scroll left 10%; - min-height: 15px; - background-size: 15px 15px; - padding-left: 16px; + background: url("/assets/common-assets/external-link.svg") no-repeat; + background-size: contain; } .custom-icon-button { @@ -32,15 +33,13 @@ } .custom-external-white { - background: rgba(0, 0, 0, 0) url("/assets/common-assets/icons/external.svg") no-repeat scroll left 10%; - background-size: cover; - padding-left: 16px; + background: url("/assets/common-assets/icons/external.svg") no-repeat; + background-size: contain; } .custom-copy-white { - background: rgba(0, 0, 0, 0) url("/assets/common-assets/icons/copy.svg") no-repeat scroll left 10%; - background-size: cover; - padding-left: 16px; + background: url("/assets/common-assets/icons/copy.svg") no-repeat; + background-size: contain; } h2 .custom-external {