@wordpress/base-styles 4.0.1-next.253d9b6e21.0 → 4.0.3

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 CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 4.0.0-next.0 (2021-08-18)
5
+ ## 4.0.0 (2021-09-09)
6
6
 
7
- ### Breaking Changes
7
+ ### Breaking Change
8
8
 
9
9
  - Remove the background-colors, foreground-colors, and gradient-colors mixins.
10
10
 
@@ -53,6 +53,7 @@ $gray-text-min: darken($gray, 18%); //#537994
53
53
  $gray-lighten-10: lighten($gray, 10%); // #a8bece
54
54
  $gray-lighten-20: lighten($gray, 20%); // #c8d7e1
55
55
  $gray-lighten-30: lighten($gray, 30%); // #e9eff3
56
+ $gray-darken-10: darken($gray, 10%);
56
57
  $gray-darken-20: darken($gray, 20%); // #4f748e
57
58
  $gray-darken-30: darken($gray, 30%); // #3d596d
58
59
 
@@ -102,6 +103,8 @@ $app-background-dark-alt: $background-dark-elevated;
102
103
  $modal-background: $white;
103
104
  $modal-background-dark: $background-dark-elevated;
104
105
 
106
+ $sub-heading: $gray-text-min;
107
+ $sub-heading-dark: $white;
105
108
  /**
106
109
  * Deprecated colors.
107
110
  * Please avoid using these.
package/_mixins.scss CHANGED
@@ -503,8 +503,12 @@
503
503
 
504
504
  // Deprecated from UI, kept for back-compat.
505
505
  @mixin gradient-colors-deprecated() {
506
- /* stylelint-disable function-comma-space-after */
506
+ /*
507
+ * Our classes uses the same values we set for gradient value attributes,
508
+ * and we can not use spacing because of WP multi site kses rule.
509
+ */
507
510
 
511
+ /* stylelint-disable function-comma-space-after */
508
512
  .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background {
509
513
  background: linear-gradient(135deg,rgba(0,208,132,1) 0%,rgba(6,147,227,1) 100%);
510
514
  }
@@ -528,5 +532,9 @@
528
532
  .has-nightshade-gradient-background {
529
533
  background: linear-gradient(135deg,rgb(51,9,104) 0%,rgb(49,205,207) 100%);
530
534
  }
535
+
536
+ .has-midnight-gradient-background {
537
+ background: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);
538
+ }
531
539
  /* stylelint-enable function-comma-space-after */
532
540
  }
package/_z-index.scss CHANGED
@@ -37,14 +37,15 @@ $z-layers: (
37
37
  ".edit-widgets-header": 30,
38
38
  ".block-library-button__inline-link .block-editor-url-input__suggestions": 6, // URL suggestions for button block above sibling inserter
39
39
  ".wp-block-cover__inner-container": 1, // InnerBlocks area inside cover image block
40
+ ".wp-block-cover.is-placeholder .components-placeholder.is-large": 1, // Cover block resizer component inside a large placeholder.
40
41
  ".wp-block-cover.has-background-dim::before": 1, // Overlay area inside block cover need to be higher than the video background.
41
42
  ".wp-block-cover__image-background": 0, // Image background inside cover block.
42
43
  ".wp-block-cover__video-background": 0, // Video background inside cover block.
43
44
  ".wp-block-template-part__placeholder-preview-filter-input": 1,
44
45
 
45
46
  // Navigation menu dropdown.
46
- ".has-child .wp-block-navigation-link__container": 28,
47
- ".has-child:hover .wp-block-navigation-link__container": 29,
47
+ ".has-child .wp-block-navigation__submenu-container": 28,
48
+ ".has-child:hover .wp-block-navigation__submenu-container": 29,
48
49
 
49
50
  // Active pill button
50
51
  ".components-button {:focus or .is-primary}": 1,
@@ -114,6 +115,8 @@ $z-layers: (
114
115
 
115
116
  // Show the navigation toggle above the skeleton header
116
117
  ".edit-site-navigation-toggle": 31,
118
+ // Show the navigation link above the skeleton header
119
+ ".edit-site-navigation-link": 31,
117
120
 
118
121
  // Show the FSE template previews above the editor and any open block toolbars
119
122
  ".edit-site-navigation-panel__preview": 32,
@@ -147,7 +150,7 @@ $z-layers: (
147
150
  ".components-popover.edit-widgets-more-menu__content": 99998,
148
151
  ".components-popover.block-editor-rich-text__inline-format-toolbar": 99998,
149
152
  ".components-popover.block-editor-warning__dropdown": 99998,
150
- ".components-popover.edit-navigation-header__menu-switcher-dropdown": 99998,
153
+ ".components-popover.edit-navigation-menu-actions__switcher-dropdown": 99998,
151
154
 
152
155
  ".components-autocomplete__results": 1000000,
153
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/base-styles",
3
- "version": "4.0.1-next.253d9b6e21.0",
3
+ "version": "4.0.3",
4
4
  "description": "Base SCSS utilities and variables for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "gitHead": "c4b9acee18dfcc1767c35631f90725c7d604c5e9"
26
+ "gitHead": "393c2b5533837fd637e998d23f0124c081a10df0"
27
27
  }