gatsby-core-theme 44.4.43 → 44.4.44
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/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/src/components/molecules/comment/comment.module.scss +11 -30
- package/src/components/molecules/comment/index.js +7 -2
- package/src/components/molecules/leave-comment-form/index.js +1 -0
- package/src/components/organisms/anchor/template-one/anchor.module.scss +19 -11
- package/src/components/organisms/comments/comment-tree/comment-tree.module.scss +47 -0
- package/src/components/organisms/comments/comment-tree/index.js +3 -1
- package/src/components/organisms/form/fields/fields.module.scss +5 -2
- package/src/components/organisms/form/form.module.scss +76 -39
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [44.4.44](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.43...v44.4.44) (2025-08-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bug ([47ff70b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/47ff70b136bbcbd7efe441637dbd28d5ff0a3818))
|
|
7
|
+
* bug ([2c76971](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2c76971d6dca396f1c793786e9907d84f7b8fc15))
|
|
8
|
+
* styling fixes ([da45e7d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/da45e7d745c79953f5f2d830d0c7c86c8a72f4a6))
|
|
9
|
+
|
|
1
10
|
## [44.4.43](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.42...v44.4.43) (2025-08-29)
|
|
2
11
|
|
|
3
12
|
|
package/package.json
CHANGED
|
@@ -3,27 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
gap: 1.6rem;
|
|
5
5
|
position: relative;
|
|
6
|
+
margin-bottom: 3.4rem;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
top: -13rem;
|
|
10
|
-
content: "";
|
|
11
|
-
height: 22rem;
|
|
12
|
-
position: absolute;
|
|
13
|
-
right: 100%;
|
|
14
|
-
width: 2.9rem;
|
|
15
|
-
z-index: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
+ div .commentContainer::before{
|
|
19
|
-
height: 12rem;
|
|
20
|
-
top: -5rem;
|
|
8
|
+
@include min(tablet){
|
|
9
|
+
margin-bottom: 0;
|
|
21
10
|
}
|
|
22
11
|
}
|
|
23
12
|
|
|
24
13
|
.commentTopArea{
|
|
25
14
|
@include flex-align(center, start);
|
|
26
15
|
|
|
16
|
+
flex-wrap: wrap;
|
|
27
17
|
gap: .8rem;
|
|
28
18
|
}
|
|
29
19
|
|
|
@@ -31,6 +21,7 @@
|
|
|
31
21
|
font-size: 18px;
|
|
32
22
|
font-weight: 600;
|
|
33
23
|
line-height: 28px;
|
|
24
|
+
color: #1B1B1C;
|
|
34
25
|
}
|
|
35
26
|
|
|
36
27
|
.commentJobTitle{
|
|
@@ -44,6 +35,7 @@
|
|
|
44
35
|
|
|
45
36
|
border-radius: 5rem;
|
|
46
37
|
background: #CFC7C0;
|
|
38
|
+
color: #0F172A;
|
|
47
39
|
}
|
|
48
40
|
|
|
49
41
|
.commentDate{
|
|
@@ -61,19 +53,6 @@
|
|
|
61
53
|
padding: 2.4rem;
|
|
62
54
|
}
|
|
63
55
|
|
|
64
|
-
.isReplyThread::before{
|
|
65
|
-
content: "";
|
|
66
|
-
position: absolute;
|
|
67
|
-
right: 100%;
|
|
68
|
-
border-left: .1rem solid #CFC7C0;
|
|
69
|
-
border-bottom: .1rem solid #CFC7C0;
|
|
70
|
-
border-bottom-left-radius: 2rem;
|
|
71
|
-
height: -webkit-fill-available;
|
|
72
|
-
width: 3rem;
|
|
73
|
-
bottom: 50%;
|
|
74
|
-
z-index: 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
56
|
.commentActions{
|
|
78
57
|
margin-left: auto;
|
|
79
58
|
|
|
@@ -81,10 +60,12 @@
|
|
|
81
60
|
}
|
|
82
61
|
|
|
83
62
|
.buttonGroup{
|
|
84
|
-
background: #
|
|
63
|
+
background: #EAE5E0;
|
|
85
64
|
font-size: 1.2rem;
|
|
86
|
-
padding: .8rem;
|
|
65
|
+
padding: .5rem .8rem;
|
|
66
|
+
height: 2.8rem;
|
|
87
67
|
gap: .4rem;
|
|
68
|
+
color: #0F172A;
|
|
88
69
|
|
|
89
70
|
@include flex-align(center, center);
|
|
90
71
|
|
|
@@ -113,7 +94,7 @@
|
|
|
113
94
|
line-height: 1.8rem;
|
|
114
95
|
text-transform: capitalize;
|
|
115
96
|
margin-left: .8rem;
|
|
116
|
-
padding: 0.
|
|
97
|
+
padding: 0.2rem 1.6rem;
|
|
117
98
|
}
|
|
118
99
|
|
|
119
100
|
.replySection{
|
|
@@ -76,6 +76,11 @@ const Comment = ({
|
|
|
76
76
|
.catch((error) => reject(error?.response?.data?.errors?.join() || error.message));
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
+
const userVote = currentUserInteractions.current?.find(v => v.startsWith(`${comment.comment_id}:`))?.split(': ')[1];
|
|
80
|
+
|
|
81
|
+
const displayedLikes = userVote === 'vote_down' ? likes + 1 : likes;
|
|
82
|
+
const displayedDislikes = userVote === 'vote_down' ? dislikes + 1 : dislikes;
|
|
83
|
+
|
|
79
84
|
|
|
80
85
|
return <div className={`${styles.commentContainer} ${isReply ? styles.isReply : ''}`}>
|
|
81
86
|
<div className={styles.commentTopArea}>
|
|
@@ -101,7 +106,7 @@ const Comment = ({
|
|
|
101
106
|
disabled={currentUserInteractions.current?.find(v => v.startsWith(`${comment.comment_id}:`))}
|
|
102
107
|
>
|
|
103
108
|
<LazyImage className={styles.buttonGroupIcon} src='/images/like.svg' />
|
|
104
|
-
<span>{
|
|
109
|
+
<span>{displayedLikes}</span>
|
|
105
110
|
</button>
|
|
106
111
|
<button
|
|
107
112
|
onClick={async () => {
|
|
@@ -114,7 +119,7 @@ const Comment = ({
|
|
|
114
119
|
disabled={currentUserInteractions.current?.find(v => v.startsWith(`${comment.comment_id}:`))}
|
|
115
120
|
>
|
|
116
121
|
<LazyImage className={styles.buttonGroupIcon} src='/images/dislike.svg' />
|
|
117
|
-
<span>{
|
|
122
|
+
<span>{displayedDislikes}</span>
|
|
118
123
|
</button>
|
|
119
124
|
</>
|
|
120
125
|
)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@keyframes
|
|
1
|
+
@keyframes fade-in {
|
|
2
2
|
0% {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
}
|
|
@@ -24,16 +24,17 @@
|
|
|
24
24
|
|
|
25
25
|
.defaultConatiner {
|
|
26
26
|
position: relative;
|
|
27
|
+
|
|
27
28
|
@include flex-direction(row);
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.anchor {
|
|
31
32
|
max-width: var(--main-container-max);
|
|
33
|
+
|
|
32
34
|
@include flex-direction(row);
|
|
33
35
|
|
|
34
36
|
&::-webkit-scrollbar {
|
|
35
37
|
height: 0.4rem;
|
|
36
|
-
// display: none;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
&::-webkit-scrollbar-track {
|
|
@@ -49,23 +50,26 @@
|
|
|
49
50
|
|
|
50
51
|
.stickyContainer {
|
|
51
52
|
position: fixed;
|
|
52
|
-
z-index:
|
|
53
|
-
animation:
|
|
53
|
+
z-index: 2;
|
|
54
|
+
animation: fade-in 1s forwards;
|
|
54
55
|
width: 100%;
|
|
55
|
-
background-color:
|
|
56
|
-
box-shadow:
|
|
56
|
+
background-color: #fff;
|
|
57
|
+
box-shadow: 0 8px 12px 0;
|
|
57
58
|
left: 0;
|
|
58
59
|
right: 0;
|
|
59
60
|
top: var(--nav-height);
|
|
61
|
+
|
|
60
62
|
@include flex-direction(row);
|
|
61
63
|
@include flex-align(center, center);
|
|
64
|
+
|
|
62
65
|
padding-bottom: 0.5rem;
|
|
63
|
-
.anchor{
|
|
64
66
|
|
|
67
|
+
.anchor{
|
|
65
68
|
&::-webkit-scrollbar {
|
|
66
69
|
display: none;
|
|
67
70
|
}
|
|
68
71
|
}
|
|
72
|
+
|
|
69
73
|
&.usingExclOperator {
|
|
70
74
|
top: calc(var(--nav-height) + var(--exc-operator-height));
|
|
71
75
|
}
|
|
@@ -84,6 +88,7 @@
|
|
|
84
88
|
line-height: 27px;
|
|
85
89
|
|
|
86
90
|
@include flex-align(center, center);
|
|
91
|
+
|
|
87
92
|
margin-right: 1.6rem;
|
|
88
93
|
margin-bottom: 0.5rem;
|
|
89
94
|
margin-top: 0.5rem;
|
|
@@ -95,7 +100,7 @@
|
|
|
95
100
|
@include min(laptop) {
|
|
96
101
|
&:hover {
|
|
97
102
|
background-color: #272735;
|
|
98
|
-
color: #
|
|
103
|
+
color: #fff;
|
|
99
104
|
}
|
|
100
105
|
}
|
|
101
106
|
}
|
|
@@ -119,11 +124,14 @@
|
|
|
119
124
|
.buttLeft,
|
|
120
125
|
.buttRight {
|
|
121
126
|
@include flex-align(center, center);
|
|
122
|
-
|
|
127
|
+
|
|
128
|
+
background-color: var(--body-background-color, #fff);
|
|
129
|
+
|
|
123
130
|
@include flex-align(center, center);
|
|
131
|
+
|
|
124
132
|
display: none;
|
|
125
133
|
z-index: 1;
|
|
126
|
-
padding:
|
|
134
|
+
padding: 0 1rem;
|
|
127
135
|
|
|
128
136
|
@include custom-min(960) {
|
|
129
137
|
display: flex;
|
|
@@ -133,7 +141,7 @@
|
|
|
133
141
|
width: 3.2rem;
|
|
134
142
|
height: 3.2rem;
|
|
135
143
|
padding: 0.8rem;
|
|
136
|
-
color: #
|
|
144
|
+
color: #fff;
|
|
137
145
|
background-color: #262629;
|
|
138
146
|
border-radius: 10rem;
|
|
139
147
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.comment_0{
|
|
2
|
+
margin-left: 0;
|
|
3
|
+
|
|
4
|
+
>div>div{
|
|
5
|
+
z-index: 1;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.comment_1{
|
|
10
|
+
@include min(tablet){
|
|
11
|
+
margin-left: 5.6rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
margin-left: 2.4rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.comment_2{
|
|
18
|
+
@include min(tablet){
|
|
19
|
+
margin-left: 11.2rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
margin-left: 4rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.isReply{
|
|
26
|
+
position: relative;
|
|
27
|
+
|
|
28
|
+
&::before{
|
|
29
|
+
content: "";
|
|
30
|
+
position: absolute;
|
|
31
|
+
right: 100%;
|
|
32
|
+
border-left: .1rem solid #CFC7C0;
|
|
33
|
+
border-bottom: .1rem solid #CFC7C0;
|
|
34
|
+
border-bottom-left-radius: 2rem;
|
|
35
|
+
bottom: 50%;
|
|
36
|
+
height: calc(50% + 8.5rem);
|
|
37
|
+
width: 1.1rem;
|
|
38
|
+
|
|
39
|
+
@include min(tablet){
|
|
40
|
+
width: 3rem;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
+ .isReply::before{
|
|
45
|
+
height: calc(50% + 25.5rem);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -4,8 +4,10 @@ import PropTypes, { arrayOf } from 'prop-types';
|
|
|
4
4
|
import keygen from '~helpers/keygen';
|
|
5
5
|
import Comment from "../../../molecules/comment";
|
|
6
6
|
|
|
7
|
+
import styles from './comment-tree.module.scss';
|
|
8
|
+
|
|
7
9
|
const CommentTree = React.memo(({ pageContext, comment, authors, depth = 0, cookieComments }) =>
|
|
8
|
-
<div key={keygen()}
|
|
10
|
+
<div key={keygen()} className={`${styles?.[`comment_${depth}`]} ${depth > 0 && styles.isReply}`}>
|
|
9
11
|
<Comment pageContext={pageContext} comment={comment} authors={authors} isReply={depth > 0} userInteractions={cookieComments} />
|
|
10
12
|
{comment.replies?.map(reply => (
|
|
11
13
|
<CommentTree
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
@include flex-align(flex-end, flex-start);
|
|
30
30
|
|
|
31
31
|
> span {
|
|
32
|
-
font-size: 1.
|
|
32
|
+
font-size: 1.2rem;
|
|
33
33
|
font-weight: 400;
|
|
34
34
|
line-height: 2.2rem;
|
|
35
35
|
}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
cursor: pointer;
|
|
106
106
|
width: 4.8rem;
|
|
107
107
|
inset: 0;
|
|
108
|
-
background-color: #
|
|
108
|
+
background-color: #AFAFB0;
|
|
109
109
|
transition: 0.4s;
|
|
110
110
|
border-radius: 3.4rem;
|
|
111
111
|
height: 2.4rem;
|
|
@@ -137,6 +137,9 @@ input:checked + .slider::before {
|
|
|
137
137
|
|
|
138
138
|
.switchLabel{
|
|
139
139
|
margin-left: 4.5rem;
|
|
140
|
+
font-size: 1.6rem;
|
|
141
|
+
font-weight: 400;
|
|
142
|
+
color: #3C3C40;
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
.errorMsg {
|
|
@@ -228,58 +228,89 @@
|
|
|
228
228
|
padding: 0;
|
|
229
229
|
margin-top: 3.5rem;
|
|
230
230
|
|
|
231
|
+
input:not([type="range"]),
|
|
232
|
+
textarea,
|
|
233
|
+
select {
|
|
234
|
+
background: #fff !important;
|
|
235
|
+
font-size: 1.4rem;
|
|
236
|
+
line-height: 2.1rem;
|
|
237
|
+
padding: 1.6rem;
|
|
238
|
+
max-width: 100%;
|
|
239
|
+
outline: none;
|
|
240
|
+
border-radius: 0.8rem;
|
|
241
|
+
border: 1px solid #E2E8F0 !important;
|
|
242
|
+
color: #0F172A !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
|
|
231
246
|
> form{
|
|
247
|
+
display: flex;
|
|
248
|
+
grid-template-columns: 1fr 1fr;
|
|
249
|
+
|
|
250
|
+
@include min(tablet){
|
|
232
251
|
display: grid;
|
|
233
|
-
|
|
252
|
+
gap: 1.6rem;
|
|
253
|
+
}
|
|
234
254
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
255
|
+
label{
|
|
256
|
+
font-size: 1.6rem;
|
|
257
|
+
font-weight: 600;
|
|
258
|
+
color: #262629;
|
|
259
|
+
}
|
|
238
260
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
261
|
+
div > input ~ span, div > textarea ~ span{
|
|
262
|
+
display: none;
|
|
263
|
+
}
|
|
242
264
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
265
|
+
input:user-invalid{
|
|
266
|
+
border: 1.5px solid var(--comment-input-error, #DD4B39) !important;
|
|
267
|
+
}
|
|
246
268
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
269
|
+
textarea:user-invalid{
|
|
270
|
+
border: 1.5px solid var(--comment-input-error, #DD4B39) !important;
|
|
271
|
+
}
|
|
250
272
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
273
|
+
input:user-invalid ~ span{
|
|
274
|
+
display: block;
|
|
275
|
+
}
|
|
254
276
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
277
|
+
textarea:user-invalid ~ span{
|
|
278
|
+
display: block;
|
|
279
|
+
}
|
|
258
280
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
281
|
+
textarea:not(:placeholder-shown):invalid ~ span{
|
|
282
|
+
display: block;
|
|
283
|
+
}
|
|
262
284
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
285
|
+
input:not([type='checkbox'], :placeholder-shown):invalid ~ span{
|
|
286
|
+
display: block;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
input:not(:placeholder-shown):invalid, textarea:not(:placeholder-shown):invalid{
|
|
290
|
+
border: 1.5px solid var(--comment-input-error, #DD4B39) !important;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
> .formButton{
|
|
294
|
+
border: .2rem solid #161128;
|
|
295
|
+
padding: 8px 16px !important;
|
|
296
|
+
margin-left: auto;
|
|
297
|
+
border-radius: 5rem;
|
|
298
|
+
font-size: 1.4rem;
|
|
299
|
+
font-weight: 700;
|
|
300
|
+
background: transparent !important;
|
|
301
|
+
text-align: center !important;
|
|
302
|
+
line-height: 2.2rem;
|
|
303
|
+
text-transform: capitalize;
|
|
304
|
+
color: #161128 !important;
|
|
305
|
+
height: 4rem !important;
|
|
306
|
+
grid-column: 1 / -1;
|
|
307
|
+
width: 100%;
|
|
308
|
+
margin-bottom: 3.4rem;
|
|
266
309
|
|
|
267
|
-
|
|
268
|
-
border: .2rem solid #161128;
|
|
269
|
-
padding: 8px 16px !important;
|
|
310
|
+
@include min(tablet){
|
|
270
311
|
width: auto !important;
|
|
271
|
-
margin-left: auto;
|
|
272
|
-
border-radius: 5rem;
|
|
273
|
-
font-size: 1.4rem;
|
|
274
|
-
font-weight: 700;
|
|
275
|
-
background: transparent !important;
|
|
276
|
-
text-align: center !important;
|
|
277
|
-
line-height: 2.2rem;
|
|
278
|
-
text-transform: capitalize;
|
|
279
|
-
color: #161128 !important;
|
|
280
|
-
height: 4rem !important;
|
|
281
|
-
grid-column: 1 / -1;
|
|
282
312
|
}
|
|
313
|
+
}
|
|
283
314
|
}
|
|
284
315
|
|
|
285
316
|
div:has(>input[type="checkbox"] ) {
|
|
@@ -288,6 +319,12 @@
|
|
|
288
319
|
grid-template-columns: 1.3rem 1fr;
|
|
289
320
|
}
|
|
290
321
|
|
|
322
|
+
input[type="checkbox"] + label{
|
|
323
|
+
font-size: 1.4rem;
|
|
324
|
+
font-weight: 400;
|
|
325
|
+
line-height: 2.2rem;
|
|
326
|
+
}
|
|
327
|
+
|
|
291
328
|
.alertDanger, .alertSuccess, .alertWarning {
|
|
292
329
|
background-color: var(--alert-error-bg, #FEE2E2);
|
|
293
330
|
color: var(--alert-error-text, #09090B);
|