mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
* Fix node reference when changing elements * Fix ScriptVariables parsing * Fix invariant text and niagara types * Niagara convert nodes * Move node tests to own files * More Niagara tests * Niagara float and smaller fixes * More Decoding * More decoding * WIP * Float is real * WIP * More types and colors * Test case and small polish * WIP * WIP * Fix niagara script variables merging * Fix Niagara variables * Fixing mirrored ExportPath * Fix Export paths name adjustments * Simplify arc calculation * Simplify a bit arc calculation * source / destionation => origin / target * Minor refactoring * Fix switched link position * Rename some properties for uniformity * Fix input escape * Simplify test * About window * Dialog backdrop style * About dialog touches * Remove dependency and minot improvement * Light mode * Fix link location and css small improvement * Link direction and minor fixes * Some minor fixes and refactoring * Refactoring WIP * Shorting repetitive bits * More tests * Simplify linking tests
86 lines
2.2 KiB
SCSS
Executable File
86 lines
2.2 KiB
SCSS
Executable File
@use "style.scss";
|
|
|
|
ueb-link {
|
|
position: absolute;
|
|
--ueb-link-color: rgb(var(--ueb-link-color-rgb));
|
|
/* when from-y > to-y */
|
|
display: block;
|
|
margin-left: calc(var(--ueb-link-start) * -1px);
|
|
min-width: calc(var(--ueb-link-min-width) * 1px);
|
|
/*
|
|
* This makes the element transparent to the hover events so that multiple path elements can stand nearby and have
|
|
* their hover behavior correctly firing.
|
|
*/
|
|
visibility: hidden;
|
|
}
|
|
|
|
ueb-link>svg {
|
|
position: absolute;
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
min-height: 1px !important;
|
|
transform: scaleX(var(--ueb-link-scale-x)) scaleY(var(--ueb-link-scale-y));
|
|
z-index: 1;
|
|
}
|
|
|
|
ueb-link .ueb-link-path {
|
|
visibility: visible;
|
|
stroke: var(--ueb-link-color);
|
|
stroke-width: calc(1.5px / var(--ueb-scale));
|
|
transition: stroke-width 0.8s;
|
|
}
|
|
|
|
ueb-link .ueb-link-area {
|
|
visibility: visible;
|
|
stroke-width: 20px;
|
|
}
|
|
|
|
ueb-link[data-dragging="true"] .ueb-link-path,
|
|
.ueb-link-area:hover~.ueb-link-path {
|
|
stroke-width: calc(6px / var(--ueb-scale));
|
|
}
|
|
|
|
ueb-link[data-dragging="true"] .ueb-link-message {
|
|
display: block;
|
|
visibility: visible;
|
|
}
|
|
|
|
.ueb-link-message {
|
|
--ueb-link-message-top: calc(50% * (var(--ueb-link-scale-y) + 1) + 22px);
|
|
--ueb-link-message-left: calc(100% - var(--ueb-start-percentage) + 15px);
|
|
display: none;
|
|
position: absolute;
|
|
top: var(--ueb-link-message-top);
|
|
left: var(--ueb-link-message-left);
|
|
border: 1px solid #000;
|
|
border-radius: 2px;
|
|
background: linear-gradient(to bottom, #2a2a2a 0, #151515 50%, #2a2a2a 100%);
|
|
color: var(--ueb-pin-dim-color);
|
|
white-space: nowrap;
|
|
z-index: 1000000;
|
|
}
|
|
|
|
ueb-link[data-from-input="true"] .ueb-link-message {
|
|
--ueb-link-message-top: calc(-50% * (var(--ueb-link-scale-y) - 1) + 22px);
|
|
--ueb-link-message-left: calc(var(--ueb-start-percentage) + 15px);
|
|
}
|
|
|
|
.ueb-link-message-icon {
|
|
display: inline-block;
|
|
padding: 4px;
|
|
width: 16px;
|
|
height: 16px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.ueb-link-message-text {
|
|
padding: 4px;
|
|
padding-left: 0;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.ueb-link-message-icon svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|