generator-chisel 2.2.0 → 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.
Files changed (68) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -11
  3. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/manrope-700.woff2 +0 -0
  4. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/manrope-regular.woff2 +0 -0
  5. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/roboto-300.woff2 +0 -0
  6. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/roboto-700.woff2 +0 -0
  7. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/roboto-regular.woff2 +0 -0
  8. package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helpers/BlocksHelpers.php +1 -1
  9. package/lib/commands/create/creators/app/chisel-starter-theme/inc/Traits/PageBlocks.php +56 -3
  10. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselImage.php +4 -0
  11. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselPost.php +3 -2
  12. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProduct.php +3 -2
  13. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProductCategory.php +3 -2
  14. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Components.php +25 -11
  15. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/CustomPostTypes.php +1 -1
  16. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Site.php +1 -0
  17. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Twig.php +2 -2
  18. package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/style.scss +2 -2
  19. package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/block.json +1 -1
  20. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_buttons.scss +31 -66
  21. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_colors.scss +5 -0
  22. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_icon.scss +1 -0
  23. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_index.scss +1 -0
  24. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_link.scss +1 -0
  25. package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/admin/acf.js +1 -2
  26. package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/utils.js +15 -5
  27. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-button.scss +13 -27
  28. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-latest-posts.scss +1 -1
  29. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-media-text.scss +1 -1
  30. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-query.scss +1 -1
  31. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core.scss +4 -0
  32. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_badge.scss +3 -3
  33. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_buttons.scss +14 -28
  34. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_footer.scss +6 -1
  35. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_header.scss +1 -1
  36. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_main-nav.scss +5 -5
  37. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_pagination.scss +1 -1
  38. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post-card.scss +1 -1
  39. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post.scss +3 -1
  40. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_posts-items.scss +1 -1
  41. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_sidebar.scss +1 -1
  42. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_slider.scss +3 -3
  43. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_form.scss +3 -3
  44. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_shared.scss +4 -0
  45. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/login.scss +2 -2
  46. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_wrapper.scss +5 -1
  47. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_general.scss +2 -2
  48. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_notices.scss +1 -1
  49. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_product.scss +2 -2
  50. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_block-edit-selector.scss +2 -2
  51. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_core-spacer.scss +1 -1
  52. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_render-appender.scss +2 -2
  53. package/lib/commands/create/creators/app/chisel-starter-theme/style.chisel-tpl.css +1 -1
  54. package/lib/commands/create/creators/app/chisel-starter-theme/theme.json +150 -37
  55. package/lib/commands/create/creators/app/chisel-starter-theme/views/components/footer.twig +8 -0
  56. package/lib/commands/create/creators/app/chisel-starter-theme/views/index.twig +3 -3
  57. package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-blog.twig +1 -1
  58. package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-woocommerce.twig +1 -1
  59. package/lib/commands/create/creators/app/chisel-starter-theme/views/single.twig +6 -4
  60. package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/archive-product.twig +2 -2
  61. package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/linked-products.twig +1 -1
  62. package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/single-product.twig +3 -3
  63. package/lib/commands/create/creators/app/chisel-starter-theme/webpack.config.js +11 -0
  64. package/lib/commands/create/creators/app/chisel-starter-theme/woocommerce.php +1 -1
  65. package/lib/commands/create/packages-versions.js +1 -1
  66. package/package.json +2 -2
  67. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/quicksand-700.woff2 +0 -0
  68. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/quicksand-regular.woff2 +0 -0
@@ -17,7 +17,7 @@
17
17
 
18
18
  @include bp-down(medium) {
19
19
  &.is-stacked-on-mobile {
20
- grid-template-columns: 100%;
20
+ grid-template-columns: 100% !important;
21
21
 
22
22
  > .wp-block-media-text__media {
23
23
  grid-row: 1;
@@ -40,7 +40,7 @@
40
40
  text-decoration: none;
41
41
 
42
42
  &.current {
43
- color: get-color('secondary');
43
+ color: get-color('foreground');
44
44
  text-decoration: underline;
45
45
  }
46
46
  }
@@ -53,6 +53,10 @@
53
53
  &--separator {
54
54
  margin: 0 auto get-margin('medium');
55
55
  }
56
+
57
+ .alignwide {
58
+ max-width: get-layout-size('wide');
59
+ }
56
60
  }
57
61
 
58
62
  .wp-element-caption {
@@ -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('secondary');
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('light-grey');
21
+ color: get-color('grey-900');
22
+ background-color: get-color('grey-100');
23
23
  }
24
24
  }
