Skip to content

Commit d57e1aa

Browse files
committed
perf:h4&h5 render
1 parent 4d4fbcf commit d57e1aa

5 files changed

Lines changed: 40 additions & 12 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
node_modules
33
/dist
4+
package-lock.json
45

56
# local env files
67
.env.local

config/global.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// 旧主题色
33
// @primary:#0366d6;
44
@primary:#4f46e5;
5+
@v4yellow: #f5bd1e;
56

67
// 文字颜色(黑底、白底)
78
@color: #3d454d;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jx3box/jx3box-editor",
3-
"version": "3.0.10",
3+
"version": "3.0.11",
44
"description": "JX3BOX Article & Editor",
55
"main": "index.js",
66
"scripts": {
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@element-plus/icons-vue": "^2.0.10",
1717
"@imengyu/vue3-context-menu": "^1.5.4",
18-
"@jx3box/jx3box-common": "^9.1.3",
18+
"@jx3box/jx3box-common": "^9.1.8",
1919
"@jx3box/jx3box-data": "^3.9.4",
2020
"@jx3box/jx3box-emotion": "^1.3.0",
2121
"@jx3box/jx3box-macro": "^1.0.3",

src/assets/css/tinymce/h.less

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,51 @@
3232

3333
h4 {
3434
font-size: 15px;
35-
padding: 8px 10px;
35+
padding: 8px 10px 8px 20px;
3636

3737
background-color: #fafbfc;
3838
border-radius: 6px;
39-
border-left:4px solid @primary;
40-
39+
// border-left:4px solid @primary;
4140

4241
position: relative;
4342
overflow: hidden;
4443
// background-color: #f1f1ff;
4544
// border: 1px solid @primary;
4645
&::before {
4746
content: "";
48-
font-size: 20px;
4947
display: block;
5048
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;
5657
// border-bottom-right-radius: 20px;
5758
// border-bottom-left-radius: 20px;
5859
}
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+
}
5980
}
6081

6182
h5 {
@@ -74,6 +95,11 @@
7495
bottom: -1px;
7596
left: 0;
7697
}
98+
&:hover{
99+
&::after {
100+
background-color: @v4yellow;
101+
}
102+
}
77103
}
78104

79105
h6 {

tinymce/skins/content/default/content.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)