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/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
|
);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { __ } from '@wordpress/i18n';
|
|
2
|
+
import { addFilter } from '@wordpress/hooks';
|
|
3
|
+
import { createHigherOrderComponent } from '@wordpress/compose';
|
|
4
|
+
import { InspectorControls } from '@wordpress/blockEditor';
|
|
5
|
+
import { PanelBody, ToggleControl } from '@wordpress/components';
|
|
6
|
+
import { Fragment } from '@wordpress/element';
|
|
7
|
+
|
|
8
|
+
addFilter('blocks.registerBlockType', 'chisel/add-no-margin-attribute', (settings) => {
|
|
9
|
+
if (typeof settings.attributes !== 'undefined') {
|
|
10
|
+
settings.attributes = {
|
|
11
|
+
...settings.attributes,
|
|
12
|
+
disableBottomMargin: {
|
|
13
|
+
type: 'boolean',
|
|
14
|
+
default: false,
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
return settings;
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const addNoMarginToggle = createHigherOrderComponent((BlockEdit) => {
|
|
22
|
+
return (props) => {
|
|
23
|
+
const { attributes, setAttributes, isSelected } = props;
|
|
24
|
+
const { disableBottomMargin = false, className = '' } = attributes;
|
|
25
|
+
|
|
26
|
+
const onToggle = (checked) => {
|
|
27
|
+
let newClassName = className.replace(/\bu-no-margin-bottom\b/, '').trim();
|
|
28
|
+
if (checked) {
|
|
29
|
+
newClassName = `${newClassName} u-no-margin-bottom`.trim();
|
|
30
|
+
}
|
|
31
|
+
setAttributes({
|
|
32
|
+
disableBottomMargin: checked,
|
|
33
|
+
className: newClassName,
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<Fragment>
|
|
39
|
+
<BlockEdit {...props} />
|
|
40
|
+
{isSelected && (
|
|
41
|
+
<InspectorControls>
|
|
42
|
+
<PanelBody title={__('Spacing', 'chisel')}>
|
|
43
|
+
<ToggleControl
|
|
44
|
+
label={__('Disable bottom spacing', 'chisel')}
|
|
45
|
+
help={__('Removes the bottom spacing', 'chisel')}
|
|
46
|
+
checked={!!disableBottomMargin}
|
|
47
|
+
onChange={onToggle}
|
|
48
|
+
/>
|
|
49
|
+
</PanelBody>
|
|
50
|
+
</InspectorControls>
|
|
51
|
+
)}
|
|
52
|
+
</Fragment>
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
}, 'addNoMarginToggle');
|
|
56
|
+
|
|
57
|
+
addFilter('editor.BlockEdit', 'chisel/add-no-margin-toggle', addNoMarginToggle);
|
|
@@ -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/blocks/_core-group.scss
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use '~design' as *;
|
|
2
|
+
|
|
3
|
+
.wp-block-group-is-layout-constrained {
|
|
4
|
+
> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
|
|
5
|
+
max-width: get-layout-size('content');
|
|
6
|
+
margin-left: auto !important;
|
|
7
|
+
margin-right: auto !important;
|
|
8
|
+
padding-inline: get-padding('normal');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.wp-block-group.has-background.alignfull) {
|
|
13
|
+
padding: get-padding('small') 0;
|
|
14
|
+
}
|
|
@@ -15,9 +15,15 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
&.has-background {
|
|
19
|
+
> .wp-block-media-text__content {
|
|
20
|
+
padding: 0 get-padding('big');
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
@include bp-down(medium) {
|
|
19
25
|
&.is-stacked-on-mobile {
|
|
20
|
-
grid-template-columns: 100
|
|
26
|
+
grid-template-columns: 100% !important;
|
|
21
27
|
|
|
22
28
|
> .wp-block-media-text__media {
|
|
23
29
|
grid-row: 1;
|
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
|
}
|