Update navigation styling
This commit is contained in:
parent
2d8bab79a9
commit
b1ef0534b5
|
@ -1,24 +1,26 @@
|
||||||
<div class="navbar border-bottom border-b border-grey-lighter mb-6" role="banner">
|
<div class="navbar border-bottom border-b border-grey-light mb-6" role="banner">
|
||||||
<header class="container mx-auto px-4">
|
<header class="container mx-auto px-4">
|
||||||
<div class="sm:flex">
|
<div class="md:flex">
|
||||||
<div class="w-full sm:w-1/3 lg:w-1/4 flex items-center">
|
<div class="w-full md:w-1/3 lg:w-1/4 flex items-center">
|
||||||
<div class="w-3/4 py-5">
|
<div class="w-3/4 py-5">
|
||||||
<a href="/" title="Home">
|
<a href="/" title="Home">
|
||||||
{{ site.title }}
|
{{ site.title }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="w-1/4 text-right sm:hidden">
|
<div class="w-1/4 text-right md:hidden">
|
||||||
<button type="button" class="nav-toggle appearance-none">
|
<button type="button" class="nav-toggle appearance-none">
|
||||||
<svg class="fill-current text-grey-dark w-6 h-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.4 9H3.6c-.552 0-.6.447-.6 1 0 .553.048 1 .6 1h12.8c.552 0 .6-.447.6-1 0-.553-.048-1-.6-1zm0 4H3.6c-.552 0-.6.447-.6 1 0 .553.048 1 .6 1h12.8c.552 0 .6-.447.6-1 0-.553-.048-1-.6-1zM3.6 7h12.8c.552 0 .6-.447.6-1 0-.553-.048-1-.6-1H3.6c-.552 0-.6.447-.6 1 0 .553.048 1 .6 1z"/></svg>
|
<svg class="fill-current text-grey-dark w-6 h-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.4 9H3.6c-.552 0-.6.447-.6 1 0 .553.048 1 .6 1h12.8c.552 0 .6-.447.6-1 0-.553-.048-1-.6-1zm0 4H3.6c-.552 0-.6.447-.6 1 0 .553.048 1 .6 1h12.8c.552 0 .6-.447.6-1 0-.553-.048-1-.6-1zM3.6 7h12.8c.552 0 .6-.447.6-1 0-.553-.048-1-.6-1H3.6c-.552 0-.6.447-.6 1 0 .553.048 1 .6 1z"/></svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="hidden w-full md:w-2/3 lg:w-3/4 sm:flex sm:flex-wrap sm:justify-end" role="navigation">
|
<nav class="hidden w-full md:w-2/3 lg:w-3/4 md:flex md:flex-wrap md:justify-end" role="navigation">
|
||||||
{% for link in site.navigation %}
|
{% for link in site.navigation %}
|
||||||
<a href="{{ link.href }}" class="flex items-center -mx-4 p-4 sm:border-b-3 sm:border-transparent sm:ml-4 sm:mr-0 sm:p-0 {{ loop.first ? 'border-t border-grey-lighter sm:border-t-0 sm:border-transparent' }} {{ page.url matches '#' ~ link.pattern ~ '#' ? 'sm:bg-transparent sm:border-blue' }}">
|
<a href="{{ link.href }}" class="-mx-4 p-4 md:border-b-2 md:border-transparent md:ml-4 md:mr-0 md:p-0 {{ loop.first ? 'border-t border-grey-lighter md:border-t-0 md:border-transparent' }} {{ page.url matches '#' ~ link.pattern ~ '#' ? 'md:bg-transparent md:border-blue' }}">
|
||||||
{{ link.title }}
|
<span class="flex items-center h-full">
|
||||||
|
{{- link.title -}}
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html class="no-js" lang="en-GB">
|
<html class="no-js" lang="en-GB">
|
||||||
{% include 'head.html.twig' %}
|
{% include 'head.html.twig' %}
|
||||||
<body class="text-grey-darkest text-sm leading-normal border-t-3 border-blue">
|
<body class="text-grey-darkest text-sm leading-normal">
|
||||||
{% include 'nav.html.twig' %}
|
{% include 'nav.html.twig' %}
|
||||||
|
|
||||||
<div class="container mx-auto px-4">
|
<div class="container mx-auto px-4">
|
||||||
|
|
Reference in a new issue