mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-21 15:09:43 +00:00
提交代码优化相关
This commit is contained in:
@@ -1835,6 +1835,7 @@ pre[class*='language-'] {
|
||||
line-height: 120%;
|
||||
min-width: 0;
|
||||
font-size: 14px;
|
||||
@apply dark:text-gray-200
|
||||
}
|
||||
|
||||
.notion-collection-column-title-icon {
|
||||
@@ -1845,6 +1846,8 @@ pre[class*='language-'] {
|
||||
min-height: 14px;
|
||||
fill: var(--fg-color-2);
|
||||
margin-right: 6px;
|
||||
@apply dark:text-gray-200
|
||||
|
||||
}
|
||||
|
||||
.notion-collection-column-title-body {
|
||||
|
||||
@@ -3,14 +3,8 @@
|
||||
**/
|
||||
.code-toolbar {
|
||||
position: relative;
|
||||
|
||||
width: 100%;
|
||||
|
||||
background: #000;
|
||||
|
||||
padding-top: 20px;
|
||||
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 10px 30px 0 rgba(0, 0, 0, .4);
|
||||
@apply mb-8 pt-6 w-full rounded-lg bg-black
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
@@ -34,17 +28,11 @@
|
||||
|
||||
pre[class*='language-'].line-numbers {
|
||||
position: relative;
|
||||
|
||||
padding: 3px; /*修改*/
|
||||
|
||||
padding-left: 3.8em;
|
||||
|
||||
counter-reset: linenumber;
|
||||
|
||||
max-height: 400px; /*修改*/
|
||||
|
||||
background: black;
|
||||
|
||||
border: none;
|
||||
}
|
||||
|
||||
@@ -54,29 +42,15 @@ pre[class*='language-'] {
|
||||
}
|
||||
|
||||
.pre-mac {
|
||||
position: relative;
|
||||
|
||||
margin-top: -7px;
|
||||
|
||||
top: 21px;
|
||||
|
||||
left: 10px;
|
||||
|
||||
width: 100px;
|
||||
|
||||
z-index: 99;
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
@apply z-10 top-4 left-3
|
||||
}
|
||||
|
||||
.pre-mac > span {
|
||||
float: left;
|
||||
|
||||
width: 10px;
|
||||
|
||||
height: 10px;
|
||||
|
||||
border-radius: 50%;
|
||||
|
||||
margin-right: 5px;
|
||||
@apply float-left
|
||||
}
|
||||
|
||||
.pre-mac > span:nth-child(1) {
|
||||
@@ -91,17 +65,6 @@ pre[class*='language-'] {
|
||||
background: limegreen;
|
||||
}
|
||||
|
||||
/* 引用块中的代码样式调 */
|
||||
blockquote .code-toolbar {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
blockquote .pre-mac {
|
||||
top: 15px;
|
||||
}
|
||||
|
||||
details .code-toolbar {
|
||||
top: 10px;
|
||||
.notion-code-copy{
|
||||
display: none;
|
||||
}
|
||||
Reference in New Issue
Block a user