|
| 1 | +/* |
| 2 | + * MCP Apps custom theme — aligns TypeDoc styling with modelcontextprotocol.io |
| 3 | + */ |
| 4 | + |
| 5 | +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap'); |
| 6 | + |
| 7 | +/* ------------------------------------------------------------------ */ |
| 8 | +/* Fonts */ |
| 9 | +/* ------------------------------------------------------------------ */ |
| 10 | + |
| 11 | +:root { |
| 12 | + --font-family-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; |
| 13 | + --font-family-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; |
| 14 | +} |
| 15 | + |
| 16 | +body { |
| 17 | + font-family: var(--font-family-text); |
| 18 | + -webkit-font-smoothing: antialiased; |
| 19 | + -moz-osx-font-smoothing: grayscale; |
| 20 | +} |
| 21 | + |
| 22 | +/* ------------------------------------------------------------------ */ |
| 23 | +/* Light mode colors */ |
| 24 | +/* ------------------------------------------------------------------ */ |
| 25 | + |
| 26 | +:root { |
| 27 | + --light-color-background: #ffffff; |
| 28 | + --light-color-background-secondary: #f9fafb; |
| 29 | + --light-color-background-navbar: #ffffff; |
| 30 | + --light-color-accent: #e5e7eb; |
| 31 | + --light-color-text: #111827; |
| 32 | + --light-color-text-aside: #6b7280; |
| 33 | +} |
| 34 | + |
| 35 | +/* ------------------------------------------------------------------ */ |
| 36 | +/* Dark mode colors */ |
| 37 | +/* ------------------------------------------------------------------ */ |
| 38 | + |
| 39 | +:root { |
| 40 | + --dark-color-background: #0f1117; |
| 41 | + --dark-color-background-secondary: #161b22; |
| 42 | + --dark-color-background-navbar: #0f1117; |
| 43 | + --dark-color-accent: #30363d; |
| 44 | + --dark-color-text: #f0f6fc; |
| 45 | + --dark-color-text-aside: #8b949e; |
| 46 | +} |
| 47 | + |
| 48 | +/* ------------------------------------------------------------------ */ |
| 49 | +/* Header — taller, frosted glass */ |
| 50 | +/* ------------------------------------------------------------------ */ |
| 51 | + |
| 52 | +:root { |
| 53 | + --dim-toolbar-contents-height: 3.5rem; |
| 54 | +} |
| 55 | + |
| 56 | +.tsd-page-toolbar { |
| 57 | + backdrop-filter: blur(12px); |
| 58 | + -webkit-backdrop-filter: blur(12px); |
| 59 | +} |
| 60 | + |
| 61 | +@media (prefers-color-scheme: light) { |
| 62 | + .tsd-page-toolbar { |
| 63 | + background-color: rgba(255, 255, 255, 0.85); |
| 64 | + } |
| 65 | +} |
| 66 | + |
| 67 | +@media (prefers-color-scheme: dark) { |
| 68 | + .tsd-page-toolbar { |
| 69 | + background-color: rgba(15, 17, 23, 0.75); |
| 70 | + } |
| 71 | +} |
| 72 | + |
| 73 | +:root[data-theme='light'] .tsd-page-toolbar { |
| 74 | + background-color: rgba(255, 255, 255, 0.85); |
| 75 | +} |
| 76 | + |
| 77 | +:root[data-theme='dark'] .tsd-page-toolbar { |
| 78 | + background-color: rgba(15, 17, 23, 0.75); |
| 79 | +} |
| 80 | + |
| 81 | +/* ------------------------------------------------------------------ */ |
| 82 | +/* Sidebar navigation (matches modelcontextprotocol.io sidebar) */ |
| 83 | +/* ------------------------------------------------------------------ */ |
| 84 | + |
| 85 | +.tsd-navigation a { |
| 86 | + padding: 0.375rem 0.75rem; |
| 87 | + font-size: 0.875rem; |
| 88 | + line-height: 1.5; |
| 89 | + border-radius: 0.75rem; |
| 90 | + color: var(--color-text-aside); |
| 91 | + transition: background-color 0.15s ease, color 0.15s ease; |
| 92 | +} |
| 93 | + |
| 94 | +.tsd-navigation a:hover:not(.current) { |
| 95 | + background-color: rgba(107, 114, 128, 0.05); |
| 96 | + color: var(--color-text); |
| 97 | +} |
| 98 | + |
| 99 | +.tsd-navigation a.current { |
| 100 | + background-color: rgba(107, 114, 128, 0.15); |
| 101 | + color: var(--color-text); |
| 102 | + font-weight: 700; |
| 103 | +} |
| 104 | + |
| 105 | +/* Group headers (Documents, Security, API Documentation) */ |
| 106 | +.tsd-accordion-summary > h3 { |
| 107 | + font-weight: 600; |
| 108 | + font-size: 0.875rem; |
| 109 | + letter-spacing: 0.01em; |
| 110 | +} |
| 111 | + |
| 112 | +.site-menu { |
| 113 | + padding: 1.25rem 0; |
| 114 | +} |
| 115 | + |
| 116 | +@media (prefers-color-scheme: dark) { |
| 117 | + .tsd-navigation a { |
| 118 | + color: var(--color-text-aside); |
| 119 | + } |
| 120 | + |
| 121 | + .tsd-navigation a:hover:not(.current) { |
| 122 | + background-color: rgba(229, 231, 235, 0.05); |
| 123 | + color: var(--color-text); |
| 124 | + } |
| 125 | + |
| 126 | + .tsd-navigation a.current { |
| 127 | + background-color: rgba(229, 231, 235, 0.15); |
| 128 | + color: var(--color-text); |
| 129 | + font-weight: 700; |
| 130 | + } |
| 131 | +} |
| 132 | + |
| 133 | +:root[data-theme='dark'] .tsd-navigation a { |
| 134 | + color: var(--color-text-aside); |
| 135 | +} |
| 136 | + |
| 137 | +:root[data-theme='dark'] .tsd-navigation a:hover:not(.current) { |
| 138 | + background-color: rgba(229, 231, 235, 0.05); |
| 139 | + color: var(--color-text); |
| 140 | +} |
| 141 | + |
| 142 | +:root[data-theme='dark'] .tsd-navigation a.current { |
| 143 | + background-color: rgba(229, 231, 235, 0.15); |
| 144 | + color: var(--color-text); |
| 145 | + font-weight: 700; |
| 146 | +} |
| 147 | + |
| 148 | +/* ------------------------------------------------------------------ */ |
| 149 | +/* Content area */ |
| 150 | +/* ------------------------------------------------------------------ */ |
| 151 | + |
| 152 | +.tsd-typography { |
| 153 | + line-height: 1.6; |
| 154 | +} |
| 155 | + |
| 156 | +.tsd-panel.tsd-typography h1 { |
| 157 | + margin-top: 0; |
| 158 | + padding-bottom: 0.4em; |
| 159 | +} |
| 160 | + |
| 161 | +.tsd-panel.tsd-typography h2 { |
| 162 | + margin-top: 2rem; |
| 163 | + padding-bottom: 0.3em; |
| 164 | +} |
| 165 | + |
| 166 | +.tsd-panel.tsd-typography h3 { |
| 167 | + margin-top: 1.75rem; |
| 168 | +} |
| 169 | + |
| 170 | +/* ------------------------------------------------------------------ */ |
| 171 | +/* Code blocks */ |
| 172 | +/* ------------------------------------------------------------------ */ |
| 173 | + |
| 174 | +code, |
| 175 | +pre { |
| 176 | + font-family: var(--font-family-code); |
| 177 | + font-size: 1em; |
| 178 | +} |
| 179 | + |
| 180 | +.tsd-typography pre { |
| 181 | + padding: 1rem 1.25rem; |
| 182 | + border: 1px solid var(--color-accent); |
| 183 | +} |
| 184 | + |
| 185 | +/* Inline code */ |
| 186 | +.tsd-typography code:not(pre code) { |
| 187 | + padding: 0.15em 0.35em; |
| 188 | + font-size: 1em; |
| 189 | +} |
0 commit comments