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.
This commit is contained in:
Mojib Wali
2020-12-04 10:14:02 +01:00
committed by GitHub
parent 84f963b407
commit bbea43d227
7 changed files with 22 additions and 13 deletions

View File

@@ -48,4 +48,4 @@
} }
.spacer-long{ .spacer-long{
margin-top: 20px; margin-top: 20px;
} }

View File

@@ -39,8 +39,9 @@
.affiliation-text { .affiliation-text {
display: table-cell; display: table-cell;
font-size: 17px; font-size: 12px;
vertical-align: middle; line-height: 17px;
letter-spacing: 2px;
white-space: nowrap; white-space: nowrap;
} }
@@ -248,3 +249,7 @@ svg:not(:root) {
.inline-elements{ .inline-elements{
display: flex; display: flex;
} }
span.home-inline{
white-space: nowrap;
}

View File

@@ -5,14 +5,14 @@
{%- if config.SECURITY_REGISTERABLE %} {%- if config.SECURITY_REGISTERABLE %}
<div class="short-menu-right-button"> <div class="short-menu-right-button">
<a href="{{ url_for('security.register') }}"> <a href="{{ url_for('security.register') }}">
<i class="user plus icon circular"></i> {{_ ("Sign Up")}} {{_ ("Sign up")}}
</a> </a>
</div> </div>
{%- endif %} {%- endif %}
<div class="short-menu-right-button"> <div class="short-menu-right-button">
<a href="{{url_for_security('login', next=request.path)}}" style="text-decoration:none"> <a href="{{url_for_security('login', next=request.path)}}" style="text-decoration:none">
<i class="sign in icon circular"></i> {{_ ("Log in")}} {{_ ("Log in")}}
</a> </a>
</div> </div>
@@ -27,7 +27,7 @@
</div> </div>
<div class="short-menu-right-button"> <div class="short-menu-right-button">
<a class="dropdown-item" href="{{url_for_security('logout')}}"> <a class="dropdown-item" href="{{url_for_security('logout')}}">
<i class="sign out icon circular"></i>{{_('Logout')}} {{_('Sign out')}}
</a> </a>
</div> </div>

View File

@@ -24,11 +24,11 @@
<h3 class="ui login header">{{ _('Log in to Repository') }}</h3> <h3 class="ui login header">{{ _('Log in to Repository') }}</h3>
{%- endblock form_header %} {%- endblock form_header %}
<!--Login with SSO--> <!--Log in with SSO-->
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
<div class="login-page-button"> <div class="login-page-button">
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="inverted tiny image label"> <a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="inverted tiny image label">
{% trans type='TUGRAZ' %} Login 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>
@@ -56,7 +56,7 @@
{%- if security.registerable %} {%- if security.registerable %}
<div class="ui primary segment padded text-muted"> <div class="ui primary segment padded text-muted">
{% trans sitename=config.ACCOUNTS_SITENAME %}New to {{ sitename }}?{% endtrans %} {% trans sitename=config.ACCOUNTS_SITENAME %}New to {{ sitename }}?{% endtrans %}
<a href="{{ url_for_security('register', next=request.args.get('next')) }}">{{ _('Sign Up') }}</a> <a href="{{ url_for_security('register', next=request.args.get('next')) }}">{{ _('Sign up') }}</a>
</div> </div>
{%- endif %} {%- endif %}
{%- endblock registerable %} {%- endblock registerable %}

View File

@@ -77,7 +77,7 @@
<div class="centered row"> <div class="centered row">
<button type="submit" class="ui fluid large submit button"> <button type="submit" class="ui fluid large submit button">
<i class="ui edit outline icon"></i>{{ _('Sign Up') }} <i class="ui edit outline icon"></i>{{ _('Sign up') }}
</button> </button>
</div> </div>
</form> </form>

View File

@@ -19,8 +19,9 @@
<div class="ui container"> <div class="ui container">
<div class="ui grid stackable container"> <div class="ui grid stackable container">
<div class="three column row centered" style="padding-bottom: 0;"> <div class="three column row centered" style="padding-bottom: 0;">
<div class="two wide column main-menu-entry main-menu-entry-svg"> <div class="two wide column main-menu-entry">
<a href="{{url_for('invenio_theme_tugraz.index')}}" title="Home"> <a href="{{url_for('invenio_theme_tugraz.index')}}" title="Home">
<span class="home-inline">
<svg shape-rendering="geometricPrecision" id="int-menu-q-home-icon" <svg shape-rendering="geometricPrecision" id="int-menu-q-home-icon"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg"
version="1.1" xml:space="preserve" height="36.997" width="35.969" version="1.1" xml:space="preserve" height="36.997" width="35.969"
@@ -32,6 +33,7 @@
</polyline> </polyline>
</svg> </svg>
{{_ ("Home")}} {{_ ("Home")}}
</span>
</a> </a>
</div> </div>
{%- for item in current_menu.submenu('main').children|sort(attribute='order') if item.visible recursive %} {%- for item in current_menu.submenu('main').children|sort(attribute='order') if item.visible recursive %}

View File

@@ -62,9 +62,11 @@
</div> </div>
<div class="affiliation-text"> <div class="affiliation-text">
<a title="RDM" href="{{url_for('invenio_theme_tugraz.index')}}"> <a title="RDM" href="{{url_for('invenio_theme_tugraz.index')}}">
TU Graz TU GRAZ
<br> <br>
{{_ ("Repository")}} {{_ ("REPOSITORY")}}
<br>
{{_ ("LIBRARY & ARCHIVES")}}
</a> </a>
</div> </div>
</div> </div>