From 3c582bca5ce14d005826178baff77b497153a468 Mon Sep 17 00:00:00 2001 From: mb Date: Thu, 23 Jul 2020 14:18:01 +0200 Subject: [PATCH 1/2] added missing css logo svg fill color changed to defaul, also added autofocus to search input. This closes #60 --- .../semantic-ui/less/invenio_theme_tugraz/header.less | 2 +- .../semantic-ui/less/invenio_theme_tugraz/overrides.less | 8 ++++++++ .../semantic-ui/less/invenio_theme_tugraz/theme.less | 1 + .../templates/invenio_theme_tugraz/index.html | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less index 0047b54..75bed48 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/header.less @@ -10,7 +10,7 @@ width: 18px; height: 18px; vertical-align: top; - fill: red; + fill: #e4154b; } /*****logo section******/ diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less index ee9166f..c586a43 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less @@ -49,3 +49,11 @@ forcing the font changes body { font-family: "Source Sans Pro"; } + +/*** +search.button +**/ + +.ui.search.button{ + background-color:#e4154b; +} diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less index db2edaa..1fcb52a 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less @@ -6,6 +6,7 @@ * under the terms of the MIT License; see LICENSE file for more details. */ +@import "variables"; @import "header"; @import "footer"; @import "overrides"; diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index 8350109..9b75c83 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -22,7 +22,7 @@
- +
From 96b53493e7b2b1500c232ee5bf91eada572275fc Mon Sep 17 00:00:00 2001 From: mb Date: Fri, 24 Jul 2020 11:56:29 +0200 Subject: [PATCH 2/2] header page modification changed the name to Repository. This closes #61. --- invenio_theme_tugraz/config.py | 2 +- .../templates/invenio_theme_tugraz/header.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/invenio_theme_tugraz/config.py b/invenio_theme_tugraz/config.py index eb6e51c..b8b6c6a 100644 --- a/invenio_theme_tugraz/config.py +++ b/invenio_theme_tugraz/config.py @@ -43,7 +43,7 @@ THEME_HEADER_LOGIN_TEMPLATE = 'invenio_theme_tugraz/accounts/header_login.html' THEME_FOOTER_TEMPLATE = 'invenio_theme_tugraz/footer.html' """footer template""" -THEME_FRONTPAGE_TITLE = _('Frontpage Title') +THEME_FRONTPAGE_TITLE = _('TU Graz Repository') """Frontpage title.""" THEME_SITENAME = _('Repository') diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html index a64c81c..853d200 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html @@ -46,13 +46,13 @@
+
- {#
onclick="toggleVisibility('heading');"> #} {%- block navbar_right %} {%- include config.THEME_HEADER_LOGIN_TEMPLATE %} {%- endblock navbar_right %}
-
+ @@ -62,7 +62,7 @@
TU Graz -
{{_ ("Research Data Management")}} +
{{_ ("Repository")}}