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:
parent
db9fb8480a
commit
a0b1831cdb
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user