Skip to content

Commit 5d6480d

Browse files
committed
CSS updates.
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
1 parent 9363fd4 commit 5d6480d

File tree

2 files changed

+125
-23
lines changed

2 files changed

+125
-23
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
width: 100%;
1919
padding: 1.6rem;
2020
color: var(--ifm-heading-color);
21+
font-size: 1.4rem;
2122

2223
&:hover {
2324
background-color: var(--general-white-off);

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

Lines changed: 124 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
.paramWrapper {
22
border-bottom: 1px solid var(--general-gray-light);
3-
padding-bottom: 1.5rem;
4-
margin-bottom: 1rem;
3+
padding-bottom: 1rem;
4+
margin-bottom: 0.8rem;
55
}
66

77
.borderWrapper {
88
border-bottom: 1px solid var(--general-gray-light);
9-
padding-top: 2rem;
10-
padding-bottom: 1rem;
9+
padding-top: 1.5rem;
10+
padding-bottom: 0.8rem;
1111
}
1212

1313
.schemaWrapper {
14-
padding: 1.6rem 0;
14+
padding: 1rem 0;
1515
}
1616

1717
.schemaHeader {
1818
display: flex;
1919
align-items: baseline;
2020
gap: 0.8rem;
21-
margin-bottom: 0.3rem;
21+
margin-bottom: 0.2rem;
22+
23+
h5 {
24+
font-size: 1.4rem;
25+
}
2226
}
2327

2428
.textAltColor {
2529
color: var(--general-gray-dark);
2630
font-style: italic;
27-
font-size: 1.3rem;
31+
font-size: 1.2rem;
2832

2933
[data-theme='dark'] & {
3034
color: var(--general-gray);
@@ -38,14 +42,15 @@
3842

3943
.description {
4044
color: var(--general-gray-dark);
45+
font-size: 1.4rem;
4146

4247
[data-theme='dark'] & {
4348
color: var(--general-gray);
4449
}
4550
}
4651

4752
.paramItemWrapper {
48-
padding: 0 1.6rem;
53+
padding: 0 1.2rem;
4954

5055
.borderTopLine {
5156
border-top: 1px solid transparent;
@@ -57,12 +62,12 @@
5762
}
5863

5964
.propItemWrapper {
60-
margin-top: 0.8rem;
65+
margin-top: 0.5rem;
6166
}
6267

6368
.propItemLabel {
6469
font-weight: 500;
65-
font-size: 1.4rem;
70+
font-size: 1.2rem;
6671
color: var(--general-gray-dark);
6772
margin-right: 0.4rem;
6873

@@ -73,7 +78,7 @@
7378

7479
.propItemValue {
7580
font-family: var(--font-mm-sans-mono);
76-
font-size: 1.4rem;
81+
font-size: 1.2rem;
7782
color: var(--general-black);
7883
background-color: var(--ifm-code-background);
7984
padding: 0.2rem 0.4rem;
@@ -89,11 +94,11 @@
8994
display: inline-block;
9095
background-color: var(--general-white-off);
9196
border: 1px solid var(--general-gray-light);
92-
border-radius: 0.4rem;
93-
padding: 0.3rem 0.6rem;
94-
margin-left: 0.8rem;
95-
font-size: 1rem;
96-
line-height: 1.2;
97+
border-radius: 0.3rem;
98+
padding: 0.1rem 0.4rem;
99+
margin-left: 0.5rem;
100+
font-size: 0.9rem;
101+
line-height: 1.1;
97102
vertical-align: baseline;
98103

99104
[data-theme='dark'] & {
@@ -105,7 +110,7 @@
105110
.patternLabel {
106111
font-weight: 500;
107112
color: var(--general-gray-dark);
108-
margin-right: 0.3rem;
113+
margin-right: 0.2rem;
109114

110115
[data-theme='dark'] & {
111116
color: var(--general-gray);
@@ -123,12 +128,14 @@
123128

124129
.paramSeparator {
125130
border: none;
126-
border-top: 1px solid var(--general-gray-light);
127-
margin: 2rem 0;
131+
border-top: 1px dotted var(--general-gray-light);
132+
margin: 0.6rem 0;
128133
height: 0;
134+
opacity: 0.6;
129135

130136
[data-theme='dark'] & {
131137
border-top-color: var(--general-black-light);
138+
opacity: 0.7;
132139
}
133140
}
134141

@@ -173,17 +180,110 @@
173180
}
174181

175182
.heading1 {
176-
font-size: 2.4rem;
183+
font-size: 2.7rem !important;
177184
line-height: 133.333%;
178185
}
179186

180187
.heading2 {
181-
font-size: 2rem;
188+
font-size: 2.3rem !important;
182189
line-height: 140%;
183190
}
184191

185192
.headingSmall {
186-
font-size: 1.8rem;
193+
font-size: 1.5rem !important;
194+
}
195+
196+
// Target the actual HTML structure in the parser component
197+
:global(.colContentWrap_src-components-ParserOpenRPC-global-module) {
198+
h1 {
199+
font-size: 2.7rem !important;
200+
}
201+
202+
h2 {
203+
font-size: 2.3rem !important;
204+
}
205+
206+
h3 {
207+
font-size: 1.5rem !important;
208+
}
209+
210+
h4 {
211+
font-size: 1.4rem !important;
212+
}
213+
214+
h5 {
215+
font-size: 1.4rem !important;
216+
}
217+
}
218+
219+
// Target utility classes that might be overriding
220+
:global(.type-paragraph-m) {
221+
h1 {
222+
font-size: 2.7rem !important;
223+
}
224+
225+
h2 {
226+
font-size: 2.3rem !important;
227+
}
228+
229+
h3 {
230+
font-size: 1.5rem !important;
231+
}
232+
233+
h4 {
234+
font-size: 1.4rem !important;
235+
}
236+
237+
h5 {
238+
font-size: 1.4rem !important;
239+
}
240+
}
241+
242+
// More specific targeting for the parser content area
243+
:global([id='centerContent']) {
244+
h1 {
245+
font-size: 2.7rem !important;
246+
}
247+
248+
h2 {
249+
font-size: 2.3rem !important;
250+
}
251+
252+
h3 {
253+
font-size: 1.5rem !important;
254+
}
255+
}
256+
257+
// Additional specificity for heading elements within the parser component
258+
:global(.parserOpenRPC) {
259+
h1 {
260+
font-size: 2.7rem !important;
261+
}
262+
263+
h2 {
264+
font-size: 2.3rem !important;
265+
}
266+
267+
h3 {
268+
font-size: 1.5rem !important;
269+
}
270+
}
271+
272+
// Target specific heading classes that might be used
273+
:global(.type-heading-l),
274+
:global(.type-heading-m),
275+
:global(.type-heading-s) {
276+
&.heading1 {
277+
font-size: 2.7rem !important;
278+
}
279+
280+
&.heading2 {
281+
font-size: 2.3rem !important;
282+
}
283+
284+
&.headingSmall {
285+
font-size: 1.5rem !important;
286+
}
187287
}
188288

189289
.tagList {
@@ -220,11 +320,12 @@
220320

221321
.methodSummary {
222322
font-style: italic;
323+
font-size: 1.4rem;
223324
}
224325

225326
.methodDescription,
226327
.noParamsDescription {
227-
font-size: 1.6rem;
328+
font-size: 1.4rem;
228329
}
229330

230331
// Styles for markdown content rendered by MDContent component

0 commit comments

Comments
 (0)