|
| 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 */ |
| 83 | +/* ------------------------------------------------------------------ */ |
| 84 | + |
| 85 | +.tsd-navigation a { |
| 86 | + padding: 0.375rem 0.5rem; |
| 87 | + font-size: 0.875rem; |
| 88 | + line-height: 1.5; |
| 89 | + transition: background-color 0.15s ease; |
| 90 | +} |
| 91 | + |
| 92 | +.tsd-navigation a:hover:not(.current) { |
| 93 | + background-color: color-mix(in srgb, var(--color-text-aside), #0000 92%); |
| 94 | +} |
| 95 | + |
| 96 | +.tsd-navigation a.current { |
| 97 | + background-color: color-mix(in srgb, var(--color-text-aside), #0000 88%); |
| 98 | + font-weight: 500; |
| 99 | +} |
| 100 | + |
| 101 | +.site-menu { |
| 102 | + padding: 1.25rem 0; |
| 103 | +} |
| 104 | + |
| 105 | +/* ------------------------------------------------------------------ */ |
| 106 | +/* Content area */ |
| 107 | +/* ------------------------------------------------------------------ */ |
| 108 | + |
| 109 | +.tsd-typography { |
| 110 | + line-height: 1.6; |
| 111 | +} |
| 112 | + |
| 113 | +.tsd-panel.tsd-typography h1 { |
| 114 | + margin-top: 0; |
| 115 | + padding-bottom: 0.4em; |
| 116 | +} |
| 117 | + |
| 118 | +.tsd-panel.tsd-typography h2 { |
| 119 | + margin-top: 2rem; |
| 120 | + padding-bottom: 0.3em; |
| 121 | +} |
| 122 | + |
| 123 | +.tsd-panel.tsd-typography h3 { |
| 124 | + margin-top: 1.75rem; |
| 125 | +} |
| 126 | + |
| 127 | +/* ------------------------------------------------------------------ */ |
| 128 | +/* Code blocks */ |
| 129 | +/* ------------------------------------------------------------------ */ |
| 130 | + |
| 131 | +code, |
| 132 | +pre { |
| 133 | + font-family: var(--font-family-code); |
| 134 | + font-size: 0.85em; |
| 135 | +} |
| 136 | + |
| 137 | +.tsd-typography pre { |
| 138 | + padding: 1rem 1.25rem; |
| 139 | + border: 1px solid var(--color-accent); |
| 140 | +} |
| 141 | + |
| 142 | +/* Inline code */ |
| 143 | +.tsd-typography code:not(pre code) { |
| 144 | + padding: 0.15em 0.35em; |
| 145 | + font-size: 0.875em; |
| 146 | +} |
0 commit comments