@total_onion/onion-library 2.0.198 → 2.0.200
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-accent-image-v3/accent-image-v3.scss +3 -1
- package/components/block-accent-image-v3/accent-image-v3.twig +117 -2
- package/components/block-accordion-v3/accordion-v3.scss +150 -146
- package/components/block-back-to-top-button-v3/back-to-top-button-v3.scss +53 -52
- package/components/block-back-to-top-button-v3/back-to-top-button-v3.twig +4 -1
- package/components/block-block-interactions-v3/block-interactions-v3.scss +24 -22
- package/components/block-carousel-multi-layout-v3/carousel-multi-layout-v3.js +1 -1
- package/components/block-carousel-multi-layout-v3/carousel-multi-layout-v3.scss +1 -1
- package/components/block-group-container-v3/group-container-v3.twig +4 -1
- package/components/block-post-info-v3/group_6866429531436.json +101 -27
- package/components/block-post-info-v3/post-info-v3/post-image.twig +7 -2
- package/components/block-post-info-v3/post-info-v3.scss +179 -178
- package/components/block-raw-html-v3/raw-html-v3.twig +4 -1
- package/components/block-scrolling-banner-v3/scrolling-banner-v3.twig +4 -0
- package/components/block-single-responsive-image-v3/single-responsive-image-v3.twig +144 -1
- package/components/block-site-copyright-notice-v3/index.html +33 -0
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.js +52 -1
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.scss +14 -13
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.twig +4 -4
- package/components/block-standard-content-v3/standard-content-v3.twig +28 -3
- package/components/block-sub-group-container-v3/sub-group-container-v3.twig +4 -1
- package/components/block-video-content-v3/video-content-v3.twig +3 -0
- package/components/component-content-box-v3/content-box-v3.twig +2 -2
- package/components/component-video-component-v3/video-component-v3.twig +2 -2
- package/components/entrypoint-entry-point-html-v3/entry-point-html-v3.twig +15 -20
- package/onion-loader-local.js +222 -0
- package/package.json +2 -2
- package/public/block-carousel-multi-layout-v3/carousel-multi-layout-v3.css +0 -745
- package/public/block-carousel-multi-layout-v3/carousel-multi-layout-v3.js +12 -0
- package/public/block-cocktail-recipe-v3/cocktail-recipe-v3.css +6 -49
- package/public/block-cover-link-v3/cover-link-v3.css +9 -0
- package/public/block-scrolling-banner-v3/scrolling-banner-v3.css +11 -1
- package/public/block-scrolling-banner-v3/scrolling-banner-v3.js +90 -78
- package/public/block-site-copyright-notice-v3/site-copyright-notice-v3.css +18 -0
- package/public/block-site-copyright-notice-v3/site-copyright-notice-v3.js +38 -1
- package/public/dynamicBlockScss-v3.css +1025 -1773
- package/public/publicBundle.css +1025 -1773
- package/fields.json +0 -4
- package/index.js +0 -0
|
@@ -13,7 +13,122 @@
|
|
|
13
13
|
</style>
|
|
14
14
|
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} cmpl-core-group-container-styles {{loop ? block.className.index ~ '-' ~ loop.index : ''}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
15
15
|
{% if fields.accent_image_v3.enable_accent_image_v3 %}
|
|
16
|
-
{
|
|
16
|
+
{% for image in fields.accent_image_v3.accent_images %}
|
|
17
|
+
{% set accentImage = get_image(image.accent_image_v3_image) %}
|
|
18
|
+
{% set rotationDesktop = image.desktop_positioning.image_rotation_desktop|default(0) %}
|
|
19
|
+
{% set rotationMobile = image.mobile_positioning.image_rotation_mobile|default(rotationDesktop) %}
|
|
20
|
+
{% set opacity = image.accent_image_opacity|default(1) %}
|
|
21
|
+
{% set borderRadius = image.accent_image_border_radius|default('0px') %}
|
|
22
|
+
{% set zIndex = image.accent_z_index %}
|
|
23
|
+
{% set mobileSettings = image.mobile_positioning %}
|
|
24
|
+
{% set oneHundredWidth = image.set_width_and_height_to_100 %}
|
|
25
|
+
{% set imageFitStyle = image.image_fit_style|ru %}
|
|
26
|
+
{% if image.use_desktop_positioning_for_mobile %}
|
|
27
|
+
{% set mobileSettings = image.desktop_positioning %}
|
|
28
|
+
{% endif %}
|
|
29
|
+
{% set mobilePositioning = mobileSettings.horizontal_offset ~ '% ' ~ mobileSettings.vertical_offset ~ '%' %}
|
|
30
|
+
{% set desktopPositioning = image.desktop_positioning.horizontal_offset ~ '% ' ~ image.desktop_positioning.vertical_offset ~ '%' %}
|
|
31
|
+
{% set desktopWidth = 'calc(' ~ image.desktop_accent_image_width ~ '/ var(--desktop-design-reference) * var(--screen-width-desktop))' %}
|
|
32
|
+
{% set mobileWidth = 'calc(' ~ image.mobile_accent_image_width ~ '/ var(--mobile-design-reference) * var(--screen-width-mobile))' %}
|
|
33
|
+
{% if oneHundredWidth %}
|
|
34
|
+
{% set desktopWidth = '100%' %}
|
|
35
|
+
{% set mobileWidth = '100%' %}
|
|
36
|
+
{% endif %}
|
|
37
|
+
{% set accentImageContainerElement = 'div' %}
|
|
38
|
+
{% set accentImageCtaType = image.accent_image_cta_type|ru %}
|
|
39
|
+
{% if image.enable_accent_image_cta %}
|
|
40
|
+
{% if image.accent_image_cta_type|ru == 'link' %}
|
|
41
|
+
{% set accentImageContainerElement = 'a' %}
|
|
42
|
+
{% endif %}
|
|
43
|
+
{% endif %}
|
|
44
|
+
{% set suffix = block.id ~ '-' ~ loop.index %}
|
|
45
|
+
{% if image.animations.enable_animations %}
|
|
46
|
+
{{include('components/animations-style-v3.twig', { fields: image, suffix }, with_context = false)}}
|
|
47
|
+
{% endif %}
|
|
48
|
+
<style>
|
|
49
|
+
.loaded .{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image {
|
|
50
|
+
{{include('components/animations-v3.twig', { fields: image, block: block, blockClassName: blockClassName, suffix }, with_context = false)}}
|
|
51
|
+
animation: var(--animation-name) var(--animation-duration) var(--animation-delay) var(--animation-easing) var(--animation-repeat) var(--animation-fill-mode) var(--animation-direction);
|
|
52
|
+
}
|
|
53
|
+
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image {
|
|
54
|
+
z-index: {{zIndex}}
|
|
55
|
+
;
|
|
56
|
+
grid-area: main;
|
|
57
|
+
pointer-events: {{image.enable_accent_image_cta ? 'all' : 'none'}};
|
|
58
|
+
position: absolute;
|
|
59
|
+
place-self: {{mobileSettings.vertical_snap|ru}}
|
|
60
|
+
{{mobileSettings.horizontal_snap|ru}}
|
|
61
|
+
;
|
|
62
|
+
width: {{mobileWidth}}
|
|
63
|
+
;
|
|
64
|
+
height: {{mobileWidth}}
|
|
65
|
+
;
|
|
66
|
+
translate: {{mobilePositioning}}
|
|
67
|
+
;
|
|
68
|
+
}
|
|
69
|
+
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image .{{blockClassName}}__image-element.element {
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 100%;
|
|
72
|
+
display: flex;
|
|
73
|
+
object-fit: {{imageFitStyle}}
|
|
74
|
+
;
|
|
75
|
+
border-radius: {{borderRadius}}
|
|
76
|
+
;
|
|
77
|
+
border: 0 solid transparent;
|
|
78
|
+
opacity: {{opacity}}
|
|
79
|
+
;
|
|
80
|
+
rotate: {{rotationMobile ~ 'deg'}};
|
|
81
|
+
}
|
|
82
|
+
.{{blockClassName}}__image-number {
|
|
83
|
+
z-index: 99;
|
|
84
|
+
position: absolute;
|
|
85
|
+
font-size: 40px;
|
|
86
|
+
left: 50%;
|
|
87
|
+
top: 50%;
|
|
88
|
+
transform: translate(-50%, -50%);
|
|
89
|
+
color: white;
|
|
90
|
+
text-shadow: 1px 1px 1px blue;
|
|
91
|
+
}
|
|
92
|
+
@media screen and (min-width: 768px) {
|
|
93
|
+
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image {
|
|
94
|
+
place-self: {{image.desktop_positioning.vertical_snap|ru}}
|
|
95
|
+
{{image.desktop_positioning.horizontal_snap|ru}};
|
|
96
|
+
width: {{desktopWidth}};
|
|
97
|
+
height: {{desktopWidth}};
|
|
98
|
+
translate: {{desktopPositioning}};
|
|
99
|
+
}
|
|
100
|
+
.{{block.id}}-{{loop.index}}.{{blockClassName}}__accent-image .{{blockClassName}}__image-element.element {
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
display: flex;
|
|
104
|
+
object-fit: {{imageFitStyle}};
|
|
105
|
+
border-radius: {{borderRadius}};
|
|
106
|
+
border: 0 solid transparent;
|
|
107
|
+
opacity: {{opacity}};
|
|
108
|
+
rotate: {{rotationDesktop ~ 'deg'}};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
112
|
+
<{{accentImageContainerElement}}
|
|
113
|
+
{{accentImageCtaType == 'link' ? 'href="' ~ image.accent_image_link.url ~ '" ' ~ 'target="' ~ image.accent_image_link.target ~ '" ' : ''}}
|
|
114
|
+
class="{{block.id}}-{{ loop.index }} {{blockClassName}}__accent-image">
|
|
115
|
+
{% if image.inline_raw_svg %}
|
|
116
|
+
{{fn('get_raw_svg', accentImage.id, blockClassName ~ '__image-element element')}}
|
|
117
|
+
{% else %}
|
|
118
|
+
<img
|
|
119
|
+
class="{{block.id}}-{{ loop.index }} {{blockClassName}}__image-element element"
|
|
120
|
+
src="{{ accentImage.src }}"
|
|
121
|
+
width="{{ accentImage.width }}"
|
|
122
|
+
height="{{ accentImage.height }}"
|
|
123
|
+
alt="{{ accentImage.alt }}"
|
|
124
|
+
loading="lazy"
|
|
125
|
+
/>
|
|
126
|
+
{% endif %}
|
|
127
|
+
|
|
128
|
+
{% if fields.accent_image_v3.show_image_number and is_preview %}
|
|
129
|
+
<div class="{{blockClassName}}__image-number">{{ loop.index }}</div>
|
|
130
|
+
{% endif %}
|
|
131
|
+
</{{accentImageContainerElement}}>
|
|
132
|
+
{% endfor %}
|
|
17
133
|
{% endif %}
|
|
18
|
-
{{htmlEntryPoint}}
|
|
19
134
|
</section>
|
|
@@ -2,192 +2,196 @@
|
|
|
2
2
|
@use '../fields-core-functions-v3/core-functions-v3';
|
|
3
3
|
@use '../component-content-box-settings-v3/content-box-settings-v3';
|
|
4
4
|
@use '../../breakpoints';
|
|
5
|
-
|
|
6
|
-
.accordion-v3 {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
14
|
-
gap: core-functions-v3.fluidSize(var(--title-gap), 'portrait');
|
|
15
|
-
}
|
|
16
|
-
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
17
|
-
gap: core-functions-v3.fluidSize(var(--title-gap), 'desktop');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&-wrapper {
|
|
21
|
-
text-align: initial;
|
|
22
|
-
background: var(--background-color);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-question-wrapper {
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
place-items: flex-start;
|
|
28
|
-
button {
|
|
29
|
-
width: 100%;
|
|
30
|
-
align-items: center;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
background: unset;
|
|
33
|
-
padding: unset;
|
|
34
|
-
border: unset;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&__content-container {
|
|
39
|
-
padding: core-functions-v3.fluidSize(10, 'static')
|
|
40
|
-
core-functions-v3.fluidSize(50, 'static')
|
|
41
|
-
core-functions-v3.fluidSize(10, 'static') 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-image-wrapper {
|
|
45
|
-
grid-area: icon;
|
|
46
|
-
position: absolute;
|
|
47
|
-
right: core-functions-v3.fluidSize(2, 'static');
|
|
48
|
-
width: core-functions-v3.fluidSize(var(--image-icon-size), 'mobile');
|
|
49
|
-
|
|
5
|
+
@layer base-styles {
|
|
6
|
+
.accordion-v3 {
|
|
7
|
+
@include content-box-settings-v3.contentBoxSettingsV3();
|
|
8
|
+
width: 100%;
|
|
9
|
+
pointer-events: all;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: core-functions-v3.fluidSize(var(--title-gap), 'mobile');
|
|
50
13
|
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
51
|
-
|
|
52
|
-
var(--image-icon-size),
|
|
53
|
-
'portrait'
|
|
54
|
-
);
|
|
14
|
+
gap: core-functions-v3.fluidSize(var(--title-gap), 'portrait');
|
|
55
15
|
}
|
|
56
|
-
|
|
57
16
|
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
58
|
-
|
|
59
|
-
var(--image-icon-size),
|
|
60
|
-
'desktop'
|
|
61
|
-
);
|
|
17
|
+
gap: core-functions-v3.fluidSize(var(--title-gap), 'desktop');
|
|
62
18
|
}
|
|
63
19
|
|
|
64
|
-
|
|
65
|
-
|
|
20
|
+
&-wrapper {
|
|
21
|
+
text-align: initial;
|
|
22
|
+
background: var(--background-color);
|
|
66
23
|
}
|
|
67
|
-
}
|
|
68
24
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
25
|
+
&-question-wrapper {
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
place-items: flex-start;
|
|
28
|
+
button {
|
|
29
|
+
width: 100%;
|
|
30
|
+
align-items: center;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
background: unset;
|
|
33
|
+
padding: unset;
|
|
34
|
+
border: unset;
|
|
35
|
+
}
|
|
80
36
|
}
|
|
81
|
-
}
|
|
82
37
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
38
|
+
&__content-container {
|
|
39
|
+
padding: core-functions-v3.fluidSize(10, 'static')
|
|
40
|
+
core-functions-v3.fluidSize(50, 'static')
|
|
41
|
+
core-functions-v3.fluidSize(10, 'static') 0;
|
|
42
|
+
}
|
|
87
43
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
44
|
+
&-image-wrapper {
|
|
45
|
+
grid-area: icon;
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: core-functions-v3.fluidSize(2, 'static');
|
|
48
|
+
width: core-functions-v3.fluidSize(
|
|
49
|
+
var(--image-icon-size),
|
|
91
50
|
'mobile'
|
|
92
51
|
);
|
|
93
52
|
|
|
94
53
|
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
95
|
-
|
|
96
|
-
var(--
|
|
54
|
+
width: core-functions-v3.fluidSize(
|
|
55
|
+
var(--image-icon-size),
|
|
97
56
|
'portrait'
|
|
98
57
|
);
|
|
99
58
|
}
|
|
100
59
|
|
|
101
60
|
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
102
|
-
|
|
103
|
-
var(--
|
|
61
|
+
width: core-functions-v3.fluidSize(
|
|
62
|
+
var(--image-icon-size),
|
|
104
63
|
'desktop'
|
|
105
64
|
);
|
|
106
65
|
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&-answer {
|
|
111
|
-
font-size: core-functions-v3.fontSize(22, 'static');
|
|
112
|
-
grid-column: 1/-1;
|
|
113
|
-
padding-bottom: core-functions-v3.fluidSize(20, 'mobile');
|
|
114
|
-
padding-top: core-functions-v3.fluidSize(20, 'mobile');
|
|
115
66
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
67
|
+
img {
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
119
70
|
}
|
|
120
71
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
72
|
+
&-question {
|
|
73
|
+
text-align: left;
|
|
74
|
+
display: grid;
|
|
75
|
+
grid-template:
|
|
76
|
+
'question icon'
|
|
77
|
+
'answer ...' / auto min-content;
|
|
78
|
+
&--icon-left {
|
|
79
|
+
grid-template:
|
|
80
|
+
'icon question'
|
|
81
|
+
'... answer' / min-content auto;
|
|
82
|
+
column-gap: core-functions-v3.fluidSize(20, 'static');
|
|
83
|
+
}
|
|
124
84
|
}
|
|
125
85
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
86
|
+
&-answer-wrapper {
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
height: 0;
|
|
89
|
+
grid-area: answer;
|
|
130
90
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
transform: rotate(90deg);
|
|
91
|
+
p {
|
|
92
|
+
padding-inline: core-functions-v3.fluidSize(
|
|
93
|
+
var(--text-padding-horizontal),
|
|
94
|
+
'mobile'
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
98
|
+
padding-inline: core-functions-v3.fluidSize(
|
|
99
|
+
var(--text-padding-horizontal),
|
|
100
|
+
'portrait'
|
|
101
|
+
);
|
|
143
102
|
}
|
|
144
103
|
|
|
145
|
-
|
|
146
|
-
|
|
104
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
105
|
+
padding-inline: core-functions-v3.fluidSize(
|
|
106
|
+
var(--text-padding-horizontal),
|
|
107
|
+
'desktop'
|
|
108
|
+
);
|
|
147
109
|
}
|
|
148
110
|
}
|
|
149
111
|
}
|
|
150
|
-
}
|
|
151
112
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
113
|
+
&-answer {
|
|
114
|
+
font-size: core-functions-v3.fontSize(22, 'static');
|
|
115
|
+
grid-column: 1/-1;
|
|
116
|
+
padding-bottom: core-functions-v3.fluidSize(20, 'mobile');
|
|
117
|
+
padding-top: core-functions-v3.fluidSize(20, 'mobile');
|
|
156
118
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
119
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
120
|
+
padding-bottom: core-functions-v3.fluidSize(20, 'portrait');
|
|
121
|
+
padding-top: core-functions-v3.fluidSize(20, 'portrait');
|
|
122
|
+
}
|
|
161
123
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
124
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
125
|
+
padding-bottom: core-functions-v3.fluidSize(20, 'desktop');
|
|
126
|
+
padding-top: core-functions-v3.fluidSize(20, 'desktop');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:last-child {
|
|
130
|
+
padding-bottom: 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&-icon {
|
|
135
|
+
grid-area: icon;
|
|
136
|
+
background: var(--icon-background-color);
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
height: core-functions-v3.fluidSize(50, 'static');
|
|
140
|
+
width: core-functions-v3.fluidSize(50, 'static');
|
|
141
|
+
|
|
142
|
+
&.active {
|
|
143
|
+
.accordion-v3-animation {
|
|
144
|
+
&:before {
|
|
145
|
+
transform: rotate(90deg);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&:after {
|
|
149
|
+
transform: rotate(180deg);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
175
153
|
}
|
|
176
154
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
margin-left: -1px;
|
|
181
|
-
top: 0;
|
|
182
|
-
width: 2px;
|
|
155
|
+
.image-icon-active {
|
|
156
|
+
transform: rotate(var(--image-icon-rotation-deg));
|
|
157
|
+
transition: transform 0.3s ease;
|
|
183
158
|
}
|
|
184
159
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
160
|
+
:not(.image-icon-active, .lottie-animations *) {
|
|
161
|
+
transform: rotate(0deg);
|
|
162
|
+
transition: transform 0.3s ease;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&-animation {
|
|
166
|
+
height: core-functions-v3.fluidSize(20, 'static');
|
|
167
|
+
margin: auto;
|
|
168
|
+
position: relative;
|
|
169
|
+
transition: transform 0.3s ease;
|
|
170
|
+
width: core-functions-v3.fluidSize(20, 'static');
|
|
171
|
+
|
|
172
|
+
&:before,
|
|
173
|
+
&:after {
|
|
174
|
+
background-color: red;
|
|
175
|
+
content: '';
|
|
176
|
+
position: absolute;
|
|
177
|
+
transition: transform 0.25s ease-out;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&:before {
|
|
181
|
+
height: 100%;
|
|
182
|
+
left: 50%;
|
|
183
|
+
margin-left: -1px;
|
|
184
|
+
top: 0;
|
|
185
|
+
width: 2px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&:after {
|
|
189
|
+
height: 2px;
|
|
190
|
+
left: 0;
|
|
191
|
+
margin-top: -1px;
|
|
192
|
+
top: 50%;
|
|
193
|
+
width: 100%;
|
|
194
|
+
}
|
|
191
195
|
}
|
|
192
196
|
}
|
|
193
197
|
}
|
|
@@ -1,67 +1,68 @@
|
|
|
1
1
|
@use '../fields-core-mixins-v3/core-mixins-v3';
|
|
2
2
|
@use '../fields-core-functions-v3/core-functions-v3';
|
|
3
3
|
@use '../../breakpoints';
|
|
4
|
+
@layer base-styles {
|
|
5
|
+
.back-to-top-button {
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
z-index: 50;
|
|
9
|
+
overflow: unset;
|
|
4
10
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
&__arrow {
|
|
12
|
+
--arrow-colour: black;
|
|
13
|
+
position: absolute;
|
|
14
|
+
border-style: solid;
|
|
15
|
+
border-color: var(--arrow-colour);
|
|
16
|
+
border-width: 0 2px 2px 0;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
transform: rotate(-135deg);
|
|
19
|
+
height: 20%;
|
|
20
|
+
width: 20%;
|
|
21
|
+
}
|
|
10
22
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
&__button {
|
|
24
|
+
--bg-colour: white;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
position: fixed;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
height: core-functions-v3.fluidSize(50, 'static');
|
|
31
|
+
width: core-functions-v3.fluidSize(50, 'static');
|
|
32
|
+
border: none;
|
|
33
|
+
border-radius: 50px;
|
|
34
|
+
padding: core-functions-v3.fluidSize(18, 'static');
|
|
35
|
+
background-color: var(--bg-colour);
|
|
36
|
+
right: core-functions-v3.fluidSize(10, 'mobile');
|
|
37
|
+
border-radius: var(--button-border-radius);
|
|
22
38
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
justify-content: center;
|
|
27
|
-
align-items: center;
|
|
28
|
-
position: fixed;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
height: core-functions-v3.fluidSize(50, 'static');
|
|
31
|
-
width: core-functions-v3.fluidSize(50, 'static');
|
|
32
|
-
border: none;
|
|
33
|
-
border-radius: 50px;
|
|
34
|
-
padding: core-functions-v3.fluidSize(18, 'static');
|
|
35
|
-
background-color: var(--bg-colour);
|
|
36
|
-
right: core-functions-v3.fluidSize(10, 'mobile');
|
|
37
|
-
border-radius: var(--button-border-radius);
|
|
39
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
40
|
+
right: core-functions-v3.fluidSize(30, 'portrait');
|
|
41
|
+
}
|
|
38
42
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
44
|
+
right: core-functions-v3.fluidSize(60, 'desktop');
|
|
45
|
+
}
|
|
42
46
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
&--fixed {
|
|
48
|
+
position: fixed;
|
|
49
|
+
bottom: core-functions-v3.fluidSize(60, 'static');
|
|
50
|
+
}
|
|
46
51
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
&--absolute {
|
|
53
|
+
position: absolute;
|
|
54
|
+
translate: 0 -50%;
|
|
55
|
+
}
|
|
51
56
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
57
|
+
.wp-admin & {
|
|
58
|
+
position: absolute;
|
|
59
|
+
translate: 0 0;
|
|
60
|
+
bottom: 0;
|
|
61
|
+
}
|
|
55
62
|
}
|
|
56
63
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
translate: 0 0;
|
|
60
|
-
bottom: 0;
|
|
64
|
+
&__image {
|
|
65
|
+
width: core-functions-v3.fluidSize(var(--image-size), 'static');
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
|
-
|
|
64
|
-
&__image {
|
|
65
|
-
width: core-functions-v3.fluidSize(var(--image-size), 'static');
|
|
66
|
-
}
|
|
67
68
|
}
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
<span class="{{blockClassName}}__arrow" style="--arrow-colour: {{arrowColour}}"></span>
|
|
33
33
|
{% endif %}
|
|
34
34
|
</button>
|
|
35
|
-
{
|
|
35
|
+
{% if fields.animations.enable_animations %}
|
|
36
|
+
{{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
37
|
+
{% endif %}
|
|
38
|
+
|
|
36
39
|
</section>
|
|
37
40
|
{% endif %}
|
|
@@ -2,29 +2,31 @@
|
|
|
2
2
|
@use '../fields-core-functions-v3/core-functions-v3';
|
|
3
3
|
@use '../../breakpoints';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
svg {
|
|
19
|
-
width: core-functions-v3.fluidSize(30, 'mobile');
|
|
20
|
-
height: core-functions-v3.fluidSize(30, 'mobile');
|
|
21
|
-
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
22
|
-
width: core-functions-v3.fluidSize(30, 'portrait');
|
|
23
|
-
height: core-functions-v3.fluidSize(30, 'portrait');
|
|
5
|
+
@layer base-styles {
|
|
6
|
+
.block-interactions-v3 {
|
|
7
|
+
&__block-close-button {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
border: unset;
|
|
10
|
+
background: unset;
|
|
11
|
+
}
|
|
12
|
+
&__popup-trigger {
|
|
13
|
+
appearance: none;
|
|
14
|
+
border: unset;
|
|
15
|
+
background-color: unset;
|
|
16
|
+
display: flex;
|
|
17
|
+
cursor: pointer;
|
|
24
18
|
}
|
|
25
|
-
|
|
26
|
-
width: core-functions-v3.fluidSize(30, '
|
|
27
|
-
height: core-functions-v3.fluidSize(30, '
|
|
19
|
+
svg {
|
|
20
|
+
width: core-functions-v3.fluidSize(30, 'mobile');
|
|
21
|
+
height: core-functions-v3.fluidSize(30, 'mobile');
|
|
22
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
23
|
+
width: core-functions-v3.fluidSize(30, 'portrait');
|
|
24
|
+
height: core-functions-v3.fluidSize(30, 'portrait');
|
|
25
|
+
}
|
|
26
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
27
|
+
width: core-functions-v3.fluidSize(30, 'desktop');
|
|
28
|
+
height: core-functions-v3.fluidSize(30, 'desktop');
|
|
29
|
+
}
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {getSwiperAssetsV2} from '@total_onion/onion-utils/onion-utils.mjs';
|
|
2
2
|
import {Navigation, Pagination, Autoplay, EffectFade} from 'swiper/modules';
|
|
3
3
|
// import Swiper and modules styles
|
|
4
|
-
|
|
4
|
+
import 'swiper/css/bundle';
|
|
5
5
|
// import 'swiper/css/navigation';
|
|
6
6
|
// import 'swiper/css/pagination';
|
|
7
7
|
|