mindmap / frontend /src /components /EditableColorNode.css
Rsnarsna's picture
Upload 44 files
b0c3c39 verified
/* Simple one-box layout for React Flow node */
.editable-color-node {
padding: 10px 20px;
border-radius: 8px;
min-width: 150px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
border: 2px solid transparent;
}
.editable-color-node:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.editable-color-node.selected {
border-color: #2196f3;
}
/* Label style inside the node */
.editable-color-node-label {
font-size: 14px;
font-weight: 500;
text-align: center;
cursor: text;
padding: 4px;
border-radius: 4px;
}
.editable-color-node-label:hover {
background-color: rgba(0, 0, 0, 0.05);
}
/* Input style for editing the label */
.editable-color-node-label-input {
width: 100%;
padding: 4px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
outline: none;
}
.editable-color-node-label-input:focus {
border-color: #2196f3;
box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}