Skip to content

Commit

Permalink
🔖 v1.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Dec 7, 2022
1 parent 2cdd3f7 commit 3d9729e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 316 deletions.
11 changes: 11 additions & 0 deletions style/attr.css
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,15 @@ rotyle-wysiwyg [data-node-id][custom-f="20"] div[contenteditable="true"]:after
position: sticky;
top: 1px;
z-index: 1;
}

/* 代码块输出code output */
.protyle-wysiwyg [data-node-id][custom-code="output"] .protyle-action .protyle-action__language{
opacity: 0;
}
.protyle-wysiwyg [data-node-id][custom-code="output"]{
background-color: transparent;
}
.protyle-wysiwyg [data-node-id][custom-code="output"] .hljs{
background-color: transparent !important;
}
24 changes: 9 additions & 15 deletions style/code_block.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
background-color: var(--b3-protyle-code-background) !important;
border-radius: 0 0px 4px 0;
/* background-image: url('../src/paper.png') !important; */

}

.code-block {
Expand All @@ -21,23 +20,20 @@
/* background-image: url('../src/paper.png') !important; */
}

.protyle-wysiwyg[id="preview"] .code-block {
.protyle-wysiwyg[id='preview'] .code-block {
box-shadow: 0 0 0 1.5px #1e25351a;
}


.b3-typography .code-block .protyle-action .protyle-icon,
.protyle-wysiwyg .code-block .protyle-action .protyle-icon {
background-color: var(--b3-tooltips-color);
}

.protyle-wysiwyg [data-node-id][fold="1"]:not(.li):not([data-type="NodeHeading"]).code-block {
.protyle-wysiwyg [data-node-id][fold='1']:not(.li):not([data-type='NodeHeading']).code-block {
line-height: 1.625;
height: 2px;
}



/* 语言标签 */
/* 代码语言显示 */
.protyle-wysiwyg .code-block .protyle-action .protyle-action__language {
Expand All @@ -54,15 +50,17 @@
color: #7e888d;
}

.protyle-wysiwyg .code-block[linenumber="true"] .protyle-action .protyle-action__language {
.protyle-wysiwyg .code-block[linenumber='true'] .protyle-action .protyle-action__language {
margin: 3px 0 0 68px !important;
}

.protyle-wysiwyg[contenteditable=true] .code-block .protyle-action .protyle-action__language:hover {
.protyle-wysiwyg[contenteditable='true']
.code-block
.protyle-action
.protyle-action__language:hover {
background-color: #a1abb161;
}


.code-block .protyle-action .protyle-action__language:hover::after {
opacity: 1;
}
Expand All @@ -75,7 +73,7 @@

/* 代码块行数*/
.protyle-linenumber__rows {
margin-top: 24px !important;
margin-top: 17px !important;
background-color: var(--b3-protyle-code-background);
font-family: var(--b3-font-family-code);
opacity: 0.7;
Expand All @@ -88,23 +86,19 @@
opacity: 0.5;
}



/* 按钮颜色 */
.b3-typography .code-block .protyle-action .protyle-icon,
.protyle-wysiwyg .code-block .protyle-action .protyle-icon {
background-color: #a1abb1;
}


/* ------代码语言栏居右--------- */
/* .b3-typography .code-block .protyle-action,
.protyle-wysiwyg [data-node-id].code-block .protyle-action {
left: auto;
right: 4px;
} */


/* ---------mac三点--------- */
/* .code-block::after {
content: ' ';
Expand All @@ -117,4 +111,4 @@
height: 12px;
width: 12px;
z-index: 1;
} */
} */
105 changes: 0 additions & 105 deletions style/ctrlP.css

This file was deleted.

Loading

0 comments on commit 3d9729e

Please sign in to comment.