mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-31 15:10:11 +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
|
||||
}
|
||||
@@ -3,23 +3,11 @@
|
||||
**/
|
||||
.code-toolbar {
|
||||
position: relative;
|
||||
/* box-shadow: 0 10px 30px 0 rgba(0, 0, 0, .4); */
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
/* @apply mb-8 mt-4 pt-6 w-full rounded-lg bg-black */
|
||||
@apply w-full rounded-lg
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
position: absolute;
|
||||
margin-left: 100%;
|
||||
top: 8px;
|
||||
right: 4px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
font-size: 0.8rem;
|
||||
line-height: 1rem;
|
||||
}
|
||||
|
||||
.toolbar-item{
|
||||
@apply whitespace-nowrap
|
||||
}
|
||||
@@ -28,18 +16,17 @@
|
||||
margin-top: -0.1rem;
|
||||
}
|
||||
|
||||
/* .notion-code > code[class*='language-'],
|
||||
pre[class*='language-'] {
|
||||
background: black;
|
||||
} */
|
||||
@apply mt-0 mb-2 pt-6 !important;
|
||||
}
|
||||
|
||||
.pre-mac {
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
@apply z-10 top-4 left-3
|
||||
@apply left-5 top-2 z-10 absolute
|
||||
}
|
||||
|
||||
.pre-mac > span {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
margin-right: 5px;
|
||||
@apply float-left
|
||||
|
||||
Reference in New Issue
Block a user