gatsby-core-theme 44.4.51 → 44.4.53
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 +15 -0
- package/gatsby-browser.js +16 -21
- package/package.json +1 -1
- package/src/components/atoms/comment-votes/comment-votes.module.scss +10 -10
- package/src/components/molecules/comment/comment.module.scss +20 -20
- package/src/components/organisms/comments/comment-tree/comment-tree.module.scss +3 -3
- package/src/components/organisms/form/fields/fields.module.scss +3 -3
- package/src/components/organisms/form/form.module.scss +13 -9
- package/gatsby-ssr.js +0 -52
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [44.4.53](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.52...v44.4.53) (2025-09-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added vars for comments ([bae7841](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/bae784144e2253f8ee4d9ca9698a32312f3d426f))
|
|
7
|
+
* update gtm id ([efedd77](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/efedd7751e36c891bbd770c6ff38f4668d1bb833))
|
|
8
|
+
|
|
9
|
+
## [44.4.52](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.51...v44.4.52) (2025-09-02)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* revert gtm changes ([4f05ce2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4f05ce26a89137acb82d638f9ffceb29168127a8))
|
|
15
|
+
|
|
1
16
|
## [44.4.51](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.50...v44.4.51) (2025-09-02)
|
|
2
17
|
|
|
3
18
|
|
package/gatsby-browser.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable no-lonely-if */
|
|
2
1
|
/* eslint-disable no-sequences */
|
|
3
2
|
/* eslint-disable one-var */
|
|
4
3
|
/* eslint-disable no-var */
|
|
@@ -122,21 +121,18 @@ const piguard = () =>{
|
|
|
122
121
|
document.head.appendChild(script);
|
|
123
122
|
}
|
|
124
123
|
|
|
125
|
-
function
|
|
124
|
+
function scrollEvent(event) {
|
|
126
125
|
initGTM();
|
|
127
126
|
|
|
128
127
|
if (!document.getElementById('piguard') && process.env.ENABLE_PIGUARD === 'true') {
|
|
129
128
|
piguard();
|
|
130
129
|
}
|
|
131
130
|
|
|
132
|
-
if (process.env.ENABLE_MICROSOFT === 'true' && !document.getElementById('microsoft-code'))
|
|
131
|
+
if (process.env.ENABLE_MICROSOFT === 'true' && !document.getElementById('microsoft-code'))
|
|
133
132
|
microsoftAdvertising();
|
|
134
|
-
}
|
|
135
133
|
|
|
136
|
-
if (process.env.ENABLE_OPTINMONSTR === 'true' && !document.getElementById('optin-monstr'))
|
|
134
|
+
if (process.env.ENABLE_OPTINMONSTR === 'true' && !document.getElementById('optin-monstr'))
|
|
137
135
|
optinMonster();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
136
|
if (process.env.ENABLE_PIXEL === 'true' && !document.getElementById('pixel-code')) {
|
|
141
137
|
if (
|
|
142
138
|
typeof window !== 'undefined' &&
|
|
@@ -144,25 +140,24 @@ function loadThirdPartyScripts() {
|
|
|
144
140
|
) {
|
|
145
141
|
loadFacebookPixel();
|
|
146
142
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
143
|
+
fbq('init', process.env.PIXEL_ID);
|
|
144
|
+
|
|
145
|
+
// Initialize and track the PageView event
|
|
146
|
+
fbq('track', 'PageView');
|
|
152
147
|
}
|
|
153
148
|
}
|
|
149
|
+
|
|
150
|
+
if (event) {
|
|
151
|
+
event.currentTarget.removeEventListener(event.type, scrollEvent); // remove the event listener that got triggered
|
|
152
|
+
}
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
exports.onClientEntry = () => {
|
|
157
156
|
if (process.env.PPC === 'true') {
|
|
158
|
-
|
|
159
|
-
} else
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
requestIdleCallback(loadScripts, { timeout: 3000 });
|
|
164
|
-
} else {
|
|
165
|
-
window.setTimeout(loadScripts, 3000);
|
|
166
|
-
}
|
|
157
|
+
scrollEvent(null);
|
|
158
|
+
} else {
|
|
159
|
+
document.addEventListener('scroll', scrollEvent, { passive: true });
|
|
160
|
+
document.addEventListener('mousemove', scrollEvent, { passive: true });
|
|
161
|
+
document.addEventListener('touchstart', scrollEvent, { passive: true });
|
|
167
162
|
}
|
|
168
163
|
};
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
.buttonGroup{
|
|
2
|
-
background: #EAE5E0;
|
|
3
|
-
font-size: 1.2rem;
|
|
4
|
-
padding: .5rem .8rem;
|
|
5
|
-
height: 2.8rem;
|
|
2
|
+
background: var(--comment-vote-bg, #EAE5E0);
|
|
3
|
+
font-size: var(--comment-vote-font-size, 1.2rem);
|
|
4
|
+
padding: var(--comment-vote-padding, .5rem .8rem);
|
|
5
|
+
height: var(--comment-vote-height, 2.8rem);
|
|
6
6
|
gap: .4rem;
|
|
7
7
|
color: #0F172A;
|
|
8
8
|
|
|
9
9
|
@include flex-align(center, center);
|
|
10
10
|
|
|
11
11
|
&.left{
|
|
12
|
-
border-bottom-left-radius: 5rem;
|
|
13
|
-
border-top-left-radius: 5rem;
|
|
12
|
+
border-bottom-left-radius: var(--comment-vote-border-radius, 5rem);
|
|
13
|
+
border-top-left-radius: var(--comment-vote-border-radius, 5rem);
|
|
14
14
|
padding-right: 0;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&.right{
|
|
18
|
-
border-bottom-right-radius: 5rem;
|
|
19
|
-
border-top-right-radius: 5rem;
|
|
18
|
+
border-bottom-right-radius: var(--comment-vote-border-radius, 5rem);
|
|
19
|
+
border-top-right-radius: var(--comment-vote-border-radius, 5rem);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.buttonGroupIcon{
|
|
24
|
-
width: 1.6rem;
|
|
25
|
-
height: 1.6rem;
|
|
24
|
+
width: var(--comment-vote-icon-size, 1.6rem);
|
|
25
|
+
height: var(--comment-vote-icon-size, 1.6rem);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.buttonGroup[disabled]{
|
|
@@ -18,39 +18,39 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.commentName{
|
|
21
|
-
font-size: 18px;
|
|
21
|
+
font-size: var(--comment-name-font-size, 18px);
|
|
22
22
|
font-weight: 600;
|
|
23
23
|
line-height: 28px;
|
|
24
|
-
color: #1B1B1C;
|
|
24
|
+
color: var(--comment-name-font-color, #1B1B1C);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.commentJobTitle{
|
|
28
|
-
height: 24px;
|
|
29
|
-
padding: .8rem;
|
|
30
|
-
font-size: 1.2rem;
|
|
31
|
-
font-weight: 400;
|
|
28
|
+
height: var(--comment-jobTitle-height, 24px);
|
|
29
|
+
padding: var(--comment-jobTitle-padding, .8rem);
|
|
30
|
+
font-size: var(--comment-jobTitle-font-size, 1.2rem);
|
|
31
|
+
font-weight: var(--comment-jobTitle-font-weight, 400);
|
|
32
32
|
line-height: 1.8rem;
|
|
33
33
|
|
|
34
34
|
@include flex-align(center, center);
|
|
35
35
|
|
|
36
|
-
border-radius: 5rem;
|
|
37
|
-
background: #CFC7C0;
|
|
38
|
-
color: #0F172A;
|
|
36
|
+
border-radius: var(--comment-jobTitle-border-radius, 5rem);
|
|
37
|
+
background: var(--comment-jobTitle-bg, #CFC7C0);
|
|
38
|
+
color: var(--comment-jobTitle-font-color, #0F172A);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.commentDate{
|
|
42
|
-
color: #64748B;
|
|
43
|
-
font-size: 1.6rem;
|
|
42
|
+
color: var(--comment-date-font-color, #64748B);
|
|
43
|
+
font-size: var(--comment-date-font-size, 1.6rem);
|
|
44
44
|
font-weight: 400;
|
|
45
45
|
line-height: 2.6rem;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.commentContent{
|
|
49
|
-
border-radius: .8rem;
|
|
50
|
-
border: .1rem solid #F4F4F4;
|
|
51
|
-
background: #FFF;
|
|
49
|
+
border-radius: var(--comment-border-radius, .8rem);
|
|
50
|
+
border: var(--comment-border, .1rem solid #F4F4F4);
|
|
51
|
+
background: var(--comment-bg-color, #FFF);
|
|
52
52
|
position: relative;
|
|
53
|
-
padding: 2.4rem;
|
|
53
|
+
padding: var(--comment-padding, 2.4rem);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.commentActions{
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.replyButton{
|
|
63
|
-
border-radius: 10rem;
|
|
64
|
-
border: 1.5px solid #161128;
|
|
65
|
-
font-size: 1.2rem;
|
|
66
|
-
font-weight: 700;
|
|
63
|
+
border-radius: var(--comment-btn-border-radius, 10rem);
|
|
64
|
+
border: var(--comment-btn-border, 1.5px solid #161128);
|
|
65
|
+
font-size: var(--comment-btn-font-size, 1.2rem);
|
|
66
|
+
font-weight: var(--comment-btn-font-weight, 700);
|
|
67
67
|
line-height: 1.8rem;
|
|
68
68
|
text-transform: capitalize;
|
|
69
69
|
margin-left: .8rem;
|
|
70
|
-
padding: 0.2rem 1.6rem;
|
|
70
|
+
padding: var(--comment-btn-padding, 0.2rem 1.6rem);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.replySection{
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
content: "";
|
|
30
30
|
position: absolute;
|
|
31
31
|
right: 100%;
|
|
32
|
-
border-left: .1rem solid #CFC7C0;
|
|
33
|
-
border-bottom: .1rem solid #CFC7C0;
|
|
34
|
-
border-bottom-left-radius: 2rem;
|
|
32
|
+
border-left: var(--comment-tree-border, .1rem solid #CFC7C0);
|
|
33
|
+
border-bottom: var(--comment-tree-border, .1rem solid #CFC7C0);
|
|
34
|
+
border-bottom-left-radius: var(--comment-tree-border-radius, 2rem);
|
|
35
35
|
bottom: 50%;
|
|
36
36
|
height: calc(50% + 8.5rem);
|
|
37
37
|
width: 1.1rem;
|
|
@@ -139,12 +139,12 @@ input:checked + .slider::before {
|
|
|
139
139
|
margin-left: 4.5rem;
|
|
140
140
|
font-size: 1.6rem;
|
|
141
141
|
font-weight: 400;
|
|
142
|
-
color: #3C3C40;
|
|
142
|
+
color: var(--switch-bg, #3C3C40);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.errorMsg {
|
|
146
146
|
font-size: 1.2rem;
|
|
147
|
-
color: #DD4B39
|
|
147
|
+
color: var(--comment-error-color, #DD4B39);;
|
|
148
148
|
font-weight: 400;
|
|
149
149
|
line-height: 1.8rem;
|
|
150
150
|
grid-column: 1/-1;
|
|
@@ -157,7 +157,7 @@ input:checked + .slider::before {
|
|
|
157
157
|
bottom: 3.5rem;
|
|
158
158
|
right: 1.5rem;
|
|
159
159
|
font-size: 1.2rem;
|
|
160
|
-
color: #DD4B39;
|
|
160
|
+
color: var(--comment-length-warning-color, #DD4B39);
|
|
161
161
|
font-weight: 400;
|
|
162
162
|
line-height: 1.8rem;
|
|
163
163
|
}
|
|
@@ -228,18 +228,22 @@
|
|
|
228
228
|
padding: 0;
|
|
229
229
|
margin-top: 3.5rem;
|
|
230
230
|
|
|
231
|
+
input::placeholder, textarea::placeholder {
|
|
232
|
+
color: var(--comment-input-placeholder-color);
|
|
233
|
+
}
|
|
234
|
+
|
|
231
235
|
input:not([type="range"]),
|
|
232
236
|
textarea,
|
|
233
237
|
select {
|
|
234
|
-
background: #fff !important;
|
|
235
|
-
font-size: 1.4rem;
|
|
238
|
+
background: var(--comment-input-bg, #fff) !important;
|
|
239
|
+
font-size: var(--comment-input-font-size, 1.4rem);
|
|
236
240
|
line-height: 2.1rem;
|
|
237
|
-
padding: 1.6rem;
|
|
241
|
+
padding: var(--comment-input-padding, 1.6rem);
|
|
238
242
|
max-width: 100%;
|
|
239
243
|
outline: none;
|
|
240
|
-
border-radius: 0.8rem;
|
|
241
|
-
border: 1px solid #E2E8F0 !important;
|
|
242
|
-
color: #0F172A !important;
|
|
244
|
+
border-radius: var(--comment-input-border-radius, 0.8rem);
|
|
245
|
+
border: var(--comment-input-border, 1px solid #E2E8F0) !important;
|
|
246
|
+
color: var(--comment-input--font-color, #0F172A) !important;
|
|
243
247
|
}
|
|
244
248
|
|
|
245
249
|
|
|
@@ -253,9 +257,9 @@
|
|
|
253
257
|
}
|
|
254
258
|
|
|
255
259
|
label{
|
|
256
|
-
font-size: 1.6rem;
|
|
257
|
-
font-weight: 600;
|
|
258
|
-
color:
|
|
260
|
+
font-size: var(--comment-label-font-size,1.6rem);
|
|
261
|
+
font-weight: var(--comment-label-font-weigth,600);
|
|
262
|
+
color: var(--comment-label-font-color,#262629);
|
|
259
263
|
}
|
|
260
264
|
|
|
261
265
|
div > input ~ span, div > textarea ~ span{
|
package/gatsby-ssr.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
/* eslint-disable react/react-in-jsx-scope */
|
|
3
|
-
/* eslint-disable import/prefer-default-export */
|
|
4
|
-
export const onRenderBody = ({ setHeadComponents }) => {
|
|
5
|
-
const links = [];
|
|
6
|
-
|
|
7
|
-
if (process.env.GA_TRACKING_ID) {
|
|
8
|
-
links.push(
|
|
9
|
-
<link
|
|
10
|
-
rel="preconnect"
|
|
11
|
-
href="https://www.googletagmanager.com"
|
|
12
|
-
crossOrigin="anonymous"
|
|
13
|
-
key="gtm-preconnect"
|
|
14
|
-
/>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
if (process.env.ENABLE_PIXEL === 'true') {
|
|
19
|
-
links.push(
|
|
20
|
-
<link
|
|
21
|
-
rel="preconnect"
|
|
22
|
-
href="https://connect.facebook.net"
|
|
23
|
-
crossOrigin="anonymous"
|
|
24
|
-
key="fb-preconnect"
|
|
25
|
-
/>
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (process.env.ENABLE_OPTINMONSTR === 'true') {
|
|
30
|
-
links.push(
|
|
31
|
-
<link
|
|
32
|
-
rel="preconnect"
|
|
33
|
-
href="https://a.omappapi.com"
|
|
34
|
-
crossOrigin="anonymous"
|
|
35
|
-
key="optin-preconnect"
|
|
36
|
-
/>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
if (process.env.ENABLE_MICROSOFT === 'true') {
|
|
41
|
-
links.push(
|
|
42
|
-
<link
|
|
43
|
-
rel="preconnect"
|
|
44
|
-
href="https://bat.bing.com"
|
|
45
|
-
crossOrigin="anonymous"
|
|
46
|
-
key="bing-preconnect"
|
|
47
|
-
/>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
setHeadComponents(links);
|
|
52
|
-
};
|