|
|
.flowContainer {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.errorToast {
|
|
|
position: fixed;
|
|
|
top: 1rem;
|
|
|
right: 1rem;
|
|
|
padding: 1rem;
|
|
|
background-color: #f8d7da;
|
|
|
color: #721c24;
|
|
|
border: 1px solid #f5c6cb;
|
|
|
border-radius: 4px;
|
|
|
z-index: 1000;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
gap: 0.5rem;
|
|
|
animation: slideIn 0.3s ease-out;
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
}
|
|
|
|
|
|
.errorToast button {
|
|
|
background: none;
|
|
|
border: none;
|
|
|
color: #721c24;
|
|
|
font-size: 1.25rem;
|
|
|
cursor: pointer;
|
|
|
padding: 0;
|
|
|
margin-left: 0.5rem;
|
|
|
transition: color 0.2s ease;
|
|
|
}
|
|
|
|
|
|
.errorToast button:hover {
|
|
|
color: #dc3545;
|
|
|
}
|
|
|
|
|
|
.errorToast button:focus {
|
|
|
outline: 2px solid #dc3545;
|
|
|
outline-offset: 2px;
|
|
|
}
|
|
|
|
|
|
@keyframes slideIn {
|
|
|
from {
|
|
|
transform: translateX(100%);
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
transform: translateX(0);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.editOverlay {
|
|
|
position: absolute;
|
|
|
z-index: 1000;
|
|
|
background-color: white;
|
|
|
border: 1px solid #e2e8f0;
|
|
|
border-radius: 4px;
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
}
|
|
|
|
|
|
.editInput {
|
|
|
padding: 0.5rem;
|
|
|
border: 1px solid #e2e8f0;
|
|
|
border-radius: 4px;
|
|
|
font-size: 1rem;
|
|
|
width: 200px;
|
|
|
outline: none;
|
|
|
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
|
}
|
|
|
|
|
|
.editInput:focus {
|
|
|
border-color: #4299e1;
|
|
|
box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
|
|
|
}
|
|
|
|
|
|
.actionButton {
|
|
|
padding: 8px 16px;
|
|
|
background-color: #007bff;
|
|
|
color: white;
|
|
|
border: none;
|
|
|
border-radius: 4px;
|
|
|
cursor: pointer;
|
|
|
font-size: 14px;
|
|
|
font-weight: 500;
|
|
|
transition: background-color 0.2s ease, transform 0.1s ease;
|
|
|
display: inline-flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
min-width: 100px;
|
|
|
}
|
|
|
|
|
|
.actionButton:hover {
|
|
|
background-color: #0056b3;
|
|
|
transform: translateY(-1px);
|
|
|
}
|
|
|
|
|
|
.actionButton:active {
|
|
|
transform: translateY(0);
|
|
|
}
|
|
|
|
|
|
.actionButton:focus {
|
|
|
outline: 2px solid #0056b3;
|
|
|
outline-offset: 2px;
|
|
|
}
|
|
|
|
|
|
.actionButton:disabled {
|
|
|
background-color: #6c757d;
|
|
|
cursor: not-allowed;
|
|
|
transform: none;
|
|
|
}
|
|
|
|
|
|
.actionButton.saving {
|
|
|
background-color: #6c757d;
|
|
|
cursor: wait;
|
|
|
}
|
|
|
|
|
|
.actionButton.dirty {
|
|
|
background-color: #28a745;
|
|
|
}
|
|
|
|
|
|
.actionButton.dirty:hover {
|
|
|
background-color: #218838;
|
|
|
}
|
|
|
|
|
|
|
|
|
.loading {
|
|
|
position: relative;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
|
|
|
.loading::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
background-color: rgba(255, 255, 255, 0.7);
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
z-index: 1000;
|
|
|
}
|
|
|
|
|
|
|
|
|
:focus-visible {
|
|
|
outline: 2px solid #007bff;
|
|
|
outline-offset: 2px;
|
|
|
}
|
|
|
|
|
|
|
|
|
@media (forced-colors: active) {
|
|
|
.actionButton {
|
|
|
border: 2px solid currentColor;
|
|
|
}
|
|
|
|
|
|
.errorToast {
|
|
|
border: 2px solid currentColor;
|
|
|
}
|
|
|
|
|
|
.editInput {
|
|
|
border: 2px solid currentColor;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
.errorToast {
|
|
|
animation: none;
|
|
|
}
|
|
|
|
|
|
.actionButton {
|
|
|
transition: none;
|
|
|
}
|
|
|
|
|
|
.editInput {
|
|
|
transition: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.verticalToolbar {
|
|
|
position: absolute;
|
|
|
top: 24px;
|
|
|
right: 32px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
gap: 10px;
|
|
|
z-index: 1100;
|
|
|
background: rgba(255,255,255,0.55);
|
|
|
backdrop-filter: blur(8px);
|
|
|
border-radius: 14px;
|
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.10);
|
|
|
padding: 18px 12px 18px 12px;
|
|
|
align-items: stretch;
|
|
|
min-width: 120px;
|
|
|
}
|
|
|
|
|
|
.toolbarDivider {
|
|
|
height: 1px;
|
|
|
background: #e0e0e0;
|
|
|
margin: 10px 0;
|
|
|
border: none;
|
|
|
}
|
|
|
|
|
|
.verticalToolbar .actionButton {
|
|
|
width: 100%;
|
|
|
margin-bottom: 2px;
|
|
|
font-size: 15px;
|
|
|
font-weight: 600;
|
|
|
letter-spacing: 0.01em;
|
|
|
}
|
|
|
|
|
|
.verticalToolbar .actionButton.saving {
|
|
|
background-color: #6c757d;
|
|
|
cursor: wait;
|
|
|
}
|
|
|
|
|
|
.verticalToolbar .actionButton.dirty {
|
|
|
background-color: #28a745;
|
|
|
}
|
|
|
|
|
|
.verticalToolbar .actionButton.dirty:hover {
|
|
|
background-color: #218838;
|
|
|
}
|
|
|
|
|
|
.verticalToolbar .toolButton {
|
|
|
width: 40px;
|
|
|
height: 40px;
|
|
|
margin: 0 auto;
|
|
|
margin-bottom: 2px;
|
|
|
border-radius: 8px;
|
|
|
font-size: 1.3rem;
|
|
|
background: #f7fafc;
|
|
|
color: #222;
|
|
|
border: 1px solid #e0e0e0;
|
|
|
}
|
|
|
|
|
|
.verticalToolbar .toolButton:hover {
|
|
|
background: #eaf4ff;
|
|
|
color: #007bff;
|
|
|
border-color: #007bff;
|
|
|
}
|
|
|
|
|
|
.verticalToolbar .toolButton:active {
|
|
|
background: #d0e7ff;
|
|
|
color: #0056b3;
|
|
|
}
|
|
|
|
|
|
.mindMapHeader {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
padding: 0.5rem 1.5rem 0.5rem 1rem;
|
|
|
background: rgba(255,255,255,0.45);
|
|
|
backdrop-filter: blur(8px);
|
|
|
border-bottom: 1px solid var(--border-color, #e0e0e0);
|
|
|
z-index: 1050;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.titleInput {
|
|
|
font-size: 1.25rem;
|
|
|
font-weight: 600;
|
|
|
padding: 0.5rem;
|
|
|
border: 1px solid var(--border-color, #e0e0e0);
|
|
|
border-radius: 4px;
|
|
|
background-color: #fff;
|
|
|
color: #222;
|
|
|
transition: background-color 0.15s, color 0.15s, border-color 0.15s;
|
|
|
min-width: 220px;
|
|
|
}
|
|
|
|
|
|
.titleInput:focus {
|
|
|
outline: none;
|
|
|
border-color: var(--primary-color, #007bff);
|
|
|
}
|
|
|
|
|
|
.colorControls {
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
gap: 1rem;
|
|
|
}
|
|
|
|
|
|
.colorButton {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
gap: 0.5rem;
|
|
|
padding: 0.5rem 1rem;
|
|
|
border: 1px solid var(--border-color, #e0e0e0);
|
|
|
border-radius: 4px;
|
|
|
background-color: #fff;
|
|
|
color: #222;
|
|
|
cursor: pointer;
|
|
|
transition: background-color 0.15s, color 0.15s, border-color 0.15s;
|
|
|
}
|
|
|
|
|
|
.colorButton:hover {
|
|
|
background-color: #f0f4fa;
|
|
|
}
|
|
|
|
|
|
.colorButton.active {
|
|
|
background-color: #eaf4ff;
|
|
|
}
|
|
|
|
|
|
.colorPicker {
|
|
|
position: absolute;
|
|
|
top: 100%;
|
|
|
left: 50%;
|
|
|
transform: translateX(-50%);
|
|
|
margin-top: 0.5rem;
|
|
|
padding: 1rem;
|
|
|
background-color: #fff;
|
|
|
border: 1px solid var(--border-color, #e0e0e0);
|
|
|
border-radius: 8px;
|
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
|
z-index: 1000;
|
|
|
min-width: 300px;
|
|
|
animation: slideDown 0.2s ease-out;
|
|
|
}
|
|
|
|
|
|
.colorPresets {
|
|
|
display: grid;
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
gap: 0.5rem;
|
|
|
margin-bottom: 1rem;
|
|
|
}
|
|
|
|
|
|
.colorPreset {
|
|
|
width: 100%;
|
|
|
aspect-ratio: 1;
|
|
|
border: 2px solid transparent;
|
|
|
border-radius: 4px;
|
|
|
cursor: pointer;
|
|
|
transition: transform 0.15s, border-color 0.15s;
|
|
|
}
|
|
|
|
|
|
.colorPreset:hover {
|
|
|
transform: scale(1.05);
|
|
|
}
|
|
|
|
|
|
.colorPreset.selected {
|
|
|
border-color: var(--primary-color, #007bff);
|
|
|
transform: scale(1.05);
|
|
|
}
|
|
|
|
|
|
.customColors {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
gap: 1rem;
|
|
|
}
|
|
|
|
|
|
.colorControl {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
gap: 0.5rem;
|
|
|
}
|
|
|
|
|
|
.colorInputWrapper {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
gap: 0.5rem;
|
|
|
}
|
|
|
|
|
|
.colorInput {
|
|
|
width: 50px;
|
|
|
height: 30px;
|
|
|
padding: 0;
|
|
|
border: 1px solid var(--border-color, #e0e0e0);
|
|
|
border-radius: 4px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.colorValue {
|
|
|
font-family: monospace;
|
|
|
font-size: 0.875rem;
|
|
|
}
|
|
|
|
|
|
.colorPickerToolbar {
|
|
|
position: absolute;
|
|
|
top: 60px;
|
|
|
right: 110%;
|
|
|
margin-right: 12px;
|
|
|
padding: 1rem;
|
|
|
background-color: #fff;
|
|
|
border: 1px solid var(--border-color, #e0e0e0);
|
|
|
border-radius: 8px;
|
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
|
|
|
z-index: 2000;
|
|
|
min-width: 300px;
|
|
|
animation: slideDown 0.2s ease-out;
|
|
|
}
|
|
|
|
|
|
.nodeLabelInput {
|
|
|
width: 100%;
|
|
|
padding: 8px 10px;
|
|
|
font-size: 1rem;
|
|
|
border: 1.5px solid #e0e0e0;
|
|
|
border-radius: 6px;
|
|
|
margin-bottom: 8px;
|
|
|
background: #f7fafc;
|
|
|
color: #222;
|
|
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
|
}
|
|
|
|
|
|
.nodeLabelInput:focus {
|
|
|
border-color: #007bff;
|
|
|
outline: none;
|
|
|
box-shadow: 0 0 0 2px #eaf4ff;
|
|
|
}
|
|
|
|
|
|
@media (max-width: 700px) {
|
|
|
.verticalToolbar {
|
|
|
position: fixed;
|
|
|
top: auto;
|
|
|
bottom: 0;
|
|
|
right: 0;
|
|
|
left: 0;
|
|
|
flex-direction: row;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
min-width: 0;
|
|
|
width: 100vw;
|
|
|
border-radius: 0;
|
|
|
box-shadow: 0 -2px 12px rgba(0,0,0,0.10);
|
|
|
padding: 10px 6px 10px 6px;
|
|
|
gap: 8px;
|
|
|
z-index: 1200;
|
|
|
background: rgba(255,255,255,0.98);
|
|
|
}
|
|
|
.verticalToolbar .actionButton,
|
|
|
.verticalToolbar .toolButton {
|
|
|
width: auto;
|
|
|
min-width: 20px;
|
|
|
margin-bottom: 0;
|
|
|
margin-right: 2px;
|
|
|
margin-left: 2px;
|
|
|
}
|
|
|
.toolbarDivider {
|
|
|
width: 1px;
|
|
|
height: 16px;
|
|
|
margin: 0 8px;
|
|
|
|
|
|
border: none;
|
|
|
}
|
|
|
.colorPickerToolbar {
|
|
|
position: fixed;
|
|
|
bottom: 60px;
|
|
|
right: 16px;
|
|
|
left: auto;
|
|
|
top: auto;
|
|
|
margin: 0;
|
|
|
z-index: 2001;
|
|
|
min-width: 90vw;
|
|
|
max-width: 98vw;
|
|
|
}
|
|
|
} |