@@ -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--tertiary {
60
- @include button-tertiary;
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;
@@ -1,7 +1,7 @@
1
1
  @use '~design' as *;
2
2
 
3
3
  .c-footer {
4
- background-color: get-color('light-grey');
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
+ }
@@ -1,7 +1,7 @@
1
1
  @use '~design' as *;
2
2
 
3
3
  .c-header {
4
- background-color: get-color('light-grey');
4
+ background-color: get-color('grey-100');
5
5
 
6
6
  .c-logo {
7
7
  max-width: px-rem(200);
@@ -108,11 +108,11 @@
108
108
  &:focus,
109
109
  .current-menu-item > &,
110
110
  .current-menu-parent > & {
111
- color: get-color('secondary');
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('secondary');
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('secondary');
213
+ color: get-color('foreground');
214
214
  text-decoration: none;
215
215
 
216
216
  @include bp(large) {
217
- background-color: get-color('light-grey');
217
+ background-color: get-color('grey-100');
218
218
  }
219
219
 
220
220
  .c-main-nav__caret::before {
221
- border-top-color: get-color('secondary');
221
+ border-top-color: get-color('foreground');
222
222
  }
223
223
  }
224
224
  }
@@ -26,7 +26,7 @@
26
26
  text-decoration: none;
27
27
 
28
28
  &.current {
29
- color: get-color('secondary');
29
+ color: get-color('foreground');
30
30
  text-decoration: underline;
31
31
  }
32
32
  }
@@ -7,6 +7,6 @@
7
7
  width: 100%;
8
8
  padding: get-padding('normal');
9
9
  background-color: get-color('white');
10
- border: 1px solid get-color('light-grey');
10
+ border: 1px solid get-color('grey-100');
11
11
  border-radius: get-border-radius('small');
12
12
  }
@@ -6,7 +6,9 @@
6
6
  }
7
7
 
8
8
  .c-post__inner {
9
- margin-bottom: get-margin('medium');
9
+ .single & {
10
+ margin-bottom: get-margin('medium');
11
+ }
10
12
  }
11
13
 
12
14
  .c-post__meta {
@@ -11,7 +11,7 @@
11
11
  width: 100%;
12
12
  padding: get-padding('normal');
13
13
  background-color: get-color('white');
14
- border: 1px solid get-color('light-grey');
14
+ border: 1px solid get-color('grey-100');
15
15
  border-radius: get-border-radius('small');
16
16
 
17
17
  @include bp(msmall) {
@@ -15,6 +15,6 @@
15
15
  .c-sidebar__inner {
16
16
  padding: get-padding('normal');
17
17
  background-color: get-color('white');
18
- border: 1px solid get-color('light-grey');
18
+ border: 1px solid get-color('grey-100');
19
19
  border-radius: get-border-radius('small');
20
20
  }
@@ -51,7 +51,7 @@
51
51
  background-color: rgba(255, 255, 255, 100%);
52
52
 
53
53
  &::after {
54
- color: get-color('secondary');
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('secondary');
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('secondary');
123
+ border: 2px solid get-color('foreground');
124
124
  opacity: 1;
125
125
  }
126
126
  }
@@ -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('medium-grey');
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('secondary');
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');
@@ -42,3 +42,7 @@ mark {
42
42
  font-weight: 700;
43
43
  background-color: transparent;
44
44
  }
45
+
46
+ strong {
47
+ font-weight: 700;
48
+ }
@@ -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('light-grey') 0%, get-color('white') 100%);
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('light-grey'), rgba(255, 255, 255, 50%));
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
 
@@ -13,6 +13,10 @@
13
13
  .o-wrapper__inner {
14
14
  width: 100%;
15
15
  max-width: get-layout-size('content');
16
- padding-inline: get-padding('small');
16
+ padding-inline: get-padding('normal');
17
17
  margin-inline: auto;
18
+
19
+ &--wide {
20
+ max-width: get-layout-size('wide');
21
+ }
18
22
  }
@@ -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('secondary');
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('secondary');
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('light-grey');
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('light-grey');
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('light-grey');
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('light-grey');
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('light-grey');
31
+ border: 1px solid get-color('grey-100');
32
32
  box-shadow: none !important;
33
33
 
34
34
  &.is-large {
@@ -5,7 +5,7 @@
5
5
  @include meta.load-css('../blocks/core-spacer');
6
6
 
7
7
  .wp-block-spacer {
8
- background-color: get-color('light-grey');
8
+ background-color: get-color('grey-100');
9
9
 
10
10
  .components-resizable-box__container {
11
11
  display: none;
@@ -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('light-grey');
19
- border: 1px solid get-color('medium-grey');
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.0
6
+ * Version: 2.2.1
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