mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
Small refactoring
This commit is contained in:
@@ -209,6 +209,11 @@ ueb-blueprint[data-drag-scrolling="false"] .ueb-grid {
|
||||
transform: translateX(calc(var(--ueb-translate-x) * 1px)) translateY(calc(var(--ueb-translate-y) * 1px));
|
||||
}
|
||||
|
||||
.ueb-grid-content>div {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.ueb-positioned {
|
||||
--ueb-computed-min-x: min(var(--ueb-from-x), var(--ueb-to-x));
|
||||
--ueb-computed-max-x: max(var(--ueb-from-x), var(--ueb-to-x));
|
||||
|
||||
@@ -4,6 +4,7 @@ ueb-node {
|
||||
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 {
|
||||
@@ -40,7 +41,7 @@ ueb-blueprint[data-drag-scrolling="false"][data-selecting="false"] ueb-node {
|
||||
|
||||
.ueb-node-header {
|
||||
padding: 0.3em 0.7em;
|
||||
box-shadow: inset 0 1px 2px 0 #313631, inset 0 2px 0 0 #92c381;
|
||||
box-shadow: inset 5px 1px 5px -3px #92c381, inset 0 1px 2px 0 #313631, inset 0 2px 0 0 #92c381;
|
||||
border-radius: var(--ueb-node-radius) var(--ueb-node-radius) 0 0;
|
||||
background: linear-gradient(170deg, #5f815a 0%, #5f815a 50%, transparent 100%);
|
||||
color: #c0c0c0;
|
||||
@@ -49,7 +50,9 @@ ueb-blueprint[data-drag-scrolling="false"][data-selecting="false"] ueb-node {
|
||||
}
|
||||
|
||||
.ueb-node-name {
|
||||
background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5) 0%, transparent 90%);
|
||||
display: inline-block;
|
||||
min-width: 80%;
|
||||
background: radial-gradient(ellipse 95% 60% at 20% 50%, rgba(0, 0, 0, 0.5) 0%, transparent 90%);
|
||||
margin: -0.1em -1.6em;
|
||||
padding: 0.1em 1.6em;
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ ueb-pin.ueb-pin-fill .ueb-pin-icon-value::before {
|
||||
border-left: 0.3em solid var(--ueb-pin-color);
|
||||
}
|
||||
|
||||
.ueb-pin-content>span {
|
||||
.ueb-pin-name {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user