gatsby-core-theme 17.0.2 → 17.0.3
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
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [17.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v17.0.2...v17.0.3) (2022-12-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add tag specific in the spotlight if it selected ([e18faba](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e18fabab1801e7779f01a95a90db000c5e2a3bd4))
|
|
7
|
+
* add variables for font-size and line-height ([12d3c38](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/12d3c384ebc28a36a4121383040af437004697af))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'tm-3216-h-styles' into 'master' ([360462d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/360462d7ff1ddbd43550abc11f40613daa64da25))
|
|
11
|
+
* Merge branch 'tm-3197-h-tags-spotlight' into 'master' ([4bb4299](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/4bb4299bced420fa868b678a7fbdea758a96374c))
|
|
12
|
+
|
|
1
13
|
## [17.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v17.0.1...v17.0.2) (2022-12-06)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ const Spotlights = ({ module, themeStyles = {} }) => {
|
|
|
21
21
|
const imageSrc = imagePrettyUrl(img, imageSize?.width, imageSize?.height);
|
|
22
22
|
|
|
23
23
|
const fileName = getImageFilename(imageSrc);
|
|
24
|
+
const TitleTag = item?.title_tag || 'label';
|
|
24
25
|
|
|
25
26
|
return (
|
|
26
27
|
<>
|
|
@@ -32,7 +33,7 @@ const Spotlights = ({ module, themeStyles = {} }) => {
|
|
|
32
33
|
src={imageSrc}
|
|
33
34
|
/>
|
|
34
35
|
)}
|
|
35
|
-
{item?.label && <
|
|
36
|
+
{item?.label && <TitleTag>{item.label}</TitleTag>}
|
|
36
37
|
{item.subtitle && <span>{item.subtitle}</span>}
|
|
37
38
|
</>
|
|
38
39
|
);
|
|
@@ -11,15 +11,18 @@ body {
|
|
|
11
11
|
family: var(--main-font), $backup-fonts;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@each $heading, $size, $mobileSize in $heading-sizes {
|
|
14
|
+
@each $heading, $size, $mobileSize, $lineHeight, $mobileLineHeight, $fontWeight, $mobileFontWeight in $heading-sizes {
|
|
15
15
|
#{$heading},
|
|
16
16
|
.#{$heading} {
|
|
17
|
-
font-weight:
|
|
17
|
+
font-weight: #{$mobileFontWeight};
|
|
18
18
|
color: var(--heading-base-color);
|
|
19
19
|
font-size: #{$mobileSize};
|
|
20
|
+
line-height: #{$mobileLineHeight};
|
|
20
21
|
|
|
21
22
|
@include min(tablet) {
|
|
23
|
+
font-weight: #{$fontWeight};
|
|
22
24
|
font-size: #{$size};
|
|
25
|
+
line-height: #{$lineHeight};
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
}
|
|
@@ -43,6 +43,36 @@
|
|
|
43
43
|
--h5-mobile-size: 1.6rem;
|
|
44
44
|
--h6-mobile-size: 1.5rem;
|
|
45
45
|
|
|
46
|
+
// Line heights - site
|
|
47
|
+
--h1-line-height: 4.2rem;
|
|
48
|
+
--h2-line-height: 3.4rem
|
|
49
|
+
--h3-line-height: 3.2rem
|
|
50
|
+
--h4-line-height: 3rem
|
|
51
|
+
--h5-line-height: 2.8rem
|
|
52
|
+
--h6-line-height: 2.7rem
|
|
53
|
+
|
|
54
|
+
--h1-mobile-line-height: 3.5rem;
|
|
55
|
+
--h2-mobile-line-height: 3.1rem;
|
|
56
|
+
--h3-mobile-line-height: 3rem;
|
|
57
|
+
--h4-mobile-line-height: 2.8rem;
|
|
58
|
+
--h5-mobile-line-height: 2.4rem;
|
|
59
|
+
--h6-mobile-line-height: 1.8rem;
|
|
60
|
+
|
|
61
|
+
//font-weights
|
|
62
|
+
--h1-font-weight: 700;
|
|
63
|
+
--h2-font-weight: 700;
|
|
64
|
+
--h3-font-weight: 700;
|
|
65
|
+
--h4-font-weight: 700;
|
|
66
|
+
--h5-font-weight: 700;
|
|
67
|
+
--h6-font-weight: 700;
|
|
68
|
+
|
|
69
|
+
--h1-mobile-font-weight: 700;
|
|
70
|
+
--h2-mobile-font-weight: 700;
|
|
71
|
+
--h3-mobile-font-weight: 700;
|
|
72
|
+
--h4-mobile-font-weight: 700;
|
|
73
|
+
--h5-mobile-font-weight: 700;
|
|
74
|
+
--h6-mobile-font-weight: 700;
|
|
75
|
+
|
|
46
76
|
// Z-index
|
|
47
77
|
--modal-index: 30;
|
|
48
78
|
--navigation-index: 20;
|
|
@@ -54,7 +84,6 @@
|
|
|
54
84
|
// Components
|
|
55
85
|
--nav-background-color: var(--color-4);
|
|
56
86
|
--nav-icon-color: var(--color-19);
|
|
57
|
-
--nav-height: 6rem;
|
|
58
87
|
|
|
59
88
|
--modal-overlay-color: rgba(0, 0, 0, 0.6);
|
|
60
89
|
--modal-background-color: white;
|
|
@@ -2,10 +2,10 @@ $backup-fonts: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Ubuntu', 'Cantar
|
|
|
2
2
|
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
3
3
|
|
|
4
4
|
$heading-sizes: (
|
|
5
|
-
h1 var(--h1-size) var(--h1-mobile-size),
|
|
6
|
-
h2 var(--h2-size) var(--h2-mobile-size),
|
|
7
|
-
h3 var(--h3-size) var(--h3-mobile-size),
|
|
8
|
-
h4 var(--h4-size) var(--h4-mobile-size),
|
|
9
|
-
h5 var(--h5-size) var(--h5-mobile-size),
|
|
10
|
-
h6 var(--h6-size) var(--h6-mobile-size),
|
|
5
|
+
h1 var(--h1-size) var(--h1-mobile-size) var(--h1-line-height) var(--h1-mobile-line-height) var(--h1-font-weight) var(--h1-mobile-font-weight),
|
|
6
|
+
h2 var(--h2-size) var(--h2-mobile-size) var(--h2-line-height) var(--h2-mobile-line-height) var(--h2-font-weight) var(--h2-mobile-font-weight),
|
|
7
|
+
h3 var(--h3-size) var(--h3-mobile-size) var(--h3-line-height) var(--h3-mobile-line-height) var(--h3-font-weight) var(--h3-mobile-font-weight),
|
|
8
|
+
h4 var(--h4-size) var(--h4-mobile-size) var(--h4-line-height) var(--h4-mobile-line-height) var(--h4-font-weight) var(--h4-mobile-font-weight),
|
|
9
|
+
h5 var(--h5-size) var(--h5-mobile-size) var(--h5-line-height) var(--h5-mobile-line-height) var(--h5-font-weight) var(--h5-mobile-font-weight),
|
|
10
|
+
h6 var(--h6-size) var(--h6-mobile-size) var(--h6-line-height) var(--h6-mobile-line-height) var(--h6-font-weight) var(--h6-mobile-font-weight),
|
|
11
11
|
);
|