@waline/client 2.14.5 → 2.14.6
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.
- package/dist/api.cjs.map +1 -1
- package/dist/api.mjs.map +1 -1
- package/dist/comment.cjs +1 -1
- package/dist/comment.cjs.map +1 -1
- package/dist/comment.js +1 -1
- package/dist/comment.js.map +1 -1
- package/dist/comment.mjs +1 -1
- package/dist/comment.mjs.map +1 -1
- package/dist/component.mjs +1 -1
- package/dist/component.mjs.map +1 -1
- package/dist/legacy.umd.js +1 -1
- package/dist/legacy.umd.js.map +1 -1
- package/dist/pageview.cjs +1 -1
- package/dist/pageview.cjs.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/pageview.mjs +1 -1
- package/dist/pageview.mjs.map +1 -1
- package/dist/shim.cjs +1 -1
- package/dist/shim.cjs.map +1 -1
- package/dist/shim.mjs +1 -1
- package/dist/shim.mjs.map +1 -1
- package/dist/waline.cjs +1 -1
- package/dist/waline.cjs.map +1 -1
- package/dist/waline.css +1 -1
- package/dist/waline.css.map +1 -1
- package/dist/waline.js +1 -1
- package/dist/waline.js.map +1 -1
- package/dist/waline.mjs +1 -1
- package/dist/waline.mjs.map +1 -1
- package/package.json +4 -4
- package/src/components/ArticleReaction.vue +14 -7
- package/src/components/CommentBox.vue +16 -6
- package/src/components/CommentCard.vue +1 -1
- package/src/styles/card.scss +16 -17
- package/src/styles/highlight.scss +3 -1
- package/src/styles/panel.scss +15 -15
- package/src/styles/reaction.scss +72 -69
- package/src/styles/user-list.scss +28 -27
package/src/styles/panel.scss
CHANGED
|
@@ -152,21 +152,6 @@
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
.wl-editor,
|
|
156
|
-
.wl-input {
|
|
157
|
-
max-width: 100%;
|
|
158
|
-
border: none;
|
|
159
|
-
|
|
160
|
-
color: var(--waline-color);
|
|
161
|
-
outline: none;
|
|
162
|
-
|
|
163
|
-
transition: all 0.25s ease;
|
|
164
|
-
|
|
165
|
-
&:focus {
|
|
166
|
-
background: var(--waline-bgcolor-light);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
155
|
.wl-editor {
|
|
171
156
|
position: relative;
|
|
172
157
|
|
|
@@ -182,6 +167,21 @@
|
|
|
182
167
|
resize: vertical;
|
|
183
168
|
}
|
|
184
169
|
|
|
170
|
+
.wl-editor,
|
|
171
|
+
.wl-input {
|
|
172
|
+
max-width: 100%;
|
|
173
|
+
border: none;
|
|
174
|
+
|
|
175
|
+
color: var(--waline-color);
|
|
176
|
+
outline: none;
|
|
177
|
+
|
|
178
|
+
transition: all 0.25s ease;
|
|
179
|
+
|
|
180
|
+
&:focus {
|
|
181
|
+
background: var(--waline-bgcolor-light);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
185
|
.wl-preview {
|
|
186
186
|
padding: 0 0.5em 0.5em;
|
|
187
187
|
|
package/src/styles/reaction.scss
CHANGED
|
@@ -1,100 +1,103 @@
|
|
|
1
1
|
.wl-reaction {
|
|
2
|
+
overflow: auto hidden;
|
|
2
3
|
margin-bottom: 1.75em;
|
|
3
4
|
text-align: center;
|
|
4
|
-
overflow-x: auto;
|
|
5
5
|
|
|
6
6
|
img {
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: 100%;
|
|
9
9
|
transition: all 250ms ease-in-out;
|
|
10
10
|
}
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
.wl-reaction-title {
|
|
14
|
+
margin: 16px auto;
|
|
15
|
+
font-weight: bold;
|
|
16
|
+
font-size: 18px;
|
|
17
|
+
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
justify-content: center;
|
|
19
|
+
.wl-reaction-list {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
gap: 16px;
|
|
23
|
+
justify-content: center;
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding: 8px;
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
list-style-type: none;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
30
|
+
@media (max-width: 580px) {
|
|
31
|
+
gap: 12px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
align-items: center;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
|
|
40
|
-
&:hover img,
|
|
41
|
-
&.active img {
|
|
42
|
-
transform: scale(1.15);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&.active {
|
|
46
|
-
.reaction-votes {
|
|
47
|
-
background: var(--waline-theme-color);
|
|
48
|
-
color: var(--waline-bgcolor);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.reaction-text {
|
|
52
|
-
color: var(--waline-theme-color);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
34
|
+
// normalize reset
|
|
35
|
+
[data-waline] & {
|
|
36
|
+
margin-inline-start: 0;
|
|
55
37
|
}
|
|
38
|
+
}
|
|
56
39
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
40
|
+
.wl-reaction-item {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
align-items: center;
|
|
44
|
+
cursor: pointer;
|
|
61
45
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
46
|
+
&:hover img,
|
|
47
|
+
&.active img {
|
|
48
|
+
transform: scale(1.15);
|
|
66
49
|
}
|
|
50
|
+
}
|
|
67
51
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
width: 18px;
|
|
74
|
-
height: 18px;
|
|
52
|
+
.wl-reaction-img {
|
|
53
|
+
position: relative;
|
|
54
|
+
width: 42px;
|
|
55
|
+
height: 42px;
|
|
75
56
|
|
|
76
|
-
|
|
57
|
+
@media (max-width: 580px) {
|
|
58
|
+
width: 32px;
|
|
59
|
+
height: 32px;
|
|
77
60
|
}
|
|
61
|
+
}
|
|
78
62
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
63
|
+
.wl-reaction-loading {
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: -4px;
|
|
66
|
+
inset-inline-end: -5px;
|
|
83
67
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
border: 1px solid var(--waline-theme-color);
|
|
87
|
-
border-radius: 1em;
|
|
68
|
+
width: 18px;
|
|
69
|
+
height: 18px;
|
|
88
70
|
|
|
89
|
-
|
|
90
|
-
|
|
71
|
+
color: var(--waline-theme-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.wl-reaction-votes {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: -9px;
|
|
77
|
+
inset-inline-end: -9px;
|
|
78
|
+
|
|
79
|
+
min-width: 1em;
|
|
80
|
+
padding: 2px;
|
|
81
|
+
border: 1px solid var(--waline-theme-color);
|
|
82
|
+
border-radius: 1em;
|
|
83
|
+
|
|
84
|
+
background: var(--waline-bgcolor);
|
|
85
|
+
color: var(--waline-theme-color);
|
|
91
86
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
font-weight: 700;
|
|
88
|
+
font-size: 0.75em;
|
|
89
|
+
line-height: 1;
|
|
90
|
+
|
|
91
|
+
.wl-reaction-item.active & {
|
|
92
|
+
background: var(--waline-theme-color);
|
|
93
|
+
color: var(--waline-bgcolor);
|
|
95
94
|
}
|
|
95
|
+
}
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
.wl-reaction-text {
|
|
98
|
+
font-size: 0.875em;
|
|
99
|
+
|
|
100
|
+
.wl-reaction-item.active & {
|
|
101
|
+
color: var(--waline-theme-color);
|
|
99
102
|
}
|
|
100
103
|
}
|
|
@@ -2,27 +2,6 @@
|
|
|
2
2
|
padding: 0;
|
|
3
3
|
list-style: none;
|
|
4
4
|
|
|
5
|
-
.wl-user-item {
|
|
6
|
-
margin: 10px 0;
|
|
7
|
-
|
|
8
|
-
&:nth-child(1) .wl-user-badge {
|
|
9
|
-
background: var(--waline-rank-gold-bgcolor, #fa3939);
|
|
10
|
-
color: var(--waline-white);
|
|
11
|
-
font-weight: bold;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&:nth-child(2) .wl-user-badge {
|
|
15
|
-
background: var(--waline-rank-silver-bgcolor, #fb811c);
|
|
16
|
-
color: var(--waline-white);
|
|
17
|
-
font-weight: bold;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:nth-child(3) .wl-user-badge {
|
|
21
|
-
background: var(--waline-rank-copper-bgcolor, #feb207);
|
|
22
|
-
color: var(--waline-white);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
5
|
a,
|
|
27
6
|
a:hover,
|
|
28
7
|
a:visited {
|
|
@@ -50,8 +29,8 @@
|
|
|
50
29
|
|
|
51
30
|
.wl-user-badge {
|
|
52
31
|
position: absolute;
|
|
53
|
-
inset-inline-end: 0;
|
|
54
32
|
bottom: 0;
|
|
33
|
+
inset-inline-end: 0;
|
|
55
34
|
|
|
56
35
|
min-width: 0.7em;
|
|
57
36
|
height: 1.5em;
|
|
@@ -67,6 +46,27 @@
|
|
|
67
46
|
text-align: center;
|
|
68
47
|
}
|
|
69
48
|
|
|
49
|
+
.wl-user-item {
|
|
50
|
+
margin: 10px 0;
|
|
51
|
+
|
|
52
|
+
&:nth-child(1) .wl-user-badge {
|
|
53
|
+
background: var(--waline-rank-gold-bgcolor, #fa3939);
|
|
54
|
+
color: var(--waline-white);
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:nth-child(2) .wl-user-badge {
|
|
59
|
+
background: var(--waline-rank-silver-bgcolor, #fb811c);
|
|
60
|
+
color: var(--waline-white);
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:nth-child(3) .wl-user-badge {
|
|
65
|
+
background: var(--waline-rank-copper-bgcolor, #feb207);
|
|
66
|
+
color: var(--waline-white);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
70
|
.wl-user-meta {
|
|
71
71
|
display: inline-block;
|
|
72
72
|
vertical-align: top;
|
|
@@ -91,6 +91,12 @@
|
|
|
91
91
|
padding: 0;
|
|
92
92
|
list-style: none;
|
|
93
93
|
|
|
94
|
+
// stylelint-disable-next-line no-descending-specificity
|
|
95
|
+
.wl-user-badge,
|
|
96
|
+
.wl-user-meta {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
94
100
|
.wl-user-item {
|
|
95
101
|
position: relative;
|
|
96
102
|
display: inline-block;
|
|
@@ -150,9 +156,4 @@
|
|
|
150
156
|
height: var(--waline-user-avatar-size, 48px);
|
|
151
157
|
}
|
|
152
158
|
}
|
|
153
|
-
|
|
154
|
-
.wl-user-badge,
|
|
155
|
-
.wl-user-meta {
|
|
156
|
-
display: none;
|
|
157
|
-
}
|
|
158
159
|
}
|