mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:41:34 +08:00
Add pin (#6)
* Add pin and minor style fix WIP * Fix default pin graphics * Fix sorting * Min, max nodes are variadic
This commit is contained in:
36
dist/css/ueb-style.css
vendored
36
dist/css/ueb-style.css
vendored
@@ -394,10 +394,11 @@ ueb-node[data-pure-function=true] .ueb-node-name-symbol {
|
||||
}
|
||||
|
||||
.ueb-node-content {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template: min-content 1fr/min-content min-content;
|
||||
justify-content: space-between;
|
||||
padding: 2px 0;
|
||||
font-weight: 100;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ueb-node-style-default .ueb-node-content {
|
||||
@@ -405,15 +406,27 @@ ueb-node[data-pure-function=true] .ueb-node-name-symbol {
|
||||
}
|
||||
|
||||
.ueb-node-has-inputs .ueb-node-inputs {
|
||||
grid-column: 1;
|
||||
grid-row: 1/span 2;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.ueb-node-outputs {
|
||||
margin-left: auto;
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
padding-left: 20px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.ueb-node-variadic {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
justify-self: end;
|
||||
padding: 4px 6px;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ueb-node-developmentonly {
|
||||
margin-top: 4px;
|
||||
padding: 2px;
|
||||
@@ -451,6 +464,7 @@ ueb-blueprint[data-scrolling=false][data-selecting=false] .ueb-node-expansion:ho
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.ueb-node-variadic > svg,
|
||||
.ueb-node-expansion > svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
@@ -589,7 +603,7 @@ ueb-pin {
|
||||
|
||||
ueb-pin {
|
||||
display: block;
|
||||
min-height: 30px;
|
||||
min-height: 32px;
|
||||
}
|
||||
|
||||
ueb-pin.ueb-pin-input-wrap .ueb-pin-content {
|
||||
@@ -683,6 +697,20 @@ ueb-pin[data-linked=true] .ueb-pin-tofill {
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
ueb-pin.ueb-node-variadic-default {
|
||||
position: relative;
|
||||
}
|
||||
ueb-pin.ueb-node-variadic-default::before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
top: 0;
|
||||
left: 6px;
|
||||
background: linear-gradient(90deg, transparent 0, #404240 6px, #404240 calc(100% - 6px), transparent 100%);
|
||||
}
|
||||
|
||||
.ueb-pin-name {
|
||||
letter-spacing: -0.25px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user