Skip to content

Commit

Permalink
style: Improve MathJax container styling and layout
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
EvanNotFound committed Oct 27, 2024
1 parent 255d3c8 commit 23ddbca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/css/common/markdown.styl
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,10 @@
background-color var(--second-background-color)

mjx-container
display inline-block
vertical-align baseline
width 100%
display inline
overflow-x auto
white-space nowrap
scrollbar-width: thin // For Firefox, if needed
text-align center /* Center the content */
padding-bottom 8px
margin 0 0.2rem

&:hover::-webkit-scrollbar-thumb
border 3px solid rgba(183, 183, 183, 0.3)
Expand All @@ -276,8 +272,12 @@
mjx-container[display="true"]
display block
justify-content center
vertical-align baseline
overflow-x auto
text-align center
white-space nowrap
scrollbar-width: thin // For Firefox, if needed
padding-bottom 8px

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

0 comments on commit 23ddbca

Please sign in to comment.