Files
brain_dogfood/static/css/components/visualization.css
T

185 lines
5.2 KiB
CSS

/* --- Visualization & Navigation (v3.0+) --- */
/* Sidebar Sections for Viz */
.sidebar-section {
margin-top: 10px;
padding: 0 5px;
}
.calendar-content {
max-height: 1000px;
overflow: hidden;
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
opacity: 1;
}
.calendar-content.collapsed {
max-height: 0 !important;
opacity: 0;
pointer-events: none;
}
/* Calendar Widget */
.calendar-widget {
background: rgba(15, 23, 42, 0.4);
border-radius: 12px;
padding: 10px;
margin: 5px 0 15px 0;
border: 1px solid rgba(255, 255, 255, 0.05);
font-size: 0.8rem;
}
.calendar-nav {
display: flex;
justify-content: space-between; align-items: center;
margin-bottom: 10px; padding: 0 5px;
}
.calendar-nav span { font-weight: 600; color: var(--accent); }
.calendar-nav button {
background: none; border: none; color: var(--muted); cursor: pointer;
font-size: 1rem; padding: 2px 5px; border-radius: 4px;
}
.calendar-nav button:hover { color: white; background: rgba(255, 255, 255, 0.1); }
.calendar-grid {
display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center;
}
.calendar-day-label { color: var(--muted); font-weight: 800; font-size: 0.7rem; margin-bottom: 5px; }
.calendar-day {
position: relative; padding: 6px 0; border-radius: 6px; cursor: pointer;
transition: background 0.2s; color: var(--text-dim);
}
.calendar-day:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.calendar-day.today { color: var(--accent) !important; font-weight: 800; background: rgba(56, 189, 248, 0.15); }
.calendar-day.selected { background: var(--accent) !important; color: white !important; box-shadow: 0 0 10px var(--accent); }
.calendar-day.other-month { opacity: 0.2; }
/* Activity Dots */
.activity-dot {
position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
width: 4px; height: 4px; background: var(--ai-accent); border-radius: 50%;
box-shadow: 0 0 5px var(--ai-accent);
}
/* Floating Knowledge Explorer (v3.9 Compact) */
.drawer {
position: fixed;
top: 100px;
left: calc(var(--sidebar-width) + 30px);
width: 320px; /* 크기 축소 */
max-height: 500px; /* 높이 제한 */
z-index: 1100;
transform: scale(0.9) translateY(20px);
opacity: 0;
visibility: hidden;
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s;
display: flex;
flex-direction: column;
padding: 0;
box-shadow: 0 20px 50px rgba(0,0,0,0.6);
border-radius: 16px; /* 더 날렵하게 */
background: rgba(15, 23, 42, 0.97) !important;
backdrop-filter: blur(40px);
border: 1px solid rgba(255, 255, 255, 0.15);
overflow: hidden;
}
.drawer.active {
transform: scale(1) translateY(0);
opacity: 1;
visibility: visible;
}
/* 드래그 중인 상태 */
.drawer.dragging {
transition: none; /* 드래그 중에는 애니메이션 끔 */
opacity: 0.8;
cursor: grabbing;
}
.drawer-header {
padding: 12px 18px; /* 여백 축소 */
border-bottom: 1px solid rgba(255,255,255,0.08);
display: flex;
justify-content: space-between;
align-items: center;
cursor: grab;
background: rgba(255,255,255,0.03);
}
.drawer-header h3 {
font-size: 0.9rem; /* 0.95 -> 0.9 */
font-weight: 800;
color: var(--accent);
margin: 0;
}
.drawer-body {
flex: 1;
overflow-y: auto;
padding: 15px 18px; /* 여백 축소 */
scrollbar-width: thin;
scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.drawer .close-btn {
background: rgba(255,255,255,0.05);
border: none;
color: var(--muted);
font-size: 1rem;
width: 26px; /* 크기 축소 */
height: 26px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.drawer .close-btn:hover {
background: rgba(255,255,255,0.1);
color: white;
}
/* Colored Explorer Chips (Enhanced) */
.explorer-section {
margin-bottom: 25px; /* 여백 축소 */
}
.explorer-section h3 {
font-size: 0.65rem; /* 폰트 축소 */
text-transform: uppercase;
letter-spacing: 0.08rem;
color: var(--muted);
margin-bottom: 10px;
opacity: 0.6;
}
.explorer-grid {
display: flex;
flex-wrap: wrap;
gap: 8px; /* 간격 축소 */
}
.explorer-chip {
padding: 5px 12px; /* 여백 축소 */
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
cursor: pointer;
font-size: 0.75rem; /* 0.8 -> 0.75 */
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
color: var(--text-dim);
user-select: none;
}
.explorer-chip:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.explorer-chip.tag-user { border-color: rgba(56, 189, 248, 0.3); color: #bae6fd; }
.explorer-chip.tag-user:hover, .explorer-chip.tag-user.active { background: rgba(56, 189, 248, 0.15); border-color: var(--accent); color: white; }
.explorer-chip.tag-ai { border-color: rgba(168, 85, 247, 0.3); color: #e9d5ff; }
.explorer-chip.tag-ai:hover, .explorer-chip.tag-ai.active { background: rgba(168, 85, 247, 0.15); border-color: #a855f7; color: white; }