Skip to content

Commit 7e0993d

Browse files
author
kylening
committed
Restore top navigation click behavior
1 parent c83d35f commit 7e0993d

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ html:not([data-rem-theme="off"]) .md-content__inner {
118118
background: linear-gradient(90deg, #2d8fd3, #66bdf3 68%, #92aaf6);
119119
}
120120

121+
/* Material 通过 hidden 控制页签动画,并同时关闭 pointer-events。
122+
自定义主题会保留这条导航栏,因此必须恢复其交互能力。 */
123+
.md-tabs[hidden] {
124+
pointer-events: auto;
125+
}
126+
121127
.md-tabs__link {
122128
box-sizing: border-box;
123129
display: inline-flex;

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ extra_javascript:
103103
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
104104

105105
extra_css:
106-
- stylesheets/rem-theme-v5.css
106+
- stylesheets/rem-theme-v6.css

0 commit comments

Comments
 (0)