Skip to content

Commit e91e2a4

Browse files
committed
Add bullet point and code styling.
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
1 parent 4061835 commit e91e2a4

File tree

1 file changed

+83
-19
lines changed

1 file changed

+83
-19
lines changed

src/pages/quickstart/styles.module.css

Lines changed: 83 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -236,24 +236,24 @@
236236
border-radius: 50%;
237237
}
238238

239-
.switch input:focus+.slider {
239+
.switch input:focus + .slider {
240240
box-shadow: 0 0 1px var(--ifm-color-primary-light);
241241
}
242242

243-
.switch input:checked+.slider {
243+
.switch input:checked + .slider {
244244
background-color: var(--ifm-color-primary-light);
245245
}
246246

247-
input:checked+.slider::before {
247+
input:checked + .slider::before {
248248
transform: translateX(16px);
249249
}
250250

251-
.switch input:checked+.slider::before {
251+
.switch input:checked + .slider::before {
252252
background-color: var(--ifm-color-white);
253253
}
254254

255255
/* Dark mode: Better visibility for checked switches */
256-
[data-theme='dark'] .switch input:checked+.slider {
256+
[data-theme='dark'] .switch input:checked + .slider {
257257
background-color: var(--ifm-color-primary);
258258
}
259259

@@ -851,20 +851,24 @@ input:checked+.slider::before {
851851
.separatorLine {
852852
width: 100%;
853853
height: 1px;
854-
background: linear-gradient(to right,
855-
transparent 0%,
856-
var(--ifm-color-emphasis-300) 50%,
857-
transparent 100%);
854+
background: linear-gradient(
855+
to right,
856+
transparent 0%,
857+
var(--ifm-color-emphasis-300) 50%,
858+
transparent 100%
859+
);
858860
}
859861

860862
/* Completion Indicator */
861863
.completionIndicator {
862864
text-align: center;
863865
padding: 2rem;
864866
margin: 4rem 1.5rem 2rem;
865-
background: linear-gradient(135deg,
866-
var(--ifm-color-success-light) 0%,
867-
var(--ifm-color-success) 100%);
867+
background: linear-gradient(
868+
135deg,
869+
var(--ifm-color-success-light) 0%,
870+
var(--ifm-color-success) 100%
871+
);
868872
color: white;
869873
border-radius: 12px;
870874
font-size: 18px;
@@ -874,9 +878,11 @@ input:checked+.slider::before {
874878

875879
/* Dark mode: Better contrast for completion indicator */
876880
[data-theme='dark'] .completionIndicator {
877-
background: linear-gradient(135deg,
878-
var(--consumer-green-dark) 0%,
879-
var(--institution-green-dark) 100%);
881+
background: linear-gradient(
882+
135deg,
883+
var(--consumer-green-dark) 0%,
884+
var(--institution-green-dark) 100%
885+
);
880886
color: white;
881887
}
882888

@@ -972,6 +978,64 @@ input:checked+.slider::before {
972978
}
973979
}
974980

981+
/* Step Body - MDX Content Styling */
982+
.stepBody {
983+
/* Enable proper markdown styling for MDX content */
984+
}
985+
986+
/* Ensure lists display properly with bullet points */
987+
.stepBody ul {
988+
list-style: disc;
989+
list-style-position: outside;
990+
padding-left: 1.5rem;
991+
margin: 1rem 0;
992+
}
993+
994+
.stepBody ol {
995+
list-style: decimal;
996+
list-style-position: outside;
997+
padding-left: 1.5rem;
998+
margin: 1rem 0;
999+
}
1000+
1001+
.stepBody li {
1002+
margin: 0.5rem 0;
1003+
line-height: 1.6;
1004+
}
1005+
1006+
/* Only target inline code, not code blocks */
1007+
.stepBody p > code,
1008+
.stepBody li > code,
1009+
.stepBody span > code,
1010+
.stepBody td > code,
1011+
.stepBody th > code,
1012+
.stepBody h1 > code,
1013+
.stepBody h2 > code,
1014+
.stepBody h3 > code,
1015+
.stepBody h4 > code,
1016+
.stepBody h5 > code,
1017+
.stepBody h6 > code,
1018+
.stepBody a > code {
1019+
font-family: var(--font-mm-sans-mono);
1020+
font-size: 80%;
1021+
background: var(--ifm-code-background);
1022+
border-radius: var(--ifm-code-border-radius);
1023+
padding: 0.15rem 0.3rem;
1024+
color: var(--ifm-code-color);
1025+
border: 1px solid var(--ifm-color-emphasis-300);
1026+
}
1027+
1028+
/* Ensure code blocks are NOT affected */
1029+
.stepBody pre code {
1030+
/* Reset any inline code styling for code blocks */
1031+
font-size: inherit;
1032+
background: inherit;
1033+
border-radius: inherit;
1034+
padding: inherit;
1035+
color: inherit;
1036+
border: none;
1037+
}
1038+
9751039
/* Media Step Styles */
9761040
.mediaStepContainer {
9771041
height: 100%;
@@ -1117,7 +1181,7 @@ input:checked+.slider::before {
11171181
}
11181182

11191183
/* Ensure both tab contents have identical sizing */
1120-
.tabContent>* {
1184+
.tabContent > * {
11211185
width: 100% !important;
11221186
height: 100% !important;
11231187
flex: 1 1 auto;
@@ -1160,7 +1224,7 @@ input:checked+.slider::before {
11601224
--w3a-ib-code-tab-background-color: var(--ifm-color-emphasis-100) !important;
11611225
}
11621226

1163-
.tabContent .hybridCodeView>* {
1227+
.tabContent .hybridCodeView > * {
11641228
width: 100% !important;
11651229
height: 100%;
11661230
flex: 1;
@@ -1270,7 +1334,7 @@ input:checked+.slider::before {
12701334
}
12711335

12721336
/* Force exact same layout for both tab types */
1273-
.hybridTabContainer .tabContent>div {
1337+
.hybridTabContainer .tabContent > div {
12741338
width: 100% !important;
12751339
height: 100% !important;
12761340
display: flex !important;
@@ -1352,4 +1416,4 @@ input:checked+.slider::before {
13521416
max-height: 85% !important;
13531417
border-radius: 8px !important;
13541418
}
1355-
}
1419+
}

0 commit comments

Comments
 (0)