feat: support codeblock
This commit is contained in:
parent
4885b165df
commit
0a8841f4f4
13 changed files with 201 additions and 52 deletions
|
@ -1,5 +1,5 @@
|
|||
* {
|
||||
scrollbar-color: #5555 var(--c-border);
|
||||
scrollbar-color: #8885 var(--c-border);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
|
@ -16,12 +16,12 @@
|
|||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #555;
|
||||
background: #8885;
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #666;
|
||||
background: #8886;
|
||||
}
|
||||
|
||||
/* Force vertical scrollbar to be always visible to avoid layout shift while loading the content */
|
||||
|
@ -52,4 +52,12 @@ html {
|
|||
p {
|
||||
--at-apply: my-2;
|
||||
}
|
||||
|
||||
.code-block {
|
||||
--at-apply: bg-code text-0.9rem p3 rounded overflow-auto leading-1.6em;
|
||||
|
||||
.shiki {
|
||||
background: transparent !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue