Skip to content

Commit f4f0ad2

Browse files
authored
Merge pull request #3 from KaivalyaMDabhadkar/main
fixed styling issues
2 parents b85b477 + 62b95f3 commit f4f0ad2

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

styles.css

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,34 +1211,43 @@ img:hover {
12111211
/* Math display - prevent overflow and ensure readability */
12121212
.math.display {
12131213
overflow-x: auto;
1214-
font-size: 1.15em;
1215-
scrollbar-width: none; /* Hide scrollbar for Firefox */
1216-
-ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
1214+
font-size: 1.05em;
1215+
scrollbar-width: thin; /* Thin scrollbar for Firefox */
12171216
}
12181217

12191218
.math.display::-webkit-scrollbar {
1220-
display: none; /* Hide scrollbar for Chrome/Safari */
1219+
height: 3px; /* Very thin horizontal scrollbar */
1220+
display: block;
1221+
}
1222+
1223+
.math.display::-webkit-scrollbar-thumb {
1224+
background: var(--primary-light);
1225+
border-radius: 3px;
1226+
opacity: 0.5;
12211227
}
12221228

12231229
/* MathJax on mobile */
12241230
mjx-container[display="true"] {
12251231
padding: 1rem !important;
1226-
font-size: 1.1em !important;
1232+
font-size: 1.05em !important;
12271233
}
12281234

12291235
/* Only display math should scroll horizontally on mobile */
12301236
mjx-container[display="true"] mjx-math {
12311237
overflow-x: auto !important;
12321238
overflow-y: hidden !important;
12331239
max-width: 100% !important;
1234-
-ms-overflow-style: none !important; /* IE/Edge */
1235-
scrollbar-width: none !important; /* Firefox */
1240+
scrollbar-width: thin !important;
12361241
}
12371242

12381243
mjx-container[display="true"] mjx-math::-webkit-scrollbar {
1239-
width: 0 !important;
1240-
height: 0 !important;
1241-
display: none !important;
1244+
height: 3px !important;
1245+
display: block !important;
1246+
}
1247+
1248+
mjx-container[display="true"] mjx-math::-webkit-scrollbar-thumb {
1249+
background: var(--primary-light) !important;
1250+
border-radius: 3px !important;
12421251
}
12431252

12441253
/* Inline math must never create a scrollable box */

0 commit comments

Comments
 (0)