mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 20:01:33 +02:00
fix: style and type issues with feature enhancements
- Fix presetTheme type assertion issue - Fix content height dvh problem on large screens - Fix tables and KaTex math formulas overflowing containers on mobile - Update 404 page - Update README documentation - Increase link underline offset - Add line number display to code blocks - Improve scrollbar styles for TOC and code blocks
This commit is contained in:
parent
b492e5c262
commit
05b902bc61
9 changed files with 264 additions and 247 deletions
|
@ -54,7 +54,6 @@ function setupScrollbar() {
|
|||
scrollbars: {
|
||||
theme: 'scrollbar-widget',
|
||||
autoHide: 'never',
|
||||
autoHideDelay: 500,
|
||||
},
|
||||
overflow: {
|
||||
x: 'hidden',
|
||||
|
@ -89,9 +88,9 @@ document.addEventListener('astro:after-swap', setupScrollbar)
|
|||
}
|
||||
|
||||
.scrollbar-widget {
|
||||
--os-size: 0.6rem;
|
||||
--os-padding-perpendicular: 0.1rem;
|
||||
--os-padding-axis: 0.2rem;
|
||||
--os-size: 0.4rem;
|
||||
--os-padding-perpendicular: 0;
|
||||
--os-padding-axis: 0.05rem;
|
||||
--os-handle-border-radius: 99rem;
|
||||
--os-handle-perpendicular-size: 75%;
|
||||
--os-handle-perpendicular-size-hover: 100%;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue