Files
ueblueprint/scss/ueb-node.scss
barsdeveloper 1aa4ceb11c Minor fixes
2022-04-25 18:51:23 +02:00

96 lines
2.4 KiB
SCSS

ueb-node {
display: block;
position: absolute;
transform: translateX(calc(var(--ueb-position-x) * 1px)) translateY(calc(var(--ueb-position-y) * 1px));
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-blueprint[data-drag-scrolling="false"][data-selecting="false"] ueb-node {
cursor: move;
}
.ueb-node-border {
margin: -3px;
padding: 3px;
border-radius: calc(var(--ueb-node-radius) * 1.4);
}
.ueb-selected>.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;
outline: 3px solid #cc6700;
outline-offset: -6px;
}
.ueb-node-content {
position: relative;
padding: 1px;
box-shadow: inset 0 0 2px 0 black;
border-radius: var(--ueb-node-radius);
background: rgba(10, 10, 10, 0.8);
overflow: hidden;
}
.ueb-node-header {
padding: 0.3em 0.7em;
box-shadow: inset 5px 1px 5px -3px #83b37b,
inset 0 1px 0 0 #111311,
inset 0 2px 0 0 #83b37b;
border-radius: var(--ueb-node-radius) var(--ueb-node-radius) 0 0;
background: linear-gradient(170deg, #5f815a 0%, #5f815a 50%, transparent 100%);
color: #c0c0c0;
font-weight: 900;
white-space: nowrap;
}
.ueb-node-name {
background: radial-gradient(ellipse 100% 100% at 30% 50%, rgba(0, 0, 0, 0.45) 20%, transparent 50%);
margin: -0.1em -1.6em;
padding: 0.1em 1.6em;
}
.ueb-node-body {
display: flex;
padding: 1px 0;
font-weight: 100;
white-space: nowrap;
}
.ueb-node-inputs {
margin-right: 20px;
padding-left: 8px;
}
.ueb-node-outputs {
margin-left: auto;
padding-right: 8px;
}
.ueb-node-expansion {
display: none;
text-align: center;
}
.ueb-node-expansion-icon {
vertical-align: middle;
}
ueb-blueprint[data-drag-scrolling="false"][data-selecting="false"] .ueb-node-expansion:hover {
background-color: #656765;
cursor: pointer;
}
ueb-node[data-advanced-display] .ueb-node-expansion {
display: block;
}
ueb-node[data-advanced-display="Shown"] .ueb-node-expansion-icon {
transform: scaleY(-1)
}