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.
Files changed (84) hide show
  1. package/CHANGELOG.md +10 -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/assets/images/chisel.svg +9 -0
  9. package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helpers/BlocksHelpers.php +1 -1
  10. package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helpers/ThemeHelpers.php +3 -3
  11. package/lib/commands/create/creators/app/chisel-starter-theme/inc/Helpers/WoocommerceHelpers.php +2 -2
  12. package/lib/commands/create/creators/app/chisel-starter-theme/inc/Plugins/Woocommerce.php +15 -0
  13. package/lib/commands/create/creators/app/chisel-starter-theme/inc/Traits/PageBlocks.php +56 -3
  14. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/AjaxEndpoints.php +12 -6
  15. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Blocks.php +9 -1
  16. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselImage.php +4 -0
  17. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselPost.php +3 -2
  18. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProduct.php +3 -2
  19. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/ChiselProductCategory.php +3 -2
  20. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Components.php +26 -12
  21. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/CustomPostTypes.php +1 -1
  22. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Site.php +1 -0
  23. package/lib/commands/create/creators/app/chisel-starter-theme/inc/WP/Twig.php +2 -2
  24. package/lib/commands/create/creators/app/chisel-starter-theme/patterns/cta.php +3 -5
  25. package/lib/commands/create/creators/app/chisel-starter-theme/patterns/features.php +42 -0
  26. package/lib/commands/create/creators/app/chisel-starter-theme/patterns/hero.php +48 -0
  27. package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks/accordion/style.scss +2 -2
  28. package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/block.json +1 -1
  29. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_buttons.scss +31 -66
  30. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_colors.scss +5 -0
  31. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_icon.scss +1 -0
  32. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_index.scss +1 -0
  33. package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_link.scss +1 -0
  34. package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/admin/acf.js +1 -2
  35. package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks-mods.js +1 -0
  36. package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/mods/core.js +57 -0
  37. package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/utils.js +15 -5
  38. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-button.scss +13 -27
  39. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-group.scss +14 -0
  40. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-latest-posts.scss +1 -1
  41. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-media-text.scss +7 -1
  42. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-query.scss +1 -1
  43. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core.scss +4 -0
  44. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_badge.scss +3 -3
  45. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_buttons.scss +14 -28
  46. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_footer.scss +6 -1
  47. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_header.scss +1 -1
  48. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_main-nav.scss +5 -5
  49. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_pagination.scss +1 -1
  50. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post-card.scss +1 -1
  51. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post.scss +3 -1
  52. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_posts-items.scss +1 -1
  53. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_sidebar.scss +1 -1
  54. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_slider.scss +3 -3
  55. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_form.scss +3 -3
  56. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_shared.scss +4 -0
  57. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/login.scss +2 -2
  58. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_wrapper.scss +5 -1
  59. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/utilities/_spacing.scss +3 -0
  60. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_general.scss +2 -2
  61. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_notices.scss +1 -1
  62. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_product-item.scss +4 -0
  63. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_product.scss +2 -2
  64. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_block-edit-selector.scss +2 -2
  65. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_core-spacer.scss +1 -1
  66. package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_render-appender.scss +2 -2
  67. package/lib/commands/create/creators/app/chisel-starter-theme/style.chisel-tpl.css +1 -1
  68. package/lib/commands/create/creators/app/chisel-starter-theme/theme.json +150 -37
  69. package/lib/commands/create/creators/app/chisel-starter-theme/views/components/footer.twig +8 -0
  70. package/lib/commands/create/creators/app/chisel-starter-theme/views/components/no-results.twig +1 -0
  71. package/lib/commands/create/creators/app/chisel-starter-theme/views/index.twig +4 -4
  72. package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-blog.twig +1 -1
  73. package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-woocommerce.twig +1 -1
  74. package/lib/commands/create/creators/app/chisel-starter-theme/views/single.twig +6 -4
  75. package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/archive-product.twig +2 -2
  76. package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/linked-products.twig +2 -2
  77. package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/single-product.twig +3 -3
  78. package/lib/commands/create/creators/app/chisel-starter-theme/webpack.config.js +11 -0
  79. package/lib/commands/create/creators/app/chisel-starter-theme/woocommerce.php +1 -1
  80. package/lib/commands/create/packages-versions.js +1 -1
  81. package/package.json +2 -2
  82. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/quicksand-700.woff2 +0 -0
  83. package/lib/commands/create/creators/app/chisel-starter-theme/assets/fonts/quicksand-regular.woff2 +0 -0
  84. package/lib/commands/create/creators/app/chisel-starter-theme/assets/images/chisel.png +0 -0
