From c89f32eeab8558e23b5ac89e24b471e4f3d5735a Mon Sep 17 00:00:00 2001 From: lqdev Date: Sun, 3 Mar 2024 21:43:01 +0100 Subject: [PATCH] make the page title a clickable link --- static/css/main.css | 15 +++++++++++++++ template/components/_nav.hbs | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/static/css/main.css b/static/css/main.css index 46047ff..b576f4a 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -444,6 +444,21 @@ h1.page-title { margin-bottom: 0; margin-left: 32px; font-size: 1.25rem; + + & a { + color: var(--text-color); + text-decoration: none; + + &:hover { + text-decoration: underline; + } + } +} + +@media (hover: none) { + h1.page-title a { + text-decoration: underline; + } } /* Style the `new` link on the homepage */ diff --git a/template/components/_nav.hbs b/template/components/_nav.hbs index 3518db2..d71b214 100644 --- a/template/components/_nav.hbs +++ b/template/components/_nav.hbs @@ -15,7 +15,7 @@ {{/if}} {{#if (and (ne page.title config.user.title) (ne page.title page.tree_path))}} -

{{ page.title }}

+

{{ page.title }}

{{/if}}