From 3c616bedd5432f5de3a378574c573ff1b206b88f Mon Sep 17 00:00:00 2001 From: David Eckhard Date: Mon, 17 May 2021 13:14:56 +0200 Subject: [PATCH] ui: adapt color badges --- .../less/invenio_theme_tugraz/frontpage.less | 5 ++++- .../semantic-ui/less/invenio_theme_tugraz/search.less | 10 ++++++++++ .../templates/invenio_theme_tugraz/index.html | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less index 2fc31d6..ede4b98 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less @@ -20,9 +20,12 @@ h2 { margin-inline-end: 0px; } + +.ui.label.blue, .record-version { - color: @greyDark; + color: @greyDark !important; background-color: @recordVersionBackground !important; + border-color: @recordVersionBackground !important; } .random-records-frontpage article { diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/search.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/search.less index cf8026b..4513fd7 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/search.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/search.less @@ -26,3 +26,13 @@ .identifiers { display: inline; } + +.ui.items > .item .extra.labels-actions { + float: right; + width: auto; + + // remove action buttons from search results + .ui.small.compact.right.floated.button { + display: none; + } +} diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index 0a5e249..e9c09e2 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -63,11 +63,11 @@ - + {{r.metadata.resource_type | cast_to_dict | vocabulary_title('resource_type') }} - + {% if r.ui.access_status.icon %}{% endif %} {{ r.ui.access_status.title_l10n }}