feat: replace smooth scroll js with css scroll-behavior

This commit is contained in:
Dillon
2022-05-12 04:03:44 +08:00
parent 0960a266c7
commit 5e9c5f6417
14 changed files with 9 additions and 48 deletions

View File

@@ -40,6 +40,8 @@ code, pre, .highlight table, .highlight tr, .highlight td {
.highlight {
font-family: $code-font-family;
font-size: $code-font-size;
line-height: 1.4em;
margin: .5rem 0;
.table-wrapper {
> table,
@@ -55,11 +57,6 @@ code, pre, .highlight table, .highlight tr, .highlight td {
}
}
}
}
.highlight {
line-height: 1.4em;
margin: .5rem 0;
> .chroma {
position: relative;