1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix node hover effect to prevent jumping position

This commit is contained in:
Nick O'Leary 2019-09-10 11:39:07 +01:00
parent db9fb8480a
commit a0b1831cdb
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 10 additions and 24 deletions

View File

@ -119,10 +119,10 @@
}
.red-ui-palette-node {
display: inline-block;
// display: inline-block;
cursor: move;
background: $secondary-background;
margin: 5px auto;
margin: 10px auto;
height: 25px;
border-radius: 5px;
border: 1px solid $node-border;
@ -131,23 +131,16 @@
width: 120px;
background-size: contain;
position: relative;
&:first-child {
margin-top: 10px;
&:not(.red-ui-palette-node-config):first-child {
margin-top: 15px;
}
&:last-child {
margin-bottom: 10px;
&:not(.red-ui-palette-node-config):last-child {
margin-bottom: 15px;
}
}
.red-ui-palette-node:hover {
margin: 4px auto;
border-color: $node-selected-color;
border-width: 2px;
&:first-child {
margin-top: 9px;
}
&:last-child {
margin-bottom: 9px;
}
border-color: transparent;
box-shadow: 0 0 0 2px $node-selected-color;
}
.red-ui-palette-port {
position: absolute;

View File

@ -35,15 +35,8 @@ ul.red-ui-sidebar-node-config-list {
overflow: hidden;
&.selected {
margin: 4px auto;
border-color: $node-selected-color;
border-width: 2px;
&:first-child {
margin-top: 9px;
}
&:last-child {
margin-bottom: 9px;
}
border-color: transparent;
box-shadow: 0 0 0 2px $node-selected-color;
}
}
.red-ui-palette-label {