davidardz07's picture
Editar Links y Nodos
76f3c6e
/* Main layout */
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Header styles */
.header {
background-color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 10;
}
/* Tooltip styles */
.tooltip-trigger {
position: relative;
}
.tooltip-trigger:hover::after {
content: attr(title);
position: absolute;
bottom: -30px;
left: 50%;
transform: translateX(-50%);
padding: 4px 8px;
background-color: rgba(0, 0, 0, 0.8);
color: white;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
z-index: 1000;
}
/* Settings dropdown */
#settings-dropdown {
border: 1px solid #e5e7eb;
animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Sidebar transitions */
#sidebar {
transition: width 0.3s ease-in-out;
}
#sidebar.collapsed {
width: 0;
overflow: hidden;
}
/* Button hover effects */
button {
transition: all 0.2s ease-in-out;
}
button:hover {
transform: scale(1.05);
background-color: rgba(0, 0, 0, 0.05);
}
/* Custom styles for the sankey diagram */
#sankey-diagram {
width: 100%;
height: 100%;
background: #f8fafc;
border-radius: 0.5rem;
}
#diagram-container {
background: #f1f5f9;
border-radius: 0.5rem;
position: relative;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
min-height: 400px; /* Set a minimum height */
height: 100%; /* Take full height of parent */
display: flex; /* Ensure SVG fills container */
}
.node rect {
cursor: move;
fill-opacity: 0.9;
shape-rendering: crispEdges;
}
.node text {
pointer-events: none;
text-shadow: 0 1px 0 #fff;
}
.link {
fill: none;
stroke-opacity: 0.2;
}
.link:hover {
stroke-opacity: 0.7;
stroke-width: 2px !important;
}
/* Custom scrollbar for lists */
#nodes-list::-webkit-scrollbar,
#links-list::-webkit-scrollbar {
width: 6px;
}
#nodes-list::-webkit-scrollbar-track,
#links-list::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}
#nodes-list::-webkit-scrollbar-thumb,
#links-list::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 3px;
}
#nodes-list::-webkit-scrollbar-thumb:hover,
#links-list::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}