Skip to content

Commit

Permalink
feat: 改进代码块样式
Browse files Browse the repository at this point in the history
  • Loading branch information
bug320 committed May 24, 2024
1 parent 5cdb50a commit 6b4bc1d
Show file tree
Hide file tree
Showing 6 changed files with 12,037 additions and 2 deletions.
11,988 changes: 11,988 additions & 0 deletions static/vlook-24.2-x-bug320.css

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions style/custom/v-block-inline-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,50 @@ div.item__readme blockquote {
{
background-color: var(--v-block-code-row-bg-color) !important;
width: 36px;
border-width: 0;
border-right: 1px solid var(--pn-c);
}
.protyle-wysiwyg .code-block .protyle-linenumber__rows span::before{
text-align: center !important;
}

.b3-typography div.hljs, .protyle-wysiwyg div.hljs{
background: var(---v-block-code-bg-color);
display: block;
}

[data-type="NodeCodeBlock"] .protyle-action{
left: 0px !important;
top: 0px !important;
display: flex;
z-index: 1;
position: absolute;
right: 0px !important;
background-color: #cfd4d8;
}

[data-type="NodeCodeBlock"] .protyle-action::before{
content: attr(lang) " ";
text-transform: uppercase;
white-space: pre-wrap;
background-image: var(--v-i-sys-menu);
background-repeat: no-repeat;
background-position: 7px center;
padding: 4px 4px 0px 4px;
color: var(--d-fc);
opacity: 0.6;
font-family: var(--v-f-fm-bd);
font-weight: 700;
font-size: 0.875em;
width: 60px;
display: block;
border-radius: var(--v-r-t) var(--v-r-t) 0 0;
top: 0;
}
/* protyle-action--first protyle-action__language::before{ */

.protyle-action__language{
margin-left: 3px !important;
}

/* 行内代码 */
Expand Down
3 changes: 2 additions & 1 deletion style/theme-on-vlook-conifg.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@

/*代码块颜色*/
--v-block-code-bg-color: var(--code-bg);
--v-block-code-row-bg-color: #e8eaed;
/* --v-block-code-row-bg-color: #e8eaed; */
--v-block-code-row-bg-color: #fcf9f2;
--v-block-code-color: var(--code-t);
--v-black-code-font-family: var(--v-f-fm-code);
--v-black-code-boder-color: var(--tbl-bd);
Expand Down
1 change: 1 addition & 0 deletions style/vlooks/vlook-bug320-dk.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
--v-invert-dark: var(--v-invert-dark-dk);
--v-brightness-dk: var(--v-brightness-dark-dk);
--d-bc: var(--d-bc-dk);
--d-fc: var(--d-fc-dk);
--d-bc-tsp: var(--d-bc-tsp-dk);
--d-bi: var(--d-bi-dk);
--d-f-c: var(--d-f-c-dk);
Expand Down
5 changes: 5 additions & 0 deletions style/vlooks/vlook-bug320-lt.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mini-vlook",
"author": "路人二",
"url": "https://github.com/idea-zone/mini-vlook",
"version": "3.0.10",
"version": "3.0.15",
"displayName": {
"default": "mini-vlook(简洁版vlook)",
"zh_CN": "mini-vlook(简洁版vlook)",
Expand Down

0 comments on commit 6b4bc1d

Please sign in to comment.