Skip to content

Commit 23ddbca

Browse files
committed
style: Improve MathJax container styling and layout
- Adjust inline MathJax container display and margins - Enhance block-level MathJax container styling for better readability - Remove unnecessary properties from inline MathJax containers - Optimize scrollbar appearance for better user experience
1 parent 255d3c8 commit 23ddbca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/css/common/markdown.styl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,10 @@
242242
background-color var(--second-background-color)
243243

244244
mjx-container
245-
display inline-block
246-
vertical-align baseline
247-
width 100%
245+
display inline
248246
overflow-x auto
249247
white-space nowrap
250-
scrollbar-width: thin // For Firefox, if needed
251-
text-align center /* Center the content */
252-
padding-bottom 8px
248+
margin 0 0.2rem
253249

254250
&:hover::-webkit-scrollbar-thumb
255251
border 3px solid rgba(183, 183, 183, 0.3)
@@ -276,8 +272,12 @@
276272
mjx-container[display="true"]
277273
display block
278274
justify-content center
275+
vertical-align baseline
279276
overflow-x auto
280277
text-align center
278+
white-space nowrap
279+
scrollbar-width: thin // For Firefox, if needed
280+
padding-bottom 8px
281281

282282
&:hover::-webkit-scrollbar-thumb
283283
border 3px solid rgba(183, 183, 183, 0.3)

0 commit comments

Comments
 (0)