Skip to content

Commit

Permalink
style: improve MathJax container and scrollbar appearance #442
Browse files Browse the repository at this point in the history
- Enhance MathJax container layout and responsiveness
- Center MathJax content and add horizontal scrolling for overflow
- Adjust scrollbar styling for better visibility and consistency
- Improve comments for clarity in basic.styl
  • Loading branch information
EvanNotFound committed Oct 19, 2024
1 parent 78a15bc commit bc69494
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion source/css/common/basic.styl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ redefine-mobile()
*
transition-g()

// scrollbar
// Custom scrollbar
&::-webkit-scrollbar
width 6px
height 6px
Expand All @@ -28,6 +28,7 @@ redefine-mobile()
background-clip content-box
border 3px solid transparent

// Hide the background of the scrollbar track
&::-webkit-scrollbar-track
background-color var(--scroll-bar-bg-color)
border 1px solid var(--shadow-color-1)
Expand Down
17 changes: 15 additions & 2 deletions source/css/common/markdown.styl
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,23 @@
mjx-container
display inline-block
vertical-align baseline
width 100%
overflow-x auto
white-space nowrap
scrollbar-width: thin // For Firefox, if needed
text-align center /* Center the content */
padding-bottom 8px


svg
display inline
display inline-block /* Allow content to be centered properly */


mjx-container[display="true"]
display flex !important
display block
justify-content center
overflow-x auto
text-align center

svg
display inline-block

0 comments on commit bc69494

Please sign in to comment.