gatsby-core-theme 30.0.38 → 30.0.40
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 +25 -0
- package/package.json +1 -1
- package/src/components/atoms/author-box/index.js +14 -0
- package/src/components/molecules/content/content.module.scss +2 -0
- package/src/components/molecules/content/table/table.module.scss +1 -1
- package/src/components/organisms/anchor/template-one/anchor.module.scss +81 -44
- package/src/components/organisms/anchor/template-one/anchor.stories.js +4 -2
- package/src/styles/utils/_mixins.scss +18 -0
- package/src/styles/utils/variables/_main.scss +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## [30.0.40](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.39...v30.0.40) (2023-12-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added new mixin ([b5d9ee6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b5d9ee64b2eae4f6f531811a3f50600c5e6b1013))
|
|
7
|
+
* anchor ([554e3e6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/554e3e6d9b95485a3dd3b47605304a43394efc7c))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'tm-3800-anchor-core' into 'master' ([7a2e331](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7a2e331e3a05df414b334488742e4b904ca9d53a))
|
|
11
|
+
|
|
12
|
+
## [30.0.39](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.38...v30.0.39) (2023-12-27)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* add text decoration to the button ([c6af0e8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c6af0e8d83e613aa0422b6e127519329d61c741c))
|
|
18
|
+
* added personal page ([92c701d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/92c701d396cb4046ed43c72d12363ed8e3972526))
|
|
19
|
+
* update table ([57a3b44](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/57a3b446dec767348de9a8a709d671d9ae4b1c92))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* Merge branch 'tm-3854-social-icons' into 'master' ([72c541c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/72c541c2a7f5b3d0678c56f501074ada7ba2d7f2))
|
|
23
|
+
* Merge branch 'tm-3913-table-module' into 'master' ([1895b78](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1895b780ba26cd3957dd36e4e2c3a8dbdbfff0ed))
|
|
24
|
+
* Merge branch 'tm-3916-text-module' into 'master' ([b16b26a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b16b26ac055281ad0e5ae4455615920300f14700))
|
|
25
|
+
|
|
1
26
|
## [30.0.38](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.37...v30.0.38) (2023-12-26)
|
|
2
27
|
|
|
3
28
|
|
package/package.json
CHANGED
|
@@ -47,6 +47,19 @@ export default function AuthorBox({
|
|
|
47
47
|
</svg>
|
|
48
48
|
),
|
|
49
49
|
tiktok: <IoLogoTiktok title="Tiktok Icon" />,
|
|
50
|
+
wikipedia: (
|
|
51
|
+
<svg
|
|
52
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
53
|
+
width="20"
|
|
54
|
+
height="20"
|
|
55
|
+
viewBox="0 0 20 20"
|
|
56
|
+
fill="none"
|
|
57
|
+
>
|
|
58
|
+
<title>Wikipedia Icon</title>
|
|
59
|
+
<path d="M14.4955 4.6618V4.95411C14.11 5.02259 13.8181 5.14373 13.62 5.31753C13.3362 5.57562 13.0015 5.97064 12.782 6.50259L8.31508 15.6196H8.01788L3.53358 6.38408C3.32473 5.91007 3.0408 5.62039 2.95513 5.51504C2.82125 5.35177 2.65658 5.22405 2.46113 5.13187C2.26567 5.03971 2.00193 4.98046 1.66992 4.95411V4.6618H6.03327V4.95411C5.52989 5.00152 5.28991 5.08579 5.13997 5.20692C4.99003 5.32807 4.91506 5.48345 4.91506 5.67305C4.91506 5.9364 5.03822 6.34722 5.28456 6.90551L8.59622 13.1863L11.8341 6.98451C12.0858 6.37356 12.2946 5.94957 12.2946 5.71255C12.2946 5.55982 12.217 5.41366 12.0617 5.27408C11.9064 5.13451 11.7306 5.03576 11.3612 4.97781C11.3344 4.97256 11.2889 4.96466 11.2246 4.95411V4.6618H14.4955Z" />
|
|
60
|
+
<path d="M18.3409 4.66179V4.95411C17.9553 5.02259 17.6634 5.14373 17.4653 5.31753C17.1815 5.57561 16.8468 5.97063 16.6273 6.50259L12.7071 15.6196H12.4099L8.26722 6.38408C8.05837 5.91007 7.77445 5.62038 7.68877 5.51504C7.55489 5.35177 7.39022 5.22405 7.19477 5.13187C6.99931 5.03971 6.82224 4.98045 6.49023 4.95411V4.66179H10.7669V4.95411C10.2635 5.00152 10.0235 5.08579 9.87361 5.20692C9.72367 5.32807 9.6487 5.48344 9.6487 5.67304C9.6487 5.9364 9.77186 6.34722 10.0182 6.90551L12.9882 13.1863L15.6795 6.98451C15.9311 6.37355 16.1399 5.94957 16.1399 5.71255C16.1399 5.55981 16.0623 5.41366 15.907 5.27407C15.7517 5.13451 15.4893 5.03576 15.1198 4.97781C15.093 4.97255 15.0475 4.96465 14.9833 4.95411V4.66179H18.3409Z" />
|
|
61
|
+
</svg>
|
|
62
|
+
),
|
|
50
63
|
},
|
|
51
64
|
}) {
|
|
52
65
|
const { translations } = useContext(Context) || {};
|
|
@@ -56,6 +69,7 @@ export default function AuthorBox({
|
|
|
56
69
|
{ id: 'li', link: author?.linkedin_profile, icon: socialIcons?.linkedin },
|
|
57
70
|
{ id: 'tw', link: author?.twitter_profile, icon: socialIcons?.twitter },
|
|
58
71
|
{ id: 'tt', link: author?.tik_tok, icon: socialIcons?.tiktok },
|
|
72
|
+
{ id: 'wk', link: author?.personal_website, icon: socialIcons?.wikipedia },
|
|
59
73
|
];
|
|
60
74
|
const biographyRef = useRef(null);
|
|
61
75
|
const [isReadMore, setIsReadMore] = useState(showReadMore);
|
|
@@ -78,6 +78,8 @@
|
|
|
78
78
|
max-width: var(--max-width-content, var(--main-container-max)) !important;
|
|
79
79
|
margin: 0 auto;
|
|
80
80
|
padding: var(--show-more-button-padding-mobile) !important;
|
|
81
|
+
text-decoration: var(--show-more-button-text-decoration, none);
|
|
82
|
+
|
|
81
83
|
|
|
82
84
|
&::after {
|
|
83
85
|
display: var(--show-more-button-arrow-display, none);
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
height: 5.6rem;
|
|
60
60
|
color: var(--table-head-text);
|
|
61
61
|
background: var(--table-head-background);
|
|
62
|
+
border-right: var(--border-right-table-header, 2px solid var(--table-head-background));
|
|
62
63
|
font-weight: 700;
|
|
63
64
|
font-size: 1.6rem;
|
|
64
65
|
line-height: 2.7rem;
|
|
@@ -195,7 +196,6 @@
|
|
|
195
196
|
td {
|
|
196
197
|
display: block;
|
|
197
198
|
text-align: left !important;
|
|
198
|
-
width: 100% !important;
|
|
199
199
|
height: var(--table-template-two-mobile-height, 4rem);
|
|
200
200
|
@include flex-align(center, flex-start);
|
|
201
201
|
background: var(--even-td-template-two, #fff);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
0% {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
}
|
|
5
|
+
|
|
5
6
|
100% {
|
|
6
7
|
opacity: 1;
|
|
7
8
|
}
|
|
@@ -42,16 +43,20 @@
|
|
|
42
43
|
max-width: var(--main-container-max);
|
|
43
44
|
margin: 0 auto;
|
|
44
45
|
@include flex-direction(row);
|
|
46
|
+
|
|
45
47
|
&::-webkit-scrollbar {
|
|
46
48
|
height: 0.4rem;
|
|
47
49
|
display: none;
|
|
48
50
|
}
|
|
51
|
+
|
|
49
52
|
&::-webkit-scrollbar-track {
|
|
50
53
|
background: #9c9ab0;
|
|
51
54
|
}
|
|
55
|
+
|
|
52
56
|
&::-webkit-scrollbar-thumb {
|
|
53
57
|
background: #1c1a28;
|
|
54
58
|
}
|
|
59
|
+
|
|
55
60
|
overflow-x: scroll;
|
|
56
61
|
}
|
|
57
62
|
|
|
@@ -85,7 +90,7 @@
|
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
.anchorItem {
|
|
88
|
-
&.active
|
|
93
|
+
&.active>a {
|
|
89
94
|
background-color: #1c1a28;
|
|
90
95
|
color: #fff;
|
|
91
96
|
border: 1.5px solid #3e3c47;
|
|
@@ -119,7 +124,7 @@
|
|
|
119
124
|
display: flex;
|
|
120
125
|
}
|
|
121
126
|
|
|
122
|
-
>
|
|
127
|
+
>svg {
|
|
123
128
|
width: 3.2rem;
|
|
124
129
|
height: 3.2rem;
|
|
125
130
|
padding: 0.8rem;
|
|
@@ -130,7 +135,7 @@
|
|
|
130
135
|
}
|
|
131
136
|
|
|
132
137
|
.disabled {
|
|
133
|
-
>
|
|
138
|
+
>svg {
|
|
134
139
|
color: #515156;
|
|
135
140
|
background-color: #f4f4f4;
|
|
136
141
|
}
|
|
@@ -139,44 +144,46 @@
|
|
|
139
144
|
.staticShowButtons {
|
|
140
145
|
display: flex;
|
|
141
146
|
|
|
142
|
-
>
|
|
147
|
+
>button:first-child {
|
|
143
148
|
padding-right: 1.6rem;
|
|
144
149
|
}
|
|
145
150
|
|
|
146
|
-
>
|
|
151
|
+
>button:last-of-type {
|
|
147
152
|
padding-left: 1.6rem;
|
|
148
153
|
}
|
|
149
154
|
}
|
|
150
155
|
|
|
151
156
|
.stickyShowButtons {
|
|
152
|
-
>
|
|
157
|
+
>button:first-child {
|
|
153
158
|
position: absolute;
|
|
154
159
|
top: 0.6rem;
|
|
155
160
|
padding-right: 1.6rem;
|
|
156
161
|
height: 4rem;
|
|
162
|
+
|
|
157
163
|
@include custom-min(960) {
|
|
158
164
|
left: calc(50% - (var(--anchor-max-width, --main-container-max) / 2) - 2.6rem);
|
|
159
165
|
transform: translateX(50%);
|
|
160
166
|
}
|
|
161
167
|
}
|
|
162
168
|
|
|
163
|
-
>
|
|
169
|
+
>button:last-of-type {
|
|
164
170
|
position: absolute;
|
|
165
171
|
top: 0.6rem;
|
|
166
172
|
height: 4rem;
|
|
167
173
|
padding-left: 1.6rem;
|
|
174
|
+
|
|
168
175
|
@include custom-min(960) {
|
|
169
176
|
right: calc(50% - (var(--anchor-max-width, --main-container-max) / 2) - 2.6rem);
|
|
170
177
|
transform: translateX(-50%);
|
|
171
178
|
}
|
|
172
179
|
}
|
|
173
180
|
|
|
174
|
-
>
|
|
175
|
-
>
|
|
181
|
+
>ul {
|
|
182
|
+
>li:first-child {
|
|
176
183
|
margin-left: 4.8rem;
|
|
177
184
|
}
|
|
178
185
|
|
|
179
|
-
>
|
|
186
|
+
>li:last-child {
|
|
180
187
|
margin-right: 4.8rem;
|
|
181
188
|
}
|
|
182
189
|
}
|
|
@@ -199,72 +206,102 @@
|
|
|
199
206
|
|
|
200
207
|
.staticFullScrollWidth {
|
|
201
208
|
min-width: 100vw;
|
|
202
|
-
max-width: 100vw;
|
|
203
209
|
display: inline-grid;
|
|
204
210
|
|
|
205
|
-
|
|
211
|
+
@include min(tablet) {
|
|
212
|
+
max-width: 100vw;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:not(.staticShowButtons) {
|
|
216
|
+
&::before {
|
|
217
|
+
display: none;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
>ul {
|
|
221
|
+
>li:first-child {
|
|
222
|
+
padding-left: calc((100vw - var(--anchor-max-width, --main-container-max)) / 2) !important;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&::before,
|
|
228
|
+
&::after {
|
|
206
229
|
content: '';
|
|
230
|
+
display: none;
|
|
207
231
|
position: absolute;
|
|
208
232
|
top: 0;
|
|
209
|
-
left: 0;
|
|
210
|
-
display: block;
|
|
211
233
|
background-color: var(--body-background-color, white);
|
|
212
|
-
width: calc((100% - var(--anchor-max-width, --main-container-max)) / 2 + 1.6rem);
|
|
213
234
|
height: 4.5rem;
|
|
214
235
|
z-index: 1;
|
|
236
|
+
|
|
237
|
+
@include custom-min(960) {
|
|
238
|
+
display: block;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@include custom-min-max(960, 1100) {
|
|
242
|
+
width: 2.4rem;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
width: calc((100% - var(--anchor-max-width, --main-container-max)) / 2 + 6.8rem);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&::before {
|
|
249
|
+
left: 0;
|
|
215
250
|
}
|
|
216
251
|
|
|
217
252
|
&::after {
|
|
218
|
-
content: '';
|
|
219
|
-
position: absolute;
|
|
220
|
-
top: 0;
|
|
221
253
|
right: 0;
|
|
222
|
-
display: block;
|
|
223
|
-
background-color: var(--body-background-color, white);
|
|
224
|
-
width: calc((100% - var(--anchor-max-width, --main-container-max)) / 2 + 1.6rem);
|
|
225
|
-
height: 4.5rem;
|
|
226
|
-
z-index: 1;
|
|
227
254
|
}
|
|
228
255
|
|
|
229
|
-
>
|
|
256
|
+
>button {
|
|
230
257
|
position: absolute;
|
|
231
258
|
z-index: 2;
|
|
232
|
-
left: calc((100% - var(--anchor-max-width, --main-container-max)) / 2 + 1.6rem);
|
|
233
259
|
height: 4.5rem;
|
|
234
260
|
padding-right: 1.6rem;
|
|
235
|
-
|
|
261
|
+
left: calc((100vw - var(--anchor-max-width, --main-container-max)) / 2 + 2.4rem);
|
|
236
262
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
263
|
+
&:last-of-type {
|
|
264
|
+
left: unset;
|
|
265
|
+
right: calc((100vw - var(--anchor-max-width, --main-container-max)) / 2 + 2.4rem);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
@include custom-min-max(960, 1100) {
|
|
269
|
+
left: 2.4rem;
|
|
270
|
+
|
|
271
|
+
&:last-of-type {
|
|
272
|
+
right: 2.4rem;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
243
275
|
}
|
|
244
276
|
|
|
245
|
-
>
|
|
277
|
+
>ul {
|
|
246
278
|
max-width: unset !important;
|
|
247
279
|
margin: 0 !important;
|
|
280
|
+
padding: 0 1.6rem;
|
|
248
281
|
|
|
249
282
|
&::-webkit-scrollbar {
|
|
250
283
|
display: block !important;
|
|
251
284
|
}
|
|
252
285
|
|
|
253
|
-
>
|
|
254
|
-
padding-left: calc(
|
|
255
|
-
|
|
256
|
-
)
|
|
286
|
+
>li:first-child {
|
|
287
|
+
padding-left: calc((100vw - var(--anchor-max-width, --main-container-max)) / 2 + 5.8rem) !important;
|
|
288
|
+
|
|
289
|
+
@include custom-min-max(960, 1100) {
|
|
290
|
+
padding-left: 7.2rem !important;
|
|
291
|
+
}
|
|
292
|
+
|
|
257
293
|
}
|
|
258
294
|
|
|
259
|
-
>
|
|
260
|
-
padding-right: calc(
|
|
261
|
-
|
|
262
|
-
)
|
|
295
|
+
>li:last-child {
|
|
296
|
+
padding-right: calc((100vw - var(--anchor-max-width, --main-container-max)) / 2 + 5.8rem) !important;
|
|
297
|
+
|
|
298
|
+
@include custom-min-max(960, 1100) {
|
|
299
|
+
padding-right: 7.2rem !important;
|
|
300
|
+
}
|
|
263
301
|
}
|
|
264
302
|
}
|
|
265
303
|
}
|
|
266
304
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
visibility: hidden !important;
|
|
305
|
+
.displayNone {
|
|
306
|
+
visibility: hidden !important;
|
|
270
307
|
}
|
|
@@ -131,6 +131,7 @@ Default.args = {
|
|
|
131
131
|
{ label: 'section-twelf' },
|
|
132
132
|
],
|
|
133
133
|
},
|
|
134
|
+
fullScrollWidth: false,
|
|
134
135
|
isShowButtons: false,
|
|
135
136
|
sliderGap: 10,
|
|
136
137
|
headerOffset: 20,
|
|
@@ -138,7 +139,7 @@ Default.args = {
|
|
|
138
139
|
|
|
139
140
|
export const FullWidth = Template.bind({});
|
|
140
141
|
FullWidth.args = {
|
|
141
|
-
width: '
|
|
142
|
+
width: '100%',
|
|
142
143
|
module: {
|
|
143
144
|
items: [
|
|
144
145
|
{ label: 'section-one' },
|
|
@@ -163,7 +164,7 @@ FullWidth.args = {
|
|
|
163
164
|
|
|
164
165
|
export const Buttons = Template.bind({});
|
|
165
166
|
Buttons.args = {
|
|
166
|
-
width: '
|
|
167
|
+
width: '100%',
|
|
167
168
|
module: {
|
|
168
169
|
items: [
|
|
169
170
|
{ label: 'section-one' },
|
|
@@ -180,6 +181,7 @@ Buttons.args = {
|
|
|
180
181
|
{ label: 'section-twelf' },
|
|
181
182
|
],
|
|
182
183
|
},
|
|
184
|
+
fullScrollWidth: false,
|
|
183
185
|
isShowButtons: true,
|
|
184
186
|
sliderGap: 10,
|
|
185
187
|
headerOffset: 80,
|
|
@@ -146,6 +146,24 @@
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
@mixin border-gradient-single($color-1, $bgcolor, $radius: 0.8rem, $border-width: 0.1rem) {
|
|
150
|
+
background: $bgcolor;
|
|
151
|
+
&:before {
|
|
152
|
+
content: '';
|
|
153
|
+
position: absolute;
|
|
154
|
+
top: 0;
|
|
155
|
+
left: 0;
|
|
156
|
+
right: 0;
|
|
157
|
+
bottom: 0;
|
|
158
|
+
border-radius: $radius;
|
|
159
|
+
border: $border-width solid transparent;
|
|
160
|
+
background: $color-1 border-box;
|
|
161
|
+
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
162
|
+
-webkit-mask-composite: destination-out;
|
|
163
|
+
mask-composite: exclude;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
149
167
|
@mixin buttonsColor($color1, $color2, $color3, $textColor: 'white') {
|
|
150
168
|
display: inline-flex;
|
|
151
169
|
align-items: center;
|