From 3fc324a6b9c5148835a7fd4c29ebf35bea3665c0 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 27 Jul 2020 10:47:22 +0000 Subject: [PATCH] [Library | Trunk]: Add copy and external icons. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/assets@59168 d315682c-612b-4755-9ff5-7f18f6832af3 --- external-link-white.svg | 15 --------------- icons/copy.svg | 6 ++++++ icons/external.svg | 8 ++++++++ library-css/labels.scss | 4 ++-- library-css/landing-utils.scss | 17 ++++++++--------- library-css/utils.scss | 30 +++++++++++++++++++++--------- 6 files changed, 45 insertions(+), 35 deletions(-) delete mode 100644 external-link-white.svg create mode 100644 icons/copy.svg create mode 100644 icons/external.svg diff --git a/external-link-white.svg b/external-link-white.svg deleted file mode 100644 index e5bb747..0000000 --- a/external-link-white.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - diff --git a/icons/copy.svg b/icons/copy.svg new file mode 100644 index 0000000..90b4998 --- /dev/null +++ b/icons/copy.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/icons/external.svg b/icons/external.svg new file mode 100644 index 0000000..603b27a --- /dev/null +++ b/icons/external.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/library-css/labels.scss b/library-css/labels.scss index 5ec7567..8e5ef48 100644 --- a/library-css/labels.scss +++ b/library-css/labels.scss @@ -18,13 +18,13 @@ .label-green { background: #8ad15e; - border-color: #8ad15e; + border: 1px solid #8ad15e !important; color: #fff; } .label-open { background: #fff; - border-color: #8ad15e; + border: 1px solid #8ad15e !important; color: #8ad15e; } diff --git a/library-css/landing-utils.scss b/library-css/landing-utils.scss index 9a35f17..5c3b621 100644 --- a/library-css/landing-utils.scss +++ b/library-css/landing-utils.scss @@ -58,29 +58,28 @@ input[name="code"] { } /* Landing Download from section*/ -.landing .download-from > a { +.landing .download-from > * { padding: 10px; color: #A4A4A4; border-bottom: 1px solid rgba(0, 0, 0, 0.09); } -.landing .download-from > a:last-child { +.landing .download-from > *:last-child { border-bottom: none; } -.landing .download-from > a:hover { - background-color: #F0F0F0; - border-radius: 4px; -} - -.landing .download-from > a .title { +.landing .download-from .title { color: black; word-wrap: break-word; font-weight: 700; text-decoration: underline; } -.landing .download-from > a:hover .title { +.landing .download-from a { + color: #A4A4A4; +} + +.landing .download-from a:hover { color: #578ede; } diff --git a/library-css/utils.scss b/library-css/utils.scss index 6a84b5a..52dfaa0 100644 --- a/library-css/utils.scss +++ b/library-css/utils.scss @@ -27,15 +27,18 @@ .custom-icon-button { border-radius: 50%; - background-color: #2D72D6; - color: white; padding: 9px 10px; line-height: unset; - border: 1px solid #2D72D6; } .custom-external-white { - background: rgba(0, 0, 0, 0) url("/assets/common-assets/external-link-white.svg") no-repeat scroll left 10%; + background: rgba(0, 0, 0, 0) url("/assets/common-assets/icons/external.svg") no-repeat scroll left 10%; + background-size: cover; + padding-left: 16px; +} + +.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; } @@ -74,9 +77,18 @@ h2 .custom-external { border: 0; } -.copy { - border-radius: 0; - background-color: #2D72D6; - border: 1px solid #2D72D6; - color: white; + +.orcid > input[name="code"] { + border-radius: 2px 0 0 2px; + border: 1px solid #ededed; + border-right: none; +} + +.orcid > .uk-button.copy { + border-radius: 0 2px 2px 0; + border-left: none; +} + +.uk-button.copy { + border-radius: 0; }