-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
737dd1f
commit 5e96e98
Showing
35 changed files
with
283 additions
and
611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
::ng-deep :root { | ||
--node-background-color: #ffffff; | ||
--node-border-radius: 2px; | ||
--node-border-color: rgba(60, 60, 67, 0.36); | ||
--node-color: rgba(60, 60, 67, 0.78); | ||
--node-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06); | ||
|
||
--connection-color: rgba(60, 60, 67, 0.78); | ||
--connection-gradient-1: #915930; | ||
--connection-gradient-2: #18794e; | ||
|
||
--outlet-color: #3451b2; | ||
--input-output-color: rgba(60, 60, 67, 0.78); | ||
|
||
--minimap-background-color: #ffffff; | ||
--minimap-node-color: rgba(60, 60, 67); | ||
--minimap-node-selected-color: #3451b2; | ||
--minimap-view-color: rgba(100, 108, 255, 0.14); | ||
|
||
&.dark { | ||
--node-background-color: #000000; | ||
--node-border-radius: 2px; | ||
--node-border-color: rgba(235, 235, 245, 0.38); | ||
--node-color: rgba(235, 235, 245, 0.6); | ||
--node-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06); | ||
|
||
--connection-color: rgba(235, 235, 245, 0.6); | ||
--connection-gradient-1: #f9b44e; | ||
--connection-gradient-2: #3dd68c; | ||
|
||
--outlet-color: #a8b1ff; | ||
--input-output-color: rgba(235, 235, 245, 0.6); | ||
|
||
--minimap-background-color: #1b1b1f; | ||
--minimap-node-color: rgba(255, 255, 245, 0.86); | ||
--minimap-node-selected-color: #a8b1ff; | ||
--minimap-view-color: rgba(100, 108, 255, 0.16); | ||
} | ||
} | ||
|
||
@mixin connection { | ||
.f-connection { | ||
.f-connection-drag-handle { | ||
fill: transparent; | ||
} | ||
|
||
.f-connection-selection { | ||
fill: none; | ||
} | ||
|
||
.f-connection-path { | ||
fill: none; | ||
stroke: var(--connection-color); | ||
stroke-width: 2; | ||
} | ||
|
||
.f-connection-text, .f-connection-center { | ||
fill: var(--connection-color); | ||
color: var(--connection-color); | ||
} | ||
} | ||
} | ||
|
||
@mixin background { | ||
.f-background { | ||
line { | ||
stroke: rgba(0, 0, 0, 0.6); | ||
} | ||
} | ||
} | ||
|
||
@mixin line-alignment { | ||
.f-line-alignment { | ||
.f-line { | ||
background-color: var(--connection-color); | ||
} | ||
} | ||
} | ||
|
||
@mixin minimap { | ||
.f-minimap { | ||
background-color: var(--minimap-background-color); | ||
bottom: 16px; | ||
right: 16px; | ||
width: 120px; | ||
height: 120px; | ||
|
||
.f-minimap-node { | ||
fill: var(--minimap-node-color); | ||
|
||
&.f-selected { | ||
fill: var(--minimap-node-selected-color); | ||
} | ||
} | ||
|
||
.f-minimap-view { | ||
fill: var(--minimap-view-color) | ||
} | ||
} | ||
} | ||
|
||
@mixin node { | ||
width: 100px; | ||
padding: 4px; | ||
color: var(--node-color); | ||
text-align: center; | ||
background: var(--node-background-color); | ||
border-radius: var(--node-border-radius); | ||
border: 0.2px solid var(--node-border-color); | ||
cursor: move; | ||
|
||
&:active { | ||
box-shadow: var(--node-shadow); | ||
} | ||
} | ||
|
||
|
||
@mixin toolbar { | ||
display: flex; | ||
justify-content: flex-end; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
gap: 8px; | ||
position: absolute; | ||
right: 16px; | ||
top: 16px; | ||
|
||
button { | ||
font-weight: 500; | ||
border: none; | ||
border-radius: 2px; | ||
padding: 4px 8px; | ||
line-height: normal; | ||
} | ||
} |
7 changes: 3 additions & 4 deletions
7
projects/f-examples/background-example/background-example.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
::ng-deep .f-background { | ||
@use "../flow-common"; | ||
|
||
line { | ||
stroke: rgba(0, 0, 0, 0.6); | ||
} | ||
::ng-deep background-example { | ||
@include flow-common.background; | ||
} |
35 changes: 4 additions & 31 deletions
35
projects/f-examples/connectable-side/connectable-side.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,10 @@ | ||
:host ::ng-deep { | ||
@use "../flow-common"; | ||
|
||
.f-connection { | ||
.f-connection-drag-handle { | ||
fill: transparent; | ||
} | ||
|
||
.f-connection-selection { | ||
fill: none; | ||
} | ||
|
||
.f-connection-path { | ||
fill: none; | ||
stroke: #585858; | ||
stroke-width: 2; | ||
} | ||
} | ||
::ng-deep connectable-side { | ||
@include flow-common.connection; | ||
} | ||
|
||
.f-node { | ||
width: 100px; | ||
padding: 12px; | ||
color: #585858; | ||
cursor: move; | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
background: #FCFDFE; | ||
border-radius: 4px; | ||
box-shadow: 0 0 1px 1px #E4E3E6; | ||
|
||
&:active { | ||
box-shadow: 0 0 2px 2px #E4E3E6; | ||
} | ||
@include flow-common.node; | ||
} | ||
|
40 changes: 4 additions & 36 deletions
40
projects/f-examples/connection-behaviour/connection-behaviour.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,11 @@ | ||
@use "../flow-common"; | ||
|
||
:host ::ng-deep { | ||
|
||
.f-connection { | ||
.f-connection-drag-handle { | ||
fill: transparent; | ||
} | ||
|
||
.f-connection-selection { | ||
fill: none; | ||
} | ||
|
||
.f-connection-path { | ||
fill: none; | ||
stroke: #585858; | ||
stroke-width: 2; | ||
} | ||
|
||
.f-connection-text { | ||
fill: #585858; | ||
} | ||
} | ||
::ng-deep connection-behaviour { | ||
@include flow-common.connection; | ||
} | ||
|
||
.f-node { | ||
@include flow-common.node; | ||
opacity: 0.5; | ||
width: 100px; | ||
padding: 12px; | ||
color: #585858; | ||
cursor: move; | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
background: #FCFDFE; | ||
border-radius: 4px; | ||
box-shadow: 0 0 1px 1px #E4E3E6; | ||
|
||
&:active { | ||
box-shadow: 0 0 2px 2px #E4E3E6; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.