mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 04:19:02 +08:00
improve code block styling
This commit is contained in:
parent
8038ea9f94
commit
0724796842
@ -48,6 +48,11 @@ pre[class*="language-"] {
|
|||||||
background: $codeBackground;
|
background: $codeBackground;
|
||||||
padding: 1.2rem 1.5rem !important;
|
padding: 1.2rem 1.5rem !important;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
|
max-height: unquote("max(300px, 60vh)");
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background-color: rgba($colorWhite, 0.25);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pre[class*="language-"].language-css > code,
|
pre[class*="language-"].language-css > code,
|
||||||
|
Loading…
Reference in New Issue
Block a user