@total_onion/onion-library 3.0.12 → 3.0.14
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,9 +1,8 @@
|
|
|
1
1
|
{% set blockClassName = "single-responsive-image-v3" %}
|
|
2
2
|
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields, block }, with_context = false) %}
|
|
3
|
-
{% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields, block, blockClassName, options, environment, is_preview, nav_menus, imageSizes }, with_context = false) %}
|
|
4
3
|
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields, block }, with_context = false) %}
|
|
5
4
|
{% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
6
|
-
|
|
5
|
+
|
|
7
6
|
{% set sectionStyles = styleEntryPoint %}
|
|
8
7
|
{{previewEntryPoint}}
|
|
9
8
|
<style>
|
|
@@ -11,9 +10,12 @@
|
|
|
11
10
|
{{sectionStyles}}
|
|
12
11
|
}
|
|
13
12
|
</style>
|
|
14
|
-
<section
|
|
13
|
+
<section
|
|
14
|
+
{{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{fields.section_class}} {{classNameEntryPoint}} lazy-fade {{block.id}}" data-jsload="false" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
15
15
|
|
|
16
|
+
<!--pattern-replace-start:component/responsive-image -->
|
|
16
17
|
{{ include('components/responsive-image-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
18
|
+
<!--pattern-replace-end:component/responsive-image -->
|
|
17
19
|
|
|
18
20
|
{% if fields.animations.enable_animations %}
|
|
19
21
|
{{ include('components/animations-style-v3.twig', { fields, block, blockClassName }, with_context = false) }}
|
|
@@ -1,213 +1,235 @@
|
|
|
1
1
|
<?php
|
|
2
2
|
// @codingStandardsIgnoreStart
|
|
3
|
-
function core_typography_v3()
|
|
3
|
+
function core_typography_v3($options)
|
|
4
4
|
{
|
|
5
|
+
if (!is_array($options)) {
|
|
6
|
+
return [];
|
|
7
|
+
}
|
|
8
|
+
$json_data = file_get_contents(get_template_directory() . '/inc/theme-data/' . $options['current_theme_name'] . '/typography-vars.json');
|
|
9
|
+
$typography_vars = json_decode($json_data, true)[0];
|
|
5
10
|
$output = '';
|
|
6
|
-
if (
|
|
7
|
-
$
|
|
8
|
-
|
|
9
|
-
if (array_key_exists('headings', $options)) {
|
|
11
|
+
if ($typography_vars) {
|
|
12
|
+
if (is_array($typography_vars)) {
|
|
13
|
+
if (array_key_exists('headings', $typography_vars)) {
|
|
10
14
|
$output = '
|
|
11
15
|
<style id="core-typography-v3-vars">
|
|
12
16
|
body {
|
|
13
|
-
--paragraph-block-spacing-desktop:' . ($
|
|
14
|
-
--paragraph-block-spacing-portrait:' . ($
|
|
15
|
-
--paragraph-block-spacing-mobile:' . ($
|
|
16
|
-
|
|
17
|
-
--heading-block-spacing-desktop:' . ($
|
|
18
|
-
--heading-block-spacing-portrait:' . ($
|
|
19
|
-
--heading-block-spacing-mobile:' . ($
|
|
20
|
-
|
|
21
|
-
--list-item-line-height:' . ($
|
|
22
|
-
--list-item-letter-spacing:' . ($
|
|
23
|
-
--list-item-block-spacing-desktop:' . ($
|
|
24
|
-
--list-item-block-spacing-landscape:' . ($
|
|
25
|
-
--list-item-block-spacing-portrait:' . ($
|
|
26
|
-
--list-item-block-spacing-mobile:' . ($
|
|
27
|
-
|
|
28
|
-
--h-xl-font-family:' . (remove_underscore($
|
|
29
|
-
--h-l-font-family:' . (remove_underscore($
|
|
30
|
-
--h-m-font-family:' . (remove_underscore($
|
|
31
|
-
--h-s-font-family:' . (remove_underscore($
|
|
32
|
-
--h-xs-font-family:' . (remove_underscore($
|
|
33
|
-
--h-
|
|
34
|
-
--h-
|
|
35
|
-
|
|
36
|
-
--sh-
|
|
37
|
-
--sh-
|
|
38
|
-
--sh-
|
|
39
|
-
--sh-
|
|
40
|
-
--sh-
|
|
41
|
-
--sh-
|
|
42
|
-
--sh-
|
|
43
|
-
|
|
44
|
-
--
|
|
45
|
-
|
|
46
|
-
--h-
|
|
47
|
-
--h-
|
|
48
|
-
--h-
|
|
49
|
-
--h-
|
|
50
|
-
--h-
|
|
51
|
-
|
|
52
|
-
--
|
|
53
|
-
|
|
54
|
-
--sh-
|
|
55
|
-
--sh-
|
|
56
|
-
--sh-
|
|
57
|
-
--sh-
|
|
58
|
-
--sh-
|
|
59
|
-
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
--
|
|
63
|
-
|
|
64
|
-
--h-
|
|
65
|
-
--h-
|
|
66
|
-
--h-
|
|
67
|
-
|
|
68
|
-
--
|
|
69
|
-
--
|
|
70
|
-
--
|
|
71
|
-
|
|
72
|
-
--sh-
|
|
73
|
-
--sh-
|
|
74
|
-
|
|
75
|
-
--sh-
|
|
76
|
-
--sh-
|
|
77
|
-
--sh-
|
|
78
|
-
--sh-
|
|
79
|
-
--sh-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
--sh-
|
|
83
|
-
--sh-
|
|
84
|
-
--sh-
|
|
85
|
-
--sh-
|
|
86
|
-
--sh-
|
|
87
|
-
--sh-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
--
|
|
91
|
-
--
|
|
92
|
-
--
|
|
93
|
-
--
|
|
94
|
-
--
|
|
95
|
-
|
|
96
|
-
--
|
|
97
|
-
--
|
|
98
|
-
|
|
99
|
-
--h-
|
|
100
|
-
--h-
|
|
101
|
-
--h-
|
|
102
|
-
|
|
103
|
-
--
|
|
104
|
-
--
|
|
105
|
-
|
|
106
|
-
--
|
|
107
|
-
--
|
|
108
|
-
|
|
109
|
-
--
|
|
110
|
-
--
|
|
111
|
-
--
|
|
112
|
-
|
|
113
|
-
--paragraph-
|
|
114
|
-
|
|
115
|
-
--paragraph-
|
|
116
|
-
--paragraph-
|
|
117
|
-
--paragraph-small-
|
|
118
|
-
|
|
119
|
-
--paragraph-
|
|
120
|
-
|
|
121
|
-
--paragraph-
|
|
122
|
-
--paragraph-
|
|
123
|
-
--paragraph-small-
|
|
124
|
-
|
|
125
|
-
--paragraph-
|
|
126
|
-
|
|
127
|
-
--paragraph-
|
|
128
|
-
--paragraph-font-
|
|
129
|
-
--paragraph-small-font-
|
|
130
|
-
|
|
131
|
-
--paragraph-
|
|
132
|
-
|
|
133
|
-
--
|
|
134
|
-
--
|
|
135
|
-
--
|
|
136
|
-
|
|
137
|
-
--
|
|
138
|
-
--
|
|
139
|
-
--
|
|
140
|
-
--
|
|
141
|
-
--
|
|
142
|
-
|
|
143
|
-
--h-
|
|
144
|
-
--h-
|
|
145
|
-
--h-
|
|
146
|
-
--h-
|
|
147
|
-
--h-
|
|
148
|
-
--h-
|
|
149
|
-
--h-
|
|
150
|
-
--h-
|
|
151
|
-
--h-
|
|
152
|
-
--h-
|
|
153
|
-
--h-
|
|
154
|
-
--h-
|
|
155
|
-
--h-
|
|
156
|
-
--h-
|
|
157
|
-
--h-
|
|
158
|
-
--h-
|
|
159
|
-
--h-
|
|
160
|
-
--h-
|
|
161
|
-
|
|
162
|
-
--
|
|
163
|
-
--
|
|
164
|
-
--
|
|
165
|
-
--
|
|
166
|
-
--
|
|
167
|
-
--
|
|
168
|
-
--
|
|
169
|
-
--
|
|
170
|
-
--
|
|
171
|
-
|
|
172
|
-
--sh-
|
|
173
|
-
--sh-
|
|
174
|
-
--sh-
|
|
175
|
-
--sh-
|
|
176
|
-
--sh-
|
|
177
|
-
--sh-
|
|
178
|
-
--sh-
|
|
179
|
-
--sh-
|
|
180
|
-
--sh-
|
|
181
|
-
--sh-
|
|
182
|
-
--sh-
|
|
183
|
-
--sh-
|
|
184
|
-
--sh-
|
|
185
|
-
--sh-
|
|
186
|
-
|
|
187
|
-
--
|
|
188
|
-
--
|
|
189
|
-
--
|
|
190
|
-
--
|
|
191
|
-
--
|
|
192
|
-
--
|
|
193
|
-
--
|
|
194
|
-
--
|
|
195
|
-
--
|
|
196
|
-
--
|
|
197
|
-
--
|
|
198
|
-
--
|
|
199
|
-
--
|
|
200
|
-
--
|
|
201
|
-
--
|
|
202
|
-
--
|
|
203
|
-
--
|
|
204
|
-
|
|
205
|
-
--p-
|
|
206
|
-
--p-
|
|
207
|
-
--p-
|
|
208
|
-
--p-
|
|
209
|
-
--p-
|
|
210
|
-
--p-
|
|
17
|
+
--paragraph-block-spacing-desktop:' . ($typography_vars['paragraph_spacing_desktop'] ?? 0) . ';
|
|
18
|
+
--paragraph-block-spacing-portrait:' . ($typography_vars['paragraph_spacing_portrait'] ?? 0) . ';
|
|
19
|
+
--paragraph-block-spacing-mobile:' . ($typography_vars['paragraph_spacing_mobile'] ?? 0) . ';
|
|
20
|
+
|
|
21
|
+
--heading-block-spacing-desktop:' . ($typography_vars['heading_spacing_desktop'] ?? 0) . ';
|
|
22
|
+
--heading-block-spacing-portrait:' . ($typography_vars['heading_spacing_portrait'] ?? 0) . ';
|
|
23
|
+
--heading-block-spacing-mobile:' . ($typography_vars['heading_spacing_mobile'] ?? 0) . ';
|
|
24
|
+
|
|
25
|
+
--list-item-line-height:' . ($typography_vars['list_item_line_height'] ?? 0) . '%;
|
|
26
|
+
--list-item-letter-spacing:' . ($typography_vars['list_item_letter_spacing'] ?? 0) . 'em;
|
|
27
|
+
--list-item-block-spacing-desktop:' . ($typography_vars['list_item_block_spacing']['list_item_block_spacing_desktop'] ?? 0) . 'em;
|
|
28
|
+
--list-item-block-spacing-landscape:' . ($typography_vars['list_item_block_spacing']['list_item_block_spacing_landscape'] ?? 0) . 'em;
|
|
29
|
+
--list-item-block-spacing-portrait:' . ($typography_vars['list_item_block_spacing']['list_item_block_spacing_portrait'] ?? 0) . 'em;
|
|
30
|
+
--list-item-block-spacing-mobile:' . ($typography_vars['list_item_block_spacing']['list_item_block_spacing_mobile'] ?? 0) . 'em;
|
|
31
|
+
|
|
32
|
+
--h-xl-font-family:' . (remove_underscore($typography_vars['headings']['h_xl_font_family'] ?? 'arial')) . ';
|
|
33
|
+
--h-l-font-family:' . (remove_underscore($typography_vars['headings']['h_l_font_family'] ?? 'arial')) . ';
|
|
34
|
+
--h-m-font-family:' . (remove_underscore($typography_vars['headings']['h_m_font_family'] ?? 'arial')) . ';
|
|
35
|
+
--h-s-font-family:' . (remove_underscore($typography_vars['headings']['h_s_font_family'] ?? 'arial')) . ';
|
|
36
|
+
--h-xs-font-family:' . (remove_underscore($typography_vars['headings']['h_xs_font_family'] ?? 'arial')) . ';
|
|
37
|
+
--h-xxs-font-family:' . (remove_underscore($typography_vars['headings']['h_xxs_font_family'] ?? 'arial')) . ';
|
|
38
|
+
--h-xxxs-font-family:' . (remove_underscore($typography_vars['headings']['h_xxxs_font_family'] ?? 'arial')) . ';
|
|
39
|
+
|
|
40
|
+
--sh-xxxl-font-family:' . (remove_underscore($typography_vars['sub_headings']['sh_xxxl_font_family'] ?? 'arial')) . ';
|
|
41
|
+
--sh-xxl-font-family:' . (remove_underscore($typography_vars['sub_headings']['sh_xxl_font_family'] ?? 'arial')) . ';
|
|
42
|
+
--sh-xl-font-family:' . (remove_underscore($typography_vars['sub_headings']['sh_xl_font_family'] ?? 'arial')) . ';
|
|
43
|
+
--sh-l-font-family:' . (remove_underscore($typography_vars['sub_headings']['sh_l_font_family'] ?? 'arial')) . ';
|
|
44
|
+
--sh-m-font-family:' . (remove_underscore($typography_vars['sub_headings']['sh_m_font_family'] ?? 'arial')) . ';
|
|
45
|
+
--sh-s-font-family:' . (remove_underscore($typography_vars['sub_headings']['sh_s_font_family'] ?? 'arial')) . ';
|
|
46
|
+
--sh-xs-font-family:' . (remove_underscore($typography_vars['sub_headings']['sh_xs_font_family'] ?? 'arial')) . ';
|
|
47
|
+
--sh-xxs-font-family:' . (remove_underscore($typography_vars['sub_headings']['sh_xxs_font_family'] ?? 'arial')) . ';
|
|
48
|
+
--sh-xxxs-font-family:' . (remove_underscore($typography_vars['sub_headings']['sh_xxxs_font_family'] ?? 'arial')) . ';
|
|
49
|
+
|
|
50
|
+
--h-xl-letter-spacing:' . ($typography_vars['headings']['h_xl_letter_spacing'] ?? 0) . 'em;
|
|
51
|
+
--h-l-letter-spacing:' . ($typography_vars['headings']['h_l_letter_spacing'] ?? 0) . 'em;
|
|
52
|
+
--h-m-letter-spacing:' . ($typography_vars['headings']['h_m_letter_spacing'] ?? 0) . 'em;
|
|
53
|
+
--h-s-letter-spacing:' . ($typography_vars['headings']['h_s_letter_spacing'] ?? 0) . 'em;
|
|
54
|
+
--h-xs-letter-spacing:' . ($typography_vars['headings']['h_xs_letter_spacing'] ?? 0) . 'em;
|
|
55
|
+
--h-xxs-letter-spacing:' . ($typography_vars['headings']['h_xxs_letter_spacing'] ?? 0) . 'em;
|
|
56
|
+
--h-xxxs-letter-spacing:' . ($typography_vars['headings']['h_xxxs_letter_spacing'] ?? 0) . 'em;
|
|
57
|
+
|
|
58
|
+
--sh-xxxl-letter-spacing:' . ($typography_vars['sub_headings']['sh_xxxl_letter_spacing'] ?? 0) . 'em;
|
|
59
|
+
--sh-xxl-letter-spacing:' . ($typography_vars['sub_headings']['sh_xxl_letter_spacing'] ?? 0) . 'em;
|
|
60
|
+
--sh-xl-letter-spacing:' . ($typography_vars['sub_headings']['sh_xl_letter_spacing'] ?? 0) . 'em;
|
|
61
|
+
--sh-l-letter-spacing:' . ($typography_vars['sub_headings']['sh_l_letter_spacing'] ?? 0) . 'em;
|
|
62
|
+
--sh-m-letter-spacing:' . ($typography_vars['sub_headings']['sh_m_letter_spacing'] ?? 0) . 'em;
|
|
63
|
+
--sh-s-letter-spacing:' . ($typography_vars['sub_headings']['sh_s_letter_spacing'] ?? 0) . 'em;
|
|
64
|
+
--sh-xs-letter-spacing:' . ($typography_vars['sub_headings']['sh_xs_letter_spacing'] ?? 0) . 'em;
|
|
65
|
+
--sh-xxs-letter-spacing:' . ($typography_vars['sub_headings']['sh_xxs_letter_spacing'] ?? 0) . 'em;
|
|
66
|
+
--sh-xxxs-letter-spacing:' . ($typography_vars['sub_headings']['sh_xxxs_letter_spacing'] ?? 0) . 'em;
|
|
67
|
+
|
|
68
|
+
--h-xl-line-height:' . ($typography_vars['headings']['h_xl_line_height'] ?? 100) . '%;
|
|
69
|
+
--h-l-line-height:' . ($typography_vars['headings']['h_l_line_height'] ?? 100) . '%;
|
|
70
|
+
--h-m-line-height:' . ($typography_vars['headings']['h_m_line_height'] ?? 100) . '%;
|
|
71
|
+
--h-s-line-height:' . ($typography_vars['headings']['h_s_line_height'] ?? 100) . '%;
|
|
72
|
+
--h-xs-line-height:' . ($typography_vars['headings']['h_xs_line_height'] ?? 100) . '%;
|
|
73
|
+
--h-xxs-line-height:' . ($typography_vars['headings']['h_xxs_line_height'] ?? 100) . '%;
|
|
74
|
+
--h-xxxs-line-height:' . ($typography_vars['headings']['h_xxxs_line_height'] ?? 100) . '%;
|
|
75
|
+
|
|
76
|
+
--sh-xxxl-line-height:' . ($typography_vars['sub_headings']['sh_xxxl_line_height'] ?? 100) . '%;
|
|
77
|
+
--sh-xxl-line-height:' . ($typography_vars['sub_headings']['sh_xxl_line_height'] ?? 100) . '%;
|
|
78
|
+
--sh-xl-line-height:' . ($typography_vars['sub_headings']['sh_xl_line_height'] ?? 100) . '%;
|
|
79
|
+
--sh-l-line-height:' . ($typography_vars['sub_headings']['sh_l_line_height'] ?? 100) . '%;
|
|
80
|
+
--sh-m-line-height:' . ($typography_vars['sub_headings']['sh_m_line_height'] ?? 100) . '%;
|
|
81
|
+
--sh-s-line-height:' . ($typography_vars['sub_headings']['sh_s_line_height'] ?? 100) . '%;
|
|
82
|
+
--sh-xs-line-height:' . ($typography_vars['sub_headings']['sh_xs_line_height'] ?? 100) . '%;
|
|
83
|
+
--sh-xxs-line-height:' . ($typography_vars['sub_headings']['sh_xxs_line_height'] ?? 100) . '%;
|
|
84
|
+
|
|
85
|
+
--sh-xxxl-default-font-weight:' . ($typography_vars['sub_headings']['sh_xxxl_default_font_weight'] ?? 400) . ';
|
|
86
|
+
--sh-xxl-default-font-weight:' . ($typography_vars['sub_headings']['sh_xxl_default_font_weight'] ?? 400) . ';
|
|
87
|
+
--sh-xl-default-font-weight:' . ($typography_vars['sub_headings']['sh_xl_default_font_weight'] ?? 400) . ';
|
|
88
|
+
--sh-l-default-font-weight:' . ($typography_vars['sub_headings']['sh_l_default_font_weight'] ?? 400) . ';
|
|
89
|
+
--sh-m-default-font-weight:' . ($typography_vars['sub_headings']['sh_m_default_font_weight'] ?? 400) . ';
|
|
90
|
+
--sh-s-default-font-weight:' . ($typography_vars['sub_headings']['sh_s_default_font_weight'] ?? 400) . ';
|
|
91
|
+
--sh-xs-default-font-weight:' . ($typography_vars['sub_headings']['sh_xs_default_font_weight'] ?? 400) . ';
|
|
92
|
+
--sh-xxs-default-font-weight:' . ($typography_vars['sub_headings']['sh_xxs_default_font_weight'] ?? 400) . ';
|
|
93
|
+
|
|
94
|
+
--sh-xxxl-bold-font-weight:' . ($typography_vars['sub_headings']['sh_xxxl_bold_font_weight'] ?? 600) . ';
|
|
95
|
+
--sh-xxl-bold-font-weight:' . ($typography_vars['sub_headings']['sh_xxl_bold_font_weight'] ?? 600) . ';
|
|
96
|
+
--sh-xl-bold-font-weight:' . ($typography_vars['sub_headings']['sh_xl_bold_font_weight'] ?? 600) . ';
|
|
97
|
+
--sh-l-bold-font-weight:' . ($typography_vars['sub_headings']['sh_l_bold_font_weight'] ?? 600) . ';
|
|
98
|
+
--sh-m-bold-font-weight:' . ($typography_vars['sub_headings']['sh_m_bold_font_weight'] ?? 600) . ';
|
|
99
|
+
--sh-s-bold-font-weight:' . ($typography_vars['sub_headings']['sh_s_bold_font_weight'] ?? 600) . ';
|
|
100
|
+
--sh-xs-bold-font-weight:' . ($typography_vars['sub_headings']['sh_xs_bold_font_weight'] ?? 600) . ';
|
|
101
|
+
--sh-xxs-bold-font-weight:' . ($typography_vars['sub_headings']['sh_xxs_bold_font_weight'] ?? 600) . ';
|
|
102
|
+
|
|
103
|
+
--h-xl-default-font-weight:' . ($typography_vars['headings']['h_xl_default_font_weight'] ?? 400) . ';
|
|
104
|
+
--h-l-default-font-weight:' . ($typography_vars['headings']['h_l_default_font_weight'] ?? 400) . ';
|
|
105
|
+
--h-m-default-font-weight:' . ($typography_vars['headings']['h_m_default_font_weight'] ?? 400) . ';
|
|
106
|
+
--h-s-default-font-weight:' . ($typography_vars['headings']['h_s_default_font_weight'] ?? 400) . ';
|
|
107
|
+
--h-xs-default-font-weight:' . ($typography_vars['headings']['h_xs_default_font_weight'] ?? 400) . ';
|
|
108
|
+
--h-xxs-default-font-weight:' . ($typography_vars['headings']['h_xxs_default_font_weight'] ?? 400) . ';
|
|
109
|
+
|
|
110
|
+
--h-xl-bold-font-weight:' . ($typography_vars['headings']['h_xl_bold_font_weight'] ?? 600) . ';
|
|
111
|
+
--h-l-bold-font-weight:' . ($typography_vars['headings']['h_l_bold_font_weight'] ?? 600) . ';
|
|
112
|
+
--h-m-bold-font-weight:' . ($typography_vars['headings']['h_m_bold_font_weight'] ?? 600) . ';
|
|
113
|
+
--h-s-bold-font-weight:' . ($typography_vars['headings']['h_s_bold_font_weight'] ?? 600) . ';
|
|
114
|
+
--h-xs-bold-font-weight:' . ($typography_vars['headings']['h_xs_bold_font_weight'] ?? 600) . ';
|
|
115
|
+
--h-xxs-bold-font-weight:' . ($typography_vars['headings']['h_xxs_bold_font_weight'] ?? 600) . ';
|
|
116
|
+
|
|
117
|
+
--paragraph-large-line-height:' . ($typography_vars['paragraphs']['paragraph_large_line_height'] ?? 100) . '%;
|
|
118
|
+
--paragraph-line-height:' . ($typography_vars['paragraphs']['paragraph_line_height'] ?? 100) . '%;
|
|
119
|
+
--paragraph-small-line-height:' . ($typography_vars['paragraphs']['paragraph_small_line_height'] ?? 100) . '%;
|
|
120
|
+
--paragraph-extra-small-line-height:' . ($typography_vars['paragraphs']['paragraph_extra_small_line_height'] ?? 100) . '%;
|
|
121
|
+
--paragraph-extra-extra-small-line-height:' . ($typography_vars['paragraphs']['paragraph_extra_extra_small_line_height'] ?? 100) . '%;
|
|
122
|
+
|
|
123
|
+
--paragraph-large-default-font-weight:' . ($typography_vars['paragraphs']['paragraph_large_default_font_weight'] ?? 400) . ';
|
|
124
|
+
--paragraph-default-font-weight:' . ($typography_vars['paragraphs']['paragraph_default_font_weight'] ?? 400) . ';
|
|
125
|
+
--paragraph-small-default-font-weight:' . ($typography_vars['paragraphs']['paragraph_small_default_font_weight'] ?? 400) . ';
|
|
126
|
+
--paragraph-extra-small-default-font-weight:' . ($typography_vars['paragraphs']['paragraph_extra_small_default_font_weight'] ?? 400) . ';
|
|
127
|
+
--paragraph-extra-extra-small-default-font-weight:' . ($typography_vars['paragraphs']['paragraph_extra_extra_small_default_font_weight'] ?? 400) . ';
|
|
128
|
+
|
|
129
|
+
--paragraph-large-bold-font-weight:' . ($typography_vars['paragraphs']['paragraph_large_bold_font_weight'] ?? 600) . ';
|
|
130
|
+
--paragraph-bold-font-weight:' . ($typography_vars['paragraphs']['paragraph_bold_font_weight'] ?? 600) . ';
|
|
131
|
+
--paragraph-small-bold-font-weight:' . ($typography_vars['paragraphs']['paragraph_small_bold_font_weight'] ?? 600) . ';
|
|
132
|
+
--paragraph-extra-small-bold-font-weight:' . ($typography_vars['paragraphs']['paragraph_extra_small_bold_font_weight'] ?? 600) . ';
|
|
133
|
+
--paragraph-extra-extra-small-bold-font-weight:' . ($typography_vars['paragraphs']['paragraph_extra_extra_small_bold_font_weight'] ?? 600) . ';
|
|
134
|
+
|
|
135
|
+
--paragraph-large-letter-spacing:' . ($typography_vars['paragraphs']['paragraph_large_letter_spacing'] ?? 100) . 'em;
|
|
136
|
+
--paragraph-letter-spacing:' . ($typography_vars['paragraphs']['paragraph_letter_spacing'] ?? 100) . 'em;
|
|
137
|
+
--paragraph-small-letter-spacing:' . ($typography_vars['paragraphs']['paragraph_small_letter_spacing'] ?? 100) . 'em;
|
|
138
|
+
--paragraph-extra-small-letter-spacing:' . ($typography_vars['paragraphs']['paragraph_extra_small_letter_spacing'] ?? 100) . 'em;
|
|
139
|
+
--paragraph-extra-extra-small-letter-spacing:' . ($typography_vars['paragraphs']['paragraph_extra_extra_small_letter_spacing'] ?? 100) . 'em;
|
|
140
|
+
|
|
141
|
+
--paragraph-large-font-family:' . (remove_underscore($typography_vars['paragraphs']['paragraph_large_font_family'] ?? 'arial')) . ';
|
|
142
|
+
--paragraph-font-family:' . (remove_underscore($typography_vars['paragraphs']['paragraph_font_family'] ?? 'arial')) . ';
|
|
143
|
+
--paragraph-small-font-family:' . (remove_underscore($typography_vars['paragraphs']['paragraph_small_font_family'] ?? 'arial')) . ';
|
|
144
|
+
--paragraph-extra-small-font-family:' . (remove_underscore($typography_vars['paragraphs']['paragraph_extra_small_font_family'] ?? 'arial')) . ';
|
|
145
|
+
--paragraph-extra-extra-small-font-family:' . (remove_underscore($typography_vars['paragraphs']['paragraph_extra_extra_small_font_family'] ?? 'arial')) . ';
|
|
146
|
+
|
|
147
|
+
--h-xl-desktop:' . ($typography_vars['headings']['h_xl_desktop'] ?? 70) . ';
|
|
148
|
+
--h-xl-landscape:' . ($typography_vars['headings']['h_xl_desktop'] ?? 70) . ';
|
|
149
|
+
--h-xl-portrait:' . ($typography_vars['headings']['h_xl_portrait'] ?? 44) . ';
|
|
150
|
+
--h-xl-mobile:' . ($typography_vars['headings']['h_xl_mobile'] ?? 44) . ';
|
|
151
|
+
--h-l-desktop:' . ($typography_vars['headings']['h_l_desktop'] ?? 44) . ';
|
|
152
|
+
--h-l-landscape:' . ($typography_vars['headings']['h_l_landscape'] ?? 44) . ';
|
|
153
|
+
--h-l-portrait:' . ($typography_vars['headings']['h_l_portrait'] ?? 32) . ';
|
|
154
|
+
--h-l-mobile:' . ($typography_vars['headings']['h_l_mobile'] ?? 32) . ';
|
|
155
|
+
--h-m-desktop:' . ($typography_vars['headings']['h_m_desktop'] ?? 24) . ';
|
|
156
|
+
--h-m-landscape:' . ($typography_vars['headings']['h_m_desktop'] ?? 24) . ';
|
|
157
|
+
--h-m-portrait:' . ($typography_vars['headings']['h_m_portrait'] ?? 20) . ';
|
|
158
|
+
--h-m-mobile:' . ($typography_vars['headings']['h_m_mobile'] ?? 20) . ';
|
|
159
|
+
--h-s-desktop:' . ($typography_vars['headings']['h_s_desktop'] ?? 20) . ';
|
|
160
|
+
--h-s-landscape:' . ($typography_vars['headings']['h_s_desktop'] ?? 20) . ';
|
|
161
|
+
--h-s-portrait:' . ($typography_vars['headings']['h_s_portrait'] ?? 18) . ';
|
|
162
|
+
--h-s-mobile:' . ($typography_vars['headings']['h_s_mobile'] ?? 18) . ';
|
|
163
|
+
--h-xs-desktop:' . ($typography_vars['headings']['h_xs_desktop'] ?? 18) . ';
|
|
164
|
+
--h-xs-landscape:' . ($typography_vars['headings']['h_xs_desktop'] ?? 18) . ';
|
|
165
|
+
--h-xs-portrait:' . ($typography_vars['headings']['h_xs_portrait'] ?? 16) . ';
|
|
166
|
+
--h-xs-mobile:' . ($typography_vars['headings']['h_xs_mobile'] ?? 16) . ';
|
|
167
|
+
--h-xxs-desktop:' . ($typography_vars['headings']['h_xxs_desktop'] ?? 16) . ';
|
|
168
|
+
--h-xxs-landscape:' . ($typography_vars['headings']['h_xxs_desktop'] ?? 16) . ';
|
|
169
|
+
--h-xxs-portrait:' . ($typography_vars['headings']['h_xxs_portrait'] ?? 14) . ';
|
|
170
|
+
--h-xxs-mobile:' . ($typography_vars['headings']['h_xxs_mobile'] ?? 14) . ';
|
|
171
|
+
--h-xxxs-desktop:' . ($typography_vars['headings']['h_xxxs_desktop'] ?? 14) . ';
|
|
172
|
+
--h-xxxs-landscape:' . ($typography_vars['headings']['h_xxxs_desktop'] ?? 14) . ';
|
|
173
|
+
--h-xxxs-portrait:' . ($typography_vars['headings']['h_xxxs_portrait'] ?? 14) . ';
|
|
174
|
+
--h-xxxs-mobile:' . ($typography_vars['headings']['h_xxxs_mobile'] ?? 14) . ';
|
|
175
|
+
|
|
176
|
+
--sh-xxxl-desktop:' . ($typography_vars['sub_headings']['sh_xxxl_desktop'] ?? 80) . ';
|
|
177
|
+
--sh-xxxl-landscape:' . ($typography_vars['sub_headings']['sh_xxxl_desktop'] ?? 80) . ';
|
|
178
|
+
--sh-xxxl-portrait:' . ($typography_vars['sub_headings']['sh_xxxl_portrait'] ?? 70) . ';
|
|
179
|
+
--sh-xxxl-mobile:' . ($typography_vars['sub_headings']['sh_xxxl_mobile'] ?? 70) . ';
|
|
180
|
+
--sh-xxl-desktop:' . ($typography_vars['sub_headings']['sh_xxl_desktop'] ?? 62) . ';
|
|
181
|
+
--sh-xxl-landscape:' . ($typography_vars['sub_headings']['sh_xxl_desktop'] ?? 62) . ';
|
|
182
|
+
--sh-xxl-portrait:' . ($typography_vars['sub_headings']['sh_xxl_portrait'] ?? 50) . ';
|
|
183
|
+
--sh-xxl-mobile:' . ($typography_vars['sub_headings']['sh_xxl_mobile'] ?? 50) . ';
|
|
184
|
+
--sh-xl-desktop:' . ($typography_vars['sub_headings']['sh_xl_desktop'] ?? 48) . ';
|
|
185
|
+
--sh-xl-landscape:' . ($typography_vars['sub_headings']['sh_xl_desktop'] ?? 48) . ';
|
|
186
|
+
--sh-xl-portrait:' . ($typography_vars['sub_headings']['sh_xl_portrait'] ?? 40) . ';
|
|
187
|
+
--sh-xl-mobile:' . ($typography_vars['sub_headings']['sh_xl_mobile'] ?? 40) . ';
|
|
188
|
+
--sh-l-desktop:' . ($typography_vars['sub_headings']['sh_l_desktop'] ?? 44) . ';
|
|
189
|
+
--sh-l-landscape:' . ($typography_vars['sub_headings']['sh_l_desktop'] ?? 44) . ';
|
|
190
|
+
--sh-l-portrait:' . ($typography_vars['sub_headings']['sh_l_portrait'] ?? 32) . ';
|
|
191
|
+
--sh-l-mobile:' . ($typography_vars['sub_headings']['sh_l_mobile'] ?? 32) . ';
|
|
192
|
+
--sh-m-desktop:' . ($typography_vars['sub_headings']['sh_m_desktop'] ?? 32) . ';
|
|
193
|
+
--sh-m-landscape:' . ($typography_vars['sub_headings']['sh_m_desktop'] ?? 32) . ';
|
|
194
|
+
--sh-m-portrait:' . ($typography_vars['sub_headings']['sh_m_portrait'] ?? 24) . ';
|
|
195
|
+
--sh-m-mobile:' . ($typography_vars['sub_headings']['sh_m_mobile'] ?? 24) . ';
|
|
196
|
+
--sh-s-desktop:' . ($typography_vars['sub_headings']['sh_s_desktop'] ?? 24) . ';
|
|
197
|
+
--sh-s-landscape:' . ($typography_vars['sub_headings']['sh_s_desktop'] ?? 24) . ';
|
|
198
|
+
--sh-s-portrait:' . ($typography_vars['sub_headings']['sh_s_portrait'] ?? 20) . ';
|
|
199
|
+
--sh-s-mobile:' . ($typography_vars['sub_headings']['sh_s_mobile'] ?? 20) . ';
|
|
200
|
+
--sh-xs-desktop:' . ($typography_vars['sub_headings']['sh_xs_desktop'] ?? 20) . ';
|
|
201
|
+
--sh-xs-landscape:' . ($typography_vars['sub_headings']['sh_xs_desktop'] ?? 20) . ';
|
|
202
|
+
--sh-xs-portrait:' . ($typography_vars['sub_headings']['sh_xs_portrait'] ?? 18) . ';
|
|
203
|
+
--sh-xs-mobile:' . ($typography_vars['sub_headings']['sh_xs_mobile'] ?? 18) . ';
|
|
204
|
+
--sh-xxs-desktop:' . ($typography_vars['sub_headings']['sh_xxs_desktop'] ?? 18) . ';
|
|
205
|
+
--sh-xxs-landscape:' . ($typography_vars['sub_headings']['sh_xxs_desktop'] ?? 18) . ';
|
|
206
|
+
--sh-xxs-portrait:' . ($typography_vars['sub_headings']['sh_xxs_portrait'] ?? 18) . ';
|
|
207
|
+
--sh-xxs-mobile:' . ($typography_vars['sub_headings']['sh_xxs_mobile'] ?? 18) . ';
|
|
208
|
+
|
|
209
|
+
--p-l-desktop:' . ($typography_vars['paragraphs']['p_l_desktop'] ?? 18) . ';
|
|
210
|
+
--p-l-landscape:' . ($typography_vars['paragraphs']['p_l_desktop'] ?? 18) . ';
|
|
211
|
+
--p-l-portrait:' . ($typography_vars['paragraphs']['p_l_portrait'] ?? 18) . ';
|
|
212
|
+
--p-l-mobile:' . ($typography_vars['paragraphs']['p_l_mobile'] ?? 18) . ';
|
|
213
|
+
--p-desktop:' . ($typography_vars['paragraphs']['p_desktop'] ?? 16) . ';
|
|
214
|
+
--p-landscape:' . ($typography_vars['paragraphs']['p_desktop'] ?? 16) . ';
|
|
215
|
+
--p-portrait:' . ($typography_vars['paragraphs']['p_portrait'] ?? 16) . ';
|
|
216
|
+
--p-mobile:' . ($typography_vars['paragraphs']['p_mobile'] ?? 16) . ';
|
|
217
|
+
--p-s-desktop:' . ($typography_vars['paragraphs']['p_s_desktop'] ?? 14) . ';
|
|
218
|
+
--p-s-landscape:' . ($typography_vars['paragraphs']['p_s_desktop'] ?? 14) . ';
|
|
219
|
+
--p-s-portrait:' . ($typography_vars['paragraphs']['p_s_portrait'] ?? 14) . ';
|
|
220
|
+
--p-s-mobile:' . ($typography_vars['paragraphs']['p_s_mobile'] ?? 14) . ';
|
|
221
|
+
--p-xs-desktop:' . ($typography_vars['paragraphs']['p_xs_desktop'] ?? 12) . ';
|
|
222
|
+
--p-xs-landscape:' . ($typography_vars['paragraphs']['p_xs_desktop'] ?? 12) . ';
|
|
223
|
+
--p-xs-portrait:' . ($typography_vars['paragraphs']['p_xs_portrait'] ?? 12) . ';
|
|
224
|
+
--p-xs-mobile:' . ($typography_vars['paragraphs']['p_xs_mobile'] ?? 12) . ';
|
|
225
|
+
--p-xxs-desktop:' . ($typography_vars['paragraphs']['p_xxs_desktop'] ?? 10) . ';
|
|
226
|
+
--p-xxs-landscape:' . ($typography_vars['paragraphs']['p_xxs_desktop'] ?? 10) . ';
|
|
227
|
+
--p-xxs-portrait:' . ($typography_vars['paragraphs']['p_xxs_portrait'] ?? 10) . ';
|
|
228
|
+
--p-xxs-mobile:' . ($typography_vars['paragraphs']['p_xxs_mobile'] ?? 10) . ';
|
|
229
|
+
--p-xxxs-desktop:' . ($typography_vars['paragraphs']['p_xxxs_desktop'] ?? 8) . ';
|
|
230
|
+
--p-xxxs-landscape:' . ($typography_vars['paragraphs']['p_xxxs_desktop'] ?? 8) . ';
|
|
231
|
+
--p-xxxs-portrait:' . ($typography_vars['paragraphs']['p_xxxs_portrait'] ?? 8) . ';
|
|
232
|
+
--p-xxxs-mobile:' . ($typography_vars['paragraphs']['p_xxxs_mobile'] ?? 8) . ';';
|
|
211
233
|
}
|
|
212
234
|
$output .= '</style>';
|
|
213
235
|
}
|
package/package.json
CHANGED
package/update-component.js
CHANGED
|
@@ -216,7 +216,10 @@ const copyCoreComponent = (componentName) => {
|
|
|
216
216
|
|
|
217
217
|
switch (fileType) {
|
|
218
218
|
case 'php':
|
|
219
|
-
copyFile(
|
|
219
|
+
copyFile(
|
|
220
|
+
`${sourceDir}/${file}`,
|
|
221
|
+
`./project-setup/core-functions/${file}`
|
|
222
|
+
);
|
|
220
223
|
break;
|
|
221
224
|
case 'js':
|
|
222
225
|
copyFile(
|
package/update-template.js
CHANGED
|
@@ -215,7 +215,10 @@ const copyCoreComponent = (componentName) => {
|
|
|
215
215
|
|
|
216
216
|
switch (fileType) {
|
|
217
217
|
case 'php':
|
|
218
|
-
copyFile(
|
|
218
|
+
copyFile(
|
|
219
|
+
`${sourceDir}/${file}`,
|
|
220
|
+
`./inc/project-setup/core-functions/${file}`
|
|
221
|
+
);
|
|
219
222
|
break;
|
|
220
223
|
// case 'js':
|
|
221
224
|
// copyFile(
|