edited readme

This commit is contained in:
asus
2023-12-06 14:19:27 +01:00
parent 385b43cfc6
commit cac49da466
9 changed files with 113 additions and 24 deletions

View File

@@ -6,7 +6,7 @@ html {
font-size: var(--base_font_size);
}
body, main {
overflow-x: hidden;
overflow-x: clip;
margin: auto;
width: fit-content;
background-color: #f6f6f6;
@@ -18,3 +18,15 @@ pre {
margin: 10px 0px;
}
/* https://css-tricks.com/slow-movement/#h-you-can-implement-native-smooth-scrolling-in-css */
/* Animate scrolling only if users dont prefer reduced motion */
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
/* Add some spacing between the target and the top of the viewport */
:target {
scroll-margin-top: 0px;
}
}