diff --git a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js index f780dc6..5b37327 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js +++ b/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js @@ -1,7 +1,12 @@ import $ from 'jquery'; import 'semantic-ui-css'; +// called on document ready $(function() { + importZammadScript(); +}); + +function importZammadScript() { let scriptNode = document.createElement("hidden"); //needed for zammad script scriptNode.id = "zammad_form_script"; scriptNode.src = "https://ub-support.tugraz.at/assets/form/form.js"; @@ -16,7 +21,8 @@ $(function() { modal: true }); }); -}); +} + // used for sticky test instance notification $('.ui.sticky.test-instance') 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 c7c145c..bedd226 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 @@ -25,14 +25,24 @@ padding-top: 15px; padding-bottom: 15px; font-size: 16px; - + a { text-decoration: none; color: @footerGrey; - - &:hover, &:focus { + + // :focus-visible activates on keyboard only + &:hover, &:focus:focus-visible { color: @primaryLink; background-color: @primaryLinkHoverBackground; + + i.icon.download { + color: @tugrazRed; + } + } + + // remove blue focus outline if clicked with mouse + &:focus:not(:focus-visible) { + outline-style: none; } } } 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 f8d51a7..6a3c817 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 @@ -152,8 +152,3 @@ pre { } } - -a:hover i.icon.download, -i.icon.download:hover { - color: @tugrazRed; -} 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 f560f41..84ed750 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 @@ -25,12 +25,10 @@
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} - + + {% trans type='TUGRAZ' %} Log in with {{ type }}{% endtrans %} +