@jx3box/jx3box-editor 3.0.9 → 3.0.11

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.
@@ -2,6 +2,7 @@
2
2
  // 旧主题色
3
3
  // @primary:#0366d6;
4
4
  @primary:#4f46e5;
5
+ @v4yellow: #f5bd1e;
5
6
 
6
7
  // 文字颜色(黑底、白底)
7
8
  @color: #3d454d;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "3.0.9",
3
+ "version": "3.0.11",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "@element-plus/icons-vue": "^2.0.10",
17
17
  "@imengyu/vue3-context-menu": "^1.5.4",
18
- "@jx3box/jx3box-common": "^9.1.3",
18
+ "@jx3box/jx3box-common": "^9.1.8",
19
19
  "@jx3box/jx3box-data": "^3.9.4",
20
20
  "@jx3box/jx3box-emotion": "^1.3.0",
21
21
  "@jx3box/jx3box-macro": "^1.0.3",
package/src/Skill.vue CHANGED
@@ -48,7 +48,7 @@ export default {
48
48
  desc: function () {
49
49
  if (this.data?.parse && this.show_parse) {
50
50
  const result = this.data.parse.desc;
51
- return result.replace(/\\n/g, "\n");
51
+ if (result) return result.replace(/\\n/g, "\n");
52
52
  }
53
53
  return this.data?.Desc;
54
54
  },
@@ -32,12 +32,11 @@
32
32
 
33
33
  h4 {
34
34
  font-size: 15px;
35
- padding: 8px 10px;
35
+ padding: 8px 10px 8px 20px;
36
36
 
37
37
  background-color: #fafbfc;
38
38
  border-radius: 6px;
39
- border-left:4px solid @primary;
40
-
39
+ // border-left:4px solid @primary;
41
40
 
42
41
  position: relative;
43
42
  overflow: hidden;
@@ -45,17 +44,39 @@
45
44
  // border: 1px solid @primary;
46
45
  &::before {
47
46
  content: "";
48
- font-size: 20px;
49
47
  display: block;
50
48
  position: absolute;
51
- width: 80px;
52
- height: 3px;
53
- top: 0;
54
- left: 15px;
55
- // background-color: @primary;
49
+ width: 5px;
50
+ height: 60%;
51
+ top: 50%;
52
+ transform: translateY(-50%);
53
+ left: 10px;
54
+ background-color: @primary;
55
+ border-radius: 10px;
56
+ transition: all 0.2s ease;
56
57
  // border-bottom-right-radius: 20px;
57
58
  // border-bottom-left-radius: 20px;
58
59
  }
60
+ // &::after {
61
+ // content: "";
62
+ // display: block;
63
+ // position: absolute;
64
+ // width: 5px;
65
+ // height: 60%;
66
+ // top: 50%;
67
+ // transform: translateY(-50%);
68
+ // left: 10px;
69
+ // background-color: @v4yellow;
70
+ // border-radius: 10px;
71
+ // z-index: 2;
72
+ // display: none;
73
+ // }
74
+
75
+ &:hover {
76
+ &::before {
77
+ background-color: @v4yellow;
78
+ }
79
+ }
59
80
  }
60
81
 
61
82
  h5 {
@@ -74,6 +95,11 @@
74
95
  bottom: -1px;
75
96
  left: 0;
76
97
  }
98
+ &:hover{
99
+ &::after {
100
+ background-color: @v4yellow;
101
+ }
102
+ }
77
103
  }
78
104
 
79
105
  h6 {