Skip to content

Commit a16201d

Browse files
authored
Merge pull request modelcontextprotocol#1074 from jonathanhefner/schema-ref-restore-css
Restore schema reference page styles
2 parents b21f31b + 9e0575e commit a16201d

File tree

1 file changed

+109
-6
lines changed

1 file changed

+109
-6
lines changed

docs/style.css

Lines changed: 109 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,114 @@ body:has(#enable-section-numbers) {
9797
}
9898
}
9999

100+
101+
102+
/*** Page: schema reference ***/
103+
104+
#schema-reference {
105+
display: none;
106+
}
107+
108+
body:has(#schema-reference) {
109+
.tsd-comment {
110+
:is(p, ul, ol):first-child {
111+
margin-top: 0;
112+
}
113+
114+
:is(p, ul, ol):last-child {
115+
margin-bottom: 0;
116+
}
117+
}
118+
119+
.tsd-signature {
120+
font-family: var(--font-mono);
121+
font-size: 0.875rem;
122+
line-height: 1.5rem;
123+
124+
/* Based on code blocks rendered by Mintlify **on the production site**. */
125+
margin: 1.25rem 0;
126+
border: 1px solid;
127+
border-color: light-dark(rgb(var(--gray-950)/.1), rgba(255, 255, 255, 0.1));
128+
border-radius: 1rem;
129+
padding: 1rem 0.875rem;
130+
131+
a {
132+
font-weight: normal;
133+
border-bottom: none;
134+
text-decoration: underline;
135+
136+
&:hover {
137+
text-decoration-thickness: 2px;
138+
}
139+
}
140+
141+
a[href="#"] {
142+
pointer-events: none;
143+
color: inherit;
144+
text-decoration: none;
145+
}
146+
147+
.tsd-signature-keyword {
148+
color: light-dark(rgb(207, 34, 46), #9CDCFE);
149+
}
150+
151+
:is(.tsd-kind-interface, .tsd-kind-type-alias):not(.tsd-signature-type) {
152+
color: light-dark(rgb(149, 56, 0), #4EC9B0);
153+
}
154+
155+
.tsd-signature-type:not(.tsd-kind-interface, .tsd-kind-type-alias) {
156+
color: light-dark(rgb(5, 80, 174), #DCDCAA);
157+
}
158+
}
159+
160+
.tsd-member {
161+
margin: 1.25rem 0;
162+
163+
[data-typedoc-h="3"] {
164+
margin: 0.5rem 0;
165+
166+
font-family: var(--font-mono);
167+
font-weight: 700;
168+
169+
scroll-margin-top: 5rem;
170+
}
171+
172+
& > .tsd-comment,
173+
& > .tsd-type-declaration {
174+
margin-left: 1.25rem;
175+
}
176+
177+
.tsd-type-declaration {
178+
[data-typedoc-h="4"] {
179+
display: none;
180+
}
181+
182+
[data-typedoc-h="4"] + ul {
183+
margin-top: 0;
184+
}
185+
186+
[data-typedoc-h="5"] {
187+
font-family: var(--font-mono);
188+
font-size: 0.875rem;
189+
font-weight: 500;
190+
191+
width: fit-content;
192+
padding: 0.125em 0.5em;
193+
background-color: light-dark(rgb(var(--gray-100)/.5), rgb(255 255 255/.05));
194+
}
195+
}
196+
197+
.tsd-anchor-icon,
198+
.tsd-tag,
199+
.tsd-signature,
200+
.tsd-sources {
201+
display: none;
202+
}
203+
}
204+
}
205+
206+
207+
100208
/* Custom landing page styles */
101209
.landing-page {
102210
min-height: 100vh;
@@ -238,11 +346,6 @@ body:has(#enable-section-numbers) {
238346
color: #d1d5db;
239347
}
240348

241-
& > .tsd-comment,
242-
& > .tsd-type-declaration {
243-
margin-left: 1.25rem;
244-
}
245-
246349
.features-grid {
247350
display: grid;
248351
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
@@ -689,4 +792,4 @@ body:has(#enable-section-numbers) {
689792
max-width: 200px;
690793
margin: 0 auto;
691794
}
692-
}
795+
}

0 commit comments

Comments
 (0)