mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-13 18:45:07 -05:00
feat(ui): workflows styling tweaks
This commit is contained in:
@@ -17,6 +17,7 @@ import BottomLeftPanel from './flow/panels/BottomLeftPanel/BottomLeftPanel';
|
||||
import MinimapPanel from './flow/panels/MinimapPanel/MinimapPanel';
|
||||
|
||||
const FOCUS_REGION_STYLES: SystemStyleObject = {
|
||||
bg: 'base.900',
|
||||
display: 'flex',
|
||||
position: 'relative',
|
||||
width: 'full',
|
||||
|
||||
@@ -28,7 +28,7 @@ const containerSx: SystemStyleObject = {
|
||||
cursor: 'grab',
|
||||
// The action buttons are hidden by default and shown on hover
|
||||
'& .node-selection-overlay': {
|
||||
display: 'none',
|
||||
display: 'block',
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineEnd: 0,
|
||||
@@ -37,31 +37,28 @@ const containerSx: SystemStyleObject = {
|
||||
borderRadius: 'base',
|
||||
transitionProperty: 'none',
|
||||
pointerEvents: 'none',
|
||||
opacity: 0.5,
|
||||
shadow: '0 0 0 1px var(--invoke-colors-base-500)',
|
||||
},
|
||||
'&[data-is-mouse-over-node="true"] .node-selection-overlay': {
|
||||
opacity: 1,
|
||||
display: 'block',
|
||||
},
|
||||
'&[data-is-mouse-over-form-field="true"] .node-selection-overlay': {
|
||||
opacity: 1,
|
||||
display: 'block',
|
||||
bg: 'invokeBlueAlpha.100',
|
||||
},
|
||||
_hover: {
|
||||
'& .node-selection-overlay': {
|
||||
display: 'block',
|
||||
shadow: '0 0 0 2px var(--invoke-colors-blue-300)',
|
||||
shadow: '0 0 0 1px var(--invoke-colors-blue-300)',
|
||||
},
|
||||
'&[data-is-selected="true"] .node-selection-overlay': {
|
||||
display: 'block',
|
||||
opacity: 1,
|
||||
shadow: '0 0 0 3px var(--invoke-colors-blue-300)',
|
||||
shadow: '0 0 0 2px var(--invoke-colors-blue-300)',
|
||||
},
|
||||
},
|
||||
'&[data-is-selected="true"] .node-selection-overlay': {
|
||||
display: 'block',
|
||||
shadow: '0 0 0 3px var(--invoke-colors-blue-300)',
|
||||
shadow: '0 0 0 2px var(--invoke-colors-blue-300)',
|
||||
},
|
||||
'&[data-is-editor-locked="true"]': {
|
||||
'& *': {
|
||||
|
||||
Reference in New Issue
Block a user