mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix: 移动设备下 twoslash 样式兼容问题
This commit is contained in:
parent
54c3ed5f1a
commit
fd7801518e
@ -31,6 +31,17 @@ div[class*="language-"].line-numbers-mode:has(> .twoslash) {
|
||||
}
|
||||
}
|
||||
|
||||
@supports not selector(:has(a)) {
|
||||
div[class*="language-"] .twoslash + .line-numbers {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div[class*="language-"] pre.twoslash {
|
||||
padding-left: 1.5rem;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Respect people's wishes to not have animations */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.twoslash * {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user