@total_onion/onion-library 1.0.178 → 1.0.180
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.
|
@@ -1,241 +1,7 @@
|
|
|
1
1
|
@use 'Assets/scss/modules/library-modules/core-mixins-v3/core-mixins-v3';
|
|
2
2
|
@use 'Assets/scss/modules/library-modules/core-functions-v3/core-functions-v3';
|
|
3
3
|
@use 'Assets/scss/theme/breakpoints';
|
|
4
|
-
|
|
4
|
+
@use 'Assets/scss/blocks/modal-form-v3/modal-form-v3-extra';
|
|
5
5
|
.modal-form-v3 {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
&__container-modal {
|
|
9
|
-
display: none;
|
|
10
|
-
position: fixed;
|
|
11
|
-
inset: 0;
|
|
12
|
-
z-index: 9998;
|
|
13
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&__inner {
|
|
17
|
-
padding: core-functions-v3.fluidSize(80) 0;
|
|
18
|
-
|
|
19
|
-
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
20
|
-
padding: core-functions-v3.fluidSize(90);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&__modal-open {
|
|
25
|
-
&--icon {
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
appearance: none;
|
|
28
|
-
border: none;
|
|
29
|
-
background: transparent;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&__modal-close {
|
|
34
|
-
position: absolute;
|
|
35
|
-
top: core-functions-v3.fluidSize(20);
|
|
36
|
-
right: core-functions-v3.fluidSize(20);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.form__content {
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
max-width: core-functions-v3.fluidSize(920);
|
|
45
|
-
height: 100%;
|
|
46
|
-
|
|
47
|
-
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
48
|
-
height: 80vh;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.cdb_form_container {
|
|
52
|
-
margin-top: core-functions-v3.fluidSize(50);
|
|
53
|
-
|
|
54
|
-
.cdb_form_input_container {
|
|
55
|
-
form {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
gap: core-functions-v3.fluidSize(40, 'static');
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.cdb_form_field {
|
|
63
|
-
input,
|
|
64
|
-
select {
|
|
65
|
-
font-size: core-functions-v3.fontSize(14, 'mobile');
|
|
66
|
-
font-family: var(--primary-font-family);
|
|
67
|
-
width: 100%;
|
|
68
|
-
font-weight: 200;
|
|
69
|
-
border: 1px solid #2d292633;
|
|
70
|
-
border-radius: 0;
|
|
71
|
-
padding: core-functions-v3.fluidSize(20, 'static');
|
|
72
|
-
outline: unset;
|
|
73
|
-
background: transparent;
|
|
74
|
-
|
|
75
|
-
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
76
|
-
font-size: core-functions-v3.fontSize(14, 'portrait');
|
|
77
|
-
}
|
|
78
|
-
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
79
|
-
font-size: core-functions-v3.fontSize(14, 'desktop');
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&::placeholder {
|
|
83
|
-
color: #2d2926;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
select {
|
|
88
|
-
padding-left: core-functions-v3.fluidSize(20, 'static');
|
|
89
|
-
appearance: none;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
._block_country_for_optin {
|
|
94
|
-
position: relative;
|
|
95
|
-
|
|
96
|
-
&::after {
|
|
97
|
-
content: '';
|
|
98
|
-
position: absolute;
|
|
99
|
-
background-image: url('Assets/images/icon/arrow-down-teal.svg');
|
|
100
|
-
background-size: cover;
|
|
101
|
-
top: 26px;
|
|
102
|
-
right: 12px;
|
|
103
|
-
width: 14px;
|
|
104
|
-
height: 8px;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.optin,
|
|
109
|
-
.cdb_form_privacypolicy_information {
|
|
110
|
-
label {
|
|
111
|
-
display: flex;
|
|
112
|
-
|
|
113
|
-
input[type='checkbox'] {
|
|
114
|
-
width: auto;
|
|
115
|
-
appearance: none;
|
|
116
|
-
border: unset;
|
|
117
|
-
padding: unset;
|
|
118
|
-
margin: unset;
|
|
119
|
-
position: relative;
|
|
120
|
-
|
|
121
|
-
&::before {
|
|
122
|
-
content: ' ';
|
|
123
|
-
cursor: pointer;
|
|
124
|
-
display: block;
|
|
125
|
-
width: 35px !important;
|
|
126
|
-
height: 35px !important;
|
|
127
|
-
border-radius: 0 !important;
|
|
128
|
-
border: 1px solid #2d292633 !important;
|
|
129
|
-
background-color: #f6f6f0 !important;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&::after {
|
|
133
|
-
content: ' ';
|
|
134
|
-
cursor: pointer;
|
|
135
|
-
background-image: url('Assets/images/icon/tick.svg');
|
|
136
|
-
background-size: cover;
|
|
137
|
-
width: 35px !important;
|
|
138
|
-
height: 35px !important;
|
|
139
|
-
display: none;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&:checked::after {
|
|
143
|
-
display: block;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&:checked::before {
|
|
147
|
-
display: none;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
span {
|
|
152
|
-
margin-left: core-functions-v3.fluidSize(30, 'static');
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
p {
|
|
156
|
-
text-transform: initial;
|
|
157
|
-
color: black;
|
|
158
|
-
font-size: core-functions-v3.fluidSize(14, 'static');
|
|
159
|
-
font-weight: 200;
|
|
160
|
-
|
|
161
|
-
a {
|
|
162
|
-
font-weight: 400;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.cdb_form_privacypolicy_information {
|
|
169
|
-
p {
|
|
170
|
-
margin-left: core-functions-v3.fluidSize(30, 'static');
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.cdb_form_gdpr_information {
|
|
175
|
-
p {
|
|
176
|
-
font-size: core-functions-v3.fluidSize(14, 'static');
|
|
177
|
-
font-weight: 200;
|
|
178
|
-
|
|
179
|
-
a {
|
|
180
|
-
font-weight: 400;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.cdb-submit {
|
|
186
|
-
cursor: pointer;
|
|
187
|
-
width: max-content;
|
|
188
|
-
margin: auto;
|
|
189
|
-
padding: core-functions-v3.fluidSize(12, 'static')
|
|
190
|
-
core-functions-v3.fluidSize(20, 'static');
|
|
191
|
-
border: 2px solid black;
|
|
192
|
-
text-transform: uppercase;
|
|
193
|
-
font-weight: 800;
|
|
194
|
-
background: transparent;
|
|
195
|
-
z-index: 2;
|
|
196
|
-
|
|
197
|
-
&::before {
|
|
198
|
-
z-index: -1;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.cdb_form_field.invalid {
|
|
203
|
-
position: relative;
|
|
204
|
-
|
|
205
|
-
&::before {
|
|
206
|
-
content: 'Please fill in this field.';
|
|
207
|
-
position: absolute;
|
|
208
|
-
left: 0;
|
|
209
|
-
bottom: -25px;
|
|
210
|
-
color: #dc1919;
|
|
211
|
-
font-weight: 200;
|
|
212
|
-
font-size: core-functions-v3.fontSize(16, 'static');
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&::after {
|
|
216
|
-
content: '';
|
|
217
|
-
position: absolute;
|
|
218
|
-
background-image: url('Assets/images/icon/warning.svg');
|
|
219
|
-
background-size: cover;
|
|
220
|
-
top: 19px;
|
|
221
|
-
right: 10px;
|
|
222
|
-
width: 20px;
|
|
223
|
-
height: 20px;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
input {
|
|
227
|
-
border: 1px solid #dc1919;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.optin.invalid {
|
|
232
|
-
&::after {
|
|
233
|
-
position: unset;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.cdb_form_field.invalid input[type='checkbox']::before {
|
|
238
|
-
border-color: #dc1919 !important;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
6
|
+
@include modal-form-v3-extra.additionalStyles();
|
|
7
|
+
}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
{% set elementType = field.element_type|ru %}
|
|
6
6
|
|
|
7
7
|
<style>
|
|
8
|
-
.{{blockClassName}}__post-categories.{{block.id}}
|
|
8
|
+
.{{blockClassName}}__post-categories.{{block.id}}{
|
|
9
9
|
{{textEditorStyleVars}}
|
|
10
10
|
}
|
|
11
11
|
</style>
|
|
12
|
-
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}
|
|
13
|
-
<{{elementType|default('p')}} class="{{blockClassName}}__post-categories {{field.text_style.typography_style|ru}} {{block.id}}" data-pattern-post-info="post_categories.0.name">{{post.categories.0.name}}</{{elementType|default('p')}}>
|
|
12
|
+
<div class="{{blockClassName}}__content-container {{textEditorContainerClasses}} {{block.id}}">
|
|
13
|
+
<{{elementType|default('p')}} class="{{blockClassName}}__post-categories {{blockClassName}}__info-item {{field.text_style.typography_style|ru}} {{block.id}}" data-pattern-post-info="post_categories.0.name">{{post.categories.0.name}}</{{elementType|default('p')}}>
|
|
14
14
|
</div>
|