mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
fix: blur link on click, clickable login with TUG button
closes #184 #183
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import 'semantic-ui-css';
|
import 'semantic-ui-css';
|
||||||
|
|
||||||
|
// called on document ready
|
||||||
$(function() {
|
$(function() {
|
||||||
|
importZammadScript();
|
||||||
|
});
|
||||||
|
|
||||||
|
function importZammadScript() {
|
||||||
let scriptNode = document.createElement("hidden"); //needed for zammad script
|
let scriptNode = document.createElement("hidden"); //needed for zammad script
|
||||||
scriptNode.id = "zammad_form_script";
|
scriptNode.id = "zammad_form_script";
|
||||||
scriptNode.src = "https://ub-support.tugraz.at/assets/form/form.js";
|
scriptNode.src = "https://ub-support.tugraz.at/assets/form/form.js";
|
||||||
@@ -16,7 +21,8 @@ $(function() {
|
|||||||
modal: true
|
modal: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
|
|
||||||
|
|
||||||
// used for sticky test instance notification
|
// used for sticky test instance notification
|
||||||
$('.ui.sticky.test-instance')
|
$('.ui.sticky.test-instance')
|
||||||
|
|||||||
@@ -25,14 +25,24 @@
|
|||||||
padding-top: 15px;
|
padding-top: 15px;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: @footerGrey;
|
color: @footerGrey;
|
||||||
|
|
||||||
&:hover, &:focus {
|
// :focus-visible activates on keyboard only
|
||||||
|
&:hover, &:focus:focus-visible {
|
||||||
color: @primaryLink;
|
color: @primaryLink;
|
||||||
background-color: @primaryLinkHoverBackground;
|
background-color: @primaryLinkHoverBackground;
|
||||||
|
|
||||||
|
i.icon.download {
|
||||||
|
color: @tugrazRed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// remove blue focus outline if clicked with mouse
|
||||||
|
&:focus:not(:focus-visible) {
|
||||||
|
outline-style: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,8 +152,3 @@ pre {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover i.icon.download,
|
|
||||||
i.icon.download:hover {
|
|
||||||
color: @tugrazRed;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -25,12 +25,10 @@
|
|||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<!--Log in with SSO-->
|
<!--Log in with SSO-->
|
||||||
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
||||||
<div class="login-page-button ui fluid large button">
|
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="login-page-button ui fluid large button">
|
||||||
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="inverted tiny image label">
|
{% trans type='TUGRAZ' %} Log in with {{ type }}{% endtrans %}
|
||||||
{% trans type='TUGRAZ' %} Log in with {{ type }}{% endtrans %}
|
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
||||||
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
</a>
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="spacer-long"></div>
|
<div class="spacer-long"></div>
|
||||||
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
@@ -74,4 +72,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock page_body %}
|
{% endblock page_body %}
|
||||||
|
|||||||
@@ -46,11 +46,10 @@
|
|||||||
<!--Sigup with SSO-->
|
<!--Sigup with SSO-->
|
||||||
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<div class="login-page-button ui fluid large button">
|
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="login-page-button ui fluid large button">
|
||||||
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="inverted tiny image label">
|
<span style="font-size: 18px;">{{ _('Sign up with TUGRAZ ') }}</span>
|
||||||
<span style="font-size: 18px;">{{ _('Sign up with TUGRAZ ') }}</span>
|
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
||||||
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
</a>
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
@@ -91,4 +90,4 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% endblock page_body %}
|
{% endblock page_body %}
|
||||||
|
|||||||
Reference in New Issue
Block a user