@wordpress/base-styles 5.4.0 → 5.6.0

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,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 5.6.0 (2024-08-21)
6
+
7
+ ## 5.5.0 (2024-08-07)
8
+
5
9
  ## 5.4.0 (2024-07-24)
6
10
 
7
11
  ## 5.3.0 (2024-07-10)
package/_animations.scss CHANGED
@@ -3,3 +3,8 @@
3
3
  animation-fill-mode: forwards;
4
4
  @include reduce-motion("animation");
5
5
  }
6
+
7
+ @mixin editor-canvas-resize-animation() {
8
+ transition: all 0.5s cubic-bezier(0.65, 0, 0.45, 1);
9
+ @include reduce-motion("transition");
10
+ }
package/_colors.scss CHANGED
@@ -17,7 +17,6 @@ $gray-100: #f0f0f0; // Used for light gray backgrounds.
17
17
  $white: #fff;
18
18
 
19
19
  // Opacities & additional colors.
20
- $dark-theme-focus: $white; // Focus color when the theme is dark.
21
20
  $dark-gray-placeholder: rgba($gray-900, 0.62);
22
21
  $medium-gray-placeholder: rgba($gray-900, 0.55);
23
22
  $light-gray-placeholder: rgba($white, 0.65);
@@ -26,3 +25,6 @@ $light-gray-placeholder: rgba($white, 0.65);
26
25
  $alert-yellow: #f0b849;
27
26
  $alert-red: #cc1818;
28
27
  $alert-green: #4ab866;
28
+
29
+ // Deprecated, please avoid using these.
30
+ $dark-theme-focus: $white; // Focus color when the theme is dark.
package/_mixins.scss CHANGED
@@ -162,22 +162,6 @@
162
162
  }
163
163
  }
164
164
 
165
- @mixin placeholder-style() {
166
- border-radius: $radius-block-ui;
167
-
168
- &::before {
169
- content: "";
170
- position: absolute;
171
- top: 0;
172
- right: 0;
173
- bottom: 0;
174
- left: 0;
175
- pointer-events: none;
176
- background: currentColor;
177
- opacity: 0.1;
178
- }
179
- }
180
-
181
165
  /**
182
166
  * Allows users to opt-out of animations via OS-level preferences.
183
167
  */
package/_variables.scss CHANGED
@@ -22,7 +22,6 @@ $text-editor-font-size: 15px;
22
22
  $editor-line-height: 1.8;
23
23
  $mobile-text-min-font-size: 16px; // Any font size below 16px will cause Mobile Safari to "zoom in".
24
24
 
25
-
26
25
  /**
27
26
  * Grid System.
28
27
  * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
@@ -40,6 +39,33 @@ $grid-unit-60: 6 * $grid-unit; // 48px
40
39
  $grid-unit-70: 7 * $grid-unit; // 56px
41
40
  $grid-unit-80: 8 * $grid-unit; // 64px
42
41
 
42
+ /**
43
+ * Radius scale.
44
+ */
45
+
46
+ $radius-x-small: 1px; // Applied to elements like buttons nested within primitives like inputs.
47
+ $radius-small: 2px; // Applied to most primitives.
48
+ $radius-medium: 4px; // Applied to containers with smaller padding.
49
+ $radius-large: 8px; // Applied to containers with larger padding.
50
+ $radius-full: 9999px; // For pills.
51
+ $radius-round: 50%; // For circles and ovals.
52
+
53
+ /**
54
+ * Elevation scale.
55
+ */
56
+
57
+ // For sections and containers that group related content and controls, which may overlap other content. Example: Preview Frame.
58
+ $elevation-x-small: 0 0.7px 1px rgba($black, 0.1), 0 1.2px 1.7px -0.2px rgba($black, 0.1), 0 2.3px 3.3px -0.5px rgba($black, 0.1);
59
+
60
+ // For components that provide contextual feedback without being intrusive. Generally non-interruptive. Example: Tooltips, Snackbar.
61
+ $elevation-small: 0 0.7px 1px 0 rgba(0, 0, 0, 0.12), 0 2.2px 3.7px -0.2px rgba(0, 0, 0, 0.12), 0 5.3px 7.3px -0.5px rgba(0, 0, 0, 0.12);
62
+
63
+ // For components that offer additional actions. Example: Menus, Command Palette
64
+ $elevation-medium: 0 0.7px 1px 0 rgba(0, 0, 0, 0.14), 0 4.2px 5.7px -0.2px rgba(0, 0, 0, 0.14), 0 7.3px 9.3px -0.5px rgba(0, 0, 0, 0.14);
65
+
66
+ // For components that confirm decisions or handle necessary interruptions. Example: Modals.
67
+ $elevation-large: 0 0.7px 1px rgba($black, 0.15), 0 2.7px 3.8px -0.2px rgba($black, 0.15), 0 5.5px 7.8px -0.3px rgba($black, 0.15), 0.1px 11.5px 16.4px -0.5px rgba($black, 0.15);
68
+
43
69
  /**
44
70
  * Dimensions.
45
71
  */
