mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-23 13:11:58 +00:00
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:
@@ -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;
|
||||||
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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 %}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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 %}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user