generator-chisel 2.1.2 → 2.2.1
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/404.php +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/archive.php +1 -1
- 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/author.php +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/composer.json +7 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/footer.php +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/functions.php +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Controllers/AjaxController.php +20 -15
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Enums/AcfOptionsPageType.php +8 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Enums/BlocksType.php +17 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Factories/RegisterAcfOptionsPage.php +78 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Factory → Factories}/RegisterBlocks.php +41 -30
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Factory → Factories}/RegisterCustomPostType.php +44 -32
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Factory → Factories}/RegisterCustomTaxonomy.php +39 -27
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Helper → Helpers}/AcfHelpers.php +12 -12
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helpers/AjaxHelpers.php +36 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Helper → Helpers}/AssetsHelpers.php +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Helper → Helpers}/BlocksHelpers.php +22 -18
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helpers/CacheHelpers.php +43 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Helper → Helpers}/CommentsHelpers.php +8 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Helper → Helpers}/DataHelpers.php +5 -5
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Helper → Helpers}/GravityFormsHelpers.php +13 -13
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Helper → Helpers}/ImageHelpers.php +30 -15
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Helper → Helpers}/ThemeHelpers.php +29 -25
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Helper → Helpers}/WoocommerceHelpers.php +15 -9
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Helper → Helpers}/YoastHelpers.php +6 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Interfaces/HooksInterface.php +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Interfaces/InstanceInterface.php +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Plugin → Plugins}/GravityForms.php +13 -15
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Plugin → Plugins}/Woocommerce.php +14 -14
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/{Plugin → Plugins}/Yoast.php +6 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Traits/PageBlocks.php +67 -14
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Traits/Singleton.php +28 -7
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Acf.php +16 -15
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/AcfBlocks.php +19 -19
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/{AjaxEnpoints.php → AjaxEndpoints.php} +13 -13
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Assets.php +42 -68
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Blocks.php +23 -23
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Cache.php +10 -11
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselImage.php +7 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselPost.php +14 -7
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProduct.php +13 -11
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProductCategory.php +12 -11
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Comments.php +27 -35
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Components.php +58 -61
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/CustomPostTypes.php +13 -14
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/CustomTaxonomies.php +12 -13
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Sidebars.php +6 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Site.php +8 -8
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Theme.php +22 -22
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Twig.php +54 -49
- package/lib/commands/create/creators/app/chisel-starter-theme/index.php +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/page.php +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/search.php +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/single.php +1 -1
- 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-styles.js +3 -2
- 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-latest-posts.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-media-text.scss +1 -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/vendor/_breadcrumbs.scss +6 -3
- 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.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/index.twig +3 -3
- 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 +1 -1
- 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 +4 -4
- 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/inc/Factory/RegisterAcfOptionsPage.php +0 -62
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/AjaxHelpers.php +0 -33
- package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helper/CacheHelpers.php +0 -41
package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_buttons.scss
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
@use 'theme' as *;
|
|
2
2
|
@use 'icon' as *;
|
|
3
3
|
@use 'px-to-rem' as *;
|
|
4
|
+
@use 'colors' as *;
|
|
4
5
|
|
|
5
6
|
@mixin button() {
|
|
6
7
|
box-sizing: border-box;
|
|
7
8
|
display: inline-flex;
|
|
8
9
|
align-items: center;
|
|
9
|
-
padding:
|
|
10
|
+
padding: px-rem(14) px-rem(24);
|
|
10
11
|
font-size: get-font-size('normal');
|
|
11
12
|
font-weight: 400;
|
|
12
|
-
line-height:
|
|
13
|
+
line-height: px-rem(24);
|
|
13
14
|
text-decoration: none;
|
|
14
15
|
appearance: none;
|
|
15
16
|
cursor: pointer;
|
|
16
|
-
border:
|
|
17
|
+
border: 2px solid transparent;
|
|
17
18
|
border-radius: get-border-radius('little');
|
|
18
19
|
transition: get-transition('normal');
|
|
19
20
|
|
|
@@ -28,21 +29,6 @@
|
|
|
28
29
|
opacity: 0.5;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
@mixin button-icon() {
|
|
32
|
-
padding-top: px-rem(10);
|
|
33
|
-
padding-bottom: px-rem(10);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@mixin button-icon-small() {
|
|
37
|
-
padding-top: px-rem(6);
|
|
38
|
-
padding-bottom: px-rem(6);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@mixin button-icon-large() {
|
|
42
|
-
padding-top: px-rem(14);
|
|
43
|
-
padding-bottom: px-rem(14);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
32
|
@mixin button-primary() {
|
|
47
33
|
color: get-color('white');
|
|
48
34
|
background-color: get-color('primary');
|
|
@@ -51,8 +37,12 @@
|
|
|
51
37
|
|
|
52
38
|
@mixin button-primary-hover() {
|
|
53
39
|
color: get-color('white');
|
|
54
|
-
background-color: get-color('
|
|
55
|
-
border-color: get-color('
|
|
40
|
+
background-color: get-color('primary-300');
|
|
41
|
+
border-color: get-color('primary-300');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin button-primary-focus() {
|
|
45
|
+
outline: 4px solid rgba-color('primary', 50%);
|
|
56
46
|
}
|
|
57
47
|
|
|
58
48
|
@mixin button-primary-icon() {
|
|
@@ -73,6 +63,10 @@
|
|
|
73
63
|
border-color: get-color('primary');
|
|
74
64
|
}
|
|
75
65
|
|
|
66
|
+
@mixin button-primary-outline-focus() {
|
|
67
|
+
outline: 4px solid rgba-color('primary', 50%);
|
|
68
|
+
}
|
|
69
|
+
|
|
76
70
|
@mixin button-primary-outline-icon() {
|
|
77
71
|
&::after {
|
|
78
72
|
background-color: get-color('primary');
|
|
@@ -87,8 +81,8 @@
|
|
|
87
81
|
|
|
88
82
|
@mixin button-secondary() {
|
|
89
83
|
color: get-color('white');
|
|
90
|
-
background-color: get-color('
|
|
91
|
-
border-color: get-color('
|
|
84
|
+
background-color: get-color('foreground');
|
|
85
|
+
border-color: get-color('foreground');
|
|
92
86
|
}
|
|
93
87
|
|
|
94
88
|
@mixin button-secondary-hover() {
|
|
@@ -97,74 +91,45 @@
|
|
|
97
91
|
border-color: get-color('primary');
|
|
98
92
|
}
|
|
99
93
|
|
|
94
|
+
@mixin button-secondary-focus() {
|
|
95
|
+
outline: 4px solid rgba-color('primary', 50%);
|
|
96
|
+
}
|
|
97
|
+
|
|
100
98
|
@mixin button-secondary-outline() {
|
|
101
|
-
color: get-color('
|
|
99
|
+
color: get-color('foreground');
|
|
102
100
|
background-color: transparent;
|
|
103
|
-
border-color: get-color('
|
|
101
|
+
border-color: get-color('foreground');
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
@mixin button-secondary-outline-hover() {
|
|
107
105
|
color: get-color('white');
|
|
108
|
-
background-color: get-color('
|
|
109
|
-
border-color: get-color('
|
|
106
|
+
background-color: get-color('foreground');
|
|
107
|
+
border-color: get-color('foreground');
|
|
110
108
|
}
|
|
111
109
|
|
|
112
|
-
@mixin button-secondary-outline-
|
|
113
|
-
|
|
114
|
-
background-color: get-color('secondary');
|
|
115
|
-
}
|
|
110
|
+
@mixin button-secondary-outline-focus() {
|
|
111
|
+
outline: 4px solid rgba-color('foreground', 50%);
|
|
116
112
|
}
|
|
117
113
|
|
|
118
|
-
@mixin button-secondary-outline-icon
|
|
119
|
-
&::after {
|
|
120
|
-
background-color: get-color('white');
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@mixin button-tertiary() {
|
|
125
|
-
color: get-color('white');
|
|
126
|
-
background-color: get-color('black');
|
|
127
|
-
border-color: get-color('black');
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@mixin button-tertiary-hover() {
|
|
131
|
-
color: get-color('white');
|
|
132
|
-
background-color: get-color('grey');
|
|
133
|
-
border-color: get-color('grey');
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@mixin button-tertiary-outline() {
|
|
137
|
-
color: get-color('black');
|
|
138
|
-
background-color: transparent;
|
|
139
|
-
border-color: get-color('black');
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
@mixin button-tertiary-outline-hover() {
|
|
143
|
-
color: get-color('white');
|
|
144
|
-
background-color: get-color('black');
|
|
145
|
-
border-color: get-color('black');
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
@mixin button-tertiary-outline-icon() {
|
|
114
|
+
@mixin button-secondary-outline-icon() {
|
|
149
115
|
&::after {
|
|
150
|
-
background-color: get-color('
|
|
116
|
+
background-color: get-color('foreground');
|
|
151
117
|
}
|
|
152
118
|
}
|
|
153
119
|
|
|
154
|
-
@mixin button-
|
|
120
|
+
@mixin button-secondary-outline-icon-hover() {
|
|
155
121
|
&::after {
|
|
156
122
|
background-color: get-color('white');
|
|
157
123
|
}
|
|
158
124
|
}
|
|
159
125
|
|
|
160
126
|
@mixin button-small() {
|
|
161
|
-
padding:
|
|
127
|
+
padding: px-rem(10) px-rem(20);
|
|
162
128
|
font-size: get-font-size('small');
|
|
163
|
-
line-height: get-line-height('normal');
|
|
164
129
|
}
|
|
165
130
|
|
|
166
131
|
@mixin button-large() {
|
|
167
|
-
padding:
|
|
132
|
+
padding: px-rem(16) px-rem(28);
|
|
168
133
|
}
|
|
169
134
|
|
|
170
135
|
@mixin button-loading($color: currentColor) {
|
|
@@ -34,8 +34,7 @@ class ACF {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
megaMenuFields() {
|
|
37
|
-
jQuery(document).on('menu-item-added', (
|
|
38
|
-
console.log('menu-item-added', event);
|
|
37
|
+
jQuery(document).on('menu-item-added', () => {
|
|
39
38
|
this.megaMenuData.submenuFields = document.querySelectorAll(
|
|
40
39
|
this.megaMenuData.submenuFieldsSelector,
|
|
41
40
|
);
|
package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks-styles.js
CHANGED
|
@@ -11,8 +11,9 @@ class BlocksStyles {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
unregisterBlockStyles() {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
setTimeout(() => {
|
|
15
|
+
unregisterBlockStyle('core/button', ['fill', 'outline']);
|
|
16
|
+
}, 10);
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
registerBlockStyles() {
|
|
@@ -6,11 +6,21 @@ class Utils {
|
|
|
6
6
|
ajax: { url, nonce },
|
|
7
7
|
} = chiselScripts;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
formData
|
|
13
|
-
}
|
|
9
|
+
let formData;
|
|
10
|
+
|
|
11
|
+
if (ajaxData instanceof FormData) {
|
|
12
|
+
formData = ajaxData;
|
|
13
|
+
} else {
|
|
14
|
+
formData = new FormData();
|
|
15
|
+
|
|
16
|
+
Object.entries(ajaxData).forEach(([key, value]) => {
|
|
17
|
+
if (typeof value === 'object' && value !== null && !['file', 'files'].includes(key)) {
|
|
18
|
+
formData.append(key, JSON.stringify(value));
|
|
19
|
+
} else {
|
|
20
|
+
formData.append(key, value);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
14
24
|
|
|
15
25
|
const params = {
|
|
16
26
|
method: 'POST',
|
package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-button.scss
CHANGED
|
@@ -25,6 +25,10 @@ $_static-icons: settings.$static-icons;
|
|
|
25
25
|
&:focus {
|
|
26
26
|
@include button-primary-hover;
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
&:focus {
|
|
30
|
+
@include button-primary-focus;
|
|
31
|
+
}
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
&.is-style-primary-outline .wp-block-button__link {
|
|
@@ -36,6 +40,10 @@ $_static-icons: settings.$static-icons;
|
|
|
36
40
|
@include button-primary-outline-hover;
|
|
37
41
|
@include button-primary-outline-icon-hover;
|
|
38
42
|
}
|
|
43
|
+
|
|
44
|
+
&:focus {
|
|
45
|
+
@include button-primary-outline-focus;
|
|
46
|
+
}
|
|
39
47
|
}
|
|
40
48
|
|
|
41
49
|
&.is-style-secondary .wp-block-button__link {
|
|
@@ -45,6 +53,10 @@ $_static-icons: settings.$static-icons;
|
|
|
45
53
|
&:focus {
|
|
46
54
|
@include button-secondary-hover;
|
|
47
55
|
}
|
|
56
|
+
|
|
57
|
+
&:focus {
|
|
58
|
+
@include button-secondary-focus;
|
|
59
|
+
}
|
|
48
60
|
}
|
|
49
61
|
|
|
50
62
|
&.is-style-secondary-outline .wp-block-button__link {
|
|
@@ -56,25 +68,9 @@ $_static-icons: settings.$static-icons;
|
|
|
56
68
|
@include button-secondary-outline-hover;
|
|
57
69
|
@include button-secondary-outline-icon-hover;
|
|
58
70
|
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&.is-style-tertiary .wp-block-button__link {
|
|
62
|
-
@include button-tertiary;
|
|
63
71
|
|
|
64
|
-
&:hover,
|
|
65
72
|
&:focus {
|
|
66
|
-
@include button-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&.is-style-tertiary-outline .wp-block-button__link {
|
|
71
|
-
@include button-tertiary-outline;
|
|
72
|
-
@include button-tertiary-outline-icon;
|
|
73
|
-
|
|
74
|
-
&:hover,
|
|
75
|
-
&:focus {
|
|
76
|
-
@include button-tertiary-outline-hover;
|
|
77
|
-
@include button-tertiary-outline-icon-hover;
|
|
73
|
+
@include button-secondary-outline-focus;
|
|
78
74
|
}
|
|
79
75
|
}
|
|
80
76
|
|
|
@@ -97,16 +93,6 @@ $_static-icons: settings.$static-icons;
|
|
|
97
93
|
|
|
98
94
|
&.has-icon {
|
|
99
95
|
.wp-block-button__link {
|
|
100
|
-
@include button-icon;
|
|
101
|
-
|
|
102
|
-
&.is-size-small .wp-block-button__link {
|
|
103
|
-
@include button-icon-small;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&.is-size-large .wp-block-button__link {
|
|
107
|
-
@include button-icon-large;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
96
|
&::after,
|
|
111
97
|
&::before {
|
|
112
98
|
display: block;
|
package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_badge.scss
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
color: get-color('white');
|
|
9
9
|
text-decoration: none;
|
|
10
10
|
text-transform: uppercase;
|
|
11
|
-
background-color: get-color('
|
|
11
|
+
background-color: get-color('foreground');
|
|
12
12
|
border-radius: get-border-radius('little');
|
|
13
13
|
transition: get-transition('normal');
|
|
14
14
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.is-disabled & {
|
|
21
|
-
color: get-color('grey');
|
|
22
|
-
background-color: get-color('
|
|
21
|
+
color: get-color('grey-900');
|
|
22
|
+
background-color: get-color('grey-100');
|
|
23
23
|
}
|
|
24
24
|
}
|
package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_buttons.scss
CHANGED
|
@@ -25,6 +25,10 @@ $_static-icons: settings.$static-icons;
|
|
|
25
25
|
@include button-primary-hover;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
.c-btn--primary:focus {
|
|
29
|
+
@include button-primary-focus;
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
.c-btn--primary-outline {
|
|
29
33
|
@include button-primary-outline;
|
|
30
34
|
@include button-primary-outline-icon;
|
|
@@ -36,6 +40,10 @@ $_static-icons: settings.$static-icons;
|
|
|
36
40
|
@include button-primary-outline-icon-hover;
|
|
37
41
|
}
|
|
38
42
|
|
|
43
|
+
.c-btn--primary-outline:focus {
|
|
44
|
+
@include button-primary-outline-focus;
|
|
45
|
+
}
|
|
46
|
+
|
|
39
47
|
.c-btn--secondary {
|
|
40
48
|
@include button-secondary;
|
|
41
49
|
}
|
|
@@ -45,6 +53,10 @@ $_static-icons: settings.$static-icons;
|
|
|
45
53
|
@include button-secondary-hover;
|
|
46
54
|
}
|
|
47
55
|
|
|
56
|
+
.c-btn--secondary:focus {
|
|
57
|
+
@include button-secondary-focus;
|
|
58
|
+
}
|
|
59
|
+
|
|
48
60
|
.c-btn--secondary-outline {
|
|
49
61
|
@include button-secondary-outline;
|
|
50
62
|
@include button-secondary-outline-icon;
|
|
@@ -56,24 +68,8 @@ $_static-icons: settings.$static-icons;
|
|
|
56
68
|
@include button-secondary-outline-icon-hover;
|
|
57
69
|
}
|
|
58
70
|
|
|
59
|
-
.c-btn--
|
|
60
|
-
@include button-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.c-btn--tertiary:hover,
|
|
64
|
-
.c-btn--tertiary:focus {
|
|
65
|
-
@include button-tertiary-hover;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.c-btn--tertiary-outline {
|
|
69
|
-
@include button-tertiary-outline;
|
|
70
|
-
@include button-tertiary-outline-icon;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.c-btn--tertiary-outline:hover,
|
|
74
|
-
.c-btn--tertiary-outline:focus {
|
|
75
|
-
@include button-tertiary-outline-hover;
|
|
76
|
-
@include button-tertiary-outline-icon-hover;
|
|
71
|
+
.c-btn--secondary-outline:focus {
|
|
72
|
+
@include button-secondary-outline-focus;
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
.c-btn--small {
|
|
@@ -94,16 +90,6 @@ $_static-icons: settings.$static-icons;
|
|
|
94
90
|
}
|
|
95
91
|
|
|
96
92
|
.c-btn.has-icon {
|
|
97
|
-
@include button-icon;
|
|
98
|
-
|
|
99
|
-
&.c-btn--small {
|
|
100
|
-
@include button-icon-small;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&.c-btn--large {
|
|
104
|
-
@include button-icon-large;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
93
|
&::after,
|
|
108
94
|
&::before {
|
|
109
95
|
display: block;
|
package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_footer.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '~design' as *;
|
|
2
2
|
|
|
3
3
|
.c-footer {
|
|
4
|
-
background-color: get-color('
|
|
4
|
+
background-color: get-color('grey-100');
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.c-footer__inner {
|
|
@@ -16,3 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
.c-footer__copyright {
|
|
21
|
+
padding: 0 0 get-padding('normal') 0;
|
|
22
|
+
font-size: get-font-size('small');
|
|
23
|
+
}
|
package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_main-nav.scss
CHANGED
|
@@ -108,11 +108,11 @@
|
|
|
108
108
|
&:focus,
|
|
109
109
|
.current-menu-item > &,
|
|
110
110
|
.current-menu-parent > & {
|
|
111
|
-
color: get-color('
|
|
111
|
+
color: get-color('foreground');
|
|
112
112
|
text-decoration: none;
|
|
113
113
|
|
|
114
114
|
.c-main-nav__caret::before {
|
|
115
|
-
border-top-color: get-color('
|
|
115
|
+
border-top-color: get-color('foreground');
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -210,15 +210,15 @@
|
|
|
210
210
|
&:hover,
|
|
211
211
|
&:focus,
|
|
212
212
|
.current-menu-item > & {
|
|
213
|
-
color: get-color('
|
|
213
|
+
color: get-color('foreground');
|
|
214
214
|
text-decoration: none;
|
|
215
215
|
|
|
216
216
|
@include bp(large) {
|
|
217
|
-
background-color: get-color('
|
|
217
|
+
background-color: get-color('grey-100');
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
.c-main-nav__caret::before {
|
|
221
|
-
border-top-color: get-color('
|
|
221
|
+
border-top-color: get-color('foreground');
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
}
|
package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_slider.scss
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
background-color: rgba(255, 255, 255, 100%);
|
|
52
52
|
|
|
53
53
|
&::after {
|
|
54
|
-
color: get-color('
|
|
54
|
+
color: get-color('foreground');
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
|
|
101
101
|
.swiper-pagination-bullet-active-main,
|
|
102
102
|
.swiper-pagination:not(.swiper-pagination-dots-dynamic) .swiper-pagination-bullet-active {
|
|
103
|
-
background-color: get-color('
|
|
103
|
+
background-color: get-color('foreground');
|
|
104
104
|
opacity: 1;
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
&.swiper-slide-thumb-active img {
|
|
123
|
-
border: 2px solid get-color('
|
|
123
|
+
border: 2px solid get-color('foreground');
|
|
124
124
|
opacity: 1;
|
|
125
125
|
}
|
|
126
126
|
}
|
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
|
|