Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Editor graph node link styling #3782

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions editor.planx.uk/src/pages/FlowEditor/floweditor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -110,15 +110,15 @@ $fontMonospace: "Source Code Pro", monospace;
}
}

&.wasVisited > a {
&.wasVisited a {
span {
opacity: 1;
}
outline: 4px solid #8cc485;
outline-offset: 0;
}

&.isClone > a {
&.isClone a {
margin-top: 3px;
::before {
content: "";
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Loading