Spaces:
Running
Running
Commit ·
f684f65
1
Parent(s): 440029d
design(canvas): change node selected outline to Soft Sage theme
Browse files
src/features/canvas/components/nodes/ConditionNode.jsx
CHANGED
|
@@ -183,7 +183,7 @@ const ConditionNode = ({ id, data, selected }) => {
|
|
| 183 |
{/* The Rotated Diamond Shape Background */}
|
| 184 |
<div
|
| 185 |
className={`absolute rounded-[2rem] rough-border bg-surface-container-lowest transition-all ${
|
| 186 |
-
selected ? 'border-
|
| 187 |
}`}
|
| 188 |
style={{
|
| 189 |
left: '50%',
|
|
@@ -191,7 +191,7 @@ const ConditionNode = ({ id, data, selected }) => {
|
|
| 191 |
width: `${size / 1.4142}px`,
|
| 192 |
height: `${size / 1.4142}px`,
|
| 193 |
transform: 'translate(-50%, -50%) rotate(45deg)',
|
| 194 |
-
boxShadow: selected ? '6px 6px 0px 0px rgba(
|
| 195 |
pointerEvents: 'none'
|
| 196 |
}}
|
| 197 |
/>
|
|
|
|
| 183 |
{/* The Rotated Diamond Shape Background */}
|
| 184 |
<div
|
| 185 |
className={`absolute rounded-[2rem] rough-border bg-surface-container-lowest transition-all ${
|
| 186 |
+
selected ? 'border-emerald-400 ring-4 ring-emerald-400/20' : ''
|
| 187 |
}`}
|
| 188 |
style={{
|
| 189 |
left: '50%',
|
|
|
|
| 191 |
width: `${size / 1.4142}px`,
|
| 192 |
height: `${size / 1.4142}px`,
|
| 193 |
transform: 'translate(-50%, -50%) rotate(45deg)',
|
| 194 |
+
boxShadow: selected ? '6px 6px 0px 0px rgba(52, 211, 153, 0.3), inset 0 0 0 1px rgba(0,0,0,0.05)' : 'none',
|
| 195 |
pointerEvents: 'none'
|
| 196 |
}}
|
| 197 |
/>
|
src/features/canvas/components/nodes/HabitNode.jsx
CHANGED
|
@@ -182,7 +182,7 @@ const HabitNode = ({ id, data, selected }) => {
|
|
| 182 |
<div
|
| 183 |
onDoubleClick={handleConfigure}
|
| 184 |
className={`px-5 py-4 w-64 rough-border bg-surface-container-lowest transition-all group ${
|
| 185 |
-
selected ? 'shadow-[6px_6px_0px_0px_rgba(
|
| 186 |
} ${isDone ? 'opacity-85' : ''} ${
|
| 187 |
data.isNextStep ? 'ring-4 ring-success/30 ring-offset-2 ring-offset-background shadow-[0_0_20px_rgba(34,197,94,0.2)]' : ''
|
| 188 |
}`}
|
|
|
|
| 182 |
<div
|
| 183 |
onDoubleClick={handleConfigure}
|
| 184 |
className={`px-5 py-4 w-64 rough-border bg-surface-container-lowest transition-all group ${
|
| 185 |
+
selected ? 'shadow-[6px_6px_0px_0px_rgba(52,211,153,0.3)] dark:shadow-[6px_6px_0px_0px_rgba(52,211,153,0.3)] -translate-y-1 border-emerald-400 ring-4 ring-emerald-400/20 scale-[1.01]' : ''
|
| 186 |
} ${isDone ? 'opacity-85' : ''} ${
|
| 187 |
data.isNextStep ? 'ring-4 ring-success/30 ring-offset-2 ring-offset-background shadow-[0_0_20px_rgba(34,197,94,0.2)]' : ''
|
| 188 |
}`}
|
src/features/canvas/components/nodes/SketchNode.jsx
CHANGED
|
@@ -91,7 +91,7 @@ const SketchNode = ({ id, data, selected }) => {
|
|
| 91 |
<div
|
| 92 |
onDoubleClick={handleDoubleClick}
|
| 93 |
className={`px-4 py-3 min-w-[200px] max-w-[300px] rough-border bg-surface-container-lowest transition-all group ${
|
| 94 |
-
selected ? 'shadow-[6px_6px_0px_0px_rgba(
|
| 95 |
} ${data.status === 'Done' ? 'opacity-80' : ''} ${
|
| 96 |
data.isNextStep ? 'ring-4 ring-success/30 ring-offset-2 ring-offset-background shadow-[0_0_20px_rgba(34,197,94,0.2)]' : ''
|
| 97 |
}`}
|
|
|
|
| 91 |
<div
|
| 92 |
onDoubleClick={handleDoubleClick}
|
| 93 |
className={`px-4 py-3 min-w-[200px] max-w-[300px] rough-border bg-surface-container-lowest transition-all group ${
|
| 94 |
+
selected ? 'shadow-[6px_6px_0px_0px_rgba(52,211,153,0.3)] dark:shadow-[6px_6px_0px_0px_rgba(52,211,153,0.3)] -translate-y-1 border-emerald-400 ring-4 ring-emerald-400/20 scale-[1.01]' : ''
|
| 95 |
} ${data.status === 'Done' ? 'opacity-80' : ''} ${
|
| 96 |
data.isNextStep ? 'ring-4 ring-success/30 ring-offset-2 ring-offset-background shadow-[0_0_20px_rgba(34,197,94,0.2)]' : ''
|
| 97 |
}`}
|