From 05c57d89e78313b8673732d2896fb8fd67bc7f4d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 30 May 2018 00:01:14 +0200 Subject: [PATCH] Tidy nav class HTML --- assets/less/base/base.less | 19 +++++++++++++++++++ source/_partials/nav-item.html.twig | 5 +---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/assets/less/base/base.less b/assets/less/base/base.less index ab7a15e6..0dd05d3e 100644 --- a/assets/less/base/base.less +++ b/assets/less/base/base.less @@ -1,3 +1,22 @@ +a { + color: inherit; + text-decoration: none; + + &:focus, + &:hover { + text-decoration: underline; + } +} + +main a { + text-decoration: underline; + + &:focus, + &:hover { + text-decoration: none; + } +} + h1, h2, h3 { @apply .mb-2; } diff --git a/source/_partials/nav-item.html.twig b/source/_partials/nav-item.html.twig index 546226ae..772311ab 100644 --- a/source/_partials/nav-item.html.twig +++ b/source/_partials/nav-item.html.twig @@ -1,7 +1,4 @@ - + {{- title -}}