/* Meta-MCP Configurator - External Stylesheet
Uses VS Code CSS variables for theming compatibility
---------------------------------------------------
This file is loaded by webviewTemplate.ts and provides
additional/override styles. Critical styles are inlined
in the template for faster initial render.
*/
/* Reset and base styles */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-size: 13px;
}
body {
margin: 0;
padding: 16px;
font-family: var(--vscode-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
font-size: var(--vscode-font-size, 13px);
color: var(--vscode-foreground);
background-color: var(--vscode-editor-background);
line-height: 1.5;
}
/* Focus styles */
:focus {
outline: 1px solid var(--vscode-focusBorder);
outline-offset: -1px;
}
:focus:not(:focus-visible) {
outline: none;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--vscode-scrollbarSlider-background);
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--vscode-scrollbarSlider-hoverBackground);
}
::-webkit-scrollbar-thumb:active {
background: var(--vscode-scrollbarSlider-activeBackground);
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
margin: 0 0 0.5em;
font-weight: 600;
line-height: 1.2;
}
p {
margin: 0 0 1em;
}
a {
color: var(--vscode-textLink-foreground);
text-decoration: none;
}
a:hover {
color: var(--vscode-textLink-activeForeground);
text-decoration: underline;
}
code {
font-family: var(--vscode-editor-font-family, 'SF Mono', Monaco, monospace);
font-size: 0.9em;
padding: 2px 6px;
background-color: var(--vscode-textCodeBlock-background);
border-radius: 3px;
}
/* Selection */
::selection {
background-color: var(--vscode-editor-selectionBackground);
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Card hover effects */
.server-card,
.catalog-card {
animation: fadeIn 0.2s ease-out;
}
/* Button press effect */
.btn:active {
transform: scale(0.98);
}
/* Tooltip styles */
[title] {
position: relative;
}
/* Form validation states */
.form-input.invalid {
border-color: var(--vscode-inputValidation-errorBorder);
background-color: var(--vscode-inputValidation-errorBackground);
}
.form-input.valid {
border-color: var(--vscode-charts-green);
}
/* Server status indicators */
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
display: inline-block;
margin-right: 6px;
}
.status-dot.connected {
background-color: var(--vscode-charts-green);
box-shadow: 0 0 4px var(--vscode-charts-green);
}
.status-dot.disconnected {
background-color: var(--vscode-descriptionForeground);
}
.status-dot.error {
background-color: var(--vscode-errorForeground);
box-shadow: 0 0 4px var(--vscode-errorForeground);
}
/* Command type badges */
.command-badge {
display: inline-flex;
align-items: center;
padding: 2px 8px;
font-size: 11px;
font-weight: 500;
border-radius: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.command-badge.node {
background-color: rgba(104, 159, 56, 0.2);
color: #689f38;
}
.command-badge.npx {
background-color: rgba(203, 56, 55, 0.2);
color: #cb3837;
}
.command-badge.uvx {
background-color: rgba(255, 213, 79, 0.2);
color: #ffd54f;
}
.command-badge.python {
background-color: rgba(55, 118, 171, 0.2);
color: #3776ab;
}
.command-badge.custom {
background-color: var(--vscode-badge-background);
color: var(--vscode-badge-foreground);
}
/* Expandable sections */
.expandable-header {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
padding: 8px;
border-radius: 4px;
user-select: none;
}
.expandable-header:hover {
background-color: var(--vscode-list-hoverBackground);
}
.expandable-icon {
transition: transform 0.2s;
}
.expandable-header.expanded .expandable-icon {
transform: rotate(90deg);
}
.expandable-content {
overflow: hidden;
max-height: 0;
opacity: 0;
transition: max-height 0.3s, opacity 0.3s;
}
.expandable-content.expanded {
max-height: 500px;
opacity: 1;
}
/* Confirmation dialog styles */
.dialog-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
animation: fadeIn 0.15s ease-out;
}
.dialog-content {
background-color: var(--vscode-editor-background);
border: 1px solid var(--vscode-panel-border);
border-radius: 6px;
padding: 20px;
min-width: 300px;
max-width: 400px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
animation: slideUp 0.2s ease-out;
}
.dialog-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
}
.dialog-message {
color: var(--vscode-descriptionForeground);
margin-bottom: 20px;
}
.dialog-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
}
/* Toast notifications */
.toast-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1001;
display: flex;
flex-direction: column;
gap: 8px;
}
.toast {
padding: 12px 16px;
border-radius: 4px;
background-color: var(--vscode-notifications-background);
border: 1px solid var(--vscode-notifications-border);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
animation: slideUp 0.3s ease-out;
max-width: 350px;
}
.toast.success {
border-left: 3px solid var(--vscode-charts-green);
}
.toast.error {
border-left: 3px solid var(--vscode-errorForeground);
}
.toast.warning {
border-left: 3px solid var(--vscode-editorWarning-foreground);
}
.toast.info {
border-left: 3px solid var(--vscode-editorInfo-foreground);
}
/* Responsive adjustments */
@media (max-width: 400px) {
body {
padding: 12px;
}
.header {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.header-actions {
width: 100%;
justify-content: flex-end;
}
.catalog-grid {
grid-template-columns: 1fr;
}
.env-var-row {
flex-direction: column;
}
.env-var-row .form-input {
width: 100%;
}
}
/* Print styles */
@media print {
body {
background: white;
color: black;
}
.btn,
.header-actions,
.nav-tabs {
display: none;
}
}