@@ -64,14 +90,6 @@ $modal-width-large: 840px;
64
90
  $spinner-size: 16px;
65
91
  $canvas-padding: $grid-unit-20;
66
92
 
67
-
68
- /**
69
- * Shadows.
70
- */
71
-
72
- $shadow-popover: 0 0.7px 1px rgba($black, 0.1), 0 1.2px 1.7px -0.2px rgba($black, 0.1), 0 2.3px 3.3px -0.5px rgba($black, 0.1);
73
- $shadow-modal: 0 0.7px 1px rgba($black, 0.15), 0 2.7px 3.8px -0.2px rgba($black, 0.15), 0 5.5px 7.8px -0.3px rgba($black, 0.15), 0.1px 11.5px 16.4px -0.5px rgba($black, 0.15);
74
-
75
93
  /**
76
94
  * Editor widths.
77
95
  */
@@ -80,7 +98,7 @@ $sidebar-width: 280px;
80
98
  $content-width: 840px;
81
99
  $wide-content-width: 1100px;
82
100
  $widget-area-width: 700px;
83
-
101
+ $secondary-sidebar-width: 350px;
84
102
 
85
103
  /**
86
104
  * Block & Editor UI.
@@ -91,13 +109,14 @@ $border-width: 1px;
91
109
  $border-width-focus-fallback: 2px; // This exists as a fallback, and is ideally overridden by var(--wp-admin-border-width-focus) unless in some SASS math cases.
92
110
  $border-width-tab: 1.5px;
93
111
  $helptext-font-size: 12px;
94
- $radius-round: 50%;
95
- $radius-block-ui: 2px;
96
112
  $radio-input-size: 16px;
97
113
  $radio-input-size-sm: 24px; // Width & height for small viewports.
98
114
 
99
115
  // Deprecated, please avoid using these.
100
116
  $block-padding: 14px; // Used to define space between block footprint and surrouding borders.
117
+ $radius-block-ui: $radius-small;
118
+ $shadow-popover: $elevation-x-small;
119
+ $shadow-modal: $elevation-large;
101
120
 
102
121
 
103
122
  /**
package/_z-index.scss CHANGED
@@ -208,6 +208,9 @@ $z-layers: (
208
208
  // Ensure checkbox + actions don't overlap table header
209
209
  ".dataviews-view-table thead": 1,
210
210
 
211
+ // Ensure selection checkbox stays above the preview field.
212
+ ".dataviews-view-grid__card .dataviews-selection-checkbox": 1,
213
+
211
214
  // Ensure quick actions toolbar appear above pagination
212
215
  ".dataviews-bulk-actions-toolbar": 2,
213
216
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/base-styles",
3
- "version": "5.4.0",
3
+ "version": "5.6.0",
4
4
  "description": "Base SCSS utilities and variables for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "363edb39b8dda8727f652e42cbb8497732693ed2"
30
+ "gitHead": "ab9564947967bb3f00343130954b9efacba6cdd7"
31
31
  }