From 92acf24852e34c9bc192c28e127fafcea0c43a63 Mon Sep 17 00:00:00 2001 From: Nikita Lvov Date: Mon, 6 Jul 2020 10:54:54 +0200 Subject: [PATCH] fixing the length of menu underline; fixing the padding for the menu elements; adding the sign up button on the main page; this closes #37 --- .../semantic-ui/less/invenio_theme_tugraz/header.less | 10 +++++++++- .../invenio_theme_tugraz/accounts/header_login.html | 5 +++++ .../templates/invenio_theme_tugraz/header.html | 8 ++++---- 3 files changed, 18 insertions(+), 5 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 75583ca..bdf5b8a 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 @@ -201,10 +201,18 @@ svg:not(:root) { text-decoration: none; } +.main-menu-entry-svg { + padding-left: 0 !important; +} + .main-menu-underline { + text-align: -webkit-center; +} + +.main-menu-underline-line { background-color: #e4154b; height: 5px; - width: 100%; + width: 50%; } .affiliation-text a:hover { diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html index dcf6ddb..c3f402a 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html @@ -1,6 +1,11 @@ {%- if config.ACCOUNTS %} {%- if not current_user.is_authenticated %} +
+ + Sign Up + +
diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html index e59e244..9a17b3f 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html @@ -111,9 +111,9 @@
{%- endblock navbar_header %} -
+