Skip to content
Snippets Groups Projects
Commit b452f3d4 authored by Uwe Jandt (DESY, HIFIS)'s avatar Uwe Jandt (DESY, HIFIS)
Browse files

Merge branch '5-fix-sizing-of-header-navbar-on-some-screen-sizes' into 'master'

Restructure header navbar to fit elements on all screens

Closes #5

See merge request hifis/hifis.net!9
parents 032785e7 0c969dbb
No related branches found
No related tags found
1 merge request!9Restructure header navbar to fit elements on all screens
...@@ -11,37 +11,26 @@ ...@@ -11,37 +11,26 @@
# original Markdown. # original Markdown.
header: header:
- title: Home
url: /
fontawesome_class: "fas fa-home"
- title: News - title: News
url: blog/ url: blog/
fontawesome_class: "fas fa-rss"
- title: Services - title: Services
url: "/" url: "/"
fontawesome_class: "fas fa-list"
- title: Mission - title: Mission
url: "/" url: "/"
fontawesome_class: "fas fa-bolt"
- title: Roadmap - title: Roadmap
url: "/" url: "/"
fontawesome_class: "fas fa-map-signs"
- title: International - title: International
url: "/" url: "/"
fontawesome_class: "fas fa-globe-europe"
- title: Contact - title: Contact
url: "contact" url: "contact"
fontawesome_class: "fas fa-envelope"
- title: Jobs - title: Jobs
url: "/" url: "/"
fontawesome_class: "fas fa-user"
footer: footer:
- title: Contact - title: Contact
......
...@@ -55,9 +55,11 @@ See also: ...@@ -55,9 +55,11 @@ See also:
{% for entry in site.data.navigation.header %} {% for entry in site.data.navigation.header %}
<a href="{{ entry.url | relative_url }}" class="btn btn-header"> <a href="{{ entry.url | relative_url }}" class="btn btn-header">
<span class="navigation-entry"> <span class="navigation-entry">
{% if entry.fontawesome_class %}
<i class="navigation-icon {{ entry.fontawesome_class }}" <i class="navigation-icon {{ entry.fontawesome_class }}"
title="{{ entry.title }}"> title="{{ entry.title }}">
</i> </i>
{% endif %}
<span class="navigation-text">{{ entry.title }}</span> <span class="navigation-text">{{ entry.title }}</span>
</span> </span>
</a> </a>
......
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
} }
} }
@include medium-is-phone { @include medium-is-tablet-minus {
.header{ .header{
.nav_toggle { .nav_toggle {
display: block; display: block;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment