generator-chisel 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +1 -11
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/manrope-700.woff2 +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/manrope-regular.woff2 +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/roboto-300.woff2 +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/roboto-700.woff2 +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/roboto-regular.woff2 +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/images/chisel.svg +9 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helpers/BlocksHelpers.php +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helpers/ThemeHelpers.php +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helpers/WoocommerceHelpers.php +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Plugins/Woocommerce.php +15 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Traits/PageBlocks.php +56 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/AjaxEndpoints.php +12 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Blocks.php +9 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselImage.php +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselPost.php +3 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProduct.php +3 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProductCategory.php +3 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Components.php +26 -12
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/CustomPostTypes.php +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Site.php +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Twig.php +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/patterns/cta.php +3 -5
- package/lib/commands/create/creators/app/chisel-starter-theme/patterns/features.php +42 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/patterns/hero.php +48 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/style.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/block.json +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_buttons.scss +31 -66
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_colors.scss +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_icon.scss +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_index.scss +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_link.scss +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/admin/acf.js +1 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks-mods.js +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/mods/core.js +57 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/utils.js +15 -5
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-button.scss +13 -27
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-group.scss +14 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-latest-posts.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-media-text.scss +7 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-query.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core.scss +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_badge.scss +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_buttons.scss +14 -28
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_footer.scss +6 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_header.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_main-nav.scss +5 -5
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_pagination.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post-card.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post.scss +3 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_posts-items.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_sidebar.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_slider.scss +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_form.scss +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_shared.scss +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/login.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_wrapper.scss +5 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/utilities/_spacing.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_general.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_notices.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_product-item.scss +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_product.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_block-edit-selector.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_core-spacer.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_render-appender.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/style.chisel-tpl.css +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/theme.json +150 -37
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/footer.twig +8 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/no-results.twig +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/index.twig +4 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-blog.twig +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-woocommerce.twig +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/single.twig +6 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/archive-product.twig +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/linked-products.twig +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/single-product.twig +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/webpack.config.js +11 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/woocommerce.php +1 -1
- package/lib/commands/create/packages-versions.js +1 -1
- package/package.json +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/quicksand-700.woff2 +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/quicksand-regular.woff2 +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/images/chisel.png +0 -0
package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_form.scss
CHANGED
|
@@ -14,12 +14,12 @@ $form-field-line-height: get-line-height('normal');
|
|
|
14
14
|
$form-field-color: get-color('foreground');
|
|
15
15
|
$form-field-accent: get-color('primary');
|
|
16
16
|
$form-field-accent-contrast: get-color('white');
|
|
17
|
-
$form-field-border-color: get-color('
|
|
17
|
+
$form-field-border-color: get-color('grey-300');
|
|
18
18
|
$form-field-focus-border-color: $form-field-accent;
|
|
19
|
-
$form-field-placeholder-color: get-color('grey');
|
|
19
|
+
$form-field-placeholder-color: get-color('grey-900');
|
|
20
20
|
$form-field-shadow-focus: 0 0 0 3px hsla(256deg, 68%, 24%, 50%);
|
|
21
21
|
$form-field-bg-color: get-color('white');
|
|
22
|
-
$form-field-bg-range-track: get-color('
|
|
22
|
+
$form-field-bg-range-track: get-color('foreground');
|
|
23
23
|
$form-field-range-shadow-focus: 0 0 0 2px hsla(9deg, 100%, 66%, 50%);
|
|
24
24
|
$form-field-range-thumb-shadow-focus: 0 0 0 2px hsla(256deg, 68%, 24%, 50%);
|
|
25
25
|
$form-field-error-color: get-color('error');
|
|
@@ -39,7 +39,7 @@ body.login {
|
|
|
39
39
|
justify-content: center;
|
|
40
40
|
width: 36%;
|
|
41
41
|
padding: 0 7%;
|
|
42
|
-
background: linear-gradient(180deg, get-color('
|
|
42
|
+
background: linear-gradient(180deg, get-color('grey-100') 0%, get-color('white') 100%);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
@include bp(large) {
|
|
@@ -123,7 +123,7 @@ body.login {
|
|
|
123
123
|
font-size: get-font-size('large');
|
|
124
124
|
font-weight: 700;
|
|
125
125
|
text-align: center;
|
|
126
|
-
background: linear-gradient(51deg, get-color('
|
|
126
|
+
background: linear-gradient(51deg, get-color('grey-100'), rgba(255, 255, 255, 50%));
|
|
127
127
|
opacity: 0;
|
|
128
128
|
transition: get-transition('normal');
|
|
129
129
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) {
|
|
7
7
|
div.product span.price,
|
|
8
8
|
div.product p.price {
|
|
9
|
-
color: get-color('
|
|
9
|
+
color: get-color('foreground');
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
line-height: get-line-height('large');
|
|
29
29
|
color: get-color('white');
|
|
30
30
|
text-align: center;
|
|
31
|
-
background-color: get-color('
|
|
31
|
+
background-color: get-color('foreground');
|
|
32
32
|
border-radius: 100%;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
padding: get-padding('normal') get-padding('large') get-padding('normal') px-rem(48);
|
|
28
28
|
margin: 0 0 get-margin('xlarge');
|
|
29
29
|
color: get-color('foreground');
|
|
30
|
-
background-color: get-color('
|
|
30
|
+
background-color: get-color('grey-100');
|
|
31
31
|
border-top: 3px solid get-color('info');
|
|
32
32
|
|
|
33
33
|
&::before {
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
.woocommerce div.product {
|
|
4
4
|
.woocommerce-tabs ul.tabs li {
|
|
5
5
|
color: get-color('primary');
|
|
6
|
-
background-color: get-color('
|
|
6
|
+
background-color: get-color('grey-100');
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.woocommerce-product-gallery {
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
background-color: get-color('white');
|
|
13
|
-
border: 1px solid get-color('
|
|
13
|
+
border: 1px solid get-color('grey-100');
|
|
14
14
|
border-radius: get-border-radius('small');
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
|
|
22
22
|
.c-block-edit-selector__inner {
|
|
23
23
|
color: get-color('black');
|
|
24
|
-
background-color: get-color('
|
|
24
|
+
background-color: get-color('grey-100');
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.c-block-edit-selector__button {
|
|
28
28
|
height: auto !important;
|
|
29
29
|
padding: get-padding('tiny') get-padding('little') !important;
|
|
30
30
|
color: get-color('black') !important;
|
|
31
|
-
border: 1px solid get-color('
|
|
31
|
+
border: 1px solid get-color('grey-100');
|
|
32
32
|
box-shadow: none !important;
|
|
33
33
|
|
|
34
34
|
&.is-large {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
padding: get-padding('normal');
|
|
16
16
|
font-size: get-font-size('normal');
|
|
17
17
|
color: get-color('black');
|
|
18
|
-
background-color: get-color('
|
|
19
|
-
|
|
18
|
+
background-color: get-color('grey-100');
|
|
19
|
+
border: 1px solid get-color('grey-300');
|
|
20
20
|
transition: none;
|
|
21
21
|
|
|
22
22
|
span {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Theme URI: https://www.getchisel.co/
|
|
4
4
|
* Author: <%= app.author %>
|
|
5
5
|
* Description: Chisel Wordpress Starter Theme based on Timber library.
|
|
6
|
-
* Version: 2.2.
|
|
6
|
+
* Version: 2.2.2
|
|
7
7
|
* License: GNU General Public License v2 or later
|
|
8
8
|
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
9
9
|
* Tags: chisel, custom, starter, theme, WordPress
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{
|
|
14
14
|
"name": "Foreground",
|
|
15
15
|
"slug": "foreground",
|
|
16
|
-
"color": "#
|
|
16
|
+
"color": "#050a18"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"name": "Background",
|
|
@@ -23,12 +23,72 @@
|
|
|
23
23
|
{
|
|
24
24
|
"name": "Primary",
|
|
25
25
|
"slug": "primary",
|
|
26
|
-
"color": "#
|
|
26
|
+
"color": "#dd2424"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "Primary 100",
|
|
30
|
+
"slug": "primary-100",
|
|
31
|
+
"color": "#ffecec"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "Primary 200",
|
|
35
|
+
"slug": "primary-200",
|
|
36
|
+
"color": "#f5a5a5"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "Primary 300",
|
|
40
|
+
"slug": "primary-300",
|
|
41
|
+
"color": "#e85f5f"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "Primary 600",
|
|
45
|
+
"slug": "primary-600",
|
|
46
|
+
"color": "#9c1616"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "Primary 800",
|
|
50
|
+
"slug": "primary-800",
|
|
51
|
+
"color": "#641010"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "Primary 900",
|
|
55
|
+
"slug": "primary-900",
|
|
56
|
+
"color": "#2c0707"
|
|
27
57
|
},
|
|
28
58
|
{
|
|
29
59
|
"name": "Secondary",
|
|
30
60
|
"slug": "secondary",
|
|
31
|
-
"color": "#
|
|
61
|
+
"color": "#22dbdb"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "Secondary 100",
|
|
65
|
+
"slug": "secondary-100",
|
|
66
|
+
"color": "#f0fefe"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "Secondary 200",
|
|
70
|
+
"slug": "secondary-200",
|
|
71
|
+
"color": "#bff7f7"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "Secondary 300",
|
|
75
|
+
"slug": "secondary-300",
|
|
76
|
+
"color": "#79Ee6e6"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "Secondary 600",
|
|
80
|
+
"slug": "secondary-600",
|
|
81
|
+
"color": "#189999"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "Secondary 800",
|
|
85
|
+
"slug": "secondary-800",
|
|
86
|
+
"color": "#106565"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "Secondary 900",
|
|
90
|
+
"slug": "secondary-900",
|
|
91
|
+
"color": "#0a2e2e"
|
|
32
92
|
},
|
|
33
93
|
{
|
|
34
94
|
"name": "Black",
|
|
@@ -41,19 +101,39 @@
|
|
|
41
101
|
"color": "#ffffff"
|
|
42
102
|
},
|
|
43
103
|
{
|
|
44
|
-
"name": "Grey",
|
|
45
|
-
"slug": "grey",
|
|
104
|
+
"name": "Grey 900",
|
|
105
|
+
"slug": "grey-900",
|
|
46
106
|
"color": "#343a40"
|
|
47
107
|
},
|
|
48
108
|
{
|
|
49
|
-
"name": "
|
|
50
|
-
"slug": "
|
|
51
|
-
"color": "#
|
|
109
|
+
"name": "Grey 800",
|
|
110
|
+
"slug": "grey-800",
|
|
111
|
+
"color": "#444444"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "Grey 600",
|
|
115
|
+
"slug": "grey-600",
|
|
116
|
+
"color": "#6E6E6E"
|
|
52
117
|
},
|
|
53
118
|
{
|
|
54
|
-
"name": "
|
|
55
|
-
"slug": "
|
|
56
|
-
"color": "#
|
|
119
|
+
"name": "Grey 400",
|
|
120
|
+
"slug": "grey-400",
|
|
121
|
+
"color": "#999999"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "Grey 300",
|
|
125
|
+
"slug": "grey-300",
|
|
126
|
+
"color": "#c2c2c2"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "Grey 200",
|
|
130
|
+
"slug": "grey-200",
|
|
131
|
+
"color": "#e5e5e5"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "Grey 100",
|
|
135
|
+
"slug": "grey-100",
|
|
136
|
+
"color": "#f8f8f8"
|
|
57
137
|
},
|
|
58
138
|
{
|
|
59
139
|
"name": "Success",
|
|
@@ -78,7 +158,7 @@
|
|
|
78
158
|
],
|
|
79
159
|
"duotone": [
|
|
80
160
|
{
|
|
81
|
-
"colors": ["#
|
|
161
|
+
"colors": ["#dd2424", "#22dbdb"],
|
|
82
162
|
"slug": "primary-secondary",
|
|
83
163
|
"name": "Primary & Secondary"
|
|
84
164
|
}
|
|
@@ -87,7 +167,12 @@
|
|
|
87
167
|
{
|
|
88
168
|
"slug": "primary-secondary",
|
|
89
169
|
"name": "Primary & Secondary",
|
|
90
|
-
"gradient": "linear-gradient(135deg, #
|
|
170
|
+
"gradient": "linear-gradient(135deg, #dd2424 0%, #22dbdb 100%)"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"slug": "secondary-primary",
|
|
174
|
+
"name": "Secondary & Primary",
|
|
175
|
+
"gradient": "linear-gradient(135deg, #22dbdb 0%, #dd2424 100%)"
|
|
91
176
|
}
|
|
92
177
|
]
|
|
93
178
|
},
|
|
@@ -105,6 +190,11 @@
|
|
|
105
190
|
},
|
|
106
191
|
"defaultFontSizes": false,
|
|
107
192
|
"fontSizes": [
|
|
193
|
+
{
|
|
194
|
+
"slug": "tiny",
|
|
195
|
+
"size": "0.75rem",
|
|
196
|
+
"name": "tiny"
|
|
197
|
+
},
|
|
108
198
|
{
|
|
109
199
|
"slug": "small",
|
|
110
200
|
"size": "0.875rem",
|
|
@@ -126,20 +216,20 @@
|
|
|
126
216
|
},
|
|
127
217
|
{
|
|
128
218
|
"slug": "large",
|
|
129
|
-
"size": "1.
|
|
219
|
+
"size": "1.25rem",
|
|
130
220
|
"name": "Large",
|
|
131
221
|
"fluid": {
|
|
132
222
|
"min": "1.125rem",
|
|
133
|
-
"max": "1.
|
|
223
|
+
"max": "1.25rem"
|
|
134
224
|
}
|
|
135
225
|
},
|
|
136
226
|
{
|
|
137
227
|
"slug": "extra-large",
|
|
138
|
-
"size": "1.
|
|
228
|
+
"size": "1.5rem",
|
|
139
229
|
"name": "Extra Large",
|
|
140
230
|
"fluid": {
|
|
141
231
|
"min": "1.25rem",
|
|
142
|
-
"max": "1.
|
|
232
|
+
"max": "1.5rem"
|
|
143
233
|
}
|
|
144
234
|
},
|
|
145
235
|
{
|
|
@@ -153,44 +243,59 @@
|
|
|
153
243
|
},
|
|
154
244
|
{
|
|
155
245
|
"slug": "big",
|
|
156
|
-
"size": "2.
|
|
246
|
+
"size": "2.5rem",
|
|
157
247
|
"name": "Big",
|
|
158
248
|
"fluid": {
|
|
159
|
-
"min": "1.
|
|
160
|
-
"max": "2.
|
|
249
|
+
"min": "1.5rem",
|
|
250
|
+
"max": "2.5rem"
|
|
161
251
|
}
|
|
162
252
|
},
|
|
163
253
|
{
|
|
164
254
|
"slug": "huge",
|
|
165
|
-
"size": "
|
|
255
|
+
"size": "3.5rem",
|
|
166
256
|
"name": "Huge",
|
|
167
257
|
"fluid": {
|
|
168
|
-
"min": "2.
|
|
169
|
-
"max": "
|
|
258
|
+
"min": "2.5rem",
|
|
259
|
+
"max": "3.5rem"
|
|
170
260
|
}
|
|
171
261
|
}
|
|
172
262
|
],
|
|
173
263
|
"fontFamilies": [
|
|
174
264
|
{
|
|
175
|
-
"fontFamily": "
|
|
265
|
+
"fontFamily": "Roboto,sans-serif",
|
|
176
266
|
"slug": "body",
|
|
177
|
-
"name": "
|
|
267
|
+
"name": "Roboto",
|
|
178
268
|
"fontFace": [
|
|
179
269
|
{
|
|
180
|
-
"fontFamily": "
|
|
181
|
-
"fontWeight": "
|
|
270
|
+
"fontFamily": "Roboto",
|
|
271
|
+
"fontWeight": "300",
|
|
182
272
|
"fontStyle": "normal",
|
|
183
273
|
"fontStretch": "normal",
|
|
184
274
|
"fontDisplay": "swap",
|
|
185
|
-
"src": ["file:./assets/fonts/
|
|
275
|
+
"src": ["file:./assets/fonts/roboto-300.woff2"]
|
|
186
276
|
},
|
|
187
277
|
{
|
|
188
|
-
"fontFamily": "
|
|
278
|
+
"fontFamily": "Roboto",
|
|
279
|
+
"fontWeight": "700",
|
|
280
|
+
"fontStyle": "normal",
|
|
281
|
+
"fontStretch": "normal",
|
|
282
|
+
"fontDisplay": "swap",
|
|
283
|
+
"src": ["file:./assets/fonts/roboto-700.woff2"]
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"fontFamily": "Manrope,sans-serif",
|
|
289
|
+
"slug": "headings",
|
|
290
|
+
"name": "Manrope",
|
|
291
|
+
"fontFace": [
|
|
292
|
+
{
|
|
293
|
+
"fontFamily": "Manrope",
|
|
189
294
|
"fontWeight": "700",
|
|
190
295
|
"fontStyle": "normal",
|
|
191
296
|
"fontStretch": "normal",
|
|
192
297
|
"fontDisplay": "swap",
|
|
193
|
-
"src": ["file:./assets/fonts/
|
|
298
|
+
"src": ["file:./assets/fonts/manrope-700.woff2"]
|
|
194
299
|
}
|
|
195
300
|
]
|
|
196
301
|
}
|
|
@@ -259,6 +364,11 @@
|
|
|
259
364
|
"size": "2rem",
|
|
260
365
|
"slug": "90",
|
|
261
366
|
"name": "9"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"size": "3rem",
|
|
370
|
+
"slug": "100",
|
|
371
|
+
"name": "10"
|
|
262
372
|
}
|
|
263
373
|
]
|
|
264
374
|
},
|
|
@@ -271,7 +381,8 @@
|
|
|
271
381
|
"medium": "var(--wp--preset--spacing--60)",
|
|
272
382
|
"large": "var(--wp--preset--spacing--70)",
|
|
273
383
|
"xlarge": "var(--wp--preset--spacing--80)",
|
|
274
|
-
"big": "var(--wp--preset--spacing--90)"
|
|
384
|
+
"big": "var(--wp--preset--spacing--90)",
|
|
385
|
+
"huge": "var(--wp--preset--spacing--100)"
|
|
275
386
|
},
|
|
276
387
|
"padding": {
|
|
277
388
|
"tiny": "var(--wp--preset--spacing--20)",
|
|
@@ -281,7 +392,8 @@
|
|
|
281
392
|
"medium": "var(--wp--preset--spacing--60)",
|
|
282
393
|
"large": "var(--wp--preset--spacing--70)",
|
|
283
394
|
"xlarge": "var(--wp--preset--spacing--80)",
|
|
284
|
-
"big": "var(--wp--preset--spacing--90)"
|
|
395
|
+
"big": "var(--wp--preset--spacing--90)",
|
|
396
|
+
"huge": "var(--wp--preset--spacing--100)"
|
|
285
397
|
},
|
|
286
398
|
"gap": {
|
|
287
399
|
"tiny": "var(--wp--preset--spacing--20)",
|
|
@@ -291,7 +403,8 @@
|
|
|
291
403
|
"medium": "var(--wp--preset--spacing--60)",
|
|
292
404
|
"large": "var(--wp--preset--spacing--70)",
|
|
293
405
|
"xlarge": "var(--wp--preset--spacing--80)",
|
|
294
|
-
"big": "var(--wp--preset--spacing--90)"
|
|
406
|
+
"big": "var(--wp--preset--spacing--90)",
|
|
407
|
+
"huge": "var(--wp--preset--spacing--100)"
|
|
295
408
|
},
|
|
296
409
|
"border-radius": {
|
|
297
410
|
"tiny": "0.25rem",
|
|
@@ -324,8 +437,8 @@
|
|
|
324
437
|
"line-height": {
|
|
325
438
|
"small": 1.15,
|
|
326
439
|
"medium": 1.25,
|
|
327
|
-
"normal": 1.
|
|
328
|
-
"large": 1.
|
|
440
|
+
"normal": 1.5,
|
|
441
|
+
"large": 1.75
|
|
329
442
|
},
|
|
330
443
|
"transition": {
|
|
331
444
|
"slow": "all ease-in-out 0.5s",
|
|
@@ -361,7 +474,7 @@
|
|
|
361
474
|
},
|
|
362
475
|
":hover": {
|
|
363
476
|
"color": {
|
|
364
|
-
"text": "var(--wp--preset--color--
|
|
477
|
+
"text": "var(--wp--preset--color--foreground)"
|
|
365
478
|
},
|
|
366
479
|
"typography": {
|
|
367
480
|
"textDecoration": "underline"
|
|
@@ -370,7 +483,7 @@
|
|
|
370
483
|
},
|
|
371
484
|
"heading": {
|
|
372
485
|
"typography": {
|
|
373
|
-
"fontFamily": "var(--wp--preset--font-family--
|
|
486
|
+
"fontFamily": "var(--wp--preset--font-family--headings)",
|
|
374
487
|
"fontWeight": "700",
|
|
375
488
|
"lineHeight": "var(--wp--custom--line-height--normal)"
|
|
376
489
|
},
|
package/lib/commands/create/creators/app/chisel-starter-theme/views/components/no-results.twig
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<h2>{{ __('No posts found', 'chisel') }}</h2>
|
|
@@ -13,21 +13,21 @@ In order to covert back to a grid, add the following classes to the c-posts-item
|
|
|
13
13
|
{% endblock %}
|
|
14
14
|
|
|
15
15
|
<div class="o-layout">
|
|
16
|
-
<div class="{{ bem('o-layout__item', (sidebar ? '8' : '12') ~ '-large') }}">
|
|
17
|
-
<div class="c-posts-items {{ bem('o-grid', 'cols-1', 'cols-2-small', (sidebar ? 'cols-2' : 'cols-3') ~ '-medium') }} js-load-more-container">
|
|
16
|
+
<div class="{{ bem('o-layout__item', (sidebar.content ? '8' : '12') ~ '-large') }}">
|
|
17
|
+
<div class="c-posts-items {{ bem('o-grid', 'cols-1', 'cols-2-small', (sidebar.content ? 'cols-2' : 'cols-3') ~ '-medium') }} js-load-more-container">
|
|
18
18
|
{% if posts is not empty %}
|
|
19
19
|
{% for post in posts %}
|
|
20
20
|
{% include ['components/' ~ post.post_type ~ '-item.twig', 'components/post-item.twig'] with {post: post} only %}
|
|
21
21
|
{% endfor %}
|
|
22
22
|
{% else %}
|
|
23
|
-
|
|
23
|
+
{% include 'components/no-results.twig' %}
|
|
24
24
|
{% endif %}
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
27
|
{% include 'components/pagination.twig' with {type: 'load-more'} %}
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
|
-
{% if sidebar %}
|
|
30
|
+
{% if sidebar.content %}
|
|
31
31
|
{% include 'sidebar-blog.twig' %}
|
|
32
32
|
{% endif %}
|
|
33
33
|
</div>
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
<article id="post-{{ post.ID }}" class="c-post {{ post_classes(post.class) }}">
|
|
5
5
|
<section class="o-wrapper__inner c-post__inner {{ wrapper_class }}">
|
|
6
6
|
|
|
7
|
-
<div class="o-layout c-content{% if sidebar %} has-sidebar{% endif %}">
|
|
8
|
-
<div class="{{ bem('o-layout__item', (sidebar ? '8' : '12') ~ '-large') }} c-content__inner">
|
|
7
|
+
<div class="o-layout c-content{% if sidebar.content %} has-sidebar{% endif %}">
|
|
8
|
+
<div class="{{ bem('o-layout__item', (sidebar.content ? '8' : '12') ~ '-large') }} c-content__inner">
|
|
9
9
|
|
|
10
|
-
{%
|
|
10
|
+
{% block the_title %}
|
|
11
|
+
{% include 'components/the-title.twig' %}
|
|
12
|
+
{% endblock %}
|
|
11
13
|
|
|
12
14
|
{% block inner_content %}
|
|
13
15
|
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
{% endblock %}
|
|
49
51
|
</div>
|
|
50
52
|
|
|
51
|
-
{% if sidebar %}
|
|
53
|
+
{% if sidebar.content %}
|
|
52
54
|
{% include 'sidebar-blog.twig' %}
|
|
53
55
|
{% endif %}
|
|
54
56
|
</div>
|
package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/archive-product.twig
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
{% do action('woocommerce_before_shop_loop') %}
|
|
33
33
|
|
|
34
34
|
<div class="o-layout">
|
|
35
|
-
<div class="{{ bem('o-layout__item', (sidebar ? '8' : '12') ~ '-large') }}">
|
|
35
|
+
<div class="{{ bem('o-layout__item', (sidebar.content ? '8' : '12') ~ '-large') }}">
|
|
36
36
|
<div class="c-posts-items c-shop-items {{ loop_columns_class }} js-load-more-container">
|
|
37
37
|
{% if items is not empty %}
|
|
38
38
|
{% for item in items %}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
{% endif %}
|
|
71
71
|
</div>
|
|
72
72
|
|
|
73
|
-
{% if sidebar %}
|
|
73
|
+
{% if sidebar.content %}
|
|
74
74
|
{% include 'sidebar-woocommerce.twig' %}
|
|
75
75
|
{% endif %}
|
|
76
76
|
</div>
|
package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/linked-products.twig
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
</div>
|
|
6
6
|
{% endif %}
|
|
7
7
|
|
|
8
|
-
<div class="{{ bem('o-layout__item', (sidebar ? '8' : '12') ~ '-large') }}">
|
|
9
|
-
<div class="c-product-linked__items {{ grid_classnames }}">
|
|
8
|
+
<div class="{{ bem('o-layout__item', (sidebar.content ? '8' : '12') ~ '-large') }}">
|
|
9
|
+
<div class="c-product-linked__items {{ grid_classnames|default(bem('o-grid', 'cols-1', 'cols-2-small', 'cols-3-medium')) }}">
|
|
10
10
|
{% for post in linked_products %}
|
|
11
11
|
{% include "woocommerce/content-product.twig" with {post: post} %}
|
|
12
12
|
{% endfor %}
|
package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/single-product.twig
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<article id="post-{{ post.ID }}" itemscope itemtype="https://schema.org/Product" class="{{ post_classes(post.class) }}">
|
|
8
8
|
<section class="o-wrapper__inner {{ wrapper_class }} {{ bem('c-post', post.type|default('page')) }}">
|
|
9
9
|
|
|
10
|
-
<div class="o-layout c-content{% if sidebar %} has-sidebar{% endif %} product">
|
|
11
|
-
<div class="{{ bem('o-layout__item', (sidebar ? '8' : '12') ~ '-large') }} c-content__inner">
|
|
10
|
+
<div class="o-layout c-content{% if sidebar.content %} has-sidebar{% endif %} product">
|
|
11
|
+
<div class="{{ bem('o-layout__item', (sidebar.content ? '8' : '12') ~ '-large') }} c-content__inner">
|
|
12
12
|
|
|
13
13
|
<div class="o-layout c-product__inner">
|
|
14
14
|
<div class="c-product__gallery {{ bem('o-layout__item', '6-large') }}">
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
62
62
|
|
|
63
|
-
{% if sidebar %}
|
|
63
|
+
{% if sidebar.content %}
|
|
64
64
|
{# Register product sidebar in Woocommerce.php if you want to use it #}
|
|
65
65
|
{% include 'sidebar-woocommerce-product.twig' %}
|
|
66
66
|
{% endif %}
|
|
@@ -3,4 +3,15 @@ const { adjustWebpackConfig } = require('chisel-scripts');
|
|
|
3
3
|
|
|
4
4
|
const updatedConfig = adjustWebpackConfig(defaultConfig, __dirname);
|
|
5
5
|
|
|
6
|
+
updatedConfig.devServer = {
|
|
7
|
+
...updatedConfig.devServer,
|
|
8
|
+
client: {
|
|
9
|
+
overlay: {
|
|
10
|
+
errors: true,
|
|
11
|
+
warnings: false,
|
|
12
|
+
runtimeErrors: false,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
6
17
|
module.exports = updatedConfig;
|