From bbea43d22705e1c366bdff8c93b2acdee071ca96 Mon Sep 17 00:00:00 2001 From: Mojib Wali <44528277+mb-wali@users.noreply.github.com> Date: Fri, 4 Dec 2020 10:14:02 +0100 Subject: [PATCH] Refactor header (#116) * bugfix(ui): home text & icon collapse in small screen. * added home text & icon inside span tag. * inline css with nowrap white-space. * refactor(ui): adding the text of 'Library & Archives', This closes #110 * bugfix(format): adding new line a the end of the file. * refactor(ui): changing the text to capital letters, to match the other. * adding extra css for position/style of the text. * style(ui): fixed misspelled. * bugfix(format): adding new line a the end of the file. * modification(ui): from Logout/SignUp to Sign up * modification(ui): changing texts to - Log in, Log out and Sign up removing icons from header. --- .../semantic-ui/less/invenio_theme_tugraz/footer.less | 2 +- .../semantic-ui/less/invenio_theme_tugraz/header.less | 9 +++++++-- .../invenio_theme_tugraz/accounts/header_login.html | 6 +++--- .../invenio_theme_tugraz/accounts/login_user.html | 6 +++--- .../invenio_theme_tugraz/accounts/register_user.html | 2 +- .../templates/invenio_theme_tugraz/header.html | 4 +++- .../templates/invenio_theme_tugraz/navbar.html | 6 ++++-- 7 files changed, 22 insertions(+), 13 deletions(-) diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/footer.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/footer.less index d3ab161..953f178 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/footer.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/footer.less @@ -48,4 +48,4 @@ } .spacer-long{ margin-top: 20px; -} \ No newline at end of file +} 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 2d9c99f..0b1f086 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 @@ -39,8 +39,9 @@ .affiliation-text { display: table-cell; - font-size: 17px; - vertical-align: middle; + font-size: 12px; + line-height: 17px; + letter-spacing: 2px; white-space: nowrap; } @@ -248,3 +249,7 @@ svg:not(:root) { .inline-elements{ display: flex; } + +span.home-inline{ + white-space: nowrap; +} 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 b0ea481..3bda648 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 @@ -5,14 +5,14 @@ {%- if config.SECURITY_REGISTERABLE %}
{%- endif %} @@ -27,7 +27,7 @@ diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html index fb500ed..b6b4187 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html @@ -24,11 +24,11 @@