Compare commits
No commits in common. "342ebde2d4677d0684d93910d35244a597a018f4" and "7851abb2627d7f217d3ab65533118edb7155b9b9" have entirely different histories.
342ebde2d4
...
7851abb262
3 changed files with 7 additions and 22 deletions
|
@ -21,14 +21,7 @@
|
||||||
// When the user clicks on the button, scroll to the top of the document
|
// When the user clicks on the button, scroll to the top of the document
|
||||||
toTopButton.addEventListener("click", toTop);
|
toTopButton.addEventListener("click", toTop);
|
||||||
function toTop() {
|
function toTop() {
|
||||||
try {
|
document.body.scrollTop = 0;
|
||||||
// scrollback gracefully
|
document.documentElement.scrollTop = 0;
|
||||||
window.scrollTo({top: 0, behavior: 'smooth'});
|
|
||||||
} catch (e) {
|
|
||||||
// if there is a error,return to top directly
|
|
||||||
console.error(e);
|
|
||||||
document.body.scrollTop = 0;
|
|
||||||
document.documentElement.scrollTop = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
|
@ -193,16 +193,8 @@ const { instanceDomain, userId, extraParams = '' } = Astro.props;
|
||||||
.account-name {
|
.account-name {
|
||||||
color: #666;
|
color: #666;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
/* fix overflow caused by long names */
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
/* post content */
|
|
||||||
.post .content pre code {
|
|
||||||
/*this should fix code overflows*/
|
|
||||||
white-space: pre-wrap;
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
word-break: normal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* post actions */
|
/* post actions */
|
||||||
.post-actions {
|
.post-actions {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
|
@ -80,11 +80,11 @@ main {
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-path {
|
.terminal-path {
|
||||||
background-color: var(--accent-color);
|
color: var(--terminal-green);
|
||||||
color: var(--bg-color);
|
padding: 1rem;
|
||||||
padding: 5px 10px;
|
font-size: 1.2rem;
|
||||||
font-size: 1rem;
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
border-radius: 4px;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue