@total_onion/onion-library 1.0.83 → 1.0.85
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/components/block-post-info-v3/post-info-v3.scss +16 -17
- package/components/block-section-separator-v3/section-separator-v3.scss +11 -9
- package/components/block-single-responsive-image-v3/single-responsive-image-v3.scss +0 -2
- package/components/block-standard-content-v3/standard-content-v3.scss +0 -1
- package/components/block-sub-group-container-v3/sub-group-container-v3.scss +6 -12
- package/components/component-animations-v3/animations-v3.scss +117 -0
- package/components/component-athena-head-v3/athena-head-v3.twig +4 -0
- package/components/component-content-container-settings-v3/content-container-settings-v3.scss +16 -17
- package/components/component-element-positioning-v3/element-positioning-v3.scss +2 -3
- package/components/component-gradient-overlay-v3/gradient-overlay-v3.scss +45 -0
- package/components/component-grid-layout-container-v3/grid-layout-container-v3.scss +5 -5
- package/components/component-grid-layout-element-v3/grid-layout-element-v3.scss +25 -0
- package/components/fields-block-editor-assets-v3/block-editor-assets-v3.php +17 -0
- package/components/fields-core-css-sizing-vars-v3/core-css-sizing-vars-v3.scss +20 -86
- package/components/fields-core-design-settings-v3/core-design-settings-v3.twig +6 -0
- package/components/fields-core-design-system-v3/core-design-system-v3.php +44 -0
- package/components/fields-core-typography-v3/core-typography-v3.scss +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
// LIBRARY FILE - Do not modify/override here as your changes will be lost when the package is updated.
|
|
2
1
|
@use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
|
|
3
2
|
@use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
|
|
4
3
|
@use 'Assets/scss/theme/breakpoints';
|
|
5
4
|
@use 'Assets/scss/blocks/post-info-v3/post-info-v3-extra';
|
|
6
|
-
@use 'Assets/scss/modules/library-modules/grid-layout-container/grid-layout-container';
|
|
7
|
-
@use 'Assets/scss/modules/library-modules/grid-layout-element/grid-layout-element';
|
|
8
|
-
@use 'Assets/scss/modules/library-modules/element-positioning/element-positioning';
|
|
5
|
+
@use 'Assets/scss/modules/library-modules/grid-layout-container-v3/grid-layout-container-v3';
|
|
6
|
+
@use 'Assets/scss/modules/library-modules/grid-layout-element-v3/grid-layout-element-v3';
|
|
7
|
+
@use 'Assets/scss/modules/library-modules/element-positioning-v3/element-positioning-v3';
|
|
9
8
|
@use 'Assets/scss/modules/library-modules/gradient-overlay/gradient-overlay';
|
|
10
9
|
@use 'Assets/scss/modules/library-modules/social-media-share/social-media-share';
|
|
11
10
|
@use 'Assets/scss/modules/library-modules/better-reviews/better-reviews';
|
|
@@ -16,7 +15,7 @@
|
|
|
16
15
|
grid-auto-columns: 1fr;
|
|
17
16
|
grid-template: 'main' / 1fr;
|
|
18
17
|
@include content-container-settings-v3.contentContainerSettingsV3();
|
|
19
|
-
@include grid-layout-container.gridLayoutContainer();
|
|
18
|
+
@include grid-layout-container-v3.gridLayoutContainer();
|
|
20
19
|
@include social-media-share.social-media-share();
|
|
21
20
|
@include better-reviews.better-reviews();
|
|
22
21
|
&__post-cover-link {
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
border: 0;
|
|
41
40
|
}
|
|
42
41
|
&__info-item {
|
|
43
|
-
@include grid-layout-element.gridLayoutElement();
|
|
42
|
+
@include grid-layout-element-v3.gridLayoutElement();
|
|
44
43
|
width: 100%;
|
|
45
44
|
position: relative;
|
|
46
45
|
}
|
|
@@ -48,22 +47,22 @@
|
|
|
48
47
|
width: 100%;
|
|
49
48
|
}
|
|
50
49
|
&__cta-selection-container {
|
|
51
|
-
@include grid-layout-element.gridLayoutElement();
|
|
50
|
+
@include grid-layout-element-v3.gridLayoutElement();
|
|
52
51
|
}
|
|
53
52
|
&__cta {
|
|
54
53
|
display: flex;
|
|
55
54
|
}
|
|
56
55
|
&__cta-style-post-colour,
|
|
57
56
|
&__cta-style-post-text-colour-style {
|
|
58
|
-
padding-block: core-functions-v3.fluidSize(10
|
|
59
|
-
padding-inline: core-functions-v3.fluidSize(20
|
|
57
|
+
padding-block: core-functions-v3.fluidSize(10);
|
|
58
|
+
padding-inline: core-functions-v3.fluidSize(20);
|
|
60
59
|
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
61
|
-
padding-block: core-functions-v3.fluidSize(10
|
|
62
|
-
padding-inline: core-functions-v3.fluidSize(20
|
|
60
|
+
padding-block: core-functions-v3.fluidSize(10);
|
|
61
|
+
padding-inline: core-functions-v3.fluidSize(20);
|
|
63
62
|
}
|
|
64
63
|
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
65
|
-
padding-block: core-functions-v3.fluidSize(10
|
|
66
|
-
padding-inline: core-functions-v3.fluidSize(20
|
|
64
|
+
padding-block: core-functions-v3.fluidSize(10);
|
|
65
|
+
padding-inline: core-functions-v3.fluidSize(20);
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
&__cta-style-post-colour {
|
|
@@ -86,7 +85,7 @@
|
|
|
86
85
|
pointer-events: none;
|
|
87
86
|
display: flex;
|
|
88
87
|
width: auto;
|
|
89
|
-
@include grid-layout-element.gridLayoutElement();
|
|
88
|
+
@include grid-layout-element-v3.gridLayoutElement();
|
|
90
89
|
}
|
|
91
90
|
&__post-image-container {
|
|
92
91
|
display: grid;
|
|
@@ -96,7 +95,7 @@
|
|
|
96
95
|
img,
|
|
97
96
|
svg {
|
|
98
97
|
margin: unset;
|
|
99
|
-
@include element-positioning.elementPositioning();
|
|
98
|
+
@include element-positioning-v3.elementPositioning();
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
}
|
|
@@ -110,7 +109,7 @@
|
|
|
110
109
|
--image-aspect-ratio-mobile,
|
|
111
110
|
var(--image-aspect-ratio-desktop)
|
|
112
111
|
);
|
|
113
|
-
@include grid-layout-element.gridLayoutElement();
|
|
112
|
+
@include grid-layout-element-v3.gridLayoutElement();
|
|
114
113
|
width: var(--post-image-width-mobile);
|
|
115
114
|
|
|
116
115
|
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
@@ -171,7 +170,7 @@
|
|
|
171
170
|
}
|
|
172
171
|
&__post-text-alternative-style {
|
|
173
172
|
width: auto;
|
|
174
|
-
@include grid-layout-element.gridLayoutElement();
|
|
173
|
+
@include grid-layout-element-v3.gridLayoutElement();
|
|
175
174
|
}
|
|
176
175
|
@include post-info-v3-extra.additionalStyles();
|
|
177
176
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
@use 'Assets/scss/modules/library-modules/core-
|
|
3
|
-
@use 'Assets/scss/modules/library-modules/core-functions/core-functions';
|
|
1
|
+
@use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
|
|
4
3
|
@use 'Assets/scss/theme/breakpoints';
|
|
5
4
|
|
|
6
5
|
.section-separator-v3 {
|
|
7
|
-
@include core-mixins.responsiveShowHide(grid);
|
|
6
|
+
@include core-mixins-v3.responsiveShowHide(grid);
|
|
8
7
|
|
|
9
8
|
&__separator-image {
|
|
10
9
|
width: 100%;
|
|
@@ -20,15 +19,18 @@
|
|
|
20
19
|
place-self: center var(--horizontal-position);
|
|
21
20
|
translate: var(--horizontal-offset) var(--vertical-offset);
|
|
22
21
|
top: 0;
|
|
23
|
-
max-width: core-functions.fluidSize(
|
|
22
|
+
max-width: core-functions-v3.fluidSize(
|
|
23
|
+
var(--max-width-mobile),
|
|
24
|
+
'mobile'
|
|
25
|
+
);
|
|
24
26
|
|
|
25
|
-
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
26
|
-
max-width: core-functions.fluidSize(
|
|
27
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
28
|
+
max-width: core-functions-v3.fluidSize(
|
|
27
29
|
var(--max-width-portrait),
|
|
28
30
|
'portrait'
|
|
29
31
|
);
|
|
30
|
-
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
31
|
-
max-width: core-functions.fluidSize(
|
|
32
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
33
|
+
max-width: core-functions-v3.fluidSize(
|
|
32
34
|
var(--max-width-desktop),
|
|
33
35
|
'desktop'
|
|
34
36
|
);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
@use 'Assets/scss/modules/library-modules/responsive-image/responsive-image';
|
|
2
2
|
@use 'Assets/scss/blocks/single-responsive-image-v3/single-responsive-image-v3-extra';
|
|
3
|
-
@use 'Assets/scss/modules/library-modules/cover-link/cover-link';
|
|
4
3
|
|
|
5
4
|
.single-responsive-image-v3 {
|
|
6
5
|
@include responsive-image.responsiveImage();
|
|
7
|
-
@include cover-link.coverLink();
|
|
8
6
|
@include single-responsive-image-v3-extra.additionalStyles();
|
|
9
7
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// LIBRARY FILE - Do not modify/override here as your changes will be lost when the package is updated.
|
|
2
1
|
@use 'Assets/scss/blocks/standard-content-v3/standard-content-v3-extra';
|
|
3
2
|
@use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
|
|
4
3
|
@use 'Assets/scss/modules/library-modules/content-container-v3/content-container-v3';
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
@use 'Assets/scss/modules/library-modules/grid-layout-
|
|
3
|
-
@use 'Assets/scss/modules/library-modules/
|
|
4
|
-
@use 'Assets/scss/modules/library-modules/responsive-image/responsive-image';
|
|
5
|
-
// @use 'Assets/scss/modules/library-modules/animations/animations';
|
|
1
|
+
@use 'Assets/scss/modules/library-modules/grid-layout-element-v3/grid-layout-element-v3';
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/grid-layout-container-v3/grid-layout-container-v3';
|
|
3
|
+
@use 'Assets/scss/modules/library-modules/animations-v3/animations-v3';
|
|
6
4
|
@use 'Assets/scss/blocks/sub-group-container-v3/sub-group-container-v3-extra';
|
|
7
|
-
@use 'Assets/scss/modules/library-modules/cover-link/cover-link';
|
|
8
5
|
.sub-group-container-v3 {
|
|
9
|
-
@include responsive-image.responsiveImage();
|
|
10
|
-
// @include animations.animations();
|
|
11
|
-
@include cover-link.coverLink();
|
|
12
|
-
|
|
13
6
|
display: grid;
|
|
14
7
|
grid-template: 'main' / 1fr;
|
|
15
8
|
place-items: center;
|
|
9
|
+
@include animations-v3.animations();
|
|
16
10
|
&__grid-container {
|
|
17
11
|
grid-area: main;
|
|
18
12
|
place-self: stretch;
|
|
19
|
-
@include grid-layout-container.gridLayoutContainer();
|
|
13
|
+
@include grid-layout-container-v3.gridLayoutContainer();
|
|
20
14
|
}
|
|
21
15
|
&__block-container {
|
|
22
|
-
@include grid-layout-element.gridLayoutElement();
|
|
23
16
|
z-index: 5;
|
|
17
|
+
@include grid-layout-element-v3.gridLayoutElement();
|
|
24
18
|
}
|
|
25
19
|
@include sub-group-container-v3-extra.additionalStyles();
|
|
26
20
|
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
@use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
|
|
2
|
+
@mixin animations() {
|
|
3
|
+
.cmpl-block-animations {
|
|
4
|
+
--slide-distance-default: 50;
|
|
5
|
+
@keyframes rotate {
|
|
6
|
+
from {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
rotate: 0deg;
|
|
9
|
+
}
|
|
10
|
+
to {
|
|
11
|
+
opacity: 1;
|
|
12
|
+
rotate: 360deg;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
@keyframes fade-in {
|
|
16
|
+
from {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
}
|
|
19
|
+
100% {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
@keyframes fade-in-left {
|
|
24
|
+
from {
|
|
25
|
+
transform: translateX(
|
|
26
|
+
calc(
|
|
27
|
+
core-functions-v3.fluidSize(
|
|
28
|
+
calc(
|
|
29
|
+
var(
|
|
30
|
+
--slide-distance,
|
|
31
|
+
var(--slide-distance-default)
|
|
32
|
+
) *
|
|
33
|
+
-1
|
|
34
|
+
)
|
|
35
|
+
)
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
opacity: 0;
|
|
39
|
+
}
|
|
40
|
+
100% {
|
|
41
|
+
transform: translateX(0%);
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
@keyframes fade-in-right {
|
|
46
|
+
from {
|
|
47
|
+
transform: translateX(
|
|
48
|
+
calc(
|
|
49
|
+
core-functions-v3.fluidSize(
|
|
50
|
+
var(--slide-distance, var(--slide-distance-default))
|
|
51
|
+
)
|
|
52
|
+
)
|
|
53
|
+
);
|
|
54
|
+
opacity: 0;
|
|
55
|
+
}
|
|
56
|
+
100% {
|
|
57
|
+
transform: translateX(0%);
|
|
58
|
+
opacity: 1;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
@keyframes fade-in-up {
|
|
62
|
+
from {
|
|
63
|
+
transform: translateY(
|
|
64
|
+
calc(
|
|
65
|
+
core-functions-v3.fluidSize(
|
|
66
|
+
var(--slide-distance, var(--slide-distance-default))
|
|
67
|
+
)
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
opacity: 0;
|
|
71
|
+
}
|
|
72
|
+
100% {
|
|
73
|
+
transform: translateY(0%);
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
@keyframes fade-in-down {
|
|
78
|
+
from {
|
|
79
|
+
transform: translateY(
|
|
80
|
+
calc(
|
|
81
|
+
core-functions-v3.fluidSize(
|
|
82
|
+
calc(
|
|
83
|
+
var(
|
|
84
|
+
--slide-distance,
|
|
85
|
+
var(--slide-distance-default)
|
|
86
|
+
) *
|
|
87
|
+
-1
|
|
88
|
+
)
|
|
89
|
+
)
|
|
90
|
+
)
|
|
91
|
+
);
|
|
92
|
+
opacity: 0;
|
|
93
|
+
}
|
|
94
|
+
100% {
|
|
95
|
+
transform: translateY(0%);
|
|
96
|
+
opacity: 1;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
@keyframes scale-in {
|
|
100
|
+
from {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
scale: 0;
|
|
103
|
+
}
|
|
104
|
+
100% {
|
|
105
|
+
opacity: 1;
|
|
106
|
+
scale: 1;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&.loaded {
|
|
111
|
+
animation: var(--animation-name) var(--animation-duration)
|
|
112
|
+
var(--animation-delay) var(--animation-easing)
|
|
113
|
+
var(--animation-repeat) var(--animation-fill-mode)
|
|
114
|
+
var(--animation-direction);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{{ include('components/noscript.twig', ignore_missing = true) }}
|
|
2
|
+
{{ include('components/core-design-settings-v3.twig', ignore_missing = true) }}
|
|
3
|
+
{{ include('components/speculation-api.twig', ignore_missing = true) }}
|
|
4
|
+
{{ include('components/global-preload.twig', ignore_missing = true) }}
|
package/components/component-content-container-settings-v3/content-container-settings-v3.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'Assets/scss/theme/breakpoints';
|
|
2
2
|
@use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
|
|
3
|
-
@use 'Assets/scss/modules/library-modules/core-functions/core-functions';
|
|
3
|
+
@use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
|
|
4
4
|
@use 'Assets/scss/modules/library-modules/box-shadow/box-shadow';
|
|
5
5
|
|
|
6
6
|
@mixin contentContainerSettingsV3() {
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
align-items: center;
|
|
23
23
|
background-color: var(--cb-bg-colour);
|
|
24
24
|
padding: calc(
|
|
25
|
-
var(--global-
|
|
25
|
+
var(--global-inline-spacing) *
|
|
26
26
|
var(--content-box-top-padding-mult-mobile)
|
|
27
27
|
)
|
|
28
28
|
calc(
|
|
29
|
-
var(--global-
|
|
29
|
+
var(--global-inline-spacing) *
|
|
30
30
|
var(--content-box-right-padding-mult-mobile)
|
|
31
31
|
)
|
|
32
32
|
calc(
|
|
33
|
-
var(--global-
|
|
33
|
+
var(--global-inline-spacing) *
|
|
34
34
|
var(--content-box-bottom-padding-mult-mobile)
|
|
35
35
|
)
|
|
36
36
|
calc(
|
|
37
|
-
var(--global-
|
|
37
|
+
var(--global-inline-spacing) *
|
|
38
38
|
var(--content-box-left-padding-mult-mobile)
|
|
39
39
|
);
|
|
40
40
|
margin: calc(
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
place-self: var(--content-box-vert-align-portrait)
|
|
63
63
|
var(--content-box-horiz-align-portrait);
|
|
64
64
|
padding: calc(
|
|
65
|
-
var(--global-
|
|
65
|
+
var(--global-inline-spacing) *
|
|
66
66
|
var(--content-box-top-padding-mult-portrait)
|
|
67
67
|
)
|
|
68
68
|
calc(
|
|
69
|
-
var(--global-
|
|
69
|
+
var(--global-inline-spacing) *
|
|
70
70
|
var(--content-box-right-padding-mult-portrait)
|
|
71
71
|
)
|
|
72
72
|
calc(
|
|
73
|
-
var(--global-
|
|
73
|
+
var(--global-inline-spacing) *
|
|
74
74
|
var(--content-box-bottom-padding-mult-portrait)
|
|
75
75
|
)
|
|
76
76
|
calc(
|
|
77
|
-
var(--global-
|
|
77
|
+
var(--global-inline-spacing) *
|
|
78
78
|
var(--content-box-left-padding-mult-portrait)
|
|
79
79
|
);
|
|
80
80
|
margin: calc(
|
|
@@ -112,15 +112,15 @@
|
|
|
112
112
|
var(--content-box-top-padding-mult)
|
|
113
113
|
)
|
|
114
114
|
calc(
|
|
115
|
-
var(--global-
|
|
115
|
+
var(--global-inline-spacing) *
|
|
116
116
|
var(--content-box-right-padding-mult)
|
|
117
117
|
)
|
|
118
118
|
calc(
|
|
119
|
-
var(--global-
|
|
119
|
+
var(--global-inline-spacing) *
|
|
120
120
|
var(--content-box-bottom-padding-mult)
|
|
121
121
|
)
|
|
122
122
|
calc(
|
|
123
|
-
var(--global-
|
|
123
|
+
var(--global-inline-spacing) *
|
|
124
124
|
var(--content-box-left-padding-mult)
|
|
125
125
|
);
|
|
126
126
|
margin: calc(
|
|
@@ -149,11 +149,14 @@
|
|
|
149
149
|
display: grid;
|
|
150
150
|
word-break: normal;
|
|
151
151
|
width: var(--content-container-width, 100%);
|
|
152
|
-
-webkit-text-stroke: core-functions.fontSize(
|
|
152
|
+
-webkit-text-stroke: core-functions-v3.fontSize(
|
|
153
153
|
var(--text-stroke-width),
|
|
154
154
|
'static'
|
|
155
155
|
)
|
|
156
156
|
var(--text-stroke-colour);
|
|
157
|
+
&:last-child {
|
|
158
|
+
margin-bottom: 0;
|
|
159
|
+
}
|
|
157
160
|
@include core-mixins-v3.defaultThemeTextColours();
|
|
158
161
|
@include core-mixins-v3.defaultTextTransform();
|
|
159
162
|
@include core-mixins-v3.defaultTextAlign();
|
|
@@ -172,10 +175,6 @@
|
|
|
172
175
|
@include core-mixins-v3.defaultFontStyle();
|
|
173
176
|
}
|
|
174
177
|
|
|
175
|
-
&:last-child {
|
|
176
|
-
margin-bottom: 0;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
178
|
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
180
179
|
max-width: var(--wysiwyg-max-width-portrait);
|
|
181
180
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@use 'Assets/scss/theme/breakpoints';
|
|
2
|
-
@use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
|
|
3
|
-
@use 'Assets/scss/modules/library-modules/core-functions/core-functions';
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
|
|
4
3
|
|
|
5
4
|
@mixin elementPositioning() {
|
|
6
5
|
position: var(--element-position, relative);
|
|
@@ -11,7 +10,7 @@
|
|
|
11
10
|
var(--element-vertical-offset-mobile, 0);
|
|
12
11
|
rotate: var(--element-rotation-mobile, 0deg);
|
|
13
12
|
|
|
14
|
-
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
13
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
15
14
|
place-self: var(--desktop-vertical-placement)
|
|
16
15
|
var(--desktop-horizontal-placement);
|
|
17
16
|
translate: var(--element-horizontal-offset-desktop, 0)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// LIBRARY FILE - Do not modify/override here as your changes will be lost when the package is updated.
|
|
2
|
+
// This is the new version the older mixins should be removed and the blocks use Gradient Overlay mixin instead
|
|
3
|
+
@mixin gradientOverlay() {
|
|
4
|
+
--spread: calc(100% - var(--gradient-spread));
|
|
5
|
+
&__gradient-overlay-element {
|
|
6
|
+
position: absolute;
|
|
7
|
+
inset: 0;
|
|
8
|
+
z-index: var(--gradient-zindex);
|
|
9
|
+
grid-area: var(--gradient-grid-area);
|
|
10
|
+
&::before,
|
|
11
|
+
&:after {
|
|
12
|
+
content: '';
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
position: absolute;
|
|
15
|
+
inset: 0;
|
|
16
|
+
opacity: var(--gradient-opacity);
|
|
17
|
+
}
|
|
18
|
+
&::before {
|
|
19
|
+
background: linear-gradient(
|
|
20
|
+
var(--gradient-origin-before),
|
|
21
|
+
rgba(255, 255, 255, 0) 0%,
|
|
22
|
+
rgba(255, 255, 255, 0)
|
|
23
|
+
calc(var(--spread) - var(--gradient-amount)),
|
|
24
|
+
var(--gradient-colour) calc(100% - var(--gradient-amount))
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
&::after {
|
|
28
|
+
content: var(--enable-after);
|
|
29
|
+
background: linear-gradient(
|
|
30
|
+
var(--gradient-origin-after),
|
|
31
|
+
rgba(255, 255, 255, 0) 0%,
|
|
32
|
+
rgba(255, 255, 255, 0)
|
|
33
|
+
calc(var(--spread) - var(--gradient-amount)),
|
|
34
|
+
var(--gradient-colour) calc(100% - var(--gradient-amount))
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
&__blur-overlay-element {
|
|
39
|
+
background: var(--blur-colour);
|
|
40
|
+
backdrop-filter: blur(var(--blur-value));
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset: 0;
|
|
43
|
+
z-index: var(--blur-zindex);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@use 'Assets/scss/theme/breakpoints';
|
|
2
|
-
@use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
|
|
3
|
-
@use 'Assets/scss/modules/library-modules/core-functions/core-functions';
|
|
2
|
+
@use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
|
|
3
|
+
@use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
|
|
4
4
|
|
|
5
5
|
@mixin gridLayoutContainer() {
|
|
6
6
|
display: grid;
|
|
7
7
|
position: relative;
|
|
8
8
|
grid-auto-flow: var(--grid-auto-flow-mobile, row);
|
|
9
|
-
--grid-auto-columns-custom-size: #{core-functions.fluidSize(
|
|
9
|
+
--grid-auto-columns-custom-size: #{core-functions-v3.fluidSize(
|
|
10
10
|
var(--grid-auto-columns-custom),
|
|
11
11
|
'static'
|
|
12
12
|
)};
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
grid-template-rows: var(--grid-template-rows-custom-mobile);
|
|
24
24
|
grid-auto-rows: var(--grid-auto-rows);
|
|
25
25
|
|
|
26
|
-
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
26
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
27
27
|
grid-gap: calc(
|
|
28
28
|
var(--global-inline-spacing) * var(--row-gap-mult-portrait, 0)
|
|
29
29
|
)
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
grid-template-rows: var(--grid-template-rows-custom-portrait);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
47
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
48
48
|
grid-gap: calc(
|
|
49
49
|
var(--global-inline-spacing) * var(--row-gap-mult-desktop, 0)
|
|
50
50
|
)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
|
|
2
|
+
@use 'Assets/scss/theme/breakpoints';
|
|
3
|
+
|
|
4
|
+
@mixin gridLayoutElement() {
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-row: var(--grid-row-start-mobile) / span var(--grid-row-span-mobile);
|
|
7
|
+
grid-column: var(--grid-column-start-mobile) / span
|
|
8
|
+
var(--grid-column-span-mobile);
|
|
9
|
+
place-self: var(--grid-vertical-placement-mobile)
|
|
10
|
+
var(--grid-horizontal-placement-mobile);
|
|
11
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
12
|
+
grid-row: var(--grid-row-start-portrait) / span
|
|
13
|
+
var(--grid-row-span-portrait);
|
|
14
|
+
grid-column: var(--grid-column-start-portrait) / span
|
|
15
|
+
var(--grid-column-span-portrait);
|
|
16
|
+
place-self: var(--grid-vertical-placement-portrait)
|
|
17
|
+
var(--grid-horizontal-placement-portrait);
|
|
18
|
+
}
|
|
19
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
20
|
+
grid-row: var(--grid-row-start) / span var(--grid-row-span);
|
|
21
|
+
grid-column: var(--grid-column-start) / span var(--grid-column-span);
|
|
22
|
+
place-self: var(--grid-vertical-placement-desktop)
|
|
23
|
+
var(--grid-horizontal-placement-desktop);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
add_action('enqueue_block_assets', 'add_block_editor_assets_v3', 10, true);
|
|
3
|
+
function add_block_editor_assets_v3(): void
|
|
4
|
+
{
|
|
5
|
+
if (is_admin()) {
|
|
6
|
+
wp_enqueue_style('core-wordpress-block-editor-previews', gtp_get_asset_uri('corewordpressblockeditorpreviewcss.css'), array(), null);
|
|
7
|
+
wp_enqueue_script('editorstyles', gtp_get_asset_uri('corewordpressblockeditorpreview.js'), array(), null, true);
|
|
8
|
+
wp_localize_script('editorstyles', 'previewvars', core_design_system());
|
|
9
|
+
wp_localize_script('editorstyles', 'corecta', core_cta());
|
|
10
|
+
wp_localize_script('editorstyles', 'coretypography', core_typography_v3());
|
|
11
|
+
wp_localize_script('editorstyles', 'corefontmodifiers', core_font_modifiers());
|
|
12
|
+
wp_localize_script('editorstyles', 'ctastylenames', []);
|
|
13
|
+
wp_localize_script('editorstyles', 'themenames', []);
|
|
14
|
+
wp_localize_script('editorstyles', 'corethemes', core_themes());
|
|
15
|
+
wp_localize_script('editorstyles', 'colourconfig', create_colour_data());
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,162 +1,96 @@
|
|
|
1
1
|
// LIBRARY FILE - Do not modify/override here as your changes will be lost when the package is updated.
|
|
2
2
|
@use 'Assets/scss/theme/breakpoints';
|
|
3
|
-
@use 'Assets/scss/modules/library-modules/core-mixins/core-mixins';
|
|
4
|
-
@use 'Assets/scss/modules/library-modules/core-functions/core-functions';
|
|
5
|
-
|
|
6
|
-
// Do not edit this file directly as it is a library module and
|
|
7
|
-
// any changes will be overwritten by future updates.
|
|
3
|
+
@use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
|
|
4
|
+
@use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
|
|
8
5
|
|
|
9
6
|
body {
|
|
10
7
|
--screen-width: var(--screen-width-mobile);
|
|
11
8
|
--font-reference: var(--font-reference-mobile);
|
|
12
9
|
--design-reference: var(--mobile-design-reference);
|
|
13
|
-
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
10
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
14
11
|
--screen-width: var(--screen-width-portrait);
|
|
15
12
|
--font-reference: var(--font-reference-portrait);
|
|
16
13
|
--design-reference: var(--portrait-design-reference);
|
|
17
14
|
}
|
|
18
|
-
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
15
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
19
16
|
--screen-width: var(--screen-width-landscape);
|
|
20
17
|
--font-reference: var(--font-reference-landscape);
|
|
21
18
|
--design-reference: var(--landscape-design-reference);
|
|
22
19
|
}
|
|
23
|
-
@include core-mixins.device(breakpoints.$desktop) {
|
|
20
|
+
@include core-mixins-v3.device(breakpoints.$desktop) {
|
|
24
21
|
--screen-width: var(--screen-width-desktop);
|
|
25
22
|
--font-reference: var(--font-reference-desktop);
|
|
26
23
|
--design-reference: var(--desktop-design-reference);
|
|
27
24
|
}
|
|
28
|
-
@include core-mixins.device(breakpoints.$desktop-fullhd) {
|
|
25
|
+
@include core-mixins-v3.device(breakpoints.$desktop-fullhd) {
|
|
29
26
|
--screen-width: var(--screen-width-fullhd);
|
|
30
27
|
--font-reference: var(--font-reference-fullhd);
|
|
31
28
|
--design-reference: var(--fullhd-design-reference);
|
|
32
29
|
}
|
|
33
30
|
}
|
|
34
31
|
body {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
//Global Inline Spacing
|
|
38
|
-
--global-inline-spacing: #{core-functions.fluidSize(
|
|
32
|
+
--global-inline-spacing: #{core-functions-v3.fluidSize(
|
|
39
33
|
var(--mobile-inline),
|
|
40
34
|
'mobile'
|
|
41
35
|
)};
|
|
42
36
|
|
|
43
|
-
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
44
|
-
--global-inline-spacing: #{core-functions.fluidSize(
|
|
37
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
38
|
+
--global-inline-spacing: #{core-functions-v3.fluidSize(
|
|
45
39
|
var(--portrait-inline),
|
|
46
40
|
'portrait'
|
|
47
41
|
)};
|
|
48
42
|
}
|
|
49
43
|
|
|
50
|
-
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
51
|
-
--global-inline-spacing: #{core-functions.fluidSize(
|
|
44
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
45
|
+
--global-inline-spacing: #{core-functions-v3.fluidSize(
|
|
52
46
|
var(--landscape-inline),
|
|
53
47
|
'landscape'
|
|
54
48
|
)};
|
|
55
49
|
}
|
|
56
50
|
|
|
57
|
-
@include core-mixins.device(breakpoints.$desktop) {
|
|
58
|
-
--global-inline-spacing: #{core-functions.fluidSize(
|
|
51
|
+
@include core-mixins-v3.device(breakpoints.$desktop) {
|
|
52
|
+
--global-inline-spacing: #{core-functions-v3.fluidSize(
|
|
59
53
|
var(--desktop-inline),
|
|
60
54
|
'desktop'
|
|
61
55
|
)};
|
|
62
56
|
}
|
|
63
57
|
}
|
|
64
|
-
body {
|
|
65
|
-
// Content box padding - inline - This setting is intentionally set to the global inline size.
|
|
66
|
-
// You can override it if you need it to be different (like in Chivas which has a stupid inline size)
|
|
67
|
-
--global-content-box-padding-inline: #{core-functions.fluidSize(
|
|
68
|
-
var(--mobile-inline),
|
|
69
|
-
'mobile'
|
|
70
|
-
)};
|
|
71
|
-
|
|
72
|
-
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
73
|
-
--global-content-box-padding-inline: #{core-functions.fluidSize(
|
|
74
|
-
var(--portrait-inline),
|
|
75
|
-
'portrait'
|
|
76
|
-
)};
|
|
77
|
-
}
|
|
78
58
|
|
|
79
|
-
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
80
|
-
--global-content-box-padding-inline: #{core-functions.fluidSize(
|
|
81
|
-
var(--landscape-inline),
|
|
82
|
-
'landscape'
|
|
83
|
-
)};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@include core-mixins.device(breakpoints.$desktop) {
|
|
87
|
-
--global-content-box-padding-inline: #{core-functions.fluidSize(
|
|
88
|
-
var(--desktop-inline),
|
|
89
|
-
'desktop'
|
|
90
|
-
)};
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
body {
|
|
94
|
-
//Content box padding - block
|
|
95
|
-
--global-content-box-padding-block: #{core-functions.fluidSize(
|
|
96
|
-
var(--mobile-inline),
|
|
97
|
-
'mobile'
|
|
98
|
-
)};
|
|
99
|
-
|
|
100
|
-
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
101
|
-
--global-content-box-padding-block: #{core-functions.fluidSize(
|
|
102
|
-
var(--portrait-inline),
|
|
103
|
-
'portrait'
|
|
104
|
-
)};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
108
|
-
--global-content-box-padding-block: #{core-functions.fluidSize(
|
|
109
|
-
var(--landscape-inline),
|
|
110
|
-
'landscape'
|
|
111
|
-
)};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
@include core-mixins.device(breakpoints.$desktop) {
|
|
115
|
-
--global-content-box-padding-block: #{core-functions.fluidSize(
|
|
116
|
-
var(--desktop-inline),
|
|
117
|
-
'desktop'
|
|
118
|
-
)};
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
59
|
body {
|
|
122
|
-
//Heading block Spacing
|
|
123
60
|
--heading-block-spacing: var(--heading-block-spacing-mobile);
|
|
124
61
|
|
|
125
|
-
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
62
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
126
63
|
--heading-block-spacing: var(--heading-block-spacing-portrait);
|
|
127
64
|
}
|
|
128
65
|
|
|
129
|
-
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
66
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
130
67
|
--heading-block-spacing: var(--heading-block-spacing-desktop);
|
|
131
68
|
}
|
|
132
69
|
}
|
|
133
70
|
body {
|
|
134
|
-
//Paragraph block spacing
|
|
135
71
|
--paragraph-block-spacing: var(--paragraph-block-spacing-mobile);
|
|
136
72
|
|
|
137
|
-
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
73
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
138
74
|
--paragraph-block-spacing: var(--paragraph-block-spacing-portrait);
|
|
139
75
|
}
|
|
140
76
|
|
|
141
|
-
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
77
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
142
78
|
--paragraph-block-spacing: var(--paragraph-block-spacing-desktop);
|
|
143
79
|
}
|
|
144
80
|
}
|
|
145
81
|
body {
|
|
146
|
-
//List Item block spacing
|
|
147
82
|
--list-item-block-spacing: var(--list-item-block-spacing-mobile);
|
|
148
83
|
|
|
149
|
-
@include core-mixins.device(breakpoints.$tabPortrait) {
|
|
84
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
150
85
|
--list-item-block-spacing: var(--list-item-block-spacing-portrait);
|
|
151
86
|
}
|
|
152
87
|
|
|
153
|
-
@include core-mixins.device(breakpoints.$tabLandscape) {
|
|
88
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
154
89
|
--list-item-block-spacing: var(--list-item-block-spacing-desktop);
|
|
155
90
|
}
|
|
156
91
|
}
|
|
157
92
|
body {
|
|
158
|
-
|
|
159
|
-
--global-content-max-width: #{core-functions.fluidSize(
|
|
93
|
+
--global-content-max-width: #{core-functions-v3.fluidSize(
|
|
160
94
|
var(--global-content-max-width-setting),
|
|
161
95
|
'static'
|
|
162
96
|
)};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
// @codingStandardsIgnoreStart
|
|
3
|
+
function core_design_system_v3()
|
|
4
|
+
{
|
|
5
|
+
$output = '';
|
|
6
|
+
$current_post = [];
|
|
7
|
+
if (isset($GLOBALS['post'])) {
|
|
8
|
+
$current_post = Timber::get_post($GLOBALS['post']->ID);
|
|
9
|
+
}
|
|
10
|
+
if (defined('GLOBAL_SETTINGS') && is_array(GLOBAL_SETTINGS)) {
|
|
11
|
+
$options = GLOBAL_SETTINGS;
|
|
12
|
+
if ($options) {
|
|
13
|
+
$output = '
|
|
14
|
+
<style id="core-design-system">
|
|
15
|
+
:root {
|
|
16
|
+
--mobile-inline:' . ($options['mobile_inline'] ?? 0) . ';
|
|
17
|
+
--portrait-inline:' . ($options['portrait_inline'] ?? 0) . ';
|
|
18
|
+
--landscape-inline:' . ($options['landscape_inline'] ?? 0) . ';
|
|
19
|
+
--desktop-inline:' . ($options['desktop_inline'] ?? 0) . ';
|
|
20
|
+
--screen-width-fullhd:' . ($options['screen_width_full_hd'] ?? 1920) . ';
|
|
21
|
+
--font-reference-fullhd:' . ($options['font_reference_full_hd'] ?? 1920) . ';
|
|
22
|
+
--screen-width-desktop:' . ($options['screen_width_desktop'] ?? 1440) . ';
|
|
23
|
+
--font-reference-desktop:' . ($options['font_reference_desktop'] ?? 1440) . ';
|
|
24
|
+
--screen-width-landscape:' . ($options['screen_width_landscape'] ?? 1024) . ';
|
|
25
|
+
--font-reference-landscape:' . ($options['font_reference_landscape'] ?? 1024) . ';
|
|
26
|
+
--screen-width-portrait:' . ($options['screen_width_portrait'] ?? 768) . ';
|
|
27
|
+
--font-reference-portrait:' . ($options['font_reference_portrait'] ?? 768) . ';
|
|
28
|
+
--font-reference-mobile:' . ($options['font_reference_mobile'] ?? 375) . ';
|
|
29
|
+
--screen-width-mobile:' . ($options['screen_width_mobile'] ?? 375) . ';
|
|
30
|
+
--screen-width-static:' . ($options['desktop_design_reference'] ?? 1920) . 'px;
|
|
31
|
+
--fullhd-design-reference:' . ($options['full_hd_design_reference'] ?? 1920) . ';
|
|
32
|
+
--desktop-design-reference:' . ($options['desktop_design_reference'] ?? 1440) . ';
|
|
33
|
+
--landscape-design-reference:' . ($options['landscape_design_reference'] ?? 1024) . ';
|
|
34
|
+
--portrait-design-reference:' . ($options['portrait_design_reference'] ?? 1024) . ';
|
|
35
|
+
--mobile-design-reference:' . ($options['mobile_design_reference'] ?? 1024) . ';
|
|
36
|
+
--global-content-max-width-setting:' . ($options['global_content_max_width_setting'] ?? 1024) . ';
|
|
37
|
+
--post-colour:' . ($current_post && (property_exists($current_post, 'meta') && isset($current_post->meta['post_colour'])) ? $current_post->meta['post_colour'] : '') . ';
|
|
38
|
+
--post-text-colour-style:' . ($current_post && (property_exists($current_post, 'meta') && isset($current_post->meta['post_text_colour_style'])) ? remove_underscore($current_post->meta['post_text_colour_style']) : '') . ';
|
|
39
|
+
}</style>';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return [$output];
|
|
43
|
+
} // END function core_design_vars
|
|
44
|
+
// @codingStandardsIgnoreEnd
|
|
@@ -24,8 +24,8 @@ h5,
|
|
|
24
24
|
h6 {
|
|
25
25
|
margin: 0; //reset default margin
|
|
26
26
|
font-weight: unset; //reset default font weight
|
|
27
|
-
@include core-typography-mixins-v3.fontPrimary();
|
|
28
27
|
margin-top: unset;
|
|
28
|
+
@include core-typography-mixins-v3.fontPrimary();
|
|
29
29
|
}
|
|
30
30
|
.override-element-styles {
|
|
31
31
|
h1,
|