From 23ddbcae50ebc90fb2c0792d5383670c884fefc9 Mon Sep 17 00:00:00 2001 From: Evan Luo Date: Sun, 27 Oct 2024 17:24:18 -0400 Subject: [PATCH 1/2] 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 --- source/css/common/markdown.styl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/css/common/markdown.styl b/source/css/common/markdown.styl index 3e8eb4e6..4a4d75e0 100755 --- a/source/css/common/markdown.styl +++ b/source/css/common/markdown.styl @@ -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) @@ -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) From 40cb4971565e74c45258ccd5f543c649f3c20fb0 Mon Sep 17 00:00:00 2001 From: Evan Luo Date: Sun, 27 Oct 2024 17:24:37 -0400 Subject: [PATCH 2/2] chore: bump version to 2.7.3 - Update version in package.json from 2.7.2 to 2.7.3 - Update version in package-lock.json from 2.7.2 to 2.7.3 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index bdf232a7..398b7ab1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hexo-theme-redefine", - "version": "2.7.2", + "version": "2.7.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hexo-theme-redefine", - "version": "2.7.2", + "version": "2.7.3", "license": "GPL-3.0", "devDependencies": { "eslint": "^8.47.0", diff --git a/package.json b/package.json index d9039a3f..6b43ffe6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-redefine", - "version": "2.7.2", + "version": "2.7.3", "private": false, "description": "Redefine your writing with Hexo Theme Redefine.", "scripts": {