mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
348 lines
7.9 KiB
SCSS
348 lines
7.9 KiB
SCSS
ueb-node {
|
|
display: block;
|
|
position: absolute;
|
|
min-width: 100px;
|
|
border-radius: var(--ueb-node-radius);
|
|
box-shadow: 0 0 1px 0 black, 1px 4px 6px 0 rgba(0, 0, 0, 0.3);
|
|
font-weight: lighter;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-minimal {
|
|
min-width: 0;
|
|
}
|
|
|
|
.ueb-zoom--2 ueb-node {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.ueb-node-border {
|
|
margin: -3px;
|
|
padding: 3px;
|
|
border-radius: calc(var(--ueb-node-radius) * 1.4);
|
|
}
|
|
|
|
.ueb-zoom--2 .ueb-node-border {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
ueb-node[data-selected="true"]>.ueb-node-border {
|
|
background-image:
|
|
linear-gradient(to right, #f1b000 0%, #f1b000 100%),
|
|
linear-gradient(to bottom, #f1b000 0%, #cc6700 100%),
|
|
linear-gradient(to right, #cc6700 0%, #cc6700 100%),
|
|
linear-gradient(to bottom, #f1b000 0%, #cc6700 100%);
|
|
background-size: 100% 7px, 7px 100%, 100% 7px, 7px 100%;
|
|
background-position: top, right, bottom, left;
|
|
background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
|
|
}
|
|
|
|
.ueb-zoom--2 ueb-node[data-selected="true"]>.ueb-node-border {
|
|
background: none !important;
|
|
outline: 3px solid #ff8d00;
|
|
}
|
|
|
|
.ueb-zoom--10 ueb-node[data-selected="true"]>.ueb-node-border {
|
|
outline-width: 8px;
|
|
}
|
|
|
|
.ueb-node-wrapper {
|
|
position: relative;
|
|
padding: 1px;
|
|
box-shadow: inset 0 0 2px 0 black;
|
|
border-radius: var(--ueb-node-radius);
|
|
background: rgba(14, 16, 10, 0.8);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ueb-node-outputs ueb-pin[data-type="exec"] .ueb-pin-wrapper {
|
|
margin-right: -3px;
|
|
}
|
|
|
|
ueb-blueprint[data-scrolling="false"][data-selecting="false"] .ueb-node-wrapper,
|
|
ueb-blueprint[data-scrolling="false"][data-selecting="false"] ueb-node.ueb-node-style-minimal .ueb-node-border {
|
|
cursor: move;
|
|
}
|
|
|
|
.ueb-zoom--2 .ueb-node-wrapper {
|
|
box-shadow: none;
|
|
padding: 0;
|
|
background: #101010;
|
|
}
|
|
|
|
.ueb-node-top {
|
|
color: #c0c0c0;
|
|
font-weight: 900;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-event .ueb-node-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-right: 2px;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-event .ueb-node-top ueb-pin {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.ueb-node-style-default .ueb-node-top {
|
|
padding: 2px 20px 2px 8px;
|
|
box-shadow:
|
|
inset 5px 1px 5px -3px #ffffff40,
|
|
inset 0 1px 2px 0 #ffffff40;
|
|
border-radius: var(--ueb-node-radius) var(--ueb-node-radius) 0 0;
|
|
background:
|
|
linear-gradient(#ffffff30 1px, transparent 1px),
|
|
linear-gradient(170deg, rgb(var(--ueb-node-color)) 0%, rgb(var(--ueb-node-color)) 50%, transparent 100%);
|
|
}
|
|
|
|
.ueb-zoom--2 .ueb-node-top {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.ueb-zoom--2 .ueb-node-style-default .ueb-node-top {
|
|
background: rgb(var(--ueb-node-color));
|
|
}
|
|
|
|
.ueb-node-name {
|
|
display: flex;
|
|
align-items: center;
|
|
background: radial-gradient(ellipse 100% 100% at 40% 50%, rgba(0, 0, 0, 0.5) 20%, transparent 50%);
|
|
margin: -1px -15px;
|
|
padding: 2px 15px;
|
|
}
|
|
|
|
.ueb-zoom--2 .ueb-node-name {
|
|
background: none;
|
|
}
|
|
|
|
.ueb-zoom--8 .ueb-node-name {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.ueb-node-name-symbol {
|
|
margin-right: 5px;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: #74bff2;
|
|
}
|
|
|
|
ueb-node[data-pure-function="true"] .ueb-node-name-symbol {
|
|
color: #aaeda0;
|
|
}
|
|
|
|
.ueb-node-name-symbol path {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.ueb-node-subtitle-text {
|
|
padding-right: 5px;
|
|
font-weight: 100;
|
|
font-style: italic;
|
|
color: #a9b78f;
|
|
}
|
|
|
|
.ueb-node-content {
|
|
display: flex;
|
|
padding: 6px 0 2px 0;
|
|
font-weight: 100;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ueb-node-has-inputs .ueb-node-inputs {
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.ueb-node-outputs {
|
|
margin-left: auto;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
.ueb-node-has-inputs .ueb-node-outputs {
|
|
margin-left: 30px;
|
|
}
|
|
|
|
.ueb-node-developmentonly {
|
|
margin-top: 4px;
|
|
padding: 2px;
|
|
background: repeating-linear-gradient(-45deg,
|
|
transparent 0,
|
|
#57590a 1px,
|
|
#57590a 11px,
|
|
transparent 12px,
|
|
transparent 24px);
|
|
background: repeating-linear-gradient(-45deg,
|
|
transparent 0,
|
|
#57590a 1px,
|
|
#57590a 11px,
|
|
transparent 12px,
|
|
transparent 24px);
|
|
text-align: center;
|
|
}
|
|
|
|
.ueb-node-developmentonly-text {
|
|
padding: 0 10px;
|
|
letter-spacing: 0.04em;
|
|
text-shadow: 1px 1px 1px black;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ueb-zoom--6 .ueb-node-developmentonly-text {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.ueb-node-expansion {
|
|
display: none;
|
|
text-align: center;
|
|
}
|
|
|
|
ueb-node[data-advanced-display] .ueb-node-expansion {
|
|
display: block;
|
|
}
|
|
|
|
ueb-blueprint[data-scrolling="false"][data-selecting="false"] .ueb-node-expansion:hover {
|
|
background-color: #656765;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ueb-zoom--8 .ueb-node-expansion {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.ueb-node-expansion>svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
ueb-node[data-advanced-display="Shown"] .ueb-node-expansion>svg {
|
|
transform: scaleY(-1)
|
|
}
|
|
|
|
ueb-node.ueb-node-style-glass .ueb-node-wrapper,
|
|
ueb-node.ueb-node-style-glass .ueb-node-border,
|
|
ueb-node.ueb-node-style-glass {
|
|
border-radius: 15px;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-glass .ueb-node-wrapper {
|
|
border: 1px solid black;
|
|
box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.6) inset, 0 -2px 2px 1px rgba(0, 0, 0, 0.5) inset;
|
|
padding: 3px;
|
|
background:
|
|
linear-gradient(to bottom, rgba(255, 255, 255, 0.188) 0%, rgba(255, 255, 255, 0.063) 14px, rgba(0, 0, 0, 0.251) 14px),
|
|
linear-gradient(to right, transparent 10%, rgba(var(--ueb-node-color), 0.3) 50%, transparent 90%);
|
|
background-size: 100%, 100% 28px;
|
|
background-repeat: repeat, no-repeat;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-glass .ueb-node-name {
|
|
padding-right: 0;
|
|
padding-left: 0;
|
|
}
|
|
|
|
ueb-node[data-selected="true"] .ueb-node-border {
|
|
box-shadow: inset 0 0 0px 6px #ce8700;
|
|
background: none;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-glass .ueb-node-top,
|
|
ueb-node.ueb-node-style-glass .ueb-node-name {
|
|
margin: 0;
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
background: none;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-glass .ueb-node-top {
|
|
position: absolute;
|
|
left: 50%;
|
|
translate: -50%;
|
|
padding: 3px;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-glass .ueb-node-outputs:first-child {
|
|
padding-left: 8px;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-operation .ueb-node-top {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
translate: -50% -50%;
|
|
padding: 0 50px;
|
|
font-size: 28px;
|
|
z-index: -1;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-operation .ueb-node-inputs {
|
|
margin-right: 100px;
|
|
}
|
|
|
|
ueb-node:not(.ueb-node-style-comment) {
|
|
z-index: 10;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-comment .ueb-node-border {
|
|
height: 100%;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-comment .ueb-node-wrapper {
|
|
position: relative;
|
|
padding: 0;
|
|
height: 100%;
|
|
border-radius: 0;
|
|
background: rgba(var(--ueb-node-color), 0.5);
|
|
box-shadow: none;
|
|
|
|
&::after {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
right: 3px;
|
|
bottom: 3px;
|
|
width: 16px;
|
|
height: 16px;
|
|
background: linear-gradient(135deg,
|
|
transparent 50%,
|
|
#fff 50%,
|
|
#fff calc(50% + 2px),
|
|
transparent calc(50% + 2px),
|
|
transparent calc(50% + 3px),
|
|
#fff calc(50% + 3px),
|
|
#fff calc(50% + 5px),
|
|
transparent calc(50% + 5px),
|
|
transparent calc(50% + 7px),
|
|
#fff calc(50% + 7px),
|
|
#fff calc(50% + 9px),
|
|
transparent calc(50% + 9px));
|
|
}
|
|
}
|
|
|
|
ueb-node.ueb-node-style-comment .ueb-node-top {
|
|
position: relative;
|
|
margin: 3px;
|
|
padding: 3px 10px;
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
background: rgb(var(--ueb-node-color));
|
|
color: white;
|
|
font-size: 24px;
|
|
text-shadow: 2px 1px 1px #444, 0 0 2px #bbb;
|
|
z-index: 1;
|
|
}
|
|
|
|
ueb-node.ueb-node-style-conversion .ueb-node-content::after {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
top: calc(50% - 3px);
|
|
left: calc(50% - 3px);
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 3px;
|
|
background: #8f8f8f;
|
|
}
|