mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 15:10:19 +00:00
代码样式
This commit is contained in:
@@ -733,19 +733,25 @@ svg.notion-page-icon {
|
||||
font-size: 85%;
|
||||
}
|
||||
|
||||
pre[class*='language-'] {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
code[class*='language-'] {
|
||||
background: unset !important;
|
||||
}
|
||||
|
||||
.notion-code {
|
||||
width: 100%;
|
||||
padding: 30px 16px 30px 20px;
|
||||
margin: 4px 0;
|
||||
border-bottom-right-radius: 0.5rem;
|
||||
border-bottom-left-radius: 0.5rem;
|
||||
tab-size: 2;
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
overflow: auto;
|
||||
background: #272822;
|
||||
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier,
|
||||
monospace;
|
||||
@apply w-full mb-4 dark:bg-black;
|
||||
}
|
||||
|
||||
.notion-column {
|
||||
@@ -1666,14 +1672,6 @@ svg + .notion-page-title-text {
|
||||
@apply dark:text-black
|
||||
}
|
||||
|
||||
.notion-code > code {
|
||||
color: unset;
|
||||
}
|
||||
|
||||
pre[class*='language-'] {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.notion-bookmark:hover {
|
||||
@apply border-blue-400;
|
||||
}
|
||||
@@ -1911,35 +1909,6 @@ pre[class*='language-'] {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.pre-mac {
|
||||
position: relative;
|
||||
margin-top: -7px;
|
||||
top: 21px;
|
||||
left: 10px;
|
||||
width: 100px;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.pre-mac > span {
|
||||
float: left;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.pre-mac > span:nth-child(1) {
|
||||
background: red;
|
||||
}
|
||||
|
||||
.pre-mac > span:nth-child(2) {
|
||||
background: sandybrown;
|
||||
}
|
||||
|
||||
.pre-mac > span:nth-child(3) {
|
||||
background: limegreen;
|
||||
}
|
||||
|
||||
.notion-asset-wrapper-pdf > div {
|
||||
display: block !important;
|
||||
}
|
||||
@@ -2012,7 +1981,3 @@ pre[class*="language-mermaid"] {
|
||||
code.language-mermaid {
|
||||
display:none
|
||||
}
|
||||
|
||||
pre.notion-code.line-numbers{
|
||||
margin-bottom: 0 !important
|
||||
}
|
||||
Reference in New Issue
Block a user