mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
188 lines
3.7 KiB
SCSS
188 lines
3.7 KiB
SCSS
ueb-blueprint {
|
|
--ueb-pin-color-dim: #afafaf;
|
|
}
|
|
|
|
ueb-pin {
|
|
--ueb-pin-background: linear-gradient(90deg,
|
|
rgba(var(--ueb-pin-color-rgb), 0.15),
|
|
rgba(var(--ueb-pin-color-rgb), 0.8) 15%,
|
|
rgba(var(--ueb-pin-color-rgb), 0.5) 60%,
|
|
rgba(var(--ueb-pin-color-rgb), 0.35) 95%,
|
|
transparent);
|
|
--ueb-pin-color: rgb(var(--ueb-pin-color-rgb));
|
|
}
|
|
|
|
ueb-pin {
|
|
display: block;
|
|
min-height: 30px;
|
|
}
|
|
|
|
.ueb-node-top ueb-pin {
|
|
min-height: 0;
|
|
}
|
|
|
|
.ueb-zoom--10 ueb-pin {
|
|
visibility: hidden;
|
|
}
|
|
|
|
ueb-node[data-advanced-display="Hidden"] ueb-pin[data-advanced-view="true"] {
|
|
display: none;
|
|
}
|
|
|
|
.ueb-pin-wrapper {
|
|
display: inline-block;
|
|
margin: 4px 0 0 0;
|
|
padding: 2px 2px;
|
|
|
|
&>* {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
ueb-blueprint[data-scrolling="false"][data-selecting="false"] .ueb-pin-wrapper:hover {
|
|
background: var(--ueb-pin-background);
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.ueb-zoom--8 .ueb-pin-wrapper:hover {
|
|
background: none !important;
|
|
}
|
|
|
|
.ueb-node-outputs ueb-pin {
|
|
text-align: right;
|
|
}
|
|
|
|
.ueb-pin-icon {
|
|
color: var(--ueb-pin-color);
|
|
width: 13px;
|
|
height: 13px;
|
|
text-align: left;
|
|
}
|
|
|
|
.ueb-node-inputs .ueb-pin-icon {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.ueb-node-outputs .ueb-pin-icon {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.ueb-pin-icon>svg {
|
|
vertical-align: top;
|
|
}
|
|
|
|
ueb-pin[data-type="exec"] .ueb-pin-icon>svg {
|
|
--ueb-pin-color: white;
|
|
width: 15px;
|
|
height: 15px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
ueb-pin[data-linked="true"] .ueb-pin-tofill {
|
|
fill: currentColor;
|
|
}
|
|
|
|
.ueb-pin-name {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.ueb-zoom--6 .ueb-pin-content {
|
|
visibility: hidden;
|
|
}
|
|
|
|
ueb-node[data-type="/Script/BlueprintGraph.K2Node_VariableSet"] ueb-pin[data-direction="output"] .ueb-pin-content {
|
|
display: none;
|
|
}
|
|
|
|
.ueb-pin-input-wrapper {
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.ueb-pin-input {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
margin-left: 3px;
|
|
border: 1px solid #a0a0a0;
|
|
border-radius: 3px;
|
|
padding: 0 3px 0 3px;
|
|
color: #e0e0e0;
|
|
|
|
&:hover,
|
|
&:active,
|
|
&:focus,
|
|
&:focus-within {
|
|
background: #ffffff46;
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
ueb-pin[data-linked="true"] .ueb-pin-input {
|
|
display: none;
|
|
}
|
|
|
|
ueb-pin[data-type="bool"] .ueb-pin-input {
|
|
appearance: none;
|
|
padding: 0;
|
|
height: 18px;
|
|
width: 18px;
|
|
background-color: #0f0f0f;
|
|
color: var(--ueb-pin-color);
|
|
}
|
|
|
|
ueb-pin[data-type="bool"] .ueb-pin-input:checked {
|
|
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="none" stroke="%230070e0" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M 5 10 l 3 3 l 6 -6" /></svg>');
|
|
}
|
|
|
|
ueb-pin[data-type="/Script/CoreUObject.LinearColor"] .ueb-pin-input {
|
|
padding: 0;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-color: #505050;
|
|
border-radius: 0;
|
|
background-color: var(--ueb-linear-color);
|
|
}
|
|
|
|
.ueb-pin-input-label~.ueb-pin-input {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.ueb-pin-input-label {
|
|
vertical-align: middle;
|
|
margin-left: 3px;
|
|
color: #777777;
|
|
}
|
|
|
|
.ueb-pin-input-content {
|
|
display: block;
|
|
outline: none;
|
|
border: none;
|
|
padding: 0;
|
|
min-width: 10px;
|
|
max-width: 400px;
|
|
max-height: 16em;
|
|
background: none;
|
|
color: inherit;
|
|
overflow: auto;
|
|
|
|
&::-webkit-scrollbar {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background: transparent;
|
|
border-radius: 10px;
|
|
margin: 4px;
|
|
}
|
|
|
|
&:hover::-webkit-scrollbar-thumb {
|
|
background: #575757;
|
|
}
|
|
}
|
|
|
|
ueb-blueprint[data-scrolling="false"][data-selecting="false"] .ueb-node-wrapper {
|
|
cursor: move;
|
|
}
|