@@ -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: get-padding('small') get-padding('medium');
10
+ padding: px-rem(14) px-rem(24);
10
11
  font-size: get-font-size('normal');
11
12
  font-weight: 400;
12
- line-height: get-line-height('normal');
13
+ line-height: px-rem(24);
13
14
  text-decoration: none;
14
15
  appearance: none;
15
16
  cursor: pointer;
16
- border: 1px solid transparent;
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('secondary');
55
- border-color: get-color('secondary');
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('secondary');
91
- border-color: get-color('secondary');
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('secondary');
99
+ color: get-color('foreground');
102
100
  background-color: transparent;
103
- border-color: get-color('secondary');
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('secondary');
109
- border-color: get-color('secondary');
106
+ background-color: get-color('foreground');
107
+ border-color: get-color('foreground');
110
108
  }
111
109
 
112
- @mixin button-secondary-outline-icon() {
113
- &::after {
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-hover() {
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('black');
116
+ background-color: get-color('foreground');
151
117
  }
152
118
  }
153
119
 
154
- @mixin button-tertiary-outline-icon-hover() {
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: get-padding('little') get-padding('normal');
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: get-padding('normal') get-padding('large');
132
+ padding: px-rem(16) px-rem(28);
168
133
  }
169
134
 
170
135
  @mixin button-loading($color: currentColor) {
@@ -0,0 +1,5 @@
1
+ @use 'theme' as *;
2
+
3
+ @function rgba-color($color, $alpha: 50%) {
4
+ @return rgb(from get-color($color) r g b / $alpha);
5
+ }
@@ -22,6 +22,7 @@
22
22
  }
23
23
 
24
24
  mask-repeat: no-repeat;
25
+ mask-position: center;
25
26
  mask-size: contain;
26
27
  }
27
28
 
@@ -1,5 +1,6 @@
1
1
  @forward 'breakpoints';
2
2
  @forward 'buttons';
3
+ @forward 'colors';
3
4
  @forward 'icon';
4
5
  @forward 'link';
5
6
  @forward 'media';
@@ -1,5 +1,6 @@
1
1
  @mixin link() {
2
2
  text-decoration: underline;
3
+ text-underline-offset: 4px;
3
4
 
4
5
  &:hover {
5
6
  text-decoration: none;
@@ -34,8 +34,7 @@ class ACF {
34
34
  }
35
35
 
36
36
  megaMenuFields() {
37
- jQuery(document).on('menu-item-added', (event) => {
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
  );
@@ -1,3 +1,4 @@
1
+ import './mods/core';
1
2
  import './mods/core-button';
2
3
  import './mods/core-spacer';
3
4
  import './mods/blocks-alignment';
@@ -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
- const formData = new FormData();
10
-
11
- Object.entries(ajaxData).forEach(([key, value]) => {
12
- formData.append(key, value);
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',
@@ -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-tertiary-hover;
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;
@@ -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
+ }
@@ -9,7 +9,7 @@
9
9
  padding: get-padding('normal');
10
10
  overflow: hidden;
11
11
  background-color: get-color('white');
12
- border: 1px solid get-color('light-grey');
12
+ border: 1px solid get-color('grey-100');
13
13
  border-radius: get-border-radius('small');
14
14
  }
15
15
 
@@ -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;
@@ -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
  }