Skip to content

Commit 4bdabfa

Browse files
Adjust fonts in RPC reference (#1958)
1 parent 50a49c3 commit 4bdabfa

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

src/components/ParserOpenRPC/DetailsBox/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ export default function DetailsBox({
4848
{summary !== null && (
4949
<p
5050
style={{ marginBottom: '0.5rem' }}
51-
className={clsx('padding-bottom--md', styles.borderBottomLine)}>
51+
className={clsx('padding-bottom--md', styles.borderBottomLine, styles.methodSummary)}>
5252
<strong>Summary: </strong>
5353
<span className={styles.summaryText}>
5454
<MDContent content={summary} />
5555
</span>
5656
</p>
5757
)}
5858
{description !== null && (
59-
<div className="padding-top--md">
59+
<div className={clsx("padding-top--md", styles.methodDescription)}>
6060
<MDContent content={description} />
6161
</div>
6262
)}
@@ -68,7 +68,7 @@ export default function DetailsBox({
6868
</Heading>
6969
<div className={styles.paramContainer}>
7070
{params.length === 0 ? (
71-
<div className="padding-vert--md">This method doesn't accept any parameters.</div>
71+
<div className={clsx("padding-vert--md", styles.noParamsDescription)}>This method doesn't accept any parameters.</div>
7272
) : (
7373
params && renderParamSchemas(params, components)
7474
)}

src/components/ParserOpenRPC/DetailsBox/styles.module.scss

+9
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
.enumWrapper {
7474
border: 1px solid var(--general-gray-light);
7575
margin-bottom: 2rem;
76+
font-size: 1.4rem;
7677
}
7778

7879
.enumItem {
@@ -139,6 +140,14 @@
139140
}
140141
}
141142

143+
.methodSummary {
144+
font-style: italic;
145+
}
146+
147+
.methodDescription, .noParamsDescription {
148+
font-size: 1.6rem;
149+
}
150+
142151
html[data-theme='dark'] {
143152
.paramWrapper,
144153
.borderWrapper,

src/components/ParserOpenRPC/ModalDrawer/styles.module.scss

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
font-size: 1.8rem;
5757
line-height: 1;
5858
font-weight: 500;
59+
font-family: var(--ifm-font-family-base);
5960
}
6061

6162
.modalTitleContainer {

0 commit comments

Comments
 (0)