ppz 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50d999d54bdbf78556f37bac10260a0af9315e3b7c708f5e923140628ccbf56e
4
- data.tar.gz: 2a5a604e6f6fdb05c0652322a35cb1231c3701157a189256c87e34fbd692c251
3
+ metadata.gz: db8561048fbdfb9e93187118596495ca8fad34f653d4ecc919ec1e3002c90b82
4
+ data.tar.gz: d3620d7c86e55d1c31b34d1a4ae530ec7e3240782974493663ad6a72b07fefe1
5
5
  SHA512:
6
- metadata.gz: 9f205f57824a0bef8e2f2284135e7da87373eb73cb11a4c635315564e707614328f08d6a34950b4f66bfca32de93b990e6dece6384e94580ff99eabee9f5faaa
7
- data.tar.gz: fe94d84a488ebd411acdc724bcbfe4035011e7948970712b32df71bed3ac2296fde8d98ace6f6c79522ea09e28fb68e8c3616cac80e762ef2fa347e095b65cc3
6
+ metadata.gz: ca3f12b9c1abdc2ed308e0690aece4480ad8e27ba33bdb5f2f6e187f1ddc7ae53e48459f2e8b50e698b492581a21053eb70e903f20016fcb47de6abce4ed0671
7
+ data.tar.gz: 7f17a5aa3aff40111985b42e5544888d3f21c7295aa4d23ef81b56c5cb3193b4d3cca1d46062fcc88ea6023ef0e6492b7b9b5d05af32aefbc684fb93da0050ef
data/asset/style/ppz.css CHANGED
@@ -51,14 +51,36 @@ h2::before,
51
51
  h3::before {
52
52
  content: '# ';
53
53
  opacity: 0.3;
54
+ font-size: 1rem;
54
55
  }
55
- .special-block {
56
- white-space: pre;
56
+ .comment-container {
57
+ margin: 1rem 0;
58
+ padding: 1rem 1.6rem;
59
+ background: rgba(0,0,0,0.2);
60
+ font-size: 0.9rem;
61
+ border-radius: 4px;
62
+ }
63
+ .comment-item {
64
+ opacity: 0.8;
65
+ }
66
+ .special-block-container {
57
67
  background: #141c22;
58
68
  overflow: auto;
59
69
  border-radius: 4px;
60
70
  color: #eee;
71
+ font-family: monospace;
72
+ white-space: pre;
73
+ margin: 1rem 0;
61
74
  padding: 1rem;
75
+ counter-reset: line-index;
76
+ }
77
+ .special-block-item::before {
78
+ counter-increment: line-index;
79
+ content: counter(line-index) " | ";
80
+ opacity: 0.3;
81
+ }
82
+ .special-block-item:hover::before {
83
+ opacity: 0.8;
62
84
  }
63
85
  .special-txt {
64
86
  background: rgba(27,31,35,0.05);
data/asset/style/ppz.styl CHANGED
@@ -43,14 +43,37 @@ h1, h2, h3
43
43
  &::before
44
44
  content '# '
45
45
  opacity 0.3
46
+ font-size 1rem
46
47
 
47
- .special-block
48
- white-space pre
48
+ .comment-container
49
+ margin 1rem 0
50
+ padding 1rem 1.6rem
51
+ background rgba(0, 0, 0, 0.2)
52
+ font-size 0.9rem
53
+ border-radius 4px
54
+ .comment-item
55
+ opacity 0.8
56
+
57
+ .special-block-container
49
58
  background #141c22
50
59
  overflow auto
51
60
  border-radius 4px
52
61
  color #eeeeee
62
+
63
+ font-family monospace
64
+ white-space pre
65
+
66
+ margin 1rem 0
53
67
  padding 1rem
68
+
69
+ counter-reset line-index
70
+ .special-block-item
71
+ &::before
72
+ counter-increment line-index
73
+ content counter(line-index) " | "
74
+ opacity 0.3
75
+ &:hover::before
76
+ opacity 0.8
54
77
 
55
78
  .special-txt
56
79
  background rgba(27, 31, 35, 0.05)
data/bin/common.rb CHANGED
@@ -22,7 +22,7 @@ module PPZMain
22
22
  # + 输出文件
23
23
  unless target_out
24
24
  # 从输入文件获取文件名
25
- target_out = (/(.*).ppz$/.match target_in)?$1:target_in
25
+ target_out = ((/(.*).ppz$/.match target_in)?$1:target_in) + '.pp'
26
26
  end
27
27
  target_out = WORK_DIRECTORY + target_out
28
28
  # ++ 检查上级文件夹是否存在
@@ -2,6 +2,6 @@ class PPZ::CommentContainerModel < PPZ::AbstractWrapperModel
2
2
  UpperClass = PPZ::AbstractSectionModel
3
3
 
4
4
  def to_html
5
- "<div class=\"comment\">#{super}</div>"
5
+ "<div class=\"comment-container\">#{super}</div>"
6
6
  end
7
7
  end
@@ -7,6 +7,6 @@ class PPZ::CommentItemModel < PPZ::AbstractModel
7
7
  end
8
8
 
9
9
  def to_html
10
- "<div>#{@content}</div>"
10
+ "<div class=\"comment-item\">#{@content}</div>"
11
11
  end
12
12
  end
@@ -13,6 +13,6 @@ class PPZ::SpecialContainerModel < PPZ::AbstractWrapperModel
13
13
  end
14
14
 
15
15
  def to_html
16
- "<div class=\"special-block #{@name}\">#{super}</div>"
16
+ "<div class=\"special-block-container #{@name}\">#{super}</div>"
17
17
  end
18
18
  end
@@ -3,6 +3,6 @@ class PPZ::SpecialItemModel < PPZ::AbstractModel
3
3
  @line = line
4
4
  end
5
5
  def to_html
6
- "<div>#{@line}</div>"
6
+ "<div class=\"special-block-item\">#{@line}</div>"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ppz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - wuse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-04 00:00:00.000000000 Z
11
+ date: 2021-02-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: 372301467@qq.com