From a48184c67d3fd7b2beeaebc1a92dd72a560c4de3 Mon Sep 17 00:00:00 2001 From: Giulio Andreini Date: Tue, 19 Nov 2024 11:46:06 +0100 Subject: [PATCH] Testing a couple of styles. --- .../src/components/MainHeader/MainHeader.vue | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/packages/editor-ui/src/components/MainHeader/MainHeader.vue b/packages/editor-ui/src/components/MainHeader/MainHeader.vue index 280eed9d36..607999a579 100644 --- a/packages/editor-ui/src/components/MainHeader/MainHeader.vue +++ b/packages/editor-ui/src/components/MainHeader/MainHeader.vue @@ -197,6 +197,9 @@ async function navigateToExecutionsView(openInNewTab: boolean) { > Star +
+ +
@@ -237,5 +240,61 @@ async function navigateToExecutionsView(openInNewTab: boolean) { background-color: var(--color-background-xlight); border-bottom: var(--border-width-base) var(--border-style-base) var(--color-foreground-base); border-left: var(--border-width-base) var(--border-style-base) var(--color-foreground-base); + + /* // Style 1 + &:hover { + .github-button__close { + display: block; + } + } + + &__close { + position: absolute; + top: 3px; + right: 3px; + display: none; + cursor: pointer; + // color: white; + // background-color: red; + + .n8n-text { + font-size: var(--font-size-2xs); + } + + &:hover .n8n-text { + color: var(--color-primary); + } + } */ + + // Style 2 + &:hover { + .github-button__close { + display: block; + } + } + + &__close { + position: absolute; + top: 11px; + right: 11px; + display: none; + cursor: pointer; + + .n8n-text { + display: flex; + justify-items: center; + align-items: center; + width: 14px; + height: 14px; + color: white; + font-size: var(--font-size-3xs); + background-color: var(--color-foreground-xdark); + border-radius: 7px; + } + + &:hover .n8n-text { + background-color: var(--color-primary); + } + } }