代码主题

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

@@ -737,7 +737,8 @@ svg.notion-page-icon {
width: 100%;
padding: 30px 16px 30px 20px;
margin: 4px 0;
border-radius: 10px;
border-bottom-right-radius: 0.5rem;
border-bottom-left-radius: 0.5rem;
tab-size: 2;
display: block;
box-sizing: border-box;
@@ -1996,4 +1997,22 @@ thead, tbody tr {
.notion-collection-card{
@apply dark:hover:text-gray-200
}
.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
}

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
}