144 lines
2.7 KiB
CSS
144 lines
2.7 KiB
CSS
.mcp-panel {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.mcp-panel-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.mcp-panel-header h3 {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.mcp-panel-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.mcp-btn-icon {
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.mcp-btn-icon:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.mcp-server-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.mcp-server-card {
|
|
background: var(--surface-hover);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.mcp-server-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.mcp-status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-active { background-color: var(--accent); box-shadow: 0 0 6px var(--accent); }
|
|
.status-inactive { background-color: var(--text-muted); }
|
|
|
|
.mcp-server-info {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.mcp-server-info h4 {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.mcp-server-cmd {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Toggle Switch Styles */
|
|
.mcp-toggle-switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 32px;
|
|
height: 18px;
|
|
}
|
|
.mcp-toggle-switch input { display: none; }
|
|
.mcp-slider {
|
|
position: absolute; cursor: pointer;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background-color: var(--border);
|
|
transition: .4s;
|
|
border-radius: 20px;
|
|
}
|
|
.mcp-slider:before {
|
|
position: absolute; content: "";
|
|
height: 14px; width: 14px;
|
|
left: 2px; bottom: 2px;
|
|
background-color: var(--surface);
|
|
transition: .4s;
|
|
border-radius: 50%;
|
|
}
|
|
input:checked + .mcp-slider { background-color: var(--accent); }
|
|
input:checked + .mcp-slider:before { transform: translateX(14px); }
|
|
|
|
/* Tools styling */
|
|
.mcp-tools-list {
|
|
margin-top: 10px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.mcp-tool-pill {
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
font-size: 10px;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.mcp-tool-more {
|
|
font-size: 10px;
|
|
color: var(--accent);
|
|
padding: 2px 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.mcp-loading, .mcp-empty, .mcp-error {
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
padding: 20px 0;
|
|
}
|
|
.mcp-error { color: #f59e0b; }
|