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 a6ac5f4..eaecf9a 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 @@ -54,11 +54,6 @@ vertical-align: top; } -a { - color: inherit; - text-decoration: none; - transition: background-color 0.15s ease 0s, color 0.15s ease 0s; -} /*****END logo section******/ .short-menu { 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 224af01..2bfb325 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 @@ -24,3 +24,11 @@ //@import "../invenio_app_rdm/theme"; //@import "variables"; + +// used in various templates +// add no hyperlink decoration +.no-decoration{ + color: inherit; + text-decoration: none; + transition: background-color 0.15s ease 0s, color 0.15s ease 0s; +} 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 3bda648..512a0af 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 @@ -4,14 +4,14 @@ {%- if config.SECURITY_REGISTERABLE %}
{%- endif %} @@ -21,12 +21,12 @@ {%- if config.USERPROFILES %} diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html index bf3cfd5..7080684 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html @@ -19,7 +19,7 @@- + {{ r.metadata.description | striptags | truncate(300) }}
diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html index 19275d6..4248fa2 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html @@ -16,13 +16,13 @@ {%- for l in current_i18n.get_locales() %} {%- if current_i18n.language != l.language %} {{ l.get_display_name().upper() [0:2]}} + href="{{ url_for('invenio_i18n.set_lang', lang_code=l.language) }}" class="no-decoration">{{ l.get_display_name().upper() [0:2]}} {%- endif %} {%- endfor %}