From 651e15bebc121c4e7bd2766ca2cae725b3741fe2 Mon Sep 17 00:00:00 2001 From: Ian Jones <51156018+ianjon3s@users.noreply.github.com> Date: Wed, 9 Oct 2024 07:41:56 +0100 Subject: [PATCH] fix: Editor graph node link styling (#3782) --- .../src/pages/FlowEditor/floweditor.scss | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/editor.planx.uk/src/pages/FlowEditor/floweditor.scss b/editor.planx.uk/src/pages/FlowEditor/floweditor.scss index dfe02405c3..e610e515d9 100644 --- a/editor.planx.uk/src/pages/FlowEditor/floweditor.scss +++ b/editor.planx.uk/src/pages/FlowEditor/floweditor.scss @@ -50,8 +50,8 @@ $fontMonospace: "Source Code Pro", monospace; margin: 0 auto; width: max-content; - > a:focus, - > a:active { + a:focus, + a:active { outline: 4px solid $focus; outline-offset: 0; } @@ -110,7 +110,7 @@ $fontMonospace: "Source Code Pro", monospace; } } - &.wasVisited > a { + &.wasVisited a { span { opacity: 1; } @@ -118,7 +118,7 @@ $fontMonospace: "Source Code Pro", monospace; outline-offset: 0; } - &.isClone > a { + &.isClone a { margin-top: 3px; ::before { content: ""; @@ -137,8 +137,7 @@ $fontMonospace: "Source Code Pro", monospace; border: $nodeBorderWidth dashed red; } - & > div > a, - & > a { + & a { position: relative; display: flex; align-items: flex-start; @@ -404,13 +403,13 @@ $fontMonospace: "Source Code Pro", monospace; align-items: center; &.question.isNote { - > a { + a { background: #fffdb0 !important; position: relative; padding-right: 20px; } // Triangle shapes to simulate paper fold on sticky note - &:not(.isClone) > a { + &:not(.isClone) a { &::before { content: ""; position: absolute;