Skip to content

Commit

Permalink
feat: #1 代码块样式优化-整体css结构调整
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Mar 2, 2023
1 parent cada92f commit af487ff
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 27 deletions.
1 change: 1 addition & 0 deletions src/styles/zhi/widgets/code-block/code-block-dark.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* -------------------------------------------------代码块-暗黑模式--------------------------------------------------- */
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* -------------------------------------------------代码块样式--------------------------------------------------- */
/* -------------------------------------------------代码块-浅色模式--------------------------------------------------- */
.code-block
--terwer-code-tab-bg: #f3f5f7
border: .5px solid var(--b3-border-color) !important
Expand Down Expand Up @@ -75,5 +75,4 @@ code.hljs
.b3-typography .code-block .protyle-action .protyle-action__language svg,
.protyle-wysiwyg .code-block .protyle-action .protyle-icon svg,
.protyle-wysiwyg .code-block .protyle-action .protyle-action__language svg
color: gray
/* -------------------------------------------------代码块样式 END--------------------------------------------------- */
color: gray
10 changes: 10 additions & 0 deletions src/styles/zhi/widgets/code-block/code-block-print.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* -------------------------------------------------代码块-打印模式--------------------------------------------------- */
#preview
.protyle-action__language
right: 0.2rem !important

.protyle-action__language:after
display: none !important

.protyle-action__copy
display: none !important
2 changes: 2 additions & 0 deletions src/styles/zhi/widgets/code-block/index.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@require "code-block-light"
@require "code-block-print"
19 changes: 0 additions & 19 deletions src/styles/zhi/widgets/print-page.styl

This file was deleted.

7 changes: 2 additions & 5 deletions src/styles/zhi/zhi-theme.styl
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// 基本样式
@require "../common/basic"

//// 代码块
//@require "./widgets/code-block"

//// 打印页面适配
//@require "./widgets/print-page"
// 代码块
@require "./widgets/code-block"

0 comments on commit af487ff

Please sign in to comment.