@@ -1050,7 +1050,7 @@ img.no-zoom {
10501050.theme-doc-markdown li {
10511051 display : list-item !important ;
10521052 margin-bottom : 8px !important ;
1053- line-height : 1.7 !important ;
1053+ line-height : 27.2 px !important ; /* 固定行高 27.2px */
10541054 height : auto !important ; /* 自适应高度 */
10551055}
10561056
@@ -1402,7 +1402,7 @@ nav.pagination-nav {
14021402 color : rgb (44 , 62 , 80 ) !important ; /* #2C3E50 */
14031403 height : auto !important ; /* 自适应高度,不固定 */
14041404 min-height : 27.2px !important ; /* 最小高度保持一行的高度 */
1405- line-height : 1.7 !important ; /* 使用相对行高,更灵活 */
1405+ line-height : 27.2 px !important ; /* 固定行高 27.2px */
14061406 margin-top : 16px !important ;
14071407 margin-bottom : 16px !important ;
14081408 margin-left : 0 !important ;
@@ -1417,7 +1417,7 @@ nav.pagination-nav {
14171417 color : rgb (44 , 62 , 80 ) !important ; /* #2C3E50 */
14181418 height : auto !important ; /* 自适应高度,不固定 */
14191419 min-height : 27.2px !important ; /* 最小高度保持一行的高度 */
1420- line-height : 1.7 !important ; /* 使用相对行高,更灵活 */
1420+ line-height : 27.2 px !important ; /* 固定行高 27.2px */
14211421 list-style-type : disc !important ;
14221422 margin-bottom : 8px !important ; /* 列表项之间的间距 */
14231423}
@@ -1500,7 +1500,7 @@ nav.pagination-nav {
15001500 color : rgb (44 , 62 , 80 ) !important ; /* #2C3E50 */
15011501 height : auto !important ; /* 自适应高度,不固定 */
15021502 min-height : 27.2px !important ; /* 最小高度保持一行的高度 */
1503- line-height : 1.7 !important ; /* 使用相对行高,更灵活 */
1503+ line-height : 27.2 px !important ; /* 固定行高 27.2px */
15041504 margin-top : 16px !important ;
15051505 margin-bottom : 16px !important ;
15061506 margin-left : 0 !important ;
@@ -1515,7 +1515,7 @@ nav.pagination-nav {
15151515 color : rgb (44 , 62 , 80 ) !important ; /* #2C3E50 */
15161516 height : auto !important ; /* 自适应高度,不固定 */
15171517 min-height : 27.2px !important ; /* 最小高度保持一行的高度 */
1518- line-height : 1.7 !important ; /* 使用相对行高,更灵活 */
1518+ line-height : 27.2 px !important ; /* 固定行高 27.2px */
15191519 list-style-type : disc !important ;
15201520 margin-bottom : 8px !important ; /* 列表项之间的间距 */
15211521}
@@ -1657,21 +1657,52 @@ a[class*="pagination-nav__link"]:hover,
16571657}
16581658
16591659/* 7. 布局对齐修正:确保下一页靠右显示 */
1660- .pagination-nav__item--next {
1660+ /* 下一篇容器始终右对齐 */
1661+ .pagination-nav__item--next ,
1662+ .pagination-nav__item .pagination-nav__item--next {
16611663 text-align : right !important ;
16621664 justify-content : flex-end !important ;
16631665 display : flex !important ;
1666+ margin-left : auto !important ; /* 关键:自动推到右侧 */
1667+ flex-grow : 0 !important ; /* 不要撑满空间 */
1668+ }
1669+
1670+ /* 上一篇容器左对齐 */
1671+ .pagination-nav__item--prev ,
1672+ .pagination-nav__item .pagination-nav__item--prev {
1673+ margin-right : auto !important ;
1674+ margin-left : 0 !important ;
1675+ flex-grow : 0 !important ;
1676+ }
1677+
1678+ /* 当只有"下一篇"时(是第一个也是唯一的子元素),确保右对齐 */
1679+ .pagination-nav__item--next : first-child ,
1680+ .pagination-nav__item--next : only-child ,
1681+ .pagination-nav > .pagination-nav__item--next : first-child {
1682+ margin-left : auto !important ;
1683+ }
1684+
1685+ /* 针对 Docusaurus 直接放链接的结构 */
1686+ .pagination-nav > .pagination-nav__link--next : first-child ,
1687+ .pagination-nav > .pagination-nav__link--next : only-child ,
1688+ .pagination-nav > a .pagination-nav__link--next : first-child {
1689+ margin-left : auto !important ;
1690+ }
1691+
1692+ /* 当只有下一篇链接时,让父容器右对齐(现代浏览器) */
1693+ .pagination-nav : has (.pagination-nav__link--next : only-child ),
1694+ .pagination-nav : has (.pagination-nav__item--next : only-child ),
1695+ .pagination-nav : has (> : first-child .pagination-nav__item--next ) {
1696+ justify-content : flex-end !important ;
16641697}
16651698/* ============================================================
16661699 🚑 紧急修复:图片与正文重叠问题
16671700 ============================================================ */
16681701
16691702/* 1. 解除段落的高度限制 (最关键的一步) */
1703+ /* 注意:p 元素的主要样式已在上方定义,这里只补充 overflow */
16701704.theme-doc-markdown p {
1671- height : auto !important ; /* 让段落高度随内容(图片)自动撑开 */
1672- min-height : 27.2px ; /* 保持文字段落的最小高度 */
16731705 overflow : visible !important ; /* 允许内容展示 */
1674- margin-bottom : 24px !important ; /* 恢复段落间距 */
16751706}
16761707
16771708/* 2. 确保图片容器不会塌陷 */
0 commit comments