Skip to main content
Glama

marm-mcp

components.cssβ€’17.8 kB
/* components.css - Reusable UI components */ /* Welcome Message in Chat */ .welcome-message-chat { background: linear-gradient(135deg, rgba(61, 90, 128, 0.4), rgba(255, 181, 71, 0.4)); border: 6px groove rgba(61, 90, 128, 0.2); border-radius: 0.75rem; margin: 0.7rem 0; padding: 1rem; text-align: center; } .welcome-content h3 { margin: 0 0 0.5rem 0; color: #1a2636; font-size: 1.3rem; font-weight: 650; } .welcome-content p { margin: 0; line-height: 1.5; color: #3d5a80; font-weight: 650; filter: brightness(0.8); } .welcome-content code { background: var(--primary-color); color: white; padding: 0.2rem 0.4rem; border-radius: 0.25rem; font-size: 0.9rem; font-family: monospace; } /* Buttons */ .btn { font-size: 1rem; padding: 0.7rem 1.5rem; border: none; border-radius: var(--border-radius-sm); cursor: pointer; font-weight: 600; letter-spacing: 0.02em; font-family: inherit; transition: background var(--transition-fast); } .btn-primary { background: var(--primary-color); color: #fff; } .btn-primary:hover { background: var(--primary-hover-color); } .btn-secondary { background: var(--secondary-color); color: #000; border-radius: var(--border-radius-sm); padding: 0.6rem 1.4rem; box-shadow: 0 2px 4px rgba(40, 40, 60, 0.07); } .btn-secondary:hover { background: var(--secondary-hover-color); } .fab-action-btn { transition: opacity var(--transition-fast), background var(--transition-fast); position: relative; vertical-align: middle; margin-top: 0.125rem; } .fab-action-btn:hover { transform: scale(1.05); } #saveSessionBtn.saved { background: var(--success-bg-color); color: white; } /* Form Elements */ .input-container { position: relative; flex: 1; display: flex; align-items: center; max-width: calc(100% - 2rem); } .textarea-wrapper { flex: 1; position: relative; } #user-input { width: 100%; font-size: 1rem; padding: 0.875rem 3rem 0.875rem 0.5rem; border-radius: 0.75rem; border: 2px solid var(--border-light); outline: none; background: white; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; resize: none; overflow-y: auto; height: auto; min-height: 1.2rem; max-height: 5.3rem; line-height: 1.2; font-family: inherit; box-sizing: border-box; } .input-btn { position: absolute; right: 1rem; bottom: 0; z-index: var(--z-dropdown); background: transparent; border: none; font-size: 1rem; padding: 0.8rem 1.2rem; cursor: pointer; color: var(--primary-color); border-radius: 4px; transition: background 0.2s ease; } .input-btn:hover { background: rgba(61, 90, 128, 0.1); } .send-btn { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); background: var(--primary-color); color: var(--secondary-color); border-radius: 50%; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background 0.2s ease; border: none; cursor: pointer; } .send-btn:hover { background: var(--primary-hover-color); transform: translateY(-50%); } #user-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1); outline: none; background: rgba(255, 255, 255, 0.95); } #user-input { overflow-y: auto !important; scrollbar-width: thin; scrollbar-color: rgba(61, 90, 128, 0.3) transparent; } #user-input::-webkit-scrollbar { width: 2px; background: transparent; } #user-input::-webkit-scrollbar-thumb { background: rgba(61, 90, 128, 0.3); border-radius: 2px; } #user-input::-webkit-scrollbar-thumb:hover { background: rgba(61, 90, 128, 0.5); } #chat-form button { font-size: 1rem; padding: 0.7rem 1.5rem; border: none; background: var(--primary-color); color: #fff; border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0; cursor: pointer; font-weight: 600; letter-spacing: 0.02em; transition: background var(--transition-fast); } #chat-form button:hover { background: var(--primary-hover-color); } .form-buttons { display: flex; align-items: center; gap: 0.625rem; position: absolute; right: -9.75rem; top: calc(50% - 0.2rem); transform: translateY(-50%); } #command-menu-btn { font-size: 1rem; padding: 0.7rem 1rem; margin-right: 0; position: relative; top: -0.2rem; color: #ffb547; } button[type="submit"] { font-size: 1rem; padding: 0.8rem 1.2rem; } #file-upload-btn { font-size: 1rem; padding: 0.7rem 1rem; margin-right: 0rem; } /* Modal Base */ .modal { display: none; position: fixed; z-index: var(--z-modal); left: 0; top: 0; width: 100%; height: 100%; background: transparent; } .modal.visible { display: block; } .modal .modal-content { background: var(--header-bg); margin: 6% auto; padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md) var(--spacing-lg); border-radius: 0.8125rem; max-width: 38rem; box-shadow: var(--shadow-heavy); font-size: 1.07rem; color: var(--background-light); pointer-events: auto; max-height: 80vh; overflow-y: auto; } .modal-content a { color: var(--primary-color); text-decoration: underline; font-weight: 500; } .modal-content a:hover { color: var(--accent-color); } .close { color: rgba(255, 255, 255, 0.8); font-size: 2rem; cursor: pointer; font-weight: bold; line-height: 1; transition: color 0.2s ease; } .close:hover { color: white; } /* Help Menu */ .help-modal-content { max-width: 40.625rem; padding: 0; border-radius: 1rem; box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.10); border: 4px solid #000000; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 1.75rem 1rem 1.75rem; border-bottom: 1px solid var(--modal-border-color); background: var(--modal-header-bg); color: white; border-radius: 1rem 1rem 0 0; cursor: move; } .modal-header h2 { margin: 0; font-size: 1.4rem; font-weight: 600; display: flex; align-items: center; gap: 0.625rem; } .help-icon, .commands-icon, .docs-icon { font-size: 1.2rem; } .help-section { padding: 1.75rem; } .help-intro { margin-bottom: 2rem; text-align: center; } .help-intro h3 { color: var(--background-light); margin: 0 0 0.5rem 0; font-size: 1.3rem; font-weight: 600; } .help-intro p { color: var(--background-light); margin: 0; font-size: 1.05rem; line-height: 1.5; } .commands-grid h3, .docs-section h3 { color: var(--background-light); margin: 0 0 1.25rem 0; font-size: 1.2rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; } .command-group { display: grid; gap: 0.75rem; margin-bottom: 2rem; } .help-command-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem; background: #e4e4e4b9; border-radius: 0.5rem; border-left: 3px solid #667eea; } .help-command-item code { background: #667eea; color: white; padding: 0.25rem 0.5rem; border-radius: 0.3125rem; font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace; font-size: 0.9rem; font-weight: 500; white-space: nowrap; min-width: fit-content; } .help-command-item span { color: #4b5563; line-height: 1.4; flex: 1; } .docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 1rem; } .doc-link { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: #ffffff; border: 2px solid var(--modal-border-color); border-radius: 0.75rem; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; text-align: left; width: 100%; } .doc-link:hover { border-color: #667eea; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); transform: translateY(-0.125rem); } .doc-icon { font-size: 2rem; flex-shrink: 0; } .doc-info h4 { margin: 0 0 0.25rem 0; color: var(--text-dark); font-size: 1.1rem; font-weight: 600; } .doc-info p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.4; } /* Markdown Modal */ .markdown-modal-content { max-width: 40.625rem; max-height: 85vh; padding: 0; border-radius: 1rem; } .markdown-content { padding: 1.75rem; max-height: calc(85vh - 5rem); overflow-y: auto; line-height: 1.6; } .markdown-content h1, .markdown-content h2, .markdown-content h3 { color: var(--background-light); margin-top: 1.5em; margin-bottom: 0.5em; } .markdown-content h1 { font-size: 1.8rem; } .markdown-content h2 { font-size: 1.5rem; } .markdown-content h3 { font-size: 1.3rem; } .markdown-content p { margin-bottom: 1em; color: var(--background-light); } .markdown-content code { background: var(--code-bg-light); padding: 0.125rem 0.375rem; border-radius: 4px; font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace; font-size: 0.9em; color: var(--text-dark); } .markdown-content pre { background: var(--code-bg-dark); padding: 1rem; border-radius: 0.5rem; overflow-x: auto; border-left: 4px solid #667eea; position: relative; } .code-copy-btn { position: absolute; top: 0.5rem; right: 0.5rem; background: #e0e0e0; color: #333; border: none; border-radius: 4px; padding: 0.25rem 0.5rem; font-size: 0.75rem; cursor: pointer; opacity: 0; transition: opacity 0.2s ease, background-color 0.2s ease; z-index: var(--z-dropdown); } .markdown-content pre:hover .code-copy-btn { opacity: 1; } .code-copy-btn:hover { background: #d0d0d0; } .code-copy-btn.copied { background: var(--success-color); color: white; } /* Code Windows (ChatGPT-style) */ .code-window { background: var(--code-bg-dark); border: 1px solid var(--modal-border-color); border-radius: 0.5rem; margin: 1rem 0; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .code-window-header { background: #f1f5f9; border-bottom: 1px solid var(--modal-border-color); padding: 0.5rem 0.75rem; display: flex; justify-content: space-between; align-items: center; } .code-language { font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.03125rem; } .code-window-copy-btn { background: #ffffff; color: var(--text-dark); border: 1px solid #d1d5db; border-radius: 4px; padding: 0.25rem 0.5rem; font-size: 0.75rem; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; } .code-window-copy-btn:hover { background: #f9fafb; border-color: #9ca3af; } .code-window-copy-btn.copied { background: var(--success-color); color: white; border-color: var(--success-color); } .code-window-content { padding: 1rem; background: #ffffff; } .code-window-content pre { margin: 0; background: transparent; border: none; padding: 0; overflow-x: auto; } .code-window-content code { background: transparent; padding: 0; color: #1f2937; font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace; font-size: 0.875rem; line-height: 1.5; } .markdown-content ul, .markdown-content ol { padding-left: 1.5em; margin-bottom: 1em; } .markdown-content li { margin-bottom: 0.5em; color: var(--background-light); } /* Utility States */ .loading-spinner { text-align: center; padding: 2.5rem; color: var(--text-muted); font-style: italic; } .error-message { text-align: center; padding: 2.5rem; color: #dc2626; } .error-message h3 { margin: 0 0 1rem 0; color: #dc2626; } .error-message p { margin: 0.5rem 0; color: var(--text-muted); } .error-message small { font-size: 0.8em; color: #9ca3af; } /* Chats Menu */ .chats-menu { position: fixed; bottom: 10rem; right: 4.375rem; background: #fff; border-radius: var(--border-radius-sm); box-shadow: var(--shadow-heavy); width: 18.75rem; max-height: 25rem; overflow-y: auto; z-index: var(--z-tooltip); display: none; border: 1px solid var(--border-light); transform-origin: bottom right; } .chats-menu.visible { display: block; } .chats-menu-header { padding: var(--spacing-sm) var(--spacing-md); background: var(--primary-color); color: white; font-weight: 600; border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0; display: flex; justify-content: space-between; align-items: center; } #refresh-chats-btn { background: rgba(255, 255, 255, 0.2); border: none; color: white; border-radius: var(--border-radius-sm); padding: 0.25rem 0.5rem; cursor: pointer; font-size: 1.1rem; line-height: 1; width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); } #refresh-chats-btn:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(180deg); transition: background var(--transition-fast), transform 0.3s ease; } .chats-menu-buttons { display: flex; gap: 0.25rem; align-items: center; } #close-chats-btn { background: rgba(255, 255, 255, 0.2); border: none; color: white; border-radius: var(--border-radius-sm); padding: 0.25rem 0.5rem; cursor: pointer; font-size: 1.7rem; line-height: 1; width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); } #close-chats-btn:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(180deg); transition: background var(--transition-fast), transform 0.3s ease; } .chats-menu-content { max-height: 21.875rem; overflow-y: auto; } .chat-item { padding: var(--spacing-md) var(--spacing-md); border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background var(--transition-fast); display: flex; justify-content: space-between; align-items: center; } .chat-item:hover { background: #f8fafc; } .chat-item:last-child { border-bottom: none; } .chat-title { font-weight: 600; color: #000; line-height: 1.4; flex: 1; margin-right: 0.5rem; } .delete-chat-btn { background: none; border: none; font-size: 1.2rem; color: #999; cursor: pointer; padding: 0.25rem 0.5rem; border-radius: 50%; transition: background var(--transition-fast), opacity var(--transition-fast); flex-shrink: 0; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; } .delete-chat-btn:hover { background: #ffebee; color: #d32f2f; transform: scale(1.1); } .chat-date { font-size: 0.85rem; color: var(--text-light); } .no-chats { padding: var(--spacing-lg); text-align: center; color: var(--text-light); font-style: italic; } /* Floating Action Button (FAB) */ .fab-container { position: relative; display: inline-block; margin-left: 2.875rem; } .fab-main { width: 3.8rem; height: 3.8rem; border-radius: 50% !important; background: var(--primary-color); color: white; border: none; font-size: 24px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; display: flex; align-items: center; justify-content: center; } .fab-main:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); } .fab-buttons { position: absolute; bottom: 5.5rem; right: 6px; display: none; flex-direction: column; gap: 0.75rem; transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; z-index: var(--z-notification); min-width: 3rem; } .fab-expanded .fab-buttons { display: flex; } .fab-button { width: 3.375rem; height: 3.375rem; border-radius: 50% !important; border: none; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; opacity: 0; transform: scale(0.8); } .fab-expanded .fab-button { opacity: 1; transform: scale(1); } .fab-button:nth-child(1) { transition-delay: 0.1s; } .fab-button:nth-child(2) { transition-delay: 0.2s; } .fab-button:nth-child(3) { transition-delay: 0.3s; } .fab-button:hover { transform: scale(1.1); } #fab-marm-toggle.active { background-color: var(--success-color); color: white; } /* Accessibility & Mobile */ button:focus, input:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; } /* Loading indicator styles */ .loading-indicator { background: var(--message-bg); border-radius: var(--border-radius); padding: var(--spacing-sm) var(--spacing-md); margin-bottom: var(--spacing-sm); border-left: 4px solid #222e3a; } .loading-indicator .message-name { position: relative !important; top: auto !important; left: auto !important; font-weight: 600; color: var(--text-color); margin-bottom: 0.5rem; font-size: 0.875rem; } .loading-dots { display: flex; gap: 4px; align-items: center; } .loading-dots span { width: 8px; height: 8px; background-color: #222e3a; border-radius: 50%; display: inline-block; animation: bounce 1.4s infinite ease-in-out both; } .loading-dots span:nth-child(1) { animation-delay: -0.32s; } .loading-dots span:nth-child(2) { animation-delay: -0.16s; } .loading-dots span:nth-child(3) { animation-delay: 0s; } @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms; animation-iteration-count: 1; transition-duration: 0.01ms; } } body { -webkit-text-size-adjust: 100%; touch-action: manipulation; } @media (max-width: 600px) { .desktop-only { display: none; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Lyellr88/marm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server