From f5965a788ffbbdfb9ca6326b2695fc12b5c3d3b8 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 24 Oct 2021 14:32:41 +0100 Subject: [PATCH] :sparkles: Adds edit title button next to page title --- src/components/PageStrcture/PageTitle.vue | 52 +++++++++++++++++++++-- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/src/components/PageStrcture/PageTitle.vue b/src/components/PageStrcture/PageTitle.vue index 98d75212..26c7ccef 100644 --- a/src/components/PageStrcture/PageTitle.vue +++ b/src/components/PageStrcture/PageTitle.vue @@ -1,14 +1,23 @@ @@ -28,6 +57,7 @@ export default { flex-direction: row; align-items: center; text-decoration: none; + position: relative; h1 { color: var(--heading-text-color); font-size: 2.5rem; @@ -49,5 +79,21 @@ export default { text-align: center; padding: 0.25rem 0; } + &[disabled] { + cursor: default; + } + svg.edit-icon { + width: 1rem; + height: 1rem; + right: 1rem; + top: 0.5rem; + padding: 0.25rem; + margin: 0.25rem; + cursor: pointer; + border: 1px solid var(--background-darker); + border-radius: var(--curve-factor); + path { fill: var(--primary); } + &:hover { border: 1px solid var(--primary); } + } }