代码主题

This commit is contained in:
tangly1024
2022-12-24 13:09:12 +08:00
parent 82a190fd85
commit 7524fc3256
6 changed files with 33 additions and 30 deletions

View File

@@ -3,9 +3,10 @@
**/
.code-toolbar {
position: relative;
box-shadow: 0 10px 30px 0 rgba(0, 0, 0, .4);
/* box-shadow: 0 10px 30px 0 rgba(0, 0, 0, .4); */
padding-bottom: 0 !important;
@apply mb-8 mt-4 pt-6 w-full rounded-lg bg-black
/* @apply mb-8 mt-4 pt-6 w-full rounded-lg bg-black */
@apply w-full rounded-lg
}
.toolbar {
@@ -27,10 +28,10 @@
margin-top: -0.1rem;
}
.notion-code > code[class*='language-'],
/* .notion-code > code[class*='language-'],
pre[class*='language-'] {
background: black;
}
} */
.pre-mac {
position: absolute;
@@ -55,20 +56,3 @@ pre[class*='language-'] {
.pre-mac > span:nth-child(3) {
background: limegreen;
}
.notion-code-copy{
display: none;
}
pre[class*="language-mermaid"] {
@apply bg-gray-50 dark:bg-gray-200 !important;
}
/* mermaid 原文隐藏 */
code.language-mermaid {
display:none
}
pre.notion-code.line-numbers{
margin-bottom: 0 !important
}