| @@ -1,9 +1,5 @@ | ||
| 1 | -@charset "UTF-8"; | |
| 2 | 1 | /** |
| 3 | - * Colors | |
| 4 | - */ | |
| 5 | -/** | |
| 6 | 2 | * Typography |
| 7 | 3 | */ |
| 8 | 4 | /** |
| 9 | 5 | * SCSS Variables. |
| @@ -12,8 +8,11 @@ | ||
| 12 | 8 | * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
| 13 | 9 | * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
| 14 | 10 | */ |
| 15 | 11 | /** |
| 12 | + * Colors | |
| 13 | + */ | |
| 14 | +/** | |
| 16 | 15 | * Fonts & basic variables. |
| 17 | 16 | */ |
| 18 | 17 | /** |
| 19 | 18 | * Typography |
| @@ -68,8 +67,14 @@ | ||
| 68 | 67 | /** |
| 69 | 68 | * Focus styles. |
| 70 | 69 | */ |
| 71 | 70 | /** |
| 71 | + * Standard focus rings for the WordPress Design System. | |
| 72 | + * | |
| 73 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 74 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 75 | + */ | |
| 76 | +/** | |
| 72 | 77 | * Applies editor left position to the selector passed as argument |
| 73 | 78 | */ |
| 74 | 79 | /** |
| 75 | 80 | * Styles that are reused verbatim in a few places |
| @@ -107,9 +112,9 @@ | ||
| 107 | 112 | } |
| 108 | 113 | } |
| 109 | 114 | |
| 110 | 115 | /** |
| 111 | - * Colors | |
| 116 | + * Typography | |
| 112 | 117 | */ |
| 113 | 118 | /** |
| 114 | 119 | * SCSS Variables. |
| 115 | 120 | * |
| @@ -117,8 +122,11 @@ | ||
| 117 | 122 | * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
| 118 | 123 | * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
| 119 | 124 | */ |
| 120 | 125 | /** |
| 126 | + * Colors | |
| 127 | + */ | |
| 128 | +/** | |
| 121 | 129 | * Fonts & basic variables. |
| 122 | 130 | */ |
| 123 | 131 | /** |
| 124 | 132 | * Typography |
| @@ -152,11 +160,8 @@ | ||
| 152 | 160 | * React Native specific. |
| 153 | 161 | * These variables do not appear to be used anywhere else. |
| 154 | 162 | */ |
| 155 | 163 | /** |
| 156 | - * Typography | |
| 157 | - */ | |
| 158 | -/** | |
| 159 | 164 | * Breakpoints & Media Queries |
| 160 | 165 | */ |
| 161 | 166 | /** |
| 162 | 167 | * Converts a hex value into the rgb equivalent. |
| @@ -176,8 +181,14 @@ | ||
| 176 | 181 | /** |
| 177 | 182 | * Focus styles. |
| 178 | 183 | */ |
| 179 | 184 | /** |
| 185 | + * Standard focus rings for the WordPress Design System. | |
| 186 | + * | |
| 187 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 188 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 189 | + */ | |
| 190 | +/** | |
| 180 | 191 | * Applies editor left position to the selector passed as argument |
| 181 | 192 | */ |
| 182 | 193 | /** |
| 183 | 194 | * Styles that are reused verbatim in a few places |
| @@ -198,23 +209,24 @@ | ||
| 198 | 209 | */ |
| 199 | 210 | .dataviews-wrapper, |
| 200 | 211 | .dataviews-picker-wrapper { |
| 201 | 212 | height: 100%; |
| 213 | + flex-grow: 1; | |
| 214 | + min-height: 0; | |
| 202 | 215 | box-sizing: border-box; |
| 203 | 216 | scroll-padding-bottom: 64px; |
| 204 | - /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */ | |
| 205 | 217 | container: dataviews-wrapper/inline-size; |
| 206 | 218 | display: flex; |
| 207 | 219 | flex-direction: column; |
| 208 | - font-size: 13px; | |
| 209 | - line-height: 1.4; | |
| 210 | - background-color: var(--wp-dataviews-color-background, #fff); | |
| 220 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 221 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 222 | + background-color: var(--wp-dataviews-color-background, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 211 | 223 | } |
| 212 | 224 | |
| 213 | 225 | .dataviews__view-actions, |
| 214 | 226 | .dataviews-filters__container { |
| 215 | 227 | box-sizing: border-box; |
| 216 | - padding: 16px 24px; | |
| 228 | + padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px); | |
| 217 | 229 | flex-shrink: 0; |
| 218 | 230 | position: sticky; |
| 219 | 231 | left: 0; |
| 220 | 232 | background-color: inherit; |
| @@ -225,11 +237,19 @@ | ||
| 225 | 237 | .dataviews-filters__container { |
| 226 | 238 | transition: padding ease-out 0.1s; |
| 227 | 239 | } |
| 228 | 240 | } |
| 241 | +.dataviews__search { | |
| 242 | + flex-grow: 1; | |
| 243 | +} | |
| 244 | + | |
| 245 | +.dataviews__search .dataviews-search { | |
| 246 | + flex-basis: 210px; | |
| 247 | +} | |
| 248 | + | |
| 229 | 249 | .dataviews-no-results, |
| 230 | 250 | .dataviews-loading { |
| 231 | - padding: 0 24px; | |
| 251 | + padding: 0 var(--wpds-dimension-padding-2xl, 24px); | |
| 232 | 252 | flex-grow: 1; |
| 233 | 253 | display: flex; |
| 234 | 254 | align-items: center; |
| 235 | 255 | justify-content: center; |
| @@ -263,18 +283,22 @@ | ||
| 263 | 283 | .dataviews-loading-more { |
| 264 | 284 | text-align: center; |
| 265 | 285 | } |
| 266 | 286 | |
| 287 | +.dataviews-loading-more[aria-hidden=true] { | |
| 288 | + visibility: hidden; | |
| 289 | +} | |
| 290 | + | |
| 267 | 291 | @container (max-width: 430px) { |
| 268 | 292 | .dataviews__view-actions, |
| 269 | 293 | .dataviews-filters__container { |
| 270 | - padding: 12px 24px; | |
| 294 | + padding: var(--wpds-dimension-padding-md, 12px) var(--wpds-dimension-padding-2xl, 24px); | |
| 271 | 295 | } |
| 272 | 296 | } |
| 273 | 297 | .dataviews-title-field { |
| 274 | - font-size: 13px; | |
| 275 | - font-weight: 499; | |
| 276 | - color: #2f2f2f; | |
| 298 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 299 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 300 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 277 | 301 | text-overflow: ellipsis; |
| 278 | 302 | white-space: nowrap; |
| 279 | 303 | width: 100%; |
| 280 | 304 | } |
| @@ -285,13 +309,13 @@ | ||
| 285 | 309 | white-space: nowrap; |
| 286 | 310 | overflow: hidden; |
| 287 | 311 | display: block; |
| 288 | 312 | flex-grow: 0; |
| 289 | - color: #2f2f2f; | |
| 313 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 290 | 314 | } |
| 291 | 315 | |
| 292 | 316 | .dataviews-title-field a:hover { |
| 293 | - color: var(--wp-admin-theme-color); | |
| 317 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 294 | 318 | } |
| 295 | 319 | |
| 296 | 320 | .dataviews-title-field a:focus { |
| 297 | 321 | color: var(--wp-admin-theme-color--rgb); |
| @@ -306,22 +330,22 @@ | ||
| 306 | 330 | white-space: nowrap; |
| 307 | 331 | overflow: hidden; |
| 308 | 332 | display: block; |
| 309 | 333 | width: 100%; |
| 310 | - color: #1e1e1e; | |
| 334 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 311 | 335 | } |
| 312 | 336 | |
| 313 | 337 | .dataviews-title-field button.components-button.is-link:hover { |
| 314 | - color: var(--wp-admin-theme-color); | |
| 338 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 315 | 339 | } |
| 316 | 340 | |
| 317 | 341 | .dataviews-title-field--clickable { |
| 318 | 342 | cursor: var(--wpds-cursor-control, pointer); |
| 319 | - color: #2f2f2f; | |
| 343 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 320 | 344 | } |
| 321 | 345 | |
| 322 | 346 | .dataviews-title-field--clickable:hover { |
| 323 | - color: var(--wp-admin-theme-color); | |
| 347 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 324 | 348 | } |
| 325 | 349 | |
| 326 | 350 | .dataviews-title-field--clickable:focus { |
| 327 | 351 | color: var(--wp-admin-theme-color--rgb); |
| @@ -335,15 +359,24 @@ | ||
| 335 | 359 | z-index: 2; |
| 336 | 360 | background-color: #fff; |
| 337 | 361 | } |
| 338 | 362 | |
| 363 | +/** | |
| 364 | + * When DataViews are placed within cards, apply a consistent top padding. | |
| 365 | + */ | |
| 366 | +.components-card__body:has(> .dataviews-wrapper), | |
| 367 | +.components-card__body:has(> .dataviews-picker-wrapper) { | |
| 368 | + padding: var(--wpds-dimension-padding-sm, 8px) 0 0; | |
| 369 | + overflow: hidden; | |
| 370 | +} | |
| 371 | + | |
| 339 | 372 | .dataviews-bulk-actions-footer__item-count { |
| 340 | - color: #1e1e1e; | |
| 373 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 341 | 374 | } |
| 342 | 375 | |
| 343 | 376 | .dataviews-bulk-actions-footer__container { |
| 344 | 377 | margin-right: auto; |
| 345 | - min-height: 32px; | |
| 378 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 346 | 379 | } |
| 347 | 380 | |
| 348 | 381 | .dataviews-layout__container { |
| 349 | 382 | flex: 1; |
| @@ -370,10 +403,10 @@ | ||
| 370 | 403 | opacity: 1; |
| 371 | 404 | } |
| 372 | 405 | |
| 373 | 406 | .dataviews-filters__summary-popover { |
| 374 | - font-size: 13px; | |
| 375 | - line-height: 1.4; | |
| 407 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 408 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 376 | 409 | } |
| 377 | 410 | |
| 378 | 411 | .dataviews-filters__summary-popover .components-popover__content { |
| 379 | 412 | width: 100%; |
| @@ -378,9 +411,9 @@ | ||
| 378 | 411 | .dataviews-filters__summary-popover .components-popover__content { |
| 379 | 412 | width: 100%; |
| 380 | 413 | min-width: 230px; |
| 381 | 414 | max-width: 250px; |
| 382 | - border-radius: 4px; | |
| 415 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 383 | 416 | } |
| 384 | 417 | |
| 385 | 418 | .dataviews-filters__summary-popover.components-dropdown__content .components-popover__content { |
| 386 | 419 | padding: 0; |
| @@ -386,13 +419,13 @@ | ||
| 386 | 419 | padding: 0; |
| 387 | 420 | } |
| 388 | 421 | |
| 389 | 422 | .dataviews-filters__summary-operators-container { |
| 390 | - padding: 8px 16px; | |
| 423 | + padding: var(--wpds-dimension-padding-sm, 8px) var(--wpds-dimension-padding-lg, 16px); | |
| 391 | 424 | } |
| 392 | 425 | |
| 393 | 426 | .dataviews-filters__summary-operators-container:has(+ .dataviews-filters__search-widget-listbox), .dataviews-filters__summary-operators-container:has(+ .dataviews-filters__search-widget-no-elements), .dataviews-filters__summary-operators-container:has(+ .dataviews-filters__user-input-widget) { |
| 394 | - border-bottom: 1px solid #e0e0e0; | |
| 427 | + border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 395 | 428 | } |
| 396 | 429 | |
| 397 | 430 | .dataviews-filters__summary-operators-container:empty { |
| 398 | 431 | display: none; |
| @@ -398,9 +431,9 @@ | ||
| 398 | 431 | display: none; |
| 399 | 432 | } |
| 400 | 433 | |
| 401 | 434 | .dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name { |
| 402 | - color: #757575; | |
| 435 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 403 | 436 | white-space: nowrap; |
| 404 | 437 | overflow: hidden; |
| 405 | 438 | text-overflow: ellipsis; |
| 406 | 439 | flex-shrink: 0; /* Prevents this element from shrinking */ |
| @@ -408,10 +441,10 @@ | ||
| 408 | 441 | } |
| 409 | 442 | |
| 410 | 443 | .dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select { |
| 411 | 444 | width: 100%; |
| 445 | + min-width: 0; | |
| 412 | 446 | white-space: nowrap; |
| 413 | - overflow: hidden; | |
| 414 | 447 | } |
| 415 | 448 | |
| 416 | 449 | .dataviews-filters__summary-chip-container { |
| 417 | 450 | position: relative; |
| @@ -418,15 +451,14 @@ | ||
| 418 | 451 | white-space: pre-wrap; |
| 419 | 452 | } |
| 420 | 453 | |
| 421 | 454 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip { |
| 422 | - border-radius: 16px; | |
| 423 | - border: 1px solid transparent; | |
| 455 | + border-radius: var(--wpds-border-radius-lg, 8px); | |
| 456 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 424 | 457 | cursor: var(--wpds-cursor-control, pointer); |
| 425 | - padding: 4px 12px; | |
| 426 | - min-height: 32px; | |
| 427 | - background: #f0f0f0; | |
| 428 | - color: #2f2f2f; | |
| 458 | + padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-md, 12px); | |
| 459 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 460 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 429 | 461 | position: relative; |
| 430 | 462 | display: flex; |
| 431 | 463 | align-items: center; |
| 432 | 464 | box-sizing: border-box; |
| @@ -436,42 +468,46 @@ | ||
| 436 | 468 | cursor: default; |
| 437 | 469 | } |
| 438 | 470 | |
| 439 | 471 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset { |
| 440 | - padding-inline-end: 28px; | |
| 472 | + padding-inline-end: calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px)); | |
| 441 | 473 | } |
| 442 | 474 | |
| 443 | 475 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable), .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true] { |
| 444 | - background: #e0e0e0; | |
| 445 | - color: #1e1e1e; | |
| 476 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 477 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 478 | + background-color: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); | |
| 446 | 479 | } |
| 447 | 480 | |
| 448 | 481 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values { |
| 449 | - color: var(--wp-admin-theme-color); | |
| 450 | - background: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 482 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 483 | + background: var(--wpds-color-background-interactive-brand-weak, rgba(0, 0, 0, 0)); | |
| 484 | + border-color: var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 451 | 485 | } |
| 452 | 486 | |
| 453 | -.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true] { | |
| 454 | - background: rgba(var(--wp-admin-theme-color--rgb), 0.12); | |
| 487 | +.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values.is-not-clickable), .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true] { | |
| 488 | + color: var(--wpds-color-foreground-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 52%, black)); | |
| 489 | + background: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 490 | + border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)); | |
| 455 | 491 | } |
| 456 | 492 | |
| 457 | 493 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible { |
| 458 | 494 | outline: none; |
| 459 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 495 | + box-shadow: 0 0 0 var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 460 | 496 | } |
| 461 | 497 | |
| 462 | 498 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name { |
| 463 | - font-weight: 499; | |
| 499 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 464 | 500 | } |
| 465 | 501 | |
| 466 | 502 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove { |
| 467 | - width: 24px; | |
| 468 | - height: 24px; | |
| 469 | - border-radius: 50%; | |
| 503 | + width: var(--wpds-dimension-size-sm, 24px); | |
| 504 | + height: var(--wpds-dimension-size-sm, 24px); | |
| 505 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 470 | 506 | border: 0; |
| 471 | 507 | padding: 0; |
| 472 | 508 | position: absolute; |
| 473 | - right: 4px; | |
| 509 | + right: var(--wpds-dimension-padding-xs, 4px); | |
| 474 | 510 | top: 50%; |
| 475 | 511 | transform: translateY(-50%); |
| 476 | 512 | display: flex; |
| 477 | 513 | align-items: center; |
| @@ -480,45 +516,45 @@ | ||
| 480 | 516 | cursor: var(--wpds-cursor-control, pointer); |
| 481 | 517 | } |
| 482 | 518 | |
| 483 | 519 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg { |
| 484 | - fill: #757575; | |
| 520 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 485 | 521 | } |
| 486 | 522 | |
| 487 | 523 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus { |
| 488 | - background: #e0e0e0; | |
| 524 | + background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); | |
| 489 | 525 | } |
| 490 | 526 | |
| 491 | 527 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg { |
| 492 | - fill: #1e1e1e; | |
| 528 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 493 | 529 | } |
| 494 | 530 | |
| 495 | 531 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg { |
| 496 | - fill: var(--wp-admin-theme-color); | |
| 532 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 497 | 533 | } |
| 498 | 534 | |
| 499 | 535 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover { |
| 500 | - background: rgba(var(--wp-admin-theme-color--rgb), 0.08); | |
| 536 | + background: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 501 | 537 | } |
| 502 | 538 | |
| 503 | 539 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible { |
| 504 | 540 | outline: none; |
| 505 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 541 | + box-shadow: 0 0 0 var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 506 | 542 | } |
| 507 | 543 | |
| 508 | 544 | .dataviews-filters__search-widget-filter-combobox-list { |
| 509 | 545 | max-height: 184px; |
| 510 | - padding: 4px; | |
| 546 | + padding: var(--wpds-dimension-padding-xs, 4px); | |
| 511 | 547 | overflow: auto; |
| 512 | - border-top: 1px solid #e0e0e0; | |
| 548 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 513 | 549 | } |
| 514 | 550 | |
| 515 | 551 | .dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value] { |
| 516 | - font-weight: 600; | |
| 552 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 517 | 553 | } |
| 518 | 554 | |
| 519 | 555 | .dataviews-filters__search-widget-listbox { |
| 520 | - padding: 4px; | |
| 556 | + padding: var(--wpds-dimension-padding-xs, 4px); | |
| 521 | 557 | overflow: auto; |
| 522 | 558 | } |
| 523 | 559 | |
| 524 | 560 | .dataviews-filters__search-widget-listitem { |
| @@ -523,18 +559,19 @@ | ||
| 523 | 559 | |
| 524 | 560 | .dataviews-filters__search-widget-listitem { |
| 525 | 561 | display: flex; |
| 526 | 562 | align-items: center; |
| 527 | - gap: 8px; | |
| 528 | - border-radius: 2px; | |
| 563 | + gap: var(--wpds-dimension-gap-md, 12px); | |
| 564 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 529 | 565 | box-sizing: border-box; |
| 530 | - padding: 4px 12px; | |
| 566 | + padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-md, 12px); | |
| 531 | 567 | cursor: default; |
| 532 | - min-height: 32px; | |
| 533 | - font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 534 | - font-weight: 400; | |
| 568 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 569 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 570 | + font-weight: var(--wpds-typography-font-weight-default, 400); | |
| 535 | 571 | font-size: 13px; |
| 536 | 572 | line-height: 20px; |
| 573 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 537 | 574 | } |
| 538 | 575 | |
| 539 | 576 | .dataviews-filters__search-widget-listitem:last-child { |
| 540 | 577 | margin-block-end: 0; |
| @@ -540,35 +577,37 @@ | ||
| 540 | 577 | margin-block-end: 0; |
| 541 | 578 | } |
| 542 | 579 | |
| 543 | 580 | .dataviews-filters__search-widget-listitem:hover, .dataviews-filters__search-widget-listitem[data-active-item], .dataviews-filters__search-widget-listitem:focus { |
| 544 | - background-color: var(--wp-admin-theme-color); | |
| 545 | - color: #fff; | |
| 581 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 582 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 546 | 583 | } |
| 547 | 584 | |
| 548 | -.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description { | |
| 549 | - color: #fff; | |
| 550 | -} | |
| 551 | - | |
| 552 | 585 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection { |
| 553 | - border-color: var(--wp-admin-theme-color-darker-20, #183ad6); | |
| 554 | - background: #fff; | |
| 586 | + border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)); | |
| 587 | + background: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 555 | 588 | } |
| 556 | 589 | |
| 557 | 590 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected { |
| 558 | - border-color: var(--wp-admin-theme-color-darker-20, #183ad6); | |
| 559 | - background: var(--wp-admin-theme-color-darker-20, #183ad6); | |
| 591 | + border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)); | |
| 592 | + background: var(--wpds-color-background-interactive-brand-strong-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black)); | |
| 560 | 593 | } |
| 561 | 594 | |
| 562 | 595 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection { |
| 563 | - border-color: var(--wp-admin-theme-color-darker-20, #183ad6); | |
| 596 | + /* stylelint-disable-next-line plugin-wpds/no-token-fallback-values -- Preserve custom background theming with older @wordpress/theme runtimes that do not set this token. */ | |
| 597 | + background-color: var(--wpds-color-background-interactive-neutral, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 598 | + border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)); | |
| 564 | 599 | } |
| 565 | 600 | |
| 566 | 601 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected { |
| 567 | - border-color: var(--wp-admin-theme-color-darker-20, #183ad6); | |
| 568 | - background: var(--wp-admin-theme-color-darker-20, #183ad6); | |
| 602 | + border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)); | |
| 603 | + background: var(--wpds-color-background-interactive-brand-strong-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black)); | |
| 569 | 604 | } |
| 570 | 605 | |
| 606 | +.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description { | |
| 607 | + color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e); | |
| 608 | +} | |
| 609 | + | |
| 571 | 610 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value { |
| 572 | 611 | overflow: hidden; |
| 573 | 612 | text-overflow: ellipsis; |
| 574 | 613 | white-space: nowrap; |
| @@ -578,11 +617,11 @@ | ||
| 578 | 617 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description { |
| 579 | 618 | display: block; |
| 580 | 619 | overflow: hidden; |
| 581 | 620 | text-overflow: ellipsis; |
| 582 | - font-size: 12px; | |
| 621 | + font-size: var(--wpds-typography-font-size-sm, 12px); | |
| 583 | 622 | line-height: 16px; |
| 584 | - color: #757575; | |
| 623 | + color: var(--wpds-color-foreground-interactive-neutral-weak, #707070); | |
| 585 | 624 | } |
| 586 | 625 | |
| 587 | 626 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection { |
| 588 | 627 | border: 1px solid #1e1e1e; |
| @@ -643,10 +682,10 @@ | ||
| 643 | 682 | padding: 0; |
| 644 | 683 | } |
| 645 | 684 | |
| 646 | 685 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected { |
| 647 | - background: var(--wp-admin-theme-color, #3858e9); | |
| 648 | - border-color: var(--wp-admin-theme-color, #3858e9); | |
| 686 | + background: var(--wpds-color-background-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 687 | + border-color: var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 649 | 688 | } |
| 650 | 689 | |
| 651 | 690 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected::before { |
| 652 | 691 | content: ""; |
| @@ -658,10 +697,10 @@ | ||
| 658 | 697 | top: 50%; |
| 659 | 698 | left: 50%; |
| 660 | 699 | transform: translate(-50%, -50%); |
| 661 | 700 | margin: 0; |
| 662 | - background-color: #fff; | |
| 663 | - border: 4px solid #fff; | |
| 701 | + background-color: var(--wpds-color-foreground-interactive-brand-strong, #fff); | |
| 702 | + border: 4px solid var(--wpds-color-foreground-interactive-brand-strong, #fff); | |
| 664 | 703 | } |
| 665 | 704 | |
| 666 | 705 | @media (min-width: 600px) { |
| 667 | 706 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected::before { |
| @@ -671,28 +710,22 @@ | ||
| 671 | 710 | } |
| 672 | 711 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 673 | 712 | --checkbox-size: 24px; |
| 674 | 713 | flex-shrink: 0; |
| 675 | - border: 1px solid #1e1e1e; | |
| 714 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 676 | 715 | margin-right: 12px; |
| 677 | 716 | transition: none; |
| 678 | 717 | border-radius: 2px; |
| 679 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 718 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 680 | 719 | padding: 6px 8px; |
| 681 | 720 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 682 | 721 | font-size: 16px; |
| 683 | 722 | /* Override core line-height. To be reviewed. */ |
| 684 | 723 | line-height: normal; |
| 685 | - box-shadow: 0 0 0 transparent; | |
| 686 | - border-radius: 2px; | |
| 687 | - border: 1px solid #949494; | |
| 724 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 725 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 688 | 726 | } |
| 689 | 727 | |
| 690 | -@media not (prefers-reduced-motion) { | |
| 691 | - .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { | |
| 692 | - transition: box-shadow 0.1s linear; | |
| 693 | - } | |
| 694 | -} | |
| 695 | 728 | @media (min-width: 600px) { |
| 696 | 729 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 697 | 730 | font-size: 13px; |
| 698 | 731 | /* Override core line-height. To be reviewed. */ |
| @@ -698,12 +731,17 @@ | ||
| 698 | 731 | /* Override core line-height. To be reviewed. */ |
| 699 | 732 | line-height: normal; |
| 700 | 733 | } |
| 701 | 734 | } |
| 735 | +.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:hover:not(:disabled, [aria-disabled=true]) { | |
| 736 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 737 | +} | |
| 738 | + | |
| 702 | 739 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus { |
| 703 | - border-color: var(--wp-admin-theme-color); | |
| 704 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 705 | - outline: 2px solid transparent; | |
| 740 | + outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9))); | |
| 741 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 742 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 743 | + box-shadow: none; | |
| 706 | 744 | } |
| 707 | 745 | |
| 708 | 746 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder { |
| 709 | 747 | color: rgba(30, 30, 30, 0.62); |
| @@ -708,8 +746,12 @@ | ||
| 708 | 746 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder { |
| 709 | 747 | color: rgba(30, 30, 30, 0.62); |
| 710 | 748 | } |
| 711 | 749 | |
| 750 | +.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:hover:not(:disabled, [aria-disabled=true]) { | |
| 751 | + background: var(--wpds-color-background-interactive-neutral-active, #fff); | |
| 752 | +} | |
| 753 | + | |
| 712 | 754 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus { |
| 713 | 755 | box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); |
| 714 | 756 | outline: 2px solid transparent; |
| 715 | 757 | } |
| @@ -740,9 +782,9 @@ | ||
| 740 | 782 | display: inline-block; |
| 741 | 783 | vertical-align: middle; |
| 742 | 784 | width: 16px; |
| 743 | 785 | /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */ |
| 744 | - font: normal 30px/1 dashicons; | |
| 786 | + font: 400 30px/1 dashicons; | |
| 745 | 787 | speak: none; |
| 746 | 788 | -webkit-font-smoothing: antialiased; |
| 747 | 789 | -moz-osx-font-smoothing: grayscale; |
| 748 | 790 | } |
| @@ -753,18 +795,24 @@ | ||
| 753 | 795 | font-size: 21px; |
| 754 | 796 | } |
| 755 | 797 | } |
| 756 | 798 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true], .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled { |
| 757 | - background: #f0f0f0; | |
| 758 | - border-color: #ddd; | |
| 799 | + background: var(--wpds-color-background-interactive-neutral-disabled, #fff); | |
| 800 | + border-color: var(--wpds-color-stroke-interactive-neutral-disabled, #dbdbdb); | |
| 801 | + color: var(--wpds-color-foreground-interactive-neutral-disabled, #8d8d8d); | |
| 759 | 802 | cursor: default; |
| 760 | 803 | opacity: 1; |
| 761 | 804 | } |
| 762 | 805 | |
| 806 | +.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]:checked::before, .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true][aria-checked=mixed]::before, .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled:checked::before, .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled[aria-checked=mixed]::before { | |
| 807 | + color: var(--wpds-color-foreground-interactive-neutral-disabled, #8d8d8d); | |
| 808 | +} | |
| 809 | + | |
| 763 | 810 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 764 | 811 | position: relative; |
| 765 | - background: #fff; | |
| 766 | - color: #1e1e1e; | |
| 812 | + /* stylelint-disable-next-line plugin-wpds/no-token-fallback-values -- Preserve custom background theming with older @wordpress/theme runtimes that do not set this token. */ | |
| 813 | + background: var(--wpds-color-background-interactive-neutral, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 814 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 767 | 815 | margin: 0; |
| 768 | 816 | padding: 0; |
| 769 | 817 | width: var(--checkbox-size); |
| 770 | 818 | height: var(--checkbox-size); |
| @@ -780,15 +828,15 @@ | ||
| 780 | 828 | transition: 0.1s border-color ease-in-out; |
| 781 | 829 | } |
| 782 | 830 | } |
| 783 | 831 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected { |
| 784 | - background: var(--wp-admin-theme-color, #3858e9); | |
| 785 | - border-color: var(--wp-admin-theme-color, #3858e9); | |
| 832 | + background: var(--wpds-color-background-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 833 | + border-color: var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 786 | 834 | } |
| 787 | 835 | |
| 788 | 836 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg { |
| 789 | 837 | --checkmark-size: var(--checkbox-size); |
| 790 | - fill: #fff; | |
| 838 | + color: var(--wpds-color-foreground-interactive-neutral-strong, #f0f0f0); | |
| 791 | 839 | position: absolute; |
| 792 | 840 | left: 50%; |
| 793 | 841 | top: 50%; |
| 794 | 842 | transform: translate(-50%, -50%); |
| @@ -802,28 +850,22 @@ | ||
| 802 | 850 | } |
| 803 | 851 | } |
| 804 | 852 | .dataviews-filters__search-widget-filter-combobox__wrapper { |
| 805 | 853 | position: relative; |
| 806 | - padding: 8px; | |
| 854 | + padding: var(--wpds-dimension-padding-sm, 8px); | |
| 807 | 855 | } |
| 808 | 856 | |
| 809 | 857 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 810 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 858 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 811 | 859 | padding: 6px 8px; |
| 812 | 860 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 813 | 861 | font-size: 16px; |
| 814 | 862 | /* Override core line-height. To be reviewed. */ |
| 815 | 863 | line-height: normal; |
| 816 | - box-shadow: 0 0 0 transparent; | |
| 817 | - border-radius: 2px; | |
| 818 | - border: 1px solid #949494; | |
| 864 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 865 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 819 | 866 | } |
| 820 | 867 | |
| 821 | -@media not (prefers-reduced-motion) { | |
| 822 | - .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { | |
| 823 | - transition: box-shadow 0.1s linear; | |
| 824 | - } | |
| 825 | -} | |
| 826 | 868 | @media (min-width: 600px) { |
| 827 | 869 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 828 | 870 | font-size: 13px; |
| 829 | 871 | /* Override core line-height. To be reviewed. */ |
| @@ -829,12 +871,17 @@ | ||
| 829 | 871 | /* Override core line-height. To be reviewed. */ |
| 830 | 872 | line-height: normal; |
| 831 | 873 | } |
| 832 | 874 | } |
| 875 | +.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:hover:not(:disabled, [aria-disabled=true]) { | |
| 876 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 877 | +} | |
| 878 | + | |
| 833 | 879 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus { |
| 834 | - border-color: var(--wp-admin-theme-color); | |
| 835 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 836 | - outline: 2px solid transparent; | |
| 880 | + outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9))); | |
| 881 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 882 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 883 | + box-shadow: none; | |
| 837 | 884 | } |
| 838 | 885 | |
| 839 | 886 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder { |
| 840 | 887 | color: rgba(30, 30, 30, 0.62); |
| @@ -841,11 +888,11 @@ | ||
| 841 | 888 | } |
| 842 | 889 | |
| 843 | 890 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 844 | 891 | display: block; |
| 845 | - padding: 0 8px 0 32px; | |
| 892 | + padding: 0 var(--wpds-dimension-padding-sm, 8px) 0 var(--wpds-dimension-size-md, 32px); | |
| 846 | 893 | width: 100%; |
| 847 | - height: 32px; | |
| 894 | + height: var(--wpds-dimension-size-md, 32px); | |
| 848 | 895 | margin-left: 0; |
| 849 | 896 | margin-right: 0; |
| 850 | 897 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 851 | 898 | font-size: 16px; |
| @@ -852,18 +899,17 @@ | ||
| 852 | 899 | } |
| 853 | 900 | |
| 854 | 901 | @media (min-width: 600px) { |
| 855 | 902 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 856 | - font-size: 13px; | |
| 903 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 857 | 904 | } |
| 858 | 905 | } |
| 859 | 906 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus { |
| 860 | - background: #fff; | |
| 861 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 907 | + background: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 862 | 908 | } |
| 863 | 909 | |
| 864 | 910 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder { |
| 865 | - color: #757575; | |
| 911 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 866 | 912 | } |
| 867 | 913 | |
| 868 | 914 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration { |
| 869 | 915 | -webkit-appearance: none; |
| @@ -870,15 +916,15 @@ | ||
| 870 | 916 | } |
| 871 | 917 | |
| 872 | 918 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon { |
| 873 | 919 | position: absolute; |
| 874 | - inset-inline-start: 12px; | |
| 920 | + inset-inline-start: var(--wpds-dimension-gap-md, 12px); | |
| 875 | 921 | top: 0; |
| 876 | 922 | bottom: 0; |
| 877 | 923 | display: flex; |
| 878 | 924 | align-items: center; |
| 879 | 925 | justify-content: center; |
| 880 | - width: 24px; | |
| 926 | + width: var(--wpds-dimension-size-sm, 24px); | |
| 881 | 927 | } |
| 882 | 928 | |
| 883 | 929 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr) { |
| 884 | 930 | transform: scaleX(-1); |
| @@ -893,31 +939,27 @@ | ||
| 893 | 939 | position: absolute; |
| 894 | 940 | top: 0; |
| 895 | 941 | right: 0; |
| 896 | 942 | transform: translate(50%, -50%); |
| 897 | - background: var(--wp-admin-theme-color, #3858e9); | |
| 898 | - height: 16px; | |
| 899 | - min-width: 16px; | |
| 900 | - line-height: 16px; | |
| 901 | - padding: 0 4px; | |
| 943 | + background: var(--wpds-color-background-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 944 | + height: var(--wpds-dimension-size-2xs, 16px); | |
| 945 | + min-width: var(--wpds-dimension-size-2xs, 16px); | |
| 946 | + line-height: var(--wpds-typography-line-height-xs, 16px); | |
| 947 | + padding: 0 var(--wpds-dimension-padding-xs, 4px); | |
| 902 | 948 | text-align: center; |
| 903 | - border-radius: 8px; | |
| 949 | + border-radius: var(--wpds-border-radius-lg, 8px); | |
| 904 | 950 | font-size: 11px; |
| 905 | - outline: var(--wp-admin-border-width-focus) solid #fff; | |
| 906 | - color: #fff; | |
| 951 | + outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 952 | + color: var(--wpds-color-foreground-interactive-neutral-strong, #f0f0f0); | |
| 907 | 953 | box-sizing: border-box; |
| 908 | 954 | } |
| 909 | 955 | |
| 910 | -.dataviews-search { | |
| 911 | - width: fit-content; | |
| 912 | -} | |
| 913 | - | |
| 914 | 956 | .dataviews-filters__user-input-widget { |
| 915 | - padding: 16px; | |
| 957 | + padding: var(--wpds-dimension-padding-lg, 16px); | |
| 916 | 958 | } |
| 917 | 959 | |
| 918 | 960 | .dataviews-filters__user-input-widget .components-input-control__prefix { |
| 919 | - padding-left: 8px; | |
| 961 | + padding-left: var(--wpds-dimension-padding-sm, 8px); | |
| 920 | 962 | } |
| 921 | 963 | |
| 922 | 964 | .dataviews-filters__search-widget-no-elements { |
| 923 | 965 | display: flex; |
| @@ -922,9 +964,9 @@ | ||
| 922 | 964 | .dataviews-filters__search-widget-no-elements { |
| 923 | 965 | display: flex; |
| 924 | 966 | align-items: center; |
| 925 | 967 | justify-content: center; |
| 926 | - padding: 16px; | |
| 968 | + padding: var(--wpds-dimension-padding-lg, 16px); | |
| 927 | 969 | } |
| 928 | 970 | |
| 929 | 971 | .dataviews-footer { |
| 930 | 972 | position: sticky; |
| @@ -930,10 +972,10 @@ | ||
| 930 | 972 | position: sticky; |
| 931 | 973 | bottom: 0; |
| 932 | 974 | left: 0; |
| 933 | 975 | background-color: inherit; |
| 934 | - padding: 12px 24px; | |
| 935 | - border-top: 1px solid #f0f0f0; | |
| 976 | + padding: var(--wpds-dimension-padding-md, 12px) var(--wpds-dimension-padding-2xl, 24px); | |
| 977 | + border-top: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 936 | 978 | flex-shrink: 0; |
| 937 | 979 | } |
| 938 | 980 | |
| 939 | 981 | @media not (prefers-reduced-motion) { |
| @@ -941,9 +983,9 @@ | ||
| 941 | 983 | transition: padding ease-out 0.1s; |
| 942 | 984 | } |
| 943 | 985 | } |
| 944 | 986 | .dataviews-footer { |
| 945 | - z-index: 2; | |
| 987 | + z-index: 1; | |
| 946 | 988 | } |
| 947 | 989 | |
| 948 | 990 | .dataviews-footer .is-refreshing { |
| 949 | 991 | opacity: 0.5; |
| @@ -972,9 +1014,9 @@ | ||
| 972 | 1014 | } |
| 973 | 1015 | } |
| 974 | 1016 | .dataviews-pagination__page-select { |
| 975 | 1017 | font-size: 11px; |
| 976 | - font-weight: 499; | |
| 1018 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 977 | 1019 | text-transform: uppercase; |
| 978 | 1020 | } |
| 979 | 1021 | |
| 980 | 1022 | @media (min-width: 600px) { |
| @@ -979,9 +1021,9 @@ | ||
| 979 | 1021 | |
| 980 | 1022 | @media (min-width: 600px) { |
| 981 | 1023 | .dataviews-pagination__page-select .components-select-control__input { |
| 982 | 1024 | font-size: 11px !important; |
| 983 | - font-weight: 499; | |
| 1025 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 984 | 1026 | } |
| 985 | 1027 | } |
| 986 | 1028 | .dataviews-action-modal { |
| 987 | 1029 | z-index: 1000001; |
| @@ -987,9 +1029,9 @@ | ||
| 987 | 1029 | z-index: 1000001; |
| 988 | 1030 | } |
| 989 | 1031 | |
| 990 | 1032 | .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) { |
| 991 | - padding: 0 4px; | |
| 1033 | + padding: 0 var(--wpds-dimension-padding-xs, 4px); | |
| 992 | 1034 | } |
| 993 | 1035 | |
| 994 | 1036 | .dataviews-selection-checkbox { |
| 995 | 1037 | --checkbox-input-size: 24px; |
| @@ -1010,12 +1052,11 @@ | ||
| 1010 | 1052 | } |
| 1011 | 1053 | |
| 1012 | 1054 | .dataviews-view-config { |
| 1013 | 1055 | width: 320px; |
| 1014 | - /* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */ | |
| 1015 | 1056 | container-type: inline-size; |
| 1016 | - font-size: 13px; | |
| 1017 | - line-height: 1.4; | |
| 1057 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 1058 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 1018 | 1059 | } |
| 1019 | 1060 | |
| 1020 | 1061 | .dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper { |
| 1021 | 1062 | overflow-y: scroll; |
| @@ -1030,9 +1071,9 @@ | ||
| 1030 | 1071 | text-transform: uppercase; |
| 1031 | 1072 | } |
| 1032 | 1073 | |
| 1033 | 1074 | .dataviews-settings-section__title.dataviews-settings-section__title { |
| 1034 | - line-height: 24px; | |
| 1075 | + line-height: var(--wpds-typography-line-height-md, 24px); | |
| 1035 | 1076 | font-size: 15px; |
| 1036 | 1077 | } |
| 1037 | 1078 | |
| 1038 | 1079 | .dataviews-settings-section__sidebar { |
| @@ -1081,13 +1122,13 @@ | ||
| 1081 | 1122 | } |
| 1082 | 1123 | |
| 1083 | 1124 | .dataviews-view-config__modified-indicator { |
| 1084 | 1125 | position: absolute; |
| 1085 | - top: 4px; | |
| 1086 | - right: 4px; | |
| 1087 | - width: 4px; | |
| 1088 | - height: 4px; | |
| 1089 | - background: var(--wp-admin-theme-color, #3858e9); | |
| 1126 | + top: var(--wpds-dimension-gap-xs, 4px); | |
| 1127 | + right: var(--wpds-dimension-gap-xs, 4px); | |
| 1128 | + width: var(--wpds-dimension-gap-xs, 4px); | |
| 1129 | + height: var(--wpds-dimension-gap-xs, 4px); | |
| 1130 | + background: var(--wpds-color-background-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 1090 | 1131 | border-radius: 50%; |
| 1091 | 1132 | pointer-events: none; |
| 1092 | 1133 | } |
| 1093 | 1134 | |
| @@ -1093,12 +1134,12 @@ | ||
| 1093 | 1134 | |
| 1094 | 1135 | .dataviews-view-grid-items { |
| 1095 | 1136 | margin-bottom: auto; |
| 1096 | 1137 | display: grid; |
| 1097 | - gap: 24px; | |
| 1138 | + gap: var(--wpds-dimension-gap-xl, 24px); | |
| 1098 | 1139 | grid-template-rows: max-content; |
| 1099 | 1140 | grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); |
| 1100 | - padding: 0 24px 24px; | |
| 1141 | + padding: 0 var(--wpds-dimension-padding-2xl, 24px) var(--wpds-dimension-padding-2xl, 24px); | |
| 1101 | 1142 | container-type: inline-size; |
| 1102 | 1143 | } |
| 1103 | 1144 | |
| 1104 | 1145 | @media not (prefers-reduced-motion) { |
| @@ -1106,20 +1147,20 @@ | ||
| 1106 | 1147 | transition: padding ease-out 0.1s; |
| 1107 | 1148 | } |
| 1108 | 1149 | } |
| 1109 | 1150 | .dataviews-view-grid-items.has-compact-density { |
| 1110 | - gap: 16px; | |
| 1151 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 1111 | 1152 | } |
| 1112 | 1153 | |
| 1113 | 1154 | .dataviews-view-grid-items.has-comfortable-density { |
| 1114 | - gap: 32px; | |
| 1155 | + gap: var(--wpds-dimension-gap-2xl, 32px); | |
| 1115 | 1156 | } |
| 1116 | 1157 | |
| 1117 | 1158 | .dataviews-view-grid { |
| 1118 | - padding: 0 24px 24px; | |
| 1159 | + padding: 0 var(--wpds-dimension-padding-2xl, 24px) var(--wpds-dimension-padding-2xl, 24px); | |
| 1119 | 1160 | display: flex; |
| 1120 | 1161 | flex-direction: column; |
| 1121 | - gap: 24px; | |
| 1162 | + gap: var(--wpds-dimension-gap-xl, 24px); | |
| 1122 | 1163 | container-type: inline-size; |
| 1123 | 1164 | margin-bottom: auto; |
| 1124 | 1165 | } |
| 1125 | 1166 | |
| @@ -1128,30 +1169,30 @@ | ||
| 1128 | 1169 | transition: padding ease-out 0.1s; |
| 1129 | 1170 | } |
| 1130 | 1171 | } |
| 1131 | 1172 | .dataviews-view-grid.has-compact-density { |
| 1132 | - gap: 16px; | |
| 1173 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 1133 | 1174 | } |
| 1134 | 1175 | |
| 1135 | 1176 | .dataviews-view-grid.has-compact-density .dataviews-view-grid__row { |
| 1136 | - gap: 16px; | |
| 1177 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 1137 | 1178 | } |
| 1138 | 1179 | |
| 1139 | 1180 | .dataviews-view-grid.has-comfortable-density { |
| 1140 | - gap: 32px; | |
| 1181 | + gap: var(--wpds-dimension-gap-2xl, 32px); | |
| 1141 | 1182 | } |
| 1142 | 1183 | |
| 1143 | 1184 | .dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row { |
| 1144 | - gap: 32px; | |
| 1185 | + gap: var(--wpds-dimension-gap-2xl, 32px); | |
| 1145 | 1186 | } |
| 1146 | 1187 | |
| 1147 | 1188 | .dataviews-view-grid .dataviews-view-grid__row { |
| 1148 | 1189 | display: grid; |
| 1149 | - gap: 24px; | |
| 1190 | + gap: var(--wpds-dimension-gap-xl, 24px); | |
| 1150 | 1191 | } |
| 1151 | 1192 | |
| 1152 | 1193 | .dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell { |
| 1153 | - border-radius: 4px; | |
| 1194 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1154 | 1195 | position: relative; |
| 1155 | 1196 | } |
| 1156 | 1197 | |
| 1157 | 1198 | .dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]::after { |
| @@ -1160,10 +1201,10 @@ | ||
| 1160 | 1201 | top: 0; |
| 1161 | 1202 | left: 0; |
| 1162 | 1203 | width: 100%; |
| 1163 | 1204 | height: 100%; |
| 1164 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 1165 | - border-radius: 4px; | |
| 1205 | + box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 1206 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1166 | 1207 | pointer-events: none; |
| 1167 | 1208 | outline: 2px solid transparent; |
| 1168 | 1209 | } |
| 1169 | 1210 | |
| @@ -1171,18 +1212,19 @@ | ||
| 1171 | 1212 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card { |
| 1172 | 1213 | height: 100%; |
| 1173 | 1214 | justify-content: flex-start; |
| 1174 | 1215 | position: relative; |
| 1216 | + isolation: isolate; | |
| 1175 | 1217 | } |
| 1176 | 1218 | |
| 1177 | -.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title, | |
| 1178 | -.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title { | |
| 1179 | - padding: 8px 0 4px; | |
| 1219 | +.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions, | |
| 1220 | +.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-actions { | |
| 1221 | + padding: var(--wpds-dimension-padding-sm, 8px) 0 var(--wpds-dimension-padding-xs, 4px); | |
| 1180 | 1222 | } |
| 1181 | 1223 | |
| 1182 | 1224 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field, |
| 1183 | 1225 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field { |
| 1184 | - min-height: 24px; | |
| 1226 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 1185 | 1227 | overflow: hidden; |
| 1186 | 1228 | align-content: center; |
| 1187 | 1229 | text-align: start; |
| 1188 | 1230 | } |
| @@ -1193,34 +1235,27 @@ | ||
| 1193 | 1235 | } |
| 1194 | 1236 | |
| 1195 | 1237 | .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value, |
| 1196 | 1238 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value { |
| 1197 | - color: #1e1e1e; | |
| 1239 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1198 | 1240 | } |
| 1199 | 1241 | |
| 1200 | 1242 | .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after, |
| 1201 | -.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after, | |
| 1202 | -.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after, | |
| 1203 | -.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus::after { | |
| 1204 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); | |
| 1205 | -} | |
| 1206 | - | |
| 1207 | -.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after, | |
| 1208 | 1243 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after { |
| 1209 | - box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); | |
| 1244 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)), inset 0 0 0 var(--wpds-border-width-sm, 2px) var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1210 | 1245 | } |
| 1211 | 1246 | |
| 1212 | 1247 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after, |
| 1213 | 1248 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus::after { |
| 1214 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 1249 | + box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 1215 | 1250 | } |
| 1216 | 1251 | |
| 1217 | 1252 | .dataviews-view-grid .dataviews-view-grid__media, |
| 1218 | 1253 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__media { |
| 1219 | 1254 | width: 100%; |
| 1220 | - aspect-ratio: 1/1; | |
| 1221 | - background-color: #fff; | |
| 1222 | - border-radius: 4px; | |
| 1255 | + aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1); | |
| 1256 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1257 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1223 | 1258 | overflow: hidden; |
| 1224 | 1259 | position: relative; |
| 1225 | 1260 | } |
| 1226 | 1261 | |
| @@ -1243,10 +1278,10 @@ | ||
| 1243 | 1278 | top: 0; |
| 1244 | 1279 | left: 0; |
| 1245 | 1280 | width: 100%; |
| 1246 | 1281 | height: 100%; |
| 1247 | - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); | |
| 1248 | - border-radius: 4px; | |
| 1282 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) rgba(0, 0, 0, 0.1); | |
| 1283 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1249 | 1284 | pointer-events: none; |
| 1250 | 1285 | } |
| 1251 | 1286 | |
| 1252 | 1287 | .dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder, |
| @@ -1253,13 +1288,23 @@ | ||
| 1253 | 1288 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder { |
| 1254 | 1289 | width: 100%; |
| 1255 | 1290 | height: 100%; |
| 1256 | 1291 | display: block; |
| 1257 | - border-radius: 4px; | |
| 1292 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1258 | 1293 | box-shadow: none; |
| 1259 | - background: #f0f0f0; | |
| 1294 | + background: var(--wpds-color-background-surface-neutral, #fcfcfc); | |
| 1260 | 1295 | } |
| 1261 | 1296 | |
| 1297 | +.dataviews-view-grid.has-media-fit-contain .dataviews-view-grid__media, | |
| 1298 | +.dataviews-view-grid-infinite-scroll.has-media-fit-contain .dataviews-view-grid__media { | |
| 1299 | + background-color: var(--wpds-color-background-surface-neutral, #fcfcfc); | |
| 1300 | +} | |
| 1301 | + | |
| 1302 | +.dataviews-view-grid.has-media-fit-contain .dataviews-view-grid__media img, | |
| 1303 | +.dataviews-view-grid-infinite-scroll.has-media-fit-contain .dataviews-view-grid__media img { | |
| 1304 | + object-fit: contain; | |
| 1305 | +} | |
| 1306 | + | |
| 1262 | 1307 | .dataviews-view-grid .dataviews-view-grid__fields, |
| 1263 | 1308 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields { |
| 1264 | 1309 | position: relative; |
| 1265 | 1310 | font-size: 12px; |
| @@ -1267,21 +1312,21 @@ | ||
| 1267 | 1312 | } |
| 1268 | 1313 | |
| 1269 | 1314 | .dataviews-view-grid .dataviews-view-grid__fields:not(:empty), |
| 1270 | 1315 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty) { |
| 1271 | - padding: 0 0 12px; | |
| 1316 | + padding: 0 0 var(--wpds-dimension-padding-md, 12px); | |
| 1272 | 1317 | } |
| 1273 | 1318 | |
| 1274 | 1319 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty), |
| 1275 | 1320 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty) { |
| 1276 | - min-height: 24px; | |
| 1277 | - line-height: 20px; | |
| 1278 | - padding-top: 2px; | |
| 1321 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 1322 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 1323 | + padding-top: calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px)) / 2); | |
| 1279 | 1324 | } |
| 1280 | 1325 | |
| 1281 | 1326 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field, |
| 1282 | 1327 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field { |
| 1283 | - min-height: 24px; | |
| 1328 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 1284 | 1329 | align-items: center; |
| 1285 | 1330 | } |
| 1286 | 1331 | |
| 1287 | 1332 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name, |
| @@ -1286,9 +1331,9 @@ | ||
| 1286 | 1331 | |
| 1287 | 1332 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name, |
| 1288 | 1333 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name { |
| 1289 | 1334 | width: 35%; |
| 1290 | - color: #757575; | |
| 1335 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 1291 | 1336 | overflow: hidden; |
| 1292 | 1337 | text-overflow: ellipsis; |
| 1293 | 1338 | white-space: nowrap; |
| 1294 | 1339 | } |
| @@ -1307,9 +1352,9 @@ | ||
| 1307 | 1352 | } |
| 1308 | 1353 | |
| 1309 | 1354 | .dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty), |
| 1310 | 1355 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty) { |
| 1311 | - padding-bottom: 12px; | |
| 1356 | + padding-bottom: var(--wpds-dimension-padding-md, 12px); | |
| 1312 | 1357 | } |
| 1313 | 1358 | |
| 1314 | 1359 | .dataviews-view-grid.is-refreshing, |
| 1315 | 1360 | .dataviews-view-grid-infinite-scroll.is-refreshing { |
| @@ -1331,9 +1376,9 @@ | ||
| 1331 | 1376 | |
| 1332 | 1377 | .dataviews-view-grid__card .dataviews-selection-checkbox { |
| 1333 | 1378 | position: absolute; |
| 1334 | 1379 | top: -9999em; |
| 1335 | - left: 8px; | |
| 1380 | + left: var(--wpds-dimension-padding-sm, 8px); | |
| 1336 | 1381 | z-index: 1; |
| 1337 | 1382 | opacity: 0; |
| 1338 | 1383 | } |
| 1339 | 1384 | |
| @@ -1344,9 +1389,9 @@ | ||
| 1344 | 1389 | } |
| 1345 | 1390 | @media (hover: none) { |
| 1346 | 1391 | .dataviews-view-grid__card .dataviews-selection-checkbox { |
| 1347 | 1392 | opacity: 1; |
| 1348 | - top: 8px; | |
| 1393 | + top: var(--wpds-dimension-padding-sm, 8px); | |
| 1349 | 1394 | } |
| 1350 | 1395 | } |
| 1351 | 1396 | .dataviews-view-grid__card:hover .dataviews-selection-checkbox, |
| 1352 | 1397 | .dataviews-view-grid__card:focus-within .dataviews-selection-checkbox, |
| @@ -1351,21 +1396,21 @@ | ||
| 1351 | 1396 | .dataviews-view-grid__card:hover .dataviews-selection-checkbox, |
| 1352 | 1397 | .dataviews-view-grid__card:focus-within .dataviews-selection-checkbox, |
| 1353 | 1398 | .dataviews-view-grid__card.is-selected .dataviews-selection-checkbox { |
| 1354 | 1399 | opacity: 1; |
| 1355 | - top: 8px; | |
| 1400 | + top: var(--wpds-dimension-padding-sm, 8px); | |
| 1356 | 1401 | } |
| 1357 | 1402 | |
| 1358 | 1403 | .dataviews-view-grid__card .dataviews-view-grid__media-actions { |
| 1359 | 1404 | position: absolute; |
| 1360 | 1405 | z-index: 1; |
| 1361 | - top: 4px; | |
| 1406 | + top: var(--wpds-dimension-padding-xs, 4px); | |
| 1362 | 1407 | opacity: 0; |
| 1363 | - right: 4px; | |
| 1408 | + right: var(--wpds-dimension-padding-xs, 4px); | |
| 1364 | 1409 | } |
| 1365 | 1410 | |
| 1366 | 1411 | .dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button { |
| 1367 | - background-color: #fff; | |
| 1412 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1368 | 1413 | } |
| 1369 | 1414 | |
| 1370 | 1415 | @media not (prefers-reduced-motion) { |
| 1371 | 1416 | .dataviews-view-grid__card .dataviews-view-grid__media-actions { |
| @@ -1374,9 +1419,9 @@ | ||
| 1374 | 1419 | } |
| 1375 | 1420 | @media (hover: none) { |
| 1376 | 1421 | .dataviews-view-grid__card .dataviews-view-grid__media-actions { |
| 1377 | 1422 | opacity: 1; |
| 1378 | - top: 4px; | |
| 1423 | + top: var(--wpds-dimension-padding-xs, 4px); | |
| 1379 | 1424 | } |
| 1380 | 1425 | } |
| 1381 | 1426 | .dataviews-view-grid__card:hover .dataviews-view-grid__media-actions, |
| 1382 | 1427 | .dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions, |
| @@ -1388,13 +1433,13 @@ | ||
| 1388 | 1433 | cursor: var(--wpds-cursor-control, pointer); |
| 1389 | 1434 | } |
| 1390 | 1435 | |
| 1391 | 1436 | .dataviews-view-grid__group-header { |
| 1392 | - font-size: 15px; | |
| 1393 | - font-weight: 499; | |
| 1394 | - color: #1e1e1e; | |
| 1395 | - margin: 0 0 8px 0; | |
| 1396 | - padding: 0 24px; | |
| 1437 | + font-size: var(--wpds-typography-font-size-lg, 15px); | |
| 1438 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1439 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1440 | + margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0; | |
| 1441 | + padding: 0 var(--wpds-dimension-padding-2xl, 24px); | |
| 1397 | 1442 | container-type: inline-size; |
| 1398 | 1443 | } |
| 1399 | 1444 | |
| 1400 | 1445 | div.dataviews-view-list { |
| @@ -1407,15 +1452,15 @@ | ||
| 1407 | 1452 | |
| 1408 | 1453 | .dataviews-view-list div[role=row], |
| 1409 | 1454 | .dataviews-view-list div[role=article] { |
| 1410 | 1455 | margin: 0; |
| 1411 | - border-top: 1px solid #f0f0f0; | |
| 1456 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 1412 | 1457 | } |
| 1413 | 1458 | |
| 1414 | 1459 | .dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper, |
| 1415 | 1460 | .dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper { |
| 1416 | 1461 | position: relative; |
| 1417 | - padding: 16px 24px; | |
| 1462 | + padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px); | |
| 1418 | 1463 | box-sizing: border-box; |
| 1419 | 1464 | } |
| 1420 | 1465 | |
| 1421 | 1466 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions, |
| @@ -1422,9 +1467,9 @@ | ||
| 1422 | 1467 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions { |
| 1423 | 1468 | display: flex; |
| 1424 | 1469 | width: max-content; |
| 1425 | 1470 | flex: 0 0 auto; |
| 1426 | - gap: 4px; | |
| 1471 | + gap: var(--wpds-dimension-gap-xs, 4px); | |
| 1427 | 1472 | white-space: nowrap; |
| 1428 | 1473 | } |
| 1429 | 1474 | |
| 1430 | 1475 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button, |
| @@ -1434,9 +1479,9 @@ | ||
| 1434 | 1479 | } |
| 1435 | 1480 | |
| 1436 | 1481 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > div, |
| 1437 | 1482 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions > div { |
| 1438 | - height: 24px; | |
| 1483 | + height: var(--wpds-dimension-size-sm, 24px); | |
| 1439 | 1484 | } |
| 1440 | 1485 | |
| 1441 | 1486 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child), |
| 1442 | 1487 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions > :not(:last-child) { |
| @@ -1461,15 +1506,15 @@ | ||
| 1461 | 1506 | } |
| 1462 | 1507 | } |
| 1463 | 1508 | .dataviews-view-list div[role=row].is-selected.is-selected, |
| 1464 | 1509 | .dataviews-view-list div[role=article].is-selected.is-selected { |
| 1465 | - border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12); | |
| 1510 | + border-top: 1px solid var(--wpds-color-stroke-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 40%, white)); | |
| 1466 | 1511 | } |
| 1467 | 1512 | |
| 1468 | 1513 | .dataviews-view-list div[role=row].is-selected.is-selected + div[role=row], .dataviews-view-list div[role=row].is-selected.is-selected + div[role=article], |
| 1469 | 1514 | .dataviews-view-list div[role=article].is-selected.is-selected + div[role=row], |
| 1470 | 1515 | .dataviews-view-list div[role=article].is-selected.is-selected + div[role=article] { |
| 1471 | - border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12); | |
| 1516 | + border-top: 1px solid var(--wpds-color-stroke-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 40%, white)); | |
| 1472 | 1517 | } |
| 1473 | 1518 | |
| 1474 | 1519 | .dataviews-view-list div[role=row]:not(.is-selected):hover, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered, .dataviews-view-list div[role=row]:not(.is-selected):focus-within, |
| 1475 | 1520 | .dataviews-view-list div[role=article]:not(.is-selected):hover, |
| @@ -1474,23 +1519,11 @@ | ||
| 1474 | 1519 | .dataviews-view-list div[role=row]:not(.is-selected):hover, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered, .dataviews-view-list div[role=row]:not(.is-selected):focus-within, |
| 1475 | 1520 | .dataviews-view-list div[role=article]:not(.is-selected):hover, |
| 1476 | 1521 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered, |
| 1477 | 1522 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within { |
| 1478 | - color: var(--wp-admin-theme-color); | |
| 1479 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 1480 | - border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12); | |
| 1523 | + background-color: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); | |
| 1481 | 1524 | } |
| 1482 | 1525 | |
| 1483 | -.dataviews-view-list div[role=row]:not(.is-selected):hover + div[role=row], .dataviews-view-list div[role=row]:not(.is-selected):hover + div[role=article], .dataviews-view-list div[role=row]:not(.is-selected).is-hovered + div[role=row], .dataviews-view-list div[role=row]:not(.is-selected).is-hovered + div[role=article], .dataviews-view-list div[role=row]:not(.is-selected):focus-within + div[role=row], .dataviews-view-list div[role=row]:not(.is-selected):focus-within + div[role=article], | |
| 1484 | -.dataviews-view-list div[role=article]:not(.is-selected):hover + div[role=row], | |
| 1485 | -.dataviews-view-list div[role=article]:not(.is-selected):hover + div[role=article], | |
| 1486 | -.dataviews-view-list div[role=article]:not(.is-selected).is-hovered + div[role=row], | |
| 1487 | -.dataviews-view-list div[role=article]:not(.is-selected).is-hovered + div[role=article], | |
| 1488 | -.dataviews-view-list div[role=article]:not(.is-selected):focus-within + div[role=row], | |
| 1489 | -.dataviews-view-list div[role=article]:not(.is-selected):focus-within + div[role=article] { | |
| 1490 | - border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12); | |
| 1491 | -} | |
| 1492 | - | |
| 1493 | 1526 | .dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field, |
| 1494 | 1527 | .dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__field, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-title-field, |
| 1495 | 1528 | .dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__field, .dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-title-field, |
| 1496 | 1529 | .dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__field, |
| @@ -1499,9 +1532,9 @@ | ||
| 1499 | 1532 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field, |
| 1500 | 1533 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field, |
| 1501 | 1534 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field, |
| 1502 | 1535 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field { |
| 1503 | - color: var(--wp-admin-theme-color); | |
| 1536 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 1504 | 1537 | } |
| 1505 | 1538 | |
| 1506 | 1539 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper, |
| 1507 | 1540 | .dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper, |
| @@ -1506,10 +1539,10 @@ | ||
| 1506 | 1539 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper, |
| 1507 | 1540 | .dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper, |
| 1508 | 1541 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper, |
| 1509 | 1542 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper { |
| 1510 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); | |
| 1511 | - color: #1e1e1e; | |
| 1543 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 1544 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1512 | 1545 | } |
| 1513 | 1546 | |
| 1514 | 1547 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field, |
| 1515 | 1548 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field, |
| @@ -1518,9 +1551,9 @@ | ||
| 1518 | 1551 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field, |
| 1519 | 1552 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field, |
| 1520 | 1553 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field, |
| 1521 | 1554 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field { |
| 1522 | - color: #1e1e1e; | |
| 1555 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1523 | 1556 | } |
| 1524 | 1557 | |
| 1525 | 1558 | .dataviews-view-list .dataviews-view-list__item { |
| 1526 | 1559 | position: absolute; |
| @@ -1525,9 +1558,9 @@ | ||
| 1525 | 1558 | .dataviews-view-list .dataviews-view-list__item { |
| 1526 | 1559 | position: absolute; |
| 1527 | 1560 | z-index: 1; |
| 1528 | 1561 | inset: 0; |
| 1529 | - scroll-margin: 8px 0; | |
| 1562 | + scroll-margin: var(--wpds-dimension-gap-sm, 8px) 0; | |
| 1530 | 1563 | appearance: none; |
| 1531 | 1564 | border: none; |
| 1532 | 1565 | background: none; |
| 1533 | 1566 | padding: 0; |
| @@ -1541,17 +1574,17 @@ | ||
| 1541 | 1574 | .dataviews-view-list .dataviews-view-list__item:focus-visible::before { |
| 1542 | 1575 | position: absolute; |
| 1543 | 1576 | content: ""; |
| 1544 | 1577 | inset: var(--wp-admin-border-width-focus); |
| 1545 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 1546 | - border-radius: 2px; | |
| 1578 | + box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 1579 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 1547 | 1580 | outline: 2px solid transparent; |
| 1548 | 1581 | } |
| 1549 | 1582 | |
| 1550 | 1583 | .dataviews-view-list .dataviews-view-list__title-field { |
| 1551 | 1584 | flex: 1; |
| 1552 | - min-height: 24px; | |
| 1553 | - line-height: 24px; | |
| 1585 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 1586 | + line-height: var(--wpds-typography-line-height-md, 24px); | |
| 1554 | 1587 | overflow: hidden; |
| 1555 | 1588 | } |
| 1556 | 1589 | |
| 1557 | 1590 | .dataviews-view-list .dataviews-view-list__title-field:has(a, button) { |
| @@ -1558,15 +1591,15 @@ | ||
| 1558 | 1591 | z-index: 1; |
| 1559 | 1592 | } |
| 1560 | 1593 | |
| 1561 | 1594 | .dataviews-view-list .dataviews-view-list__media-wrapper { |
| 1562 | - width: 52px; | |
| 1563 | - height: 52px; | |
| 1595 | + width: 48px; | |
| 1596 | + height: 48px; | |
| 1564 | 1597 | overflow: hidden; |
| 1565 | 1598 | position: relative; |
| 1566 | 1599 | flex-shrink: 0; |
| 1567 | - background-color: #fff; | |
| 1568 | - border-radius: 4px; | |
| 1600 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1601 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1569 | 1602 | } |
| 1570 | 1603 | |
| 1571 | 1604 | .dataviews-view-list .dataviews-view-list__media-wrapper img { |
| 1572 | 1605 | width: 100%; |
| @@ -1580,25 +1613,26 @@ | ||
| 1580 | 1613 | top: 0; |
| 1581 | 1614 | left: 0; |
| 1582 | 1615 | width: 100%; |
| 1583 | 1616 | height: 100%; |
| 1584 | - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); | |
| 1585 | - border-radius: 4px; | |
| 1617 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) rgba(0, 0, 0, 0.1); | |
| 1618 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1586 | 1619 | } |
| 1587 | 1620 | |
| 1588 | 1621 | .dataviews-view-list .dataviews-view-list__field-wrapper { |
| 1622 | + min-height: 48px; | |
| 1589 | 1623 | flex-grow: 1; |
| 1590 | 1624 | min-width: 0; |
| 1591 | 1625 | } |
| 1592 | 1626 | |
| 1593 | 1627 | .dataviews-view-list .dataviews-view-list__field { |
| 1594 | - color: #757575; | |
| 1628 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 1595 | 1629 | } |
| 1596 | 1630 | |
| 1597 | 1631 | .dataviews-view-list .dataviews-view-list__fields { |
| 1598 | 1632 | display: flex; |
| 1599 | - gap: 12px; | |
| 1600 | - row-gap: 4px; | |
| 1633 | + gap: var(--wpds-dimension-gap-md, 12px); | |
| 1634 | + row-gap: var(--wpds-dimension-gap-xs, 4px); | |
| 1601 | 1635 | flex-wrap: wrap; |
| 1602 | 1636 | font-size: 12px; |
| 1603 | 1637 | } |
| 1604 | 1638 | |
| @@ -1610,10 +1644,10 @@ | ||
| 1610 | 1644 | display: none; |
| 1611 | 1645 | } |
| 1612 | 1646 | |
| 1613 | 1647 | .dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value { |
| 1614 | - min-height: 24px; | |
| 1615 | - line-height: 20px; | |
| 1648 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 1649 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 1616 | 1650 | display: flex; |
| 1617 | 1651 | align-items: center; |
| 1618 | 1652 | } |
| 1619 | 1653 | |
| @@ -1621,38 +1655,42 @@ | ||
| 1621 | 1655 | justify-content: space-between; |
| 1622 | 1656 | } |
| 1623 | 1657 | |
| 1624 | 1658 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__item-wrapper { |
| 1625 | - padding: 8px 24px; | |
| 1659 | + padding: var(--wpds-dimension-padding-sm, 8px) var(--wpds-dimension-padding-2xl, 24px); | |
| 1626 | 1660 | } |
| 1627 | 1661 | |
| 1628 | 1662 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field { |
| 1629 | - min-height: 16px; | |
| 1630 | - line-height: 16px; | |
| 1663 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 1664 | + line-height: var(--wpds-typography-line-height-xs, 16px); | |
| 1631 | 1665 | } |
| 1632 | 1666 | |
| 1633 | 1667 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper { |
| 1634 | - width: 32px; | |
| 1635 | - height: 32px; | |
| 1668 | + width: var(--wpds-dimension-size-md, 32px); | |
| 1669 | + height: var(--wpds-dimension-size-md, 32px); | |
| 1636 | 1670 | } |
| 1637 | 1671 | |
| 1672 | +.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__field-wrapper { | |
| 1673 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1674 | +} | |
| 1675 | + | |
| 1638 | 1676 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields { |
| 1639 | - gap: 8px; | |
| 1640 | - row-gap: 4px; | |
| 1677 | + gap: var(--wpds-dimension-gap-sm, 8px); | |
| 1678 | + row-gap: var(--wpds-dimension-gap-xs, 4px); | |
| 1641 | 1679 | } |
| 1642 | 1680 | |
| 1643 | 1681 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value { |
| 1644 | - min-height: 16px; | |
| 1645 | - line-height: 16px; | |
| 1682 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 1683 | + line-height: var(--wpds-typography-line-height-xs, 16px); | |
| 1646 | 1684 | } |
| 1647 | 1685 | |
| 1648 | 1686 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper { |
| 1649 | - padding: 24px 24px; | |
| 1687 | + padding: var(--wpds-dimension-padding-2xl, 24px) var(--wpds-dimension-padding-2xl, 24px); | |
| 1650 | 1688 | } |
| 1651 | 1689 | |
| 1652 | 1690 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field { |
| 1653 | - min-height: 32px; | |
| 1654 | - line-height: 32px; | |
| 1691 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1692 | + line-height: var(--wpds-typography-line-height-xl, 32px); | |
| 1655 | 1693 | } |
| 1656 | 1694 | |
| 1657 | 1695 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper { |
| 1658 | 1696 | width: 64px; |
| @@ -1658,16 +1696,20 @@ | ||
| 1658 | 1696 | width: 64px; |
| 1659 | 1697 | height: 64px; |
| 1660 | 1698 | } |
| 1661 | 1699 | |
| 1700 | +.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper { | |
| 1701 | + min-height: 64px; | |
| 1702 | +} | |
| 1703 | + | |
| 1662 | 1704 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields { |
| 1663 | - gap: 16px; | |
| 1664 | - row-gap: 8px; | |
| 1705 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 1706 | + row-gap: var(--wpds-dimension-gap-sm, 8px); | |
| 1665 | 1707 | } |
| 1666 | 1708 | |
| 1667 | 1709 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value { |
| 1668 | - min-height: 32px; | |
| 1669 | - line-height: 24px; | |
| 1710 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1711 | + line-height: var(--wpds-typography-line-height-md, 24px); | |
| 1670 | 1712 | } |
| 1671 | 1713 | |
| 1672 | 1714 | .dataviews-view-list.is-refreshing { |
| 1673 | 1715 | opacity: 0.5; |
| @@ -1680,13 +1722,13 @@ | ||
| 1680 | 1722 | animation: dataviews-pulse 1s ease-in-out infinite; |
| 1681 | 1723 | } |
| 1682 | 1724 | } |
| 1683 | 1725 | .dataviews-view-list__group-header { |
| 1684 | - font-size: 15px; | |
| 1685 | - font-weight: 499; | |
| 1686 | - color: #1e1e1e; | |
| 1687 | - margin: 0 0 8px 0; | |
| 1688 | - padding: 0 24px; | |
| 1726 | + font-size: var(--wpds-typography-font-size-lg, 15px); | |
| 1727 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1728 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1729 | + margin: 0 0 var(--wpds-dimension-gap-lg, 16px) 0; | |
| 1730 | + padding: 0 var(--wpds-dimension-padding-2xl, 24px); | |
| 1689 | 1731 | } |
| 1690 | 1732 | |
| 1691 | 1733 | .dataviews-view-table { |
| 1692 | 1734 | width: 100%; |
| @@ -1693,9 +1735,9 @@ | ||
| 1693 | 1735 | text-indent: 0; |
| 1694 | 1736 | border-color: inherit; |
| 1695 | 1737 | border-collapse: collapse; |
| 1696 | 1738 | position: relative; |
| 1697 | - color: #757575; | |
| 1739 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 1698 | 1740 | margin-bottom: auto; |
| 1699 | 1741 | background-color: inherit; |
| 1700 | 1742 | } |
| 1701 | 1743 | |
| @@ -1700,16 +1742,16 @@ | ||
| 1700 | 1742 | } |
| 1701 | 1743 | |
| 1702 | 1744 | .dataviews-view-table th { |
| 1703 | 1745 | text-align: left; |
| 1704 | - color: #1e1e1e; | |
| 1705 | - font-weight: normal; | |
| 1706 | - font-size: 13px; | |
| 1746 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1747 | + font-weight: 400; | |
| 1748 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 1707 | 1749 | } |
| 1708 | 1750 | |
| 1709 | 1751 | .dataviews-view-table td, |
| 1710 | 1752 | .dataviews-view-table th { |
| 1711 | - padding: 12px; | |
| 1753 | + padding: var(--wpds-dimension-padding-md, 12px); | |
| 1712 | 1754 | } |
| 1713 | 1755 | |
| 1714 | 1756 | .dataviews-view-table td.dataviews-view-table__actions-column, |
| 1715 | 1757 | .dataviews-view-table th.dataviews-view-table__actions-column { |
| @@ -1719,9 +1761,9 @@ | ||
| 1719 | 1761 | .dataviews-view-table td.dataviews-view-table__actions-column--sticky, |
| 1720 | 1762 | .dataviews-view-table th.dataviews-view-table__actions-column--sticky { |
| 1721 | 1763 | position: sticky; |
| 1722 | 1764 | right: 0; |
| 1723 | - background-color: var(--wp-dataviews-color-background, #fff); | |
| 1765 | + background-color: var(--wp-dataviews-color-background, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 1724 | 1766 | } |
| 1725 | 1767 | |
| 1726 | 1768 | .dataviews-view-table td.dataviews-view-table__actions-column--stuck::after, |
| 1727 | 1769 | .dataviews-view-table th.dataviews-view-table__actions-column--stuck::after { |
| @@ -1731,9 +1773,9 @@ | ||
| 1731 | 1773 | top: 0; |
| 1732 | 1774 | bottom: 0; |
| 1733 | 1775 | left: 0; |
| 1734 | 1776 | width: 1px; |
| 1735 | - background-color: #f0f0f0; | |
| 1777 | + background-color: var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 1736 | 1778 | } |
| 1737 | 1779 | |
| 1738 | 1780 | .dataviews-view-table td.dataviews-view-table__checkbox-column, |
| 1739 | 1781 | .dataviews-view-table th.dataviews-view-table__checkbox-column { |
| @@ -1746,20 +1788,20 @@ | ||
| 1746 | 1788 | min-width: auto; |
| 1747 | 1789 | } |
| 1748 | 1790 | |
| 1749 | 1791 | .dataviews-view-table tr { |
| 1750 | - border-top: 1px solid #f0f0f0; | |
| 1792 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 1751 | 1793 | background-color: inherit; |
| 1752 | 1794 | } |
| 1753 | 1795 | |
| 1754 | 1796 | .dataviews-view-table tr td:first-child, |
| 1755 | 1797 | .dataviews-view-table tr th:first-child { |
| 1756 | - padding-left: 24px; | |
| 1798 | + padding-left: var(--wpds-dimension-padding-2xl, 24px); | |
| 1757 | 1799 | } |
| 1758 | 1800 | |
| 1759 | 1801 | .dataviews-view-table tr td:last-child, |
| 1760 | 1802 | .dataviews-view-table tr th:last-child { |
| 1761 | - padding-right: 24px; | |
| 1803 | + padding-right: var(--wpds-dimension-padding-2xl, 24px); | |
| 1762 | 1804 | } |
| 1763 | 1805 | |
| 1764 | 1806 | .dataviews-view-table tr:last-child { |
| 1765 | 1807 | border-bottom: 0; |
| @@ -1774,18 +1816,18 @@ | ||
| 1774 | 1816 | opacity: 1; |
| 1775 | 1817 | } |
| 1776 | 1818 | } |
| 1777 | 1819 | .dataviews-view-table tr.is-selected { |
| 1778 | - background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 4%, #fff); | |
| 1779 | - color: #757575; | |
| 1820 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 1821 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1780 | 1822 | } |
| 1781 | 1823 | |
| 1782 | 1824 | .dataviews-view-table tr.is-selected, .dataviews-view-table tr.is-selected + tr { |
| 1783 | - border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12); | |
| 1825 | + border-top: 1px solid var(--wpds-color-stroke-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 40%, white)); | |
| 1784 | 1826 | } |
| 1785 | 1827 | |
| 1786 | 1828 | .dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky { |
| 1787 | - background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 4%, #fff); | |
| 1829 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 1788 | 1830 | } |
| 1789 | 1831 | |
| 1790 | 1832 | .dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) { |
| 1791 | 1833 | opacity: 1; |
| @@ -1791,13 +1833,13 @@ | ||
| 1791 | 1833 | opacity: 1; |
| 1792 | 1834 | } |
| 1793 | 1835 | |
| 1794 | 1836 | .dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-view-table__actions-column--sticky, .dataviews-view-table.has-bulk-actions tr:hover .dataviews-view-table__actions-column--sticky { |
| 1795 | - background-color: var(--wp-dataviews-color-background, #fff); | |
| 1837 | + background-color: var(--wp-dataviews-color-background, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 1796 | 1838 | } |
| 1797 | 1839 | |
| 1798 | 1840 | .dataviews-view-table.has-bulk-actions tr.is-selected .dataviews-view-table__actions-column--sticky, .dataviews-view-table.has-bulk-actions tr.is-selected:hover .dataviews-view-table__actions-column--sticky { |
| 1799 | - background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 4%, #fff); | |
| 1841 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 1800 | 1842 | } |
| 1801 | 1843 | |
| 1802 | 1844 | .dataviews-view-table thead { |
| 1803 | 1845 | position: sticky; |
| @@ -1813,9 +1855,9 @@ | ||
| 1813 | 1855 | bottom: 0; |
| 1814 | 1856 | left: 0; |
| 1815 | 1857 | right: 0; |
| 1816 | 1858 | height: 1px; |
| 1817 | - background-color: #f0f0f0; | |
| 1859 | + background-color: var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 1818 | 1860 | } |
| 1819 | 1861 | |
| 1820 | 1862 | .dataviews-view-table thead tr { |
| 1821 | 1863 | border: 0; |
| @@ -1822,30 +1864,30 @@ | ||
| 1822 | 1864 | } |
| 1823 | 1865 | |
| 1824 | 1866 | .dataviews-view-table thead th { |
| 1825 | 1867 | background-color: inherit; |
| 1826 | - padding-top: 8px; | |
| 1827 | - padding-bottom: 8px; | |
| 1868 | + padding-top: var(--wpds-dimension-padding-sm, 8px); | |
| 1869 | + padding-bottom: var(--wpds-dimension-padding-sm, 8px); | |
| 1828 | 1870 | font-size: 11px; |
| 1829 | 1871 | text-transform: uppercase; |
| 1830 | - font-weight: 499; | |
| 1872 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1831 | 1873 | } |
| 1832 | 1874 | |
| 1833 | 1875 | .dataviews-view-table thead th:has(.dataviews-view-table-header-button) { |
| 1834 | - padding-left: 4px; | |
| 1835 | - padding-right: 4px; | |
| 1876 | + padding-left: var(--wpds-dimension-padding-xs, 4px); | |
| 1877 | + padding-right: var(--wpds-dimension-padding-xs, 4px); | |
| 1836 | 1878 | } |
| 1837 | 1879 | |
| 1838 | 1880 | .dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button { |
| 1839 | - gap: 4px; | |
| 1881 | + gap: var(--wpds-dimension-gap-xs, 4px); | |
| 1840 | 1882 | } |
| 1841 | 1883 | |
| 1842 | 1884 | .dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child { |
| 1843 | - padding-left: 16px; | |
| 1885 | + padding-left: var(--wpds-dimension-padding-lg, 16px); | |
| 1844 | 1886 | } |
| 1845 | 1887 | |
| 1846 | 1888 | .dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child { |
| 1847 | - padding-right: 16px; | |
| 1889 | + padding-right: var(--wpds-dimension-padding-lg, 16px); | |
| 1848 | 1890 | } |
| 1849 | 1891 | |
| 1850 | 1892 | .dataviews-view-table tbody td { |
| 1851 | 1893 | vertical-align: top; |
| @@ -1851,9 +1893,9 @@ | ||
| 1851 | 1893 | vertical-align: top; |
| 1852 | 1894 | } |
| 1853 | 1895 | |
| 1854 | 1896 | .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper { |
| 1855 | - min-height: 32px; | |
| 1897 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1856 | 1898 | display: flex; |
| 1857 | 1899 | align-items: center; |
| 1858 | 1900 | white-space: nowrap; |
| 1859 | 1901 | } |
| @@ -1871,16 +1913,16 @@ | ||
| 1871 | 1913 | min-height: 0; |
| 1872 | 1914 | } |
| 1873 | 1915 | |
| 1874 | 1916 | .dataviews-view-table .dataviews-view-table-header-button { |
| 1875 | - padding: 4px 8px; | |
| 1917 | + padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-sm, 8px); | |
| 1876 | 1918 | font-size: 11px; |
| 1877 | 1919 | text-transform: uppercase; |
| 1878 | - font-weight: 499; | |
| 1920 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1879 | 1921 | } |
| 1880 | 1922 | |
| 1881 | 1923 | .dataviews-view-table .dataviews-view-table-header-button:not(:hover) { |
| 1882 | - color: #1e1e1e; | |
| 1924 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 1883 | 1925 | } |
| 1884 | 1926 | |
| 1885 | 1927 | .dataviews-view-table .dataviews-view-table-header-button span { |
| 1886 | 1928 | speak: none; |
| @@ -1890,9 +1932,9 @@ | ||
| 1890 | 1932 | display: none; |
| 1891 | 1933 | } |
| 1892 | 1934 | |
| 1893 | 1935 | .dataviews-view-table .dataviews-view-table-header { |
| 1894 | - padding-left: 4px; | |
| 1936 | + padding-left: var(--wpds-dimension-padding-xs, 4px); | |
| 1895 | 1937 | } |
| 1896 | 1938 | |
| 1897 | 1939 | .dataviews-view-table .dataviews-view-table__actions-column { |
| 1898 | 1940 | width: auto; |
| @@ -1908,14 +1950,14 @@ | ||
| 1908 | 1950 | } |
| 1909 | 1951 | |
| 1910 | 1952 | .dataviews-view-table.has-compact-density td, |
| 1911 | 1953 | .dataviews-view-table.has-compact-density th { |
| 1912 | - padding: 4px 8px; | |
| 1954 | + padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-sm, 8px); | |
| 1913 | 1955 | } |
| 1914 | 1956 | |
| 1915 | 1957 | .dataviews-view-table.has-comfortable-density td, |
| 1916 | 1958 | .dataviews-view-table.has-comfortable-density th { |
| 1917 | - padding: 16px 12px; | |
| 1959 | + padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-md, 12px); | |
| 1918 | 1960 | } |
| 1919 | 1961 | |
| 1920 | 1962 | .dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column, |
| 1921 | 1963 | .dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column, .dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column, |
| @@ -1933,20 +1975,20 @@ | ||
| 1933 | 1975 | } |
| 1934 | 1976 | } |
| 1935 | 1977 | .dataviews-column-primary__media { |
| 1936 | 1978 | max-width: 60px; |
| 1937 | - min-width: 32px; | |
| 1938 | - min-height: 32px; | |
| 1979 | + min-width: var(--wpds-dimension-size-md, 32px); | |
| 1980 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1939 | 1981 | overflow: hidden; |
| 1940 | 1982 | position: relative; |
| 1941 | 1983 | flex-shrink: 0; |
| 1942 | - background-color: #fff; | |
| 1943 | - border-radius: 4px; | |
| 1984 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1985 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1944 | 1986 | } |
| 1945 | 1987 | |
| 1946 | 1988 | .dataviews-column-primary__media img { |
| 1947 | - width: 32px; | |
| 1948 | - height: 32px; | |
| 1989 | + width: var(--wpds-dimension-size-md, 32px); | |
| 1990 | + height: var(--wpds-dimension-size-md, 32px); | |
| 1949 | 1991 | object-fit: cover; |
| 1950 | 1992 | } |
| 1951 | 1993 | |
| 1952 | 1994 | .dataviews-column-primary__media::after { |
| @@ -1955,12 +1997,23 @@ | ||
| 1955 | 1997 | top: 0; |
| 1956 | 1998 | left: 0; |
| 1957 | 1999 | width: 100%; |
| 1958 | 2000 | height: 100%; |
| 1959 | - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); | |
| 1960 | - border-radius: 4px; | |
| 2001 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) rgba(0, 0, 0, 0.1); | |
| 2002 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1961 | 2003 | } |
| 1962 | 2004 | |
| 2005 | +.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media { | |
| 2006 | + height: var(--wpds-dimension-size-md, 32px); | |
| 2007 | + aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1); | |
| 2008 | + min-width: 0; | |
| 2009 | +} | |
| 2010 | + | |
| 2011 | +.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img { | |
| 2012 | + width: 100%; | |
| 2013 | + height: 100%; | |
| 2014 | +} | |
| 2015 | + | |
| 1963 | 2016 | .dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media), |
| 1964 | 2017 | .dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) { |
| 1965 | 2018 | min-width: 15ch; |
| 1966 | 2019 | max-width: 80ch; |
| @@ -1966,11 +2019,11 @@ | ||
| 1966 | 2019 | max-width: 80ch; |
| 1967 | 2020 | } |
| 1968 | 2021 | |
| 1969 | 2022 | .dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell { |
| 1970 | - font-weight: 499; | |
| 1971 | - padding: 12px 24px; | |
| 1972 | - color: #1e1e1e; | |
| 2023 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2024 | + padding: var(--wpds-dimension-padding-md, 12px) var(--wpds-dimension-padding-2xl, 24px); | |
| 2025 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1973 | 2026 | } |
| 1974 | 2027 | |
| 1975 | 2028 | /* Column width intents via colgroup: make non-primary columns shrink-to-fit */ |
| 1976 | 2029 | .dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand) { |
| @@ -1988,13 +2041,13 @@ | ||
| 1988 | 2041 | animation: dataviews-pulse 1s ease-in-out infinite; |
| 1989 | 2042 | } |
| 1990 | 2043 | } |
| 1991 | 2044 | .dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items { |
| 1992 | - gap: 16px; | |
| 2045 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 1993 | 2046 | } |
| 1994 | 2047 | |
| 1995 | 2048 | .dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items { |
| 1996 | - gap: 32px; | |
| 2049 | + gap: var(--wpds-dimension-gap-2xl, 32px); | |
| 1997 | 2050 | } |
| 1998 | 2051 | |
| 1999 | 2052 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card { |
| 2000 | 2053 | height: 100%; |
| @@ -1999,16 +2052,17 @@ | ||
| 1999 | 2052 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card { |
| 2000 | 2053 | height: 100%; |
| 2001 | 2054 | justify-content: flex-start; |
| 2002 | 2055 | position: relative; |
| 2056 | + isolation: isolate; | |
| 2003 | 2057 | } |
| 2004 | 2058 | |
| 2005 | 2059 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions { |
| 2006 | - padding: 8px 0 4px; | |
| 2060 | + padding: var(--wpds-dimension-padding-sm, 8px) 0 var(--wpds-dimension-padding-xs, 4px); | |
| 2007 | 2061 | } |
| 2008 | 2062 | |
| 2009 | 2063 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field { |
| 2010 | - min-height: 24px; | |
| 2064 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2011 | 2065 | overflow: hidden; |
| 2012 | 2066 | align-content: center; |
| 2013 | 2067 | text-align: start; |
| 2014 | 2068 | } |
| @@ -2017,22 +2071,17 @@ | ||
| 2017 | 2071 | width: fit-content; |
| 2018 | 2072 | } |
| 2019 | 2073 | |
| 2020 | 2074 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value { |
| 2021 | - color: #1e1e1e; | |
| 2075 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2022 | 2076 | } |
| 2023 | 2077 | |
| 2024 | -.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media::after, | |
| 2025 | -.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus::after { | |
| 2026 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); | |
| 2027 | -} | |
| 2028 | - | |
| 2029 | 2078 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media::after { |
| 2030 | - box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); | |
| 2079 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)), inset 0 0 0 var(--wpds-border-width-sm, 2px) var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2031 | 2080 | } |
| 2032 | 2081 | |
| 2033 | 2082 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus::after { |
| 2034 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 2083 | + box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2035 | 2084 | } |
| 2036 | 2085 | |
| 2037 | 2086 | .dataviews-view-picker-grid:focus-visible[aria-activedescendant] { |
| 2038 | 2087 | outline: none; |
| @@ -2038,13 +2087,13 @@ | ||
| 2038 | 2087 | outline: none; |
| 2039 | 2088 | } |
| 2040 | 2089 | |
| 2041 | 2090 | .dataviews-view-picker-grid:focus-visible [data-active-item=true] { |
| 2042 | - outline: 2px solid var(--wp-admin-theme-color); | |
| 2091 | + outline: 2px solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2043 | 2092 | } |
| 2044 | 2093 | |
| 2045 | 2094 | .dataviews-view-picker-grid .dataviews-selection-checkbox { |
| 2046 | - top: 8px !important; | |
| 2095 | + top: var(--wpds-dimension-padding-sm, 8px) !important; | |
| 2047 | 2096 | } |
| 2048 | 2097 | |
| 2049 | 2098 | .dataviews-view-picker-grid .dataviews-selection-checkbox input { |
| 2050 | 2099 | pointer-events: none; |
| @@ -2053,10 +2102,11 @@ | ||
| 2053 | 2102 | .dataviews-view-picker-grid .dataviews-view-picker-grid__media { |
| 2054 | 2103 | width: 100%; |
| 2055 | 2104 | aspect-ratio: 1/1; |
| 2056 | 2105 | min-height: 0; |
| 2057 | - background-color: #fff; | |
| 2058 | - border-radius: 4px; | |
| 2106 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2107 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 2108 | + overflow: hidden; | |
| 2059 | 2109 | position: relative; |
| 2060 | 2110 | } |
| 2061 | 2111 | |
| 2062 | 2112 | .dataviews-view-picker-grid .dataviews-view-picker-grid__media img { |
| @@ -2071,13 +2121,21 @@ | ||
| 2071 | 2121 | top: 0; |
| 2072 | 2122 | left: 0; |
| 2073 | 2123 | width: 100%; |
| 2074 | 2124 | height: 100%; |
| 2075 | - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); | |
| 2076 | - border-radius: 4px; | |
| 2125 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) rgba(0, 0, 0, 0.1); | |
| 2126 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 2077 | 2127 | pointer-events: none; |
| 2078 | 2128 | } |
| 2079 | 2129 | |
| 2130 | +.dataviews-view-picker-grid.has-media-fit-contain .dataviews-view-picker-grid__media { | |
| 2131 | + background-color: var(--wpds-color-background-surface-neutral, #fcfcfc); | |
| 2132 | +} | |
| 2133 | + | |
| 2134 | +.dataviews-view-picker-grid.has-media-fit-contain .dataviews-view-picker-grid__media img { | |
| 2135 | + object-fit: contain; | |
| 2136 | +} | |
| 2137 | + | |
| 2080 | 2138 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields { |
| 2081 | 2139 | position: relative; |
| 2082 | 2140 | font-size: 12px; |
| 2083 | 2141 | line-height: 16px; |
| @@ -2083,25 +2141,25 @@ | ||
| 2083 | 2141 | line-height: 16px; |
| 2084 | 2142 | } |
| 2085 | 2143 | |
| 2086 | 2144 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty) { |
| 2087 | - padding: 0 0 12px; | |
| 2145 | + padding: 0 0 var(--wpds-dimension-padding-md, 12px); | |
| 2088 | 2146 | } |
| 2089 | 2147 | |
| 2090 | 2148 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty) { |
| 2091 | - min-height: 24px; | |
| 2092 | - line-height: 20px; | |
| 2093 | - padding-top: 2px; | |
| 2149 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2150 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 2151 | + padding-top: calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px)) / 2); | |
| 2094 | 2152 | } |
| 2095 | 2153 | |
| 2096 | 2154 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field { |
| 2097 | - min-height: 24px; | |
| 2155 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2098 | 2156 | align-items: center; |
| 2099 | 2157 | } |
| 2100 | 2158 | |
| 2101 | 2159 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name { |
| 2102 | 2160 | width: 35%; |
| 2103 | - color: #757575; | |
| 2161 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2104 | 2162 | overflow: hidden; |
| 2105 | 2163 | text-overflow: ellipsis; |
| 2106 | 2164 | white-space: nowrap; |
| 2107 | 2165 | } |
| @@ -2117,9 +2175,9 @@ | ||
| 2117 | 2175 | display: none; |
| 2118 | 2176 | } |
| 2119 | 2177 | |
| 2120 | 2178 | .dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty) { |
| 2121 | - padding-bottom: 12px; | |
| 2179 | + padding-bottom: var(--wpds-dimension-padding-md, 12px); | |
| 2122 | 2180 | } |
| 2123 | 2181 | |
| 2124 | 2182 | .dataviews-view-picker-grid__field-value:empty, |
| 2125 | 2183 | .dataviews-view-picker-grid__field:empty { |
| @@ -2128,21 +2186,21 @@ | ||
| 2128 | 2186 | |
| 2129 | 2187 | .dataviews-view-picker-grid__card .dataviews-selection-checkbox { |
| 2130 | 2188 | position: absolute; |
| 2131 | 2189 | top: -9999em; |
| 2132 | - left: 8px; | |
| 2190 | + left: var(--wpds-dimension-padding-sm, 8px); | |
| 2133 | 2191 | z-index: 1; |
| 2134 | 2192 | } |
| 2135 | 2193 | |
| 2136 | 2194 | @media (hover: none) { |
| 2137 | 2195 | .dataviews-view-picker-grid__card .dataviews-selection-checkbox { |
| 2138 | - top: 8px; | |
| 2196 | + top: var(--wpds-dimension-padding-sm, 8px); | |
| 2139 | 2197 | } |
| 2140 | 2198 | } |
| 2141 | 2199 | .dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox, |
| 2142 | 2200 | .dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox, |
| 2143 | 2201 | .dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox { |
| 2144 | - top: 8px; | |
| 2202 | + top: var(--wpds-dimension-padding-sm, 8px); | |
| 2145 | 2203 | } |
| 2146 | 2204 | |
| 2147 | 2205 | .dataviews-view-picker-grid__media--clickable { |
| 2148 | 2206 | cursor: var(--wpds-cursor-control, pointer); |
| @@ -2148,12 +2206,12 @@ | ||
| 2148 | 2206 | cursor: var(--wpds-cursor-control, pointer); |
| 2149 | 2207 | } |
| 2150 | 2208 | |
| 2151 | 2209 | .dataviews-view-picker-grid-group__header { |
| 2152 | - font-size: 15px; | |
| 2153 | - font-weight: 499; | |
| 2154 | - color: #1e1e1e; | |
| 2155 | - margin: 0 0 8px 0; | |
| 2210 | + font-size: var(--wpds-typography-font-size-lg, 15px); | |
| 2211 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2212 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2213 | + margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0; | |
| 2156 | 2214 | padding: 0 48px; |
| 2157 | 2215 | } |
| 2158 | 2216 | |
| 2159 | 2217 | .dataviews-view-picker-table { |
| @@ -2168,9 +2226,9 @@ | ||
| 2168 | 2226 | outline: none; |
| 2169 | 2227 | } |
| 2170 | 2228 | |
| 2171 | 2229 | .dataviews-view-picker-table tbody:focus-visible [data-active-item=true] { |
| 2172 | - outline: 2px solid var(--wp-admin-theme-color); | |
| 2230 | + outline: 2px solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2173 | 2231 | } |
| 2174 | 2232 | |
| 2175 | 2233 | .dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input { |
| 2176 | 2234 | pointer-events: none; |
| @@ -2181,34 +2239,34 @@ | ||
| 2181 | 2239 | cursor: var(--wpds-cursor-control, pointer); |
| 2182 | 2240 | } |
| 2183 | 2241 | |
| 2184 | 2242 | .dataviews-view-picker-table .dataviews-view-table__row.is-selected { |
| 2185 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 2243 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 2186 | 2244 | } |
| 2187 | 2245 | |
| 2188 | 2246 | .dataviews-view-picker-table .dataviews-view-table__row.is-hovered { |
| 2189 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); | |
| 2247 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 2190 | 2248 | } |
| 2191 | 2249 | |
| 2192 | 2250 | .dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered { |
| 2193 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.12); | |
| 2251 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 2194 | 2252 | } |
| 2195 | 2253 | |
| 2196 | 2254 | .dataviews-view-activity { |
| 2197 | 2255 | margin: 0 0 auto; |
| 2198 | - padding: 0 24px; | |
| 2256 | + padding: 0 var(--wpds-dimension-padding-2xl, 24px); | |
| 2199 | 2257 | } |
| 2200 | 2258 | |
| 2201 | 2259 | .dataviews-view-activity .dataviews-view-activity__group-header { |
| 2202 | - font-size: 15px; | |
| 2203 | - font-weight: 499; | |
| 2204 | - color: #949494; | |
| 2205 | - margin: 0 0 8px 0; | |
| 2260 | + font-size: var(--wpds-typography-font-size-lg, 15px); | |
| 2261 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2262 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2263 | + margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0; | |
| 2206 | 2264 | padding: 0; |
| 2207 | 2265 | } |
| 2208 | 2266 | |
| 2209 | 2267 | .dataviews-view-activity .dataviews-view-activity__item-actions { |
| 2210 | - min-width: 24px; | |
| 2268 | + min-width: var(--wpds-dimension-size-sm, 24px); | |
| 2211 | 2269 | } |
| 2212 | 2270 | |
| 2213 | 2271 | .dataviews-view-activity .dataviews-view-activity__item-content { |
| 2214 | 2272 | flex-grow: 1; |
| @@ -2216,9 +2274,9 @@ | ||
| 2216 | 2274 | |
| 2217 | 2275 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title, |
| 2218 | 2276 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description, |
| 2219 | 2277 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields { |
| 2220 | - min-height: 16px; | |
| 2278 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 2221 | 2279 | } |
| 2222 | 2280 | |
| 2223 | 2281 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title { |
| 2224 | 2282 | position: relative; |
| @@ -2232,11 +2290,11 @@ | ||
| 2232 | 2290 | cursor: var(--wpds-cursor-control, pointer); |
| 2233 | 2291 | } |
| 2234 | 2292 | |
| 2235 | 2293 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible { |
| 2236 | - outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color); | |
| 2294 | + outline: var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2237 | 2295 | outline-offset: var(--wp-admin-border-width-focus); |
| 2238 | - border-radius: 2px; | |
| 2296 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 2239 | 2297 | } |
| 2240 | 2298 | |
| 2241 | 2299 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions { |
| 2242 | 2300 | display: flex; |
| @@ -2249,12 +2307,12 @@ | ||
| 2249 | 2307 | z-index: 1; |
| 2250 | 2308 | } |
| 2251 | 2309 | |
| 2252 | 2310 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields { |
| 2253 | - color: #757575; | |
| 2311 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2254 | 2312 | display: flex; |
| 2255 | - gap: 12px; | |
| 2256 | - row-gap: 4px; | |
| 2313 | + gap: var(--wpds-dimension-gap-md, 12px); | |
| 2314 | + row-gap: var(--wpds-dimension-gap-xs, 4px); | |
| 2257 | 2315 | flex-wrap: wrap; |
| 2258 | 2316 | } |
| 2259 | 2317 | |
| 2260 | 2318 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty { |
| @@ -2279,9 +2337,9 @@ | ||
| 2279 | 2337 | content: ""; |
| 2280 | 2338 | flex: 1 1 auto; |
| 2281 | 2339 | width: 1px; |
| 2282 | 2340 | margin: 0 auto; |
| 2283 | - background-color: #ddd; | |
| 2341 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2284 | 2342 | } |
| 2285 | 2343 | |
| 2286 | 2344 | .dataviews-view-activity .dataviews-view-activity__item-type::before { |
| 2287 | 2345 | content: ""; |
| @@ -2287,67 +2345,67 @@ | ||
| 2287 | 2345 | content: ""; |
| 2288 | 2346 | flex: 0 0 auto; |
| 2289 | 2347 | width: 1px; |
| 2290 | 2348 | margin: 0 auto; |
| 2291 | - background-color: #ddd; | |
| 2349 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2292 | 2350 | } |
| 2293 | 2351 | |
| 2294 | 2352 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type { |
| 2295 | - width: 12px; | |
| 2353 | + width: var(--wpds-dimension-padding-md, 12px); | |
| 2296 | 2354 | } |
| 2297 | 2355 | |
| 2298 | 2356 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type::before { |
| 2299 | - height: 12px; | |
| 2357 | + height: var(--wpds-dimension-size-3xs, 12px); | |
| 2300 | 2358 | } |
| 2301 | 2359 | |
| 2302 | 2360 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon { |
| 2303 | - width: 11px; | |
| 2304 | - height: 11px; | |
| 2361 | + width: calc(var(--wpds-dimension-size-3xs, 12px) - 1px); | |
| 2362 | + height: calc(var(--wpds-dimension-size-3xs, 12px) - 1px); | |
| 2305 | 2363 | } |
| 2306 | 2364 | |
| 2307 | 2365 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content { |
| 2308 | - margin: 12px 0; | |
| 2366 | + margin: var(--wpds-dimension-gap-md, 12px) 0; | |
| 2309 | 2367 | } |
| 2310 | 2368 | |
| 2311 | 2369 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type { |
| 2312 | - width: 24px; | |
| 2370 | + width: var(--wpds-dimension-size-sm, 24px); | |
| 2313 | 2371 | } |
| 2314 | 2372 | |
| 2315 | 2373 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type::before { |
| 2316 | - height: 12px; | |
| 2374 | + height: var(--wpds-dimension-size-3xs, 12px); | |
| 2317 | 2375 | } |
| 2318 | 2376 | |
| 2319 | 2377 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon { |
| 2320 | - width: 25px; | |
| 2321 | - height: 25px; | |
| 2378 | + width: calc(var(--wpds-dimension-size-sm, 24px) + 1px); | |
| 2379 | + height: calc(var(--wpds-dimension-size-sm, 24px) + 1px); | |
| 2322 | 2380 | } |
| 2323 | 2381 | |
| 2324 | 2382 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content { |
| 2325 | - margin: 12px 0; | |
| 2326 | - padding-top: 8px; | |
| 2383 | + margin: var(--wpds-dimension-gap-md, 12px) 0; | |
| 2384 | + padding-top: var(--wpds-dimension-padding-sm, 8px); | |
| 2327 | 2385 | } |
| 2328 | 2386 | |
| 2329 | 2387 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type { |
| 2330 | - width: 32px; | |
| 2388 | + width: var(--wpds-dimension-size-md, 32px); | |
| 2331 | 2389 | } |
| 2332 | 2390 | |
| 2333 | 2391 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type::before { |
| 2334 | - height: 8px; | |
| 2392 | + height: var(--wpds-dimension-size-4xs, 8px); | |
| 2335 | 2393 | } |
| 2336 | 2394 | |
| 2337 | 2395 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon { |
| 2338 | - width: 33px; | |
| 2339 | - height: 33px; | |
| 2396 | + width: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 2397 | + height: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 2340 | 2398 | } |
| 2341 | 2399 | |
| 2342 | 2400 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content { |
| 2343 | - margin: 8px 0 16px; | |
| 2344 | - padding-top: 12px; | |
| 2401 | + margin: var(--wpds-dimension-gap-sm, 8px) 0 var(--wpds-dimension-gap-lg, 16px); | |
| 2402 | + padding-top: var(--wpds-dimension-padding-md, 12px); | |
| 2345 | 2403 | } |
| 2346 | 2404 | |
| 2347 | 2405 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet, .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet { |
| 2348 | - width: 9px; | |
| 2349 | - height: 9px; | |
| 2406 | + width: calc(var(--wpds-dimension-size-4xs, 8px) + 1px); | |
| 2407 | + height: calc(var(--wpds-dimension-size-4xs, 8px) + 1px); | |
| 2350 | 2408 | position: relative; |
| 2351 | 2409 | top: 50%; |
| 2352 | 2410 | transform: translateY(-50%); |
| 2353 | 2411 | } |
| @@ -2356,15 +2414,15 @@ | ||
| 2356 | 2414 | visibility: hidden; |
| 2357 | 2415 | } |
| 2358 | 2416 | |
| 2359 | 2417 | .dataviews-view-activity .dataviews-view-activity__group:last-of-type > .dataviews-view-activity__item:last-of-type .dataviews-view-activity__item-type::after, .dataviews-view-activity > .dataviews-view-activity__item:last-child .dataviews-view-activity__item-type::after { |
| 2360 | - background: linear-gradient(to bottom, #ddd 0%, rgba(221, 221, 221, 0.2) 60%, rgba(221, 221, 221, 0) 100%); | |
| 2418 | + background: linear-gradient(to bottom, var(--wpds-color-stroke-surface-neutral, #dbdbdb) 0%, color-mix(in srgb, var(--wpds-color-stroke-surface-neutral, #dbdbdb) 20%, transparent) 60%, transparent 100%); | |
| 2361 | 2419 | } |
| 2362 | 2420 | |
| 2363 | 2421 | .dataviews-view-activity .dataviews-view-activity__item-type-icon { |
| 2364 | 2422 | overflow: hidden; |
| 2365 | 2423 | flex-shrink: 0; |
| 2366 | - background-color: #fff; | |
| 2424 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2367 | 2425 | } |
| 2368 | 2426 | |
| 2369 | 2427 | .dataviews-view-activity .dataviews-view-activity__item-type-icon img, |
| 2370 | 2428 | .dataviews-view-activity .dataviews-view-activity__item-type-icon svg, |
| @@ -2375,18 +2433,18 @@ | ||
| 2375 | 2433 | margin: 0 auto; |
| 2376 | 2434 | object-fit: cover; |
| 2377 | 2435 | border-radius: 50%; |
| 2378 | 2436 | box-sizing: border-box; |
| 2379 | - box-shadow: inset 0 0 0 1px #ddd; | |
| 2437 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2380 | 2438 | } |
| 2381 | 2439 | |
| 2382 | 2440 | .dataviews-view-activity .dataviews-view-activity__item-type-icon svg { |
| 2383 | - padding: 4px; | |
| 2441 | + padding: var(--wpds-dimension-padding-xs, 4px); | |
| 2384 | 2442 | } |
| 2385 | 2443 | |
| 2386 | 2444 | .dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet { |
| 2387 | 2445 | content: ""; |
| 2388 | - background-color: #ddd; | |
| 2446 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2389 | 2447 | } |
| 2390 | 2448 | |
| 2391 | 2449 | .dataviews-view-activity.is-refreshing { |
| 2392 | 2450 | opacity: 0.5; |
| @@ -2402,11 +2460,211 @@ | ||
| 2402 | 2460 | .dataviews-view-activity + .dataviews-pagination { |
| 2403 | 2461 | justify-content: space-between; |
| 2404 | 2462 | } |
| 2405 | 2463 | |
| 2464 | +.dataviews-view-picker-activity { | |
| 2465 | + margin: 0; | |
| 2466 | + padding: 0; | |
| 2467 | + flex-grow: 1; | |
| 2468 | +} | |
| 2469 | + | |
| 2470 | +.dataviews-view-picker-activity:focus-visible[aria-activedescendant] { | |
| 2471 | + outline: none; | |
| 2472 | +} | |
| 2473 | + | |
| 2474 | +.dataviews-view-picker-activity:focus-visible .dataviews-view-picker-activity__item[data-active-item=true] { | |
| 2475 | + outline: 2px solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2476 | + outline-offset: -2px; | |
| 2477 | +} | |
| 2478 | + | |
| 2479 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item { | |
| 2480 | + cursor: var(--wpds-cursor-control, pointer); | |
| 2481 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 2482 | + padding-inline: var(--wpds-dimension-padding-2xl, 24px); | |
| 2483 | + transition: background-color 0.1s ease; | |
| 2484 | +} | |
| 2485 | + | |
| 2486 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected, .dataviews-view-picker-activity .dataviews-view-picker-activity__item:hover { | |
| 2487 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 2488 | +} | |
| 2489 | + | |
| 2490 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected { | |
| 2491 | + outline: 3px solid transparent; | |
| 2492 | + outline-offset: -2px; | |
| 2493 | +} | |
| 2494 | + | |
| 2495 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type { | |
| 2496 | + width: var(--wpds-dimension-padding-md, 12px); | |
| 2497 | +} | |
| 2498 | + | |
| 2499 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type::before { | |
| 2500 | + height: var(--wpds-dimension-size-3xs, 12px); | |
| 2501 | +} | |
| 2502 | + | |
| 2503 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type-icon { | |
| 2504 | + width: calc(var(--wpds-dimension-size-3xs, 12px) - 1px); | |
| 2505 | + height: calc(var(--wpds-dimension-size-3xs, 12px) - 1px); | |
| 2506 | +} | |
| 2507 | + | |
| 2508 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-content { | |
| 2509 | + margin: var(--wpds-dimension-gap-md, 12px) 0; | |
| 2510 | +} | |
| 2511 | + | |
| 2512 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type { | |
| 2513 | + width: var(--wpds-dimension-size-sm, 24px); | |
| 2514 | +} | |
| 2515 | + | |
| 2516 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type::before { | |
| 2517 | + height: var(--wpds-dimension-size-3xs, 12px); | |
| 2518 | +} | |
| 2519 | + | |
| 2520 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type-icon { | |
| 2521 | + width: calc(var(--wpds-dimension-size-sm, 24px) + 1px); | |
| 2522 | + height: calc(var(--wpds-dimension-size-sm, 24px) + 1px); | |
| 2523 | +} | |
| 2524 | + | |
| 2525 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-content { | |
| 2526 | + margin: var(--wpds-dimension-gap-md, 12px) 0; | |
| 2527 | + padding-top: var(--wpds-dimension-padding-sm, 8px); | |
| 2528 | +} | |
| 2529 | + | |
| 2530 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type { | |
| 2531 | + width: var(--wpds-dimension-size-md, 32px); | |
| 2532 | +} | |
| 2533 | + | |
| 2534 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type::before { | |
| 2535 | + height: var(--wpds-dimension-size-4xs, 8px); | |
| 2536 | +} | |
| 2537 | + | |
| 2538 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type-icon { | |
| 2539 | + width: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 2540 | + height: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 2541 | +} | |
| 2542 | + | |
| 2543 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-content { | |
| 2544 | + margin: var(--wpds-dimension-gap-sm, 8px) 0 var(--wpds-dimension-gap-lg, 16px); | |
| 2545 | + padding-top: var(--wpds-dimension-padding-md, 12px); | |
| 2546 | +} | |
| 2547 | + | |
| 2548 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-bullet, .dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-bullet { | |
| 2549 | + width: calc(var(--wpds-dimension-size-4xs, 8px) + 1px); | |
| 2550 | + height: calc(var(--wpds-dimension-size-4xs, 8px) + 1px); | |
| 2551 | + position: relative; | |
| 2552 | + top: 50%; | |
| 2553 | + transform: translateY(-50%); | |
| 2554 | +} | |
| 2555 | + | |
| 2556 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content { | |
| 2557 | + flex-grow: 1; | |
| 2558 | +} | |
| 2559 | + | |
| 2560 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title, | |
| 2561 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description, | |
| 2562 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields { | |
| 2563 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 2564 | +} | |
| 2565 | + | |
| 2566 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title { | |
| 2567 | + position: relative; | |
| 2568 | + display: flex; | |
| 2569 | + align-items: center; | |
| 2570 | + flex: 1; | |
| 2571 | + overflow: hidden; | |
| 2572 | +} | |
| 2573 | + | |
| 2574 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description:empty { | |
| 2575 | + display: none; | |
| 2576 | +} | |
| 2577 | + | |
| 2578 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields { | |
| 2579 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2580 | + display: flex; | |
| 2581 | + gap: var(--wpds-dimension-gap-md, 12px); | |
| 2582 | + row-gap: var(--wpds-dimension-gap-xs, 4px); | |
| 2583 | + flex-wrap: wrap; | |
| 2584 | +} | |
| 2585 | + | |
| 2586 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields:empty { | |
| 2587 | + display: none; | |
| 2588 | +} | |
| 2589 | + | |
| 2590 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field:has(.dataviews-view-picker-activity__item-field-value:empty) { | |
| 2591 | + display: none; | |
| 2592 | +} | |
| 2593 | + | |
| 2594 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field-value { | |
| 2595 | + display: flex; | |
| 2596 | + align-items: center; | |
| 2597 | +} | |
| 2598 | + | |
| 2599 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type { | |
| 2600 | + align-self: stretch; | |
| 2601 | + flex-shrink: 0; | |
| 2602 | +} | |
| 2603 | + | |
| 2604 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type::after { | |
| 2605 | + content: ""; | |
| 2606 | + flex: 1 1 auto; | |
| 2607 | + width: 1px; | |
| 2608 | + margin: 0 auto; | |
| 2609 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2610 | +} | |
| 2611 | + | |
| 2612 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type::before { | |
| 2613 | + content: ""; | |
| 2614 | + flex: 0 0 auto; | |
| 2615 | + width: 1px; | |
| 2616 | + margin: 0 auto; | |
| 2617 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2618 | +} | |
| 2619 | + | |
| 2620 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item:first-child .dataviews-view-picker-activity__item-type::before { | |
| 2621 | + visibility: hidden; | |
| 2622 | +} | |
| 2623 | + | |
| 2624 | +.dataviews-view-picker-activity .dataviews-view-picker-activity-group:last-of-type > .dataviews-view-picker-activity__item:last-of-type .dataviews-view-picker-activity__item-type::after, .dataviews-view-picker-activity > .dataviews-view-picker-activity__item:last-child .dataviews-view-picker-activity__item-type::after { | |
| 2625 | + background: linear-gradient(to bottom, var(--wpds-color-stroke-surface-neutral, #dbdbdb) 0%, color-mix(in srgb, var(--wpds-color-stroke-surface-neutral, #dbdbdb) 20%, transparent) 60%, transparent 100%); | |
| 2626 | +} | |
| 2627 | + | |
| 2628 | +.dataviews-view-picker-activity .dataviews-view-picker-activity-group__header { | |
| 2629 | + font-size: var(--wpds-typography-font-size-lg, 15px); | |
| 2630 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2631 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2632 | + margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0; | |
| 2633 | + padding: 0; | |
| 2634 | + padding-inline-start: var(--wpds-dimension-padding-2xl, 24px); | |
| 2635 | +} | |
| 2636 | + | |
| 2637 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon { | |
| 2638 | + overflow: hidden; | |
| 2639 | + flex-shrink: 0; | |
| 2640 | + background-color: transparent; | |
| 2641 | +} | |
| 2642 | + | |
| 2643 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon img, | |
| 2644 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg, | |
| 2645 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet { | |
| 2646 | + display: block; | |
| 2647 | + width: 100%; | |
| 2648 | + height: 100%; | |
| 2649 | + margin: 0 auto; | |
| 2650 | + object-fit: cover; | |
| 2651 | + border-radius: 50%; | |
| 2652 | + box-sizing: border-box; | |
| 2653 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2654 | +} | |
| 2655 | + | |
| 2656 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg { | |
| 2657 | + padding: var(--wpds-dimension-padding-xs, 4px); | |
| 2658 | +} | |
| 2659 | + | |
| 2660 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet { | |
| 2661 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2662 | +} | |
| 2663 | + | |
| 2406 | 2664 | .dataviews-picker-footer__bulk-selection { |
| 2407 | 2665 | align-self: flex-start; |
| 2408 | - height: 32px; | |
| 2666 | + height: var(--wpds-dimension-size-md, 32px); | |
| 2409 | 2667 | } |
| 2410 | 2668 | |
| 2411 | 2669 | .dataviews-picker-footer__actions { |
| 2412 | 2670 | align-self: flex-end; |
| @@ -2436,30 +2694,51 @@ | ||
| 2436 | 2694 | display: flex; |
| 2437 | 2695 | } |
| 2438 | 2696 | |
| 2439 | 2697 | .dataviews-controls__date-preset { |
| 2440 | - border: 1px solid #ddd; | |
| 2698 | + border: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2441 | 2699 | } |
| 2442 | 2700 | |
| 2443 | 2701 | .dataviews-controls__date-preset:active { |
| 2444 | - background-color: #000; | |
| 2702 | + background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e); | |
| 2445 | 2703 | } |
| 2446 | 2704 | |
| 2705 | +.dataviews-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]), .dataviews-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])), .dataviews-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])), .dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop { | |
| 2706 | + --focus-color: var(--wpds-color-stroke-interactive-error, #cc1818); | |
| 2707 | +} | |
| 2708 | + | |
| 2709 | +.dataviews-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])), .dataviews-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])), .dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop { | |
| 2710 | + border-color: var(--wpds-color-stroke-interactive-error, #cc1818); | |
| 2711 | +} | |
| 2712 | + | |
| 2713 | +.dataviews-validated-control__wrapper-with-error-delegate { | |
| 2714 | + position: relative; | |
| 2715 | +} | |
| 2716 | + | |
| 2717 | +.dataviews-validated-control__error-delegate { | |
| 2718 | + position: absolute; | |
| 2719 | + top: 0; | |
| 2720 | + height: 100%; | |
| 2721 | + width: 100%; | |
| 2722 | + opacity: 0; | |
| 2723 | + pointer-events: none; | |
| 2724 | +} | |
| 2725 | + | |
| 2447 | 2726 | .dataforms-layouts-panel__field-trigger { |
| 2448 | 2727 | position: relative; |
| 2449 | 2728 | color: inherit; |
| 2450 | 2729 | display: flex; |
| 2451 | 2730 | width: 100%; |
| 2452 | - min-height: 24px; | |
| 2731 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2453 | 2732 | cursor: var(--wpds-cursor-control, pointer); |
| 2454 | 2733 | align-items: flex-start; |
| 2455 | - border-radius: 2px; | |
| 2734 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 2456 | 2735 | isolation: isolate; |
| 2457 | 2736 | } |
| 2458 | 2737 | |
| 2459 | 2738 | .dataforms-layouts-panel__field-trigger--label-side { |
| 2460 | 2739 | flex-direction: row; |
| 2461 | - gap: var(--wpds-dimension-gap-md, 12px); | |
| 2740 | + gap: var(--wpds-dimension-gap-sm, 8px); | |
| 2462 | 2741 | } |
| 2463 | 2742 | |
| 2464 | 2743 | .dataforms-layouts-panel__field-trigger--label-top { |
| 2465 | 2744 | display: grid; |
| @@ -2470,9 +2749,9 @@ | ||
| 2470 | 2749 | align-items: center; |
| 2471 | 2750 | } |
| 2472 | 2751 | |
| 2473 | 2752 | .dataforms-layouts-panel__field-trigger:not(.is-disabled):hover { |
| 2474 | - color: var(--wp-admin-theme-color); | |
| 2753 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2475 | 2754 | } |
| 2476 | 2755 | |
| 2477 | 2756 | .dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon { |
| 2478 | 2757 | opacity: 1; |
| @@ -2478,9 +2757,9 @@ | ||
| 2478 | 2757 | opacity: 1; |
| 2479 | 2758 | } |
| 2480 | 2759 | |
| 2481 | 2760 | .dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label { |
| 2482 | - color: var(--wp-admin-theme-color); | |
| 2761 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2483 | 2762 | } |
| 2484 | 2763 | |
| 2485 | 2764 | .dataforms-layouts-panel__field-trigger.is-disabled { |
| 2486 | 2765 | cursor: default; |
| @@ -2486,10 +2765,10 @@ | ||
| 2486 | 2765 | cursor: default; |
| 2487 | 2766 | } |
| 2488 | 2767 | |
| 2489 | 2768 | .dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control { |
| 2490 | - color: #757575; | |
| 2491 | - font-weight: var(--wpds-typography-font-weight-regular, 400); | |
| 2769 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2770 | + font-weight: var(--wpds-typography-font-weight-default, 400); | |
| 2492 | 2771 | } |
| 2493 | 2772 | |
| 2494 | 2773 | .dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon { |
| 2495 | 2774 | opacity: 1; |
| @@ -2496,22 +2775,28 @@ | ||
| 2496 | 2775 | fill: currentColor; |
| 2497 | 2776 | } |
| 2498 | 2777 | |
| 2499 | 2778 | .dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover, .dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible { |
| 2500 | - fill: var(--wp-admin-theme-color); | |
| 2779 | + fill: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2501 | 2780 | } |
| 2502 | 2781 | |
| 2503 | 2782 | .dataforms-layouts-panel__field-trigger-icon { |
| 2504 | 2783 | padding: 0; |
| 2505 | - color: var(--wp-admin-theme-color); | |
| 2784 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2506 | 2785 | flex: 0 0 auto; |
| 2507 | 2786 | opacity: 0; |
| 2508 | 2787 | border-radius: var(--wpds-border-radius-xs, 1px); |
| 2509 | 2788 | } |
| 2510 | 2789 | |
| 2790 | +.dataforms-layouts-panel__field-trigger-icon::after { | |
| 2791 | + content: ""; | |
| 2792 | + position: absolute; | |
| 2793 | + inset: 0; | |
| 2794 | +} | |
| 2795 | + | |
| 2511 | 2796 | .dataforms-layouts-panel__field-trigger-icon:focus-visible { |
| 2512 | 2797 | opacity: 1; |
| 2513 | - outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wp-admin-theme-color); | |
| 2798 | + outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2514 | 2799 | } |
| 2515 | 2800 | |
| 2516 | 2801 | .dataforms-layouts-panel__field-dropdown-anchor { |
| 2517 | 2802 | width: 100%; |
| @@ -2523,14 +2808,14 @@ | ||
| 2523 | 2808 | |
| 2524 | 2809 | .dataforms-layouts-panel__field-label { |
| 2525 | 2810 | width: 38%; |
| 2526 | 2811 | flex-shrink: 0; |
| 2527 | - min-height: 24px; | |
| 2812 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2528 | 2813 | display: flex; |
| 2529 | 2814 | align-items: center; |
| 2530 | - line-height: 20px; | |
| 2815 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 2531 | 2816 | hyphens: auto; |
| 2532 | - color: #757575; | |
| 2817 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2533 | 2818 | } |
| 2534 | 2819 | |
| 2535 | 2820 | .dataforms-layouts-panel__field-label .components-base-control__label { |
| 2536 | 2821 | display: inline; |
| @@ -2538,38 +2823,39 @@ | ||
| 2538 | 2823 | line-height: inherit; |
| 2539 | 2824 | } |
| 2540 | 2825 | |
| 2541 | 2826 | .dataforms-layouts-panel__field-label.has-error { |
| 2542 | - color: #cc1818; | |
| 2827 | + color: var(--wpds-color-foreground-content-error-weak, #cc1818); | |
| 2543 | 2828 | } |
| 2544 | 2829 | |
| 2545 | 2830 | .dataforms-layouts-panel__field-label-error-content { |
| 2546 | - position: relative; | |
| 2547 | - z-index: 1; | |
| 2548 | - cursor: help; | |
| 2549 | - fill: #cc1818; | |
| 2831 | + pointer-events: none; | |
| 2832 | + color: var(--wpds-color-foreground-content-error-weak, #cc1818); | |
| 2550 | 2833 | display: inline-flex; |
| 2551 | 2834 | flex-direction: row; |
| 2552 | 2835 | align-items: center; |
| 2553 | - gap: 4px; | |
| 2836 | + gap: var(--wpds-dimension-gap-xs, 4px); | |
| 2554 | 2837 | } |
| 2555 | 2838 | |
| 2556 | -.dataforms-layouts-panel__field-label-error-content svg { | |
| 2557 | - fill: currentColor; | |
| 2558 | -} | |
| 2559 | - | |
| 2560 | 2839 | .dataforms-layouts-panel__field-control { |
| 2561 | 2840 | flex-grow: 1; |
| 2562 | 2841 | min-width: 0; |
| 2563 | - min-height: 24px; | |
| 2842 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2564 | 2843 | line-height: var(--wpds-typography-line-height-md, 24px); |
| 2565 | 2844 | display: flex; |
| 2566 | 2845 | align-items: center; |
| 2567 | - overflow: hidden; | |
| 2568 | - word-break: break-word; | |
| 2569 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 2846 | + overflow: clip; | |
| 2847 | + padding-inline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 2848 | + margin-inline: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 2849 | + word-break: normal; | |
| 2850 | + overflow-wrap: anywhere; | |
| 2851 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2570 | 2852 | } |
| 2571 | 2853 | |
| 2854 | +.dataforms-layouts-panel__field-control:has(a, button) { | |
| 2855 | + z-index: 1; | |
| 2856 | +} | |
| 2857 | + | |
| 2572 | 2858 | .dataforms-layouts-panel__field-control > * { |
| 2573 | 2859 | min-width: 0; |
| 2574 | 2860 | } |
| 2575 | 2861 | |
| @@ -2586,18 +2872,18 @@ | ||
| 2586 | 2872 | grid-column: 2; |
| 2587 | 2873 | } |
| 2588 | 2874 | |
| 2589 | 2875 | .dataforms-layouts-panel__field-dropdown .components-popover__content { |
| 2590 | - min-width: 256px; | |
| 2591 | - padding: 16px; | |
| 2876 | + min-width: 320px; | |
| 2877 | + padding: var(--wpds-dimension-padding-lg, 16px); | |
| 2592 | 2878 | } |
| 2593 | 2879 | |
| 2594 | 2880 | .dataforms-layouts-panel__dropdown-header { |
| 2595 | - margin-bottom: 16px; | |
| 2881 | + margin-bottom: var(--wpds-dimension-gap-lg, 16px); | |
| 2596 | 2882 | } |
| 2597 | 2883 | |
| 2598 | 2884 | .dataforms-layouts-panel__modal-footer { |
| 2599 | - margin-top: 16px; | |
| 2885 | + margin-top: var(--wpds-dimension-gap-lg, 16px); | |
| 2600 | 2886 | } |
| 2601 | 2887 | |
| 2602 | 2888 | .components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown { |
| 2603 | 2889 | z-index: 159990; |
| @@ -2604,9 +2890,9 @@ | ||
| 2604 | 2890 | } |
| 2605 | 2891 | |
| 2606 | 2892 | .dataforms-layouts-regular__field { |
| 2607 | 2893 | width: 100%; |
| 2608 | - min-height: 32px; | |
| 2894 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 2609 | 2895 | justify-content: flex-start !important; |
| 2610 | 2896 | align-items: flex-start !important; |
| 2611 | 2897 | } |
| 2612 | 2898 | |
| @@ -2612,18 +2898,18 @@ | ||
| 2612 | 2898 | |
| 2613 | 2899 | .dataforms-layouts-regular__field .components-base-control__label, |
| 2614 | 2900 | .dataforms-layouts-regular__field .components-input-control__label, |
| 2615 | 2901 | .dataforms-layouts-regular__field .components-form-token-field__label { |
| 2616 | - color: #1e1e1e; | |
| 2902 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2617 | 2903 | } |
| 2618 | 2904 | |
| 2619 | 2905 | .dataforms-layouts-regular__field-label { |
| 2620 | 2906 | width: 38%; |
| 2621 | 2907 | flex-shrink: 0; |
| 2622 | - min-height: 32px; | |
| 2908 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 2623 | 2909 | display: flex; |
| 2624 | 2910 | align-items: center; |
| 2625 | - line-height: 20px; | |
| 2911 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 2626 | 2912 | hyphens: auto; |
| 2627 | 2913 | } |
| 2628 | 2914 | |
| 2629 | 2915 | .dataforms-layouts-regular__field-label--label-position-side { |
| @@ -2635,9 +2921,9 @@ | ||
| 2635 | 2921 | } |
| 2636 | 2922 | |
| 2637 | 2923 | .dataforms-layouts-regular__field-control { |
| 2638 | 2924 | flex-grow: 1; |
| 2639 | - min-height: 32px; | |
| 2925 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 2640 | 2926 | display: flex; |
| 2641 | 2927 | align-items: center; |
| 2642 | 2928 | } |
| 2643 | 2929 | |
| @@ -2653,28 +2939,28 @@ | ||
| 2653 | 2939 | display: contents; |
| 2654 | 2940 | } |
| 2655 | 2941 | |
| 2656 | 2942 | .dataforms-layouts-card__field-description { |
| 2657 | - color: #757575; | |
| 2943 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2658 | 2944 | display: block; |
| 2659 | - font-size: 13px; | |
| 2660 | - margin-bottom: 16px; | |
| 2945 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 2946 | + margin-bottom: var(--wpds-dimension-gap-lg, 16px); | |
| 2661 | 2947 | } |
| 2662 | 2948 | |
| 2663 | 2949 | .dataforms-layouts-card__field-summary { |
| 2664 | 2950 | display: flex; |
| 2665 | 2951 | flex-direction: row; |
| 2666 | - gap: 16px; | |
| 2952 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 2667 | 2953 | align-items: center; |
| 2668 | 2954 | } |
| 2669 | 2955 | |
| 2670 | 2956 | .dataforms-layouts-details__summary-content { |
| 2671 | 2957 | display: inline-flex; |
| 2672 | - min-height: 24px; | |
| 2958 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2673 | 2959 | } |
| 2674 | 2960 | |
| 2675 | 2961 | .dataforms-layouts-details__content { |
| 2676 | - padding-top: 12px; | |
| 2962 | + padding-top: var(--wpds-dimension-padding-md, 12px); | |
| 2677 | 2963 | } |
| 2678 | 2964 | |
| 2679 | 2965 | .dataforms-layouts-row__field-control { |
| 2680 | 2966 | width: 100%; |
| @@ -2680,10 +2966,10 @@ | ||
| 2680 | 2966 | width: 100%; |
| 2681 | 2967 | } |
| 2682 | 2968 | |
| 2683 | 2969 | .dataforms-layouts__wrapper { |
| 2684 | - font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 2685 | - font-weight: 400; | |
| 2970 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 2971 | + font-weight: var(--wpds-typography-font-weight-default, 400); | |
| 2686 | 2972 | font-size: 13px; |
| 2687 | 2973 | line-height: 20px; |
| 2688 | 2974 | } |
| 2689 | 2975 | |
| @@ -2756,8 +3042,14 @@ | ||
| 2756 | 3042 | /** |
| 2757 | 3043 | * Focus styles. |
| 2758 | 3044 | */ |
| 2759 | 3045 | /** |
| 3046 | + * Standard focus rings for the WordPress Design System. | |
| 3047 | + * | |
| 3048 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 3049 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 3050 | + */ | |
| 3051 | +/** | |
| 2760 | 3052 | * Applies editor left position to the selector passed as argument |
| 2761 | 3053 | */ |
| 2762 | 3054 | /** |
| 2763 | 3055 | * Styles that are reused verbatim in a few places |
| @@ -2815,9 +3107,9 @@ | ||
| 2815 | 3107 | padding: 12px; |
| 2816 | 3108 | display: grid; |
| 2817 | 3109 | align-items: center; |
| 2818 | 3110 | grid-template-columns: min-content 1fr min-content; |
| 2819 | - grid-gap: 4px 8px; | |
| 3111 | + gap: 4px 8px; | |
| 2820 | 3112 | color: #1e1e1e; |
| 2821 | 3113 | } |
| 2822 | 3114 | |
| 2823 | 3115 | .fields-create-template-part-modal__area-radio-wrapper + .fields-create-template-part-modal__area-radio-wrapper { |
| @@ -2894,9 +3186,8 @@ | ||
| 2894 | 3186 | line-height: 1.5; |
| 2895 | 3187 | } |
| 2896 | 3188 | |
| 2897 | 3189 | fieldset.fields__media-edit { |
| 2898 | - /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */ | |
| 2899 | 3190 | container-type: inline-size; |
| 2900 | 3191 | } |
| 2901 | 3192 | |
| 2902 | 3193 | fieldset.fields__media-edit .fields__media-edit-compact-group { |
| @@ -3132,9 +3423,8 @@ | ||
| 3132 | 3423 | } |
| 3133 | 3424 | |
| 3134 | 3425 | fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) { |
| 3135 | 3426 | grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); |
| 3136 | - /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */ | |
| 3137 | 3427 | } |
| 3138 | 3428 | |
| 3139 | 3429 | @container (max-width: 500px) { |
| 3140 | 3430 | fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) { |
| @@ -3201,18 +3491,15 @@ | ||
| 3201 | 3491 | padding: 0; |
| 3202 | 3492 | margin: 0; |
| 3203 | 3493 | } |
| 3204 | 3494 | |
| 3205 | -.fields-controls__slug .fields-controls__slug-external-icon { | |
| 3206 | - margin-left: 5ch; | |
| 3207 | -} | |
| 3208 | - | |
| 3209 | 3495 | .fields-controls__slug .fields-controls__slug-input input.components-input-control__input { |
| 3210 | 3496 | padding-inline-start: 0 !important; |
| 3211 | 3497 | } |
| 3212 | 3498 | |
| 3213 | 3499 | .fields-controls__slug .fields-controls__slug-help-link { |
| 3214 | - word-break: break-word; | |
| 3500 | + word-break: normal; | |
| 3501 | + overflow-wrap: anywhere; | |
| 3215 | 3502 | } |
| 3216 | 3503 | |
| 3217 | 3504 | .fields-controls__slug .fields-controls__slug-help { |
| 3218 | 3505 | display: flex; |
| @@ -3219,9 +3506,9 @@ | ||
| 3219 | 3506 | flex-direction: column; |
| 3220 | 3507 | } |
| 3221 | 3508 | |
| 3222 | 3509 | .fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug { |
| 3223 | - font-weight: 600; | |
| 3510 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3224 | 3511 | } |
| 3225 | 3512 | |
| 3226 | 3513 | .fields-controls__featured-image-image, |
| 3227 | 3514 | .fields-controls__featured-image-placeholder { |
| @@ -3340,8 +3627,14 @@ | ||
| 3340 | 3627 | /** |
| 3341 | 3628 | * Focus styles. |
| 3342 | 3629 | */ |
| 3343 | 3630 | /** |
| 3631 | + * Standard focus rings for the WordPress Design System. | |
| 3632 | + * | |
| 3633 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 3634 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 3635 | + */ | |
| 3636 | +/** | |
| 3344 | 3637 | * Applies editor left position to the selector passed as argument |
| 3345 | 3638 | */ |
| 3346 | 3639 | /** |
| 3347 | 3640 | * Styles that are reused verbatim in a few places |
| @@ -3375,9 +3668,9 @@ | ||
| 3375 | 3668 | } |
| 3376 | 3669 | |
| 3377 | 3670 | .font-library-modal .font-library__subtitle { |
| 3378 | 3671 | text-transform: uppercase; |
| 3379 | - font-weight: 499; | |
| 3672 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3380 | 3673 | font-size: 11px; |
| 3381 | 3674 | } |
| 3382 | 3675 | |
| 3383 | 3676 | .font-library-modal__tab-panel { |
| @@ -3415,9 +3708,9 @@ | ||
| 3415 | 3708 | .font-library__footer { |
| 3416 | 3709 | position: absolute; |
| 3417 | 3710 | width: 100%; |
| 3418 | 3711 | bottom: 0; |
| 3419 | - border-top: 1px solid #ddd; | |
| 3712 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 3420 | 3713 | padding: 24px; |
| 3421 | 3714 | background-color: #fff; |
| 3422 | 3715 | box-sizing: border-box; |
| 3423 | 3716 | flex-grow: 0 !important; |
| @@ -3426,22 +3719,26 @@ | ||
| 3426 | 3719 | } |
| 3427 | 3720 | |
| 3428 | 3721 | .font-library__page-selection { |
| 3429 | 3722 | font-size: 11px; |
| 3430 | - font-weight: 499; | |
| 3723 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3431 | 3724 | text-transform: uppercase; |
| 3432 | 3725 | } |
| 3433 | 3726 | |
| 3434 | 3727 | @media (min-width: 600px) { |
| 3435 | - .font-library__page-selection .font-library__page-selection-trigger { | |
| 3728 | + .font-library__page-selection .components-select-control__input { | |
| 3436 | 3729 | font-size: 11px !important; |
| 3437 | - font-weight: 499; | |
| 3730 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3438 | 3731 | } |
| 3439 | 3732 | } |
| 3733 | +.font-library__search { | |
| 3734 | + width: 240px; | |
| 3735 | +} | |
| 3736 | + | |
| 3440 | 3737 | .font-library__fonts-title { |
| 3441 | 3738 | text-transform: uppercase; |
| 3442 | 3739 | font-size: 11px; |
| 3443 | - font-weight: 600; | |
| 3740 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3444 | 3741 | margin-top: 0; |
| 3445 | 3742 | margin-bottom: 0; |
| 3446 | 3743 | } |
| 3447 | 3744 | |
| @@ -3455,11 +3752,15 @@ | ||
| 3455 | 3752 | .font-library__fonts-list-item { |
| 3456 | 3753 | margin-bottom: 0; |
| 3457 | 3754 | } |
| 3458 | 3755 | |
| 3756 | +.font-library__font-demo { | |
| 3757 | + position: relative; | |
| 3758 | +} | |
| 3759 | + | |
| 3459 | 3760 | .font-library__font-card { |
| 3460 | 3761 | box-sizing: border-box; |
| 3461 | - border: 1px solid #ddd; | |
| 3762 | + border: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 3462 | 3763 | width: 100%; |
| 3463 | 3764 | height: auto !important; |
| 3464 | 3765 | padding: 16px; |
| 3465 | 3766 | margin-top: -1px; /* To collapse the margin with the previous element */ |
| @@ -3473,13 +3774,13 @@ | ||
| 3473 | 3774 | position: relative; |
| 3474 | 3775 | } |
| 3475 | 3776 | |
| 3476 | 3777 | .font-library__font-card .font-library__font-card__name { |
| 3477 | - font-weight: bold; | |
| 3778 | + font-weight: 700; | |
| 3478 | 3779 | } |
| 3479 | 3780 | |
| 3480 | 3781 | .font-library__font-card .font-library__font-card__count { |
| 3481 | - color: #757575; | |
| 3782 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3482 | 3783 | } |
| 3483 | 3784 | |
| 3484 | 3785 | .font-library__font-card .font-library__font-variant_demo-image { |
| 3485 | 3786 | display: block; |
| @@ -3486,8 +3787,25 @@ | ||
| 3486 | 3787 | height: 24px; |
| 3487 | 3788 | width: auto; |
| 3488 | 3789 | } |
| 3489 | 3790 | |
| 3791 | +@media not (prefers-reduced-motion) { | |
| 3792 | + .font-library__font-card .font-library__font-variant_demo-image { | |
| 3793 | + transition: opacity var(--wpds-motion-duration-lg, 300ms) var(--wpds-motion-easing-subtle, cubic-bezier(0.15, 0, 0.15, 1)); | |
| 3794 | + } | |
| 3795 | +} | |
| 3796 | +.font-library__font-card .font-library__font-variant_demo-image.is-loading { | |
| 3797 | + position: absolute; | |
| 3798 | + top: 0; | |
| 3799 | + left: 0; | |
| 3800 | + opacity: 0; | |
| 3801 | +} | |
| 3802 | + | |
| 3803 | +.font-library__font-card .font-library__font-variant-demo-skeleton { | |
| 3804 | + height: 24px; | |
| 3805 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 3806 | +} | |
| 3807 | + | |
| 3490 | 3808 | .font-library__font-card .font-library__font-variant_demo-text { |
| 3491 | 3809 | white-space: nowrap; |
| 3492 | 3810 | flex-shrink: 0; |
| 3493 | 3811 | } |
| @@ -3499,9 +3817,9 @@ | ||
| 3499 | 3817 | } |
| 3500 | 3818 | .font-library-modal__tablist-container { |
| 3501 | 3819 | position: sticky; |
| 3502 | 3820 | top: 0; |
| 3503 | - border-bottom: 1px solid #ddd; | |
| 3821 | + border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 3504 | 3822 | background: #fff; |
| 3505 | 3823 | z-index: 1; |
| 3506 | 3824 | } |
| 3507 | 3825 | |
| @@ -3522,9 +3840,9 @@ | ||
| 3522 | 3840 | width: 80%; |
| 3523 | 3841 | } |
| 3524 | 3842 | |
| 3525 | 3843 | .font-library__local-fonts .font-library__upload-area__text { |
| 3526 | - color: #757575; | |
| 3844 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3527 | 3845 | } |
| 3528 | 3846 | |
| 3529 | 3847 | .font-library__google-fonts-confirm { |
| 3530 | 3848 | display: flex; |
| @@ -3559,115 +3877,22 @@ | ||
| 3559 | 3877 | .font-library__select-all .components-checkbox-control__label { |
| 3560 | 3878 | padding-left: 16px; |
| 3561 | 3879 | } |
| 3562 | 3880 | |
| 3563 | -.global-styles-ui-pagination .components-button.is-tertiary { | |
| 3564 | - width: 32px; | |
| 3565 | - height: 32px; | |
| 3566 | - justify-content: center; | |
| 3567 | -} | |
| 3568 | - | |
| 3569 | -.global-styles-ui-screen-revisions__revisions-list { | |
| 3570 | - list-style: none; | |
| 3571 | - margin: 0 16px 16px 16px; | |
| 3572 | - flex-grow: 1; | |
| 3573 | -} | |
| 3574 | - | |
| 3575 | -.global-styles-ui-screen-revisions__revisions-list li { | |
| 3576 | - margin-bottom: 0; | |
| 3577 | -} | |
| 3578 | - | |
| 3579 | -.global-styles-ui-screen-revisions__revision-item { | |
| 3580 | - position: relative; | |
| 3581 | - cursor: var(--wpds-cursor-control, pointer); | |
| 3881 | +.global-styles-ui-screen-revisions { | |
| 3582 | 3882 | display: flex; |
| 3583 | 3883 | flex-direction: column; |
| 3884 | + flex-grow: 1; | |
| 3885 | + min-height: 0; | |
| 3584 | 3886 | } |
| 3585 | 3887 | |
| 3586 | -.global-styles-ui-screen-revisions__revision-item[role=option]:active, .global-styles-ui-screen-revisions__revision-item[role=option]:focus { | |
| 3587 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 3588 | - outline: 2px solid transparent; | |
| 3888 | +.global-styles-ui-screen-revisions__actions { | |
| 3889 | + margin-inline-start: auto; | |
| 3589 | 3890 | } |
| 3590 | 3891 | |
| 3591 | -.global-styles-ui-screen-revisions__revision-item:hover { | |
| 3592 | - background: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 3593 | -} | |
| 3594 | - | |
| 3595 | -.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date { | |
| 3596 | - color: var(--wp-admin-theme-color); | |
| 3597 | -} | |
| 3598 | - | |
| 3599 | -.global-styles-ui-screen-revisions__revision-item::before, .global-styles-ui-screen-revisions__revision-item::after { | |
| 3600 | - position: absolute; | |
| 3601 | - content: "\a"; | |
| 3602 | - display: block; | |
| 3603 | -} | |
| 3604 | - | |
| 3605 | -.global-styles-ui-screen-revisions__revision-item::before { | |
| 3606 | - background: #ddd; | |
| 3607 | - border-radius: 50%; | |
| 3608 | - height: 8px; | |
| 3609 | - width: 8px; | |
| 3610 | - top: 18px; | |
| 3611 | - left: 17px; | |
| 3612 | - transform: translate(-50%, -50%); | |
| 3613 | - z-index: 1; | |
| 3614 | - border: 4px solid transparent; | |
| 3615 | -} | |
| 3616 | - | |
| 3617 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] { | |
| 3618 | - border-radius: 2px; | |
| 3619 | - outline: 3px solid transparent; | |
| 3620 | - outline-offset: -2px; | |
| 3621 | - color: var(--wp-admin-theme-color); | |
| 3622 | - background: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 3623 | -} | |
| 3624 | - | |
| 3625 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date { | |
| 3626 | - color: var(--wp-admin-theme-color); | |
| 3627 | -} | |
| 3628 | - | |
| 3629 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true]::before { | |
| 3630 | - background: var(--wp-admin-theme-color); | |
| 3631 | -} | |
| 3632 | - | |
| 3633 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes > li, | |
| 3634 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta, | |
| 3635 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__applied-text { | |
| 3636 | - color: #1e1e1e; | |
| 3637 | -} | |
| 3638 | - | |
| 3639 | -.global-styles-ui-screen-revisions__revision-item::after { | |
| 3640 | - height: 100%; | |
| 3641 | - left: 16px; | |
| 3642 | - top: 0; | |
| 3643 | - width: 0; | |
| 3644 | - border: 0.5px solid #ddd; | |
| 3645 | -} | |
| 3646 | - | |
| 3647 | -.global-styles-ui-screen-revisions__revision-item:first-child::after { | |
| 3648 | - top: 18px; | |
| 3649 | -} | |
| 3650 | - | |
| 3651 | -.global-styles-ui-screen-revisions__revision-item:last-child::after { | |
| 3652 | - height: 18px; | |
| 3653 | -} | |
| 3654 | - | |
| 3655 | -.global-styles-ui-screen-revisions__revision-item-wrapper { | |
| 3656 | - display: block; | |
| 3657 | - padding: 12px 12px 4px 40px; | |
| 3658 | -} | |
| 3659 | - | |
| 3660 | -.global-styles-ui-screen-revisions__apply-button.is-primary, | |
| 3661 | -.global-styles-ui-screen-revisions__applied-text { | |
| 3662 | - align-self: flex-start; | |
| 3663 | - margin: 4px 12px 12px 40px; | |
| 3664 | -} | |
| 3665 | - | |
| 3666 | -.global-styles-ui-screen-revisions__changes, | |
| 3667 | -.global-styles-ui-screen-revisions__meta, | |
| 3668 | -.global-styles-ui-screen-revisions__applied-text { | |
| 3669 | - color: #757575; | |
| 3892 | +.global-styles-ui-screen-revisions__date { | |
| 3893 | + text-transform: uppercase; | |
| 3894 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3670 | 3895 | font-size: 12px; |
| 3671 | 3896 | } |
| 3672 | 3897 | |
| 3673 | 3898 | .global-styles-ui-screen-revisions__description { |
| @@ -3676,11 +3901,11 @@ | ||
| 3676 | 3901 | align-items: flex-start; |
| 3677 | 3902 | gap: 8px; |
| 3678 | 3903 | } |
| 3679 | 3904 | |
| 3680 | -.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date { | |
| 3681 | - text-transform: uppercase; | |
| 3682 | - font-weight: 600; | |
| 3905 | +.global-styles-ui-screen-revisions__changes, | |
| 3906 | +.global-styles-ui-screen-revisions__meta { | |
| 3907 | + color: #2f2f2f; | |
| 3683 | 3908 | font-size: 12px; |
| 3684 | 3909 | } |
| 3685 | 3910 | |
| 3686 | 3911 | .global-styles-ui-screen-revisions__meta { |
| @@ -3686,11 +3911,10 @@ | ||
| 3686 | 3911 | .global-styles-ui-screen-revisions__meta { |
| 3687 | 3912 | display: flex; |
| 3688 | 3913 | justify-content: start; |
| 3689 | 3914 | width: 100%; |
| 3690 | - align-items: flex-start; | |
| 3915 | + align-items: center; | |
| 3691 | 3916 | text-align: left; |
| 3692 | - margin-bottom: 4px; | |
| 3693 | 3917 | } |
| 3694 | 3918 | |
| 3695 | 3919 | .global-styles-ui-screen-revisions__meta img { |
| 3696 | 3920 | width: 16px; |
| @@ -3698,16 +3922,12 @@ | ||
| 3698 | 3922 | border-radius: 100%; |
| 3699 | 3923 | margin-right: 8px; |
| 3700 | 3924 | } |
| 3701 | 3925 | |
| 3702 | -.global-styles-ui-screen-revisions__loading { | |
| 3703 | - margin: 24px auto !important; | |
| 3704 | -} | |
| 3705 | - | |
| 3706 | 3926 | .global-styles-ui-screen-revisions__changes { |
| 3707 | 3927 | text-align: left; |
| 3708 | 3928 | line-height: 1.4; |
| 3709 | - margin-left: 12px; | |
| 3929 | + margin: 0 0 0 12px; | |
| 3710 | 3930 | list-style: disc; |
| 3711 | 3931 | } |
| 3712 | 3932 | |
| 3713 | 3933 | .global-styles-ui-screen-revisions__changes li { |
| @@ -3713,47 +3933,8 @@ | ||
| 3713 | 3933 | .global-styles-ui-screen-revisions__changes li { |
| 3714 | 3934 | margin-bottom: 4px; |
| 3715 | 3935 | } |
| 3716 | 3936 | |
| 3717 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination { | |
| 3718 | - justify-content: space-between; | |
| 3719 | - gap: 2px; | |
| 3720 | -} | |
| 3721 | - | |
| 3722 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total { | |
| 3723 | - position: absolute; | |
| 3724 | - left: -1000px; | |
| 3725 | - height: 1px; | |
| 3726 | - margin: -1px; | |
| 3727 | - overflow: hidden; | |
| 3728 | -} | |
| 3729 | - | |
| 3730 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text { | |
| 3731 | - font-size: 12px; | |
| 3732 | - will-change: opacity; | |
| 3733 | -} | |
| 3734 | - | |
| 3735 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary { | |
| 3736 | - color: #1e1e1e; | |
| 3737 | -} | |
| 3738 | - | |
| 3739 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled, | |
| 3740 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true] { | |
| 3741 | - color: #949494; | |
| 3742 | -} | |
| 3743 | - | |
| 3744 | -.global-styles-ui-screen-revisions__footer { | |
| 3745 | - height: 56px; | |
| 3746 | - z-index: 1; | |
| 3747 | - position: sticky; | |
| 3748 | - min-width: 100%; | |
| 3749 | - bottom: 0; | |
| 3750 | - background: #fff; | |
| 3751 | - padding: 12px; | |
| 3752 | - border-top: 1px solid #ddd; | |
| 3753 | - box-sizing: border-box; | |
| 3754 | -} | |
| 3755 | - | |
| 3756 | 3937 | .global-styles-ui-variations_item { |
| 3757 | 3938 | box-sizing: border-box; |
| 3758 | 3939 | cursor: var(--wpds-cursor-control, pointer); |
| 3759 | 3940 | } |
| @@ -3834,13 +4015,34 @@ | ||
| 3834 | 4015 | justify-content: center; |
| 3835 | 4016 | border-radius: 2px; |
| 3836 | 4017 | } |
| 3837 | 4018 | |
| 4019 | +.global-styles-ui-block-types-filter { | |
| 4020 | + margin-bottom: 12px; | |
| 4021 | + padding: 0 16px; | |
| 4022 | +} | |
| 4023 | + | |
| 3838 | 4024 | .global-styles-ui-block-types-search { |
| 3839 | - margin-bottom: 10px; | |
| 3840 | - padding: 0 16px; | |
| 4025 | + flex-grow: 1; | |
| 3841 | 4026 | } |
| 3842 | 4027 | |
| 4028 | +.global-styles-ui-block-types-item-list .global-styles-ui-block-types-item__icon { | |
| 4029 | + min-width: 24px; | |
| 4030 | +} | |
| 4031 | + | |
| 4032 | +.global-styles-ui-block-types-item-list__no-results { | |
| 4033 | + padding-top: 16px; | |
| 4034 | +} | |
| 4035 | + | |
| 4036 | +.global-styles-ui-block-types-item__indicator { | |
| 4037 | + background: var(--wp-admin-theme-color); | |
| 4038 | + border-radius: 50%; | |
| 4039 | + flex: none; | |
| 4040 | + height: 6px; | |
| 4041 | + margin-left: auto; | |
| 4042 | + width: 6px; | |
| 4043 | +} | |
| 4044 | + | |
| 3843 | 4045 | .global-styles-ui-screen-typography__font-variants-count { |
| 3844 | 4046 | color: #757575; |
| 3845 | 4047 | } |
| 3846 | 4048 | |
| @@ -3857,20 +4059,21 @@ | ||
| 3857 | 4059 | } |
| 3858 | 4060 | |
| 3859 | 4061 | .global-styles-ui-header { |
| 3860 | 4062 | margin-bottom: 0 !important; |
| 4063 | + line-height: 1.9 !important; | |
| 3861 | 4064 | } |
| 3862 | 4065 | |
| 3863 | 4066 | .global-styles-ui-subtitle { |
| 3864 | 4067 | margin-bottom: 0 !important; |
| 3865 | 4068 | text-transform: uppercase; |
| 3866 | - font-weight: 499 !important; | |
| 4069 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600) !important; | |
| 3867 | 4070 | font-size: 11px !important; |
| 3868 | 4071 | } |
| 3869 | 4072 | |
| 3870 | 4073 | .global-styles-ui-section-title { |
| 3871 | 4074 | color: #2f2f2f; |
| 3872 | - font-weight: 600; | |
| 4075 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3873 | 4076 | line-height: 1.2; |
| 3874 | 4077 | padding: 16px 16px 0; |
| 3875 | 4078 | margin: 0; |
| 3876 | 4079 | } |
| @@ -3881,10 +4084,20 @@ | ||
| 3881 | 4084 | |
| 3882 | 4085 | .global-styles-ui__color-indicator-wrapper { |
| 3883 | 4086 | height: 24px; |
| 3884 | 4087 | flex-shrink: 0; |
| 4088 | + display: flex; | |
| 4089 | + align-items: center; | |
| 3885 | 4090 | } |
| 3886 | 4091 | |
| 4092 | +.global-styles-ui__palette-preview { | |
| 4093 | + display: inline-flex; | |
| 4094 | +} | |
| 4095 | + | |
| 4096 | +.global-styles-ui__palette-preview > * + * { | |
| 4097 | + margin-inline-start: -8px; | |
| 4098 | +} | |
| 4099 | + | |
| 3887 | 4100 | .global-styles-ui__shadows-panel__options-container, |
| 3888 | 4101 | .global-styles-ui__typography-panel__options-container { |
| 3889 | 4102 | height: 24px; |
| 3890 | 4103 | } |
| @@ -3896,9 +4109,10 @@ | ||
| 3896 | 4109 | border-radius: 2px; |
| 3897 | 4110 | overflow: hidden; |
| 3898 | 4111 | } |
| 3899 | 4112 | |
| 3900 | -.global-styles-ui__shadow-preview-panel { | |
| 4113 | +.global-styles-ui__shadow-preview-panel, | |
| 4114 | +.global-styles-ui__text-shadow-preview-panel { | |
| 3901 | 4115 | height: 144px; |
| 3902 | 4116 | border: #ddd 1px solid; |
| 3903 | 4117 | border-radius: 2px; |
| 3904 | 4118 | overflow: auto; |
| @@ -3908,9 +4122,9 @@ | ||
| 3908 | 4122 | /*rtl:end:ignore*/ |
| 3909 | 4123 | background-size: 16px 16px; |
| 3910 | 4124 | } |
| 3911 | 4125 | |
| 3912 | -.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block { | |
| 4126 | +.global-styles-ui__shadow-preview-block { | |
| 3913 | 4127 | border: #ddd 1px solid; |
| 3914 | 4128 | border-radius: 2px; |
| 3915 | 4129 | background-color: #fff; |
| 3916 | 4130 | width: 60%; |
| @@ -3916,22 +4130,44 @@ | ||
| 3916 | 4130 | width: 60%; |
| 3917 | 4131 | height: 60px; |
| 3918 | 4132 | } |
| 3919 | 4133 | |
| 3920 | -.global-styles-ui__shadow-editor__dropdown-content { | |
| 4134 | +.global-styles-ui__text-shadow-preview-panel { | |
| 4135 | + margin-block: -8px 16px; | |
| 4136 | +} | |
| 4137 | + | |
| 4138 | +.global-styles-ui__text-shadow-preview-text { | |
| 4139 | + font-size: 24px; | |
| 4140 | +} | |
| 4141 | + | |
| 4142 | +.global-styles-ui__text-shadow-editor__header { | |
| 4143 | + margin-block-end: 8px; | |
| 4144 | +} | |
| 4145 | + | |
| 4146 | +.global-styles-ui__text-shadow-editor__inputs { | |
| 4147 | + display: grid; | |
| 4148 | + grid-template-columns: repeat(2, 1fr); | |
| 4149 | + gap: 16px; | |
| 4150 | +} | |
| 4151 | + | |
| 4152 | +.global-styles-ui__shadow-editor__dropdown-content, | |
| 4153 | +.global-styles-ui__text-shadow-editor__dropdown-content { | |
| 3921 | 4154 | width: 280px; |
| 3922 | 4155 | } |
| 3923 | 4156 | |
| 3924 | -.global-styles-ui__shadow-editor-panel { | |
| 4157 | +.global-styles-ui__shadow-editor-panel, | |
| 4158 | +.global-styles-ui__text-shadow-editor-panel { | |
| 3925 | 4159 | margin-bottom: 4px; |
| 3926 | 4160 | } |
| 3927 | 4161 | |
| 3928 | -.global-styles-ui__shadow-editor__dropdown { | |
| 4162 | +.global-styles-ui__shadow-editor__dropdown, | |
| 4163 | +.global-styles-ui__text-shadow-editor__dropdown { | |
| 3929 | 4164 | width: 100%; |
| 3930 | 4165 | position: relative; |
| 3931 | 4166 | } |
| 3932 | 4167 | |
| 3933 | -.global-styles-ui__shadow-editor__dropdown-toggle { | |
| 4168 | +.global-styles-ui__shadow-editor__dropdown-toggle, | |
| 4169 | +.global-styles-ui__text-shadow-editor__dropdown-toggle { | |
| 3934 | 4170 | width: 100%; |
| 3935 | 4171 | height: auto; |
| 3936 | 4172 | padding-top: 8px; |
| 3937 | 4173 | padding-bottom: 8px; |
| @@ -3938,14 +4174,16 @@ | ||
| 3938 | 4174 | text-align: left; |
| 3939 | 4175 | border-radius: inherit; |
| 3940 | 4176 | } |
| 3941 | 4177 | |
| 3942 | -.global-styles-ui__shadow-editor__dropdown-toggle.is-open { | |
| 4178 | +.global-styles-ui__shadow-editor__dropdown-toggle.is-open, | |
| 4179 | +.global-styles-ui__text-shadow-editor__dropdown-toggle.is-open { | |
| 3943 | 4180 | background: #f0f0f0; |
| 3944 | 4181 | color: var(--wp-admin-theme-color); |
| 3945 | 4182 | } |
| 3946 | 4183 | |
| 3947 | -.global-styles-ui__shadow-editor__remove-button { | |
| 4184 | +.global-styles-ui__shadow-editor__remove-button, | |
| 4185 | +.global-styles-ui__text-shadow-editor__remove-button { | |
| 3948 | 4186 | position: absolute; |
| 3949 | 4187 | right: 8px; |
| 3950 | 4188 | top: 8px; |
| 3951 | 4189 | opacity: 0; |
| @@ -3950,18 +4188,19 @@ | ||
| 3950 | 4188 | top: 8px; |
| 3951 | 4189 | opacity: 0; |
| 3952 | 4190 | } |
| 3953 | 4191 | |
| 3954 | -.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button { | |
| 3955 | - border: none; | |
| 3956 | -} | |
| 3957 | - | |
| 3958 | -.global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__shadow-editor__remove-button:focus, .global-styles-ui__shadow-editor__remove-button:hover { | |
| 4192 | +.global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__text-shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__shadow-editor__remove-button:focus, .global-styles-ui__shadow-editor__remove-button:hover, | |
| 4193 | +.global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__text-shadow-editor__remove-button, | |
| 4194 | +.global-styles-ui__text-shadow-editor__dropdown-toggle:hover + .global-styles-ui__text-shadow-editor__remove-button, | |
| 4195 | +.global-styles-ui__text-shadow-editor__remove-button:focus, | |
| 4196 | +.global-styles-ui__text-shadow-editor__remove-button:hover { | |
| 3959 | 4197 | opacity: 1; |
| 3960 | 4198 | } |
| 3961 | 4199 | |
| 3962 | 4200 | @media (hover: none) { |
| 3963 | - .global-styles-ui__shadow-editor__remove-button { | |
| 4201 | + .global-styles-ui__shadow-editor__remove-button, | |
| 4202 | + .global-styles-ui__text-shadow-editor__remove-button { | |
| 3964 | 4203 | opacity: 1; |
| 3965 | 4204 | } |
| 3966 | 4205 | } |
| 3967 | 4206 | .global-styles-ui-screen-css { |
| @@ -3970,28 +4209,26 @@ | ||
| 3970 | 4209 | flex-direction: column; |
| 3971 | 4210 | margin: 16px; |
| 3972 | 4211 | } |
| 3973 | 4212 | |
| 3974 | -.global-styles-ui-screen-css .components-v-stack { | |
| 4213 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel { | |
| 3975 | 4214 | flex: 1 1 auto; |
| 3976 | 4215 | } |
| 3977 | 4216 | |
| 3978 | -.global-styles-ui-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input { | |
| 4217 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input { | |
| 3979 | 4218 | flex: 1 1 auto; |
| 3980 | 4219 | display: flex; |
| 3981 | 4220 | flex-direction: column; |
| 3982 | 4221 | } |
| 3983 | 4222 | |
| 3984 | -.global-styles-ui-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field { | |
| 4223 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field { | |
| 3985 | 4224 | flex: 1 1 auto; |
| 3986 | 4225 | display: flex; |
| 3987 | 4226 | flex-direction: column; |
| 3988 | 4227 | } |
| 3989 | 4228 | |
| 3990 | -.global-styles-ui-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input { | |
| 4229 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea { | |
| 3991 | 4230 | flex: 1 1 auto; |
| 3992 | - /*rtl:ignore*/ | |
| 3993 | - direction: ltr; | |
| 3994 | 4231 | } |
| 3995 | 4232 | |
| 3996 | 4233 | .global-styles-ui-screen-css-help-link { |
| 3997 | 4234 | display: inline-block; |
| @@ -4016,8 +4253,16 @@ | ||
| 4016 | 4253 | flex-direction: column; |
| 4017 | 4254 | height: 100%; |
| 4018 | 4255 | } |
| 4019 | 4256 | |
| 4257 | +.global-styles-ui-color-palette__tablist-container { | |
| 4258 | + border-bottom: 1px solid #ddd; | |
| 4259 | +} | |
| 4260 | + | |
| 4261 | +.global-styles-ui-color-palette__tablist { | |
| 4262 | + margin-bottom: -1px; | |
| 4263 | +} | |
| 4264 | + | |
| 4020 | 4265 | .global-styles-ui-sidebar__navigator-screen .single-column { |
| 4021 | 4266 | grid-column: span 1; |
| 4022 | 4267 | } |
| 4023 | 4268 | |
| @@ -4039,9 +4284,10 @@ | ||
| 4039 | 4284 | clip-path: border-box; |
| 4040 | 4285 | } |
| 4041 | 4286 | |
| 4042 | 4287 | .global-styles-ui-color-palette-panel, |
| 4043 | -.global-styles-ui-gradient-palette-panel { | |
| 4288 | +.global-styles-ui-gradient-palette-panel, | |
| 4289 | +.global-styles-ui-duotone-palette-panel { | |
| 4044 | 4290 | padding: 16px; |
| 4045 | 4291 | } |
| 4046 | 4292 | |
| 4047 | 4293 | .edit-site-custom-template-modal__contents-wrapper { |
| @@ -4050,13 +4296,8 @@ | ||
| 4050 | 4296 | } |
| 4051 | 4297 | .edit-site-custom-template-modal__contents-wrapper > * { |
| 4052 | 4298 | width: 100%; |
| 4053 | 4299 | } |
| 4054 | -.edit-site-custom-template-modal__contents-wrapper__suggestions_list { | |
| 4055 | - margin-left: -12px; | |
| 4056 | - margin-right: -12px; | |
| 4057 | - width: calc(100% + 24px); | |
| 4058 | -} | |
| 4059 | 4300 | .edit-site-custom-template-modal__contents > .components-button { |
| 4060 | 4301 | height: auto; |
| 4061 | 4302 | justify-content: center; |
| 4062 | 4303 | } |
| @@ -4066,10 +4307,14 @@ | ||
| 4066 | 4307 | } |
| 4067 | 4308 | } |
| 4068 | 4309 | @media (min-width: 600px) { |
| 4069 | 4310 | .edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list { |
| 4070 | - max-height: 224px; | |
| 4071 | 4311 | overflow-y: auto; |
| 4312 | + max-height: calc(224px + 4 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4313 | + padding: calc(2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4314 | + margin-inline: calc(-2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4315 | + width: calc(100% + 4 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4316 | + scroll-padding-block: calc(2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4072 | 4317 | } |
| 4073 | 4318 | } |
| 4074 | 4319 | .edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item { |
| 4075 | 4320 | display: block; |
| @@ -4095,11 +4340,8 @@ | ||
| 4095 | 4340 | } |
| 4096 | 4341 | .edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus { |
| 4097 | 4342 | background-color: #f0f0f0; |
| 4098 | 4343 | } |
| 4099 | -.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled) { | |
| 4100 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset; | |
| 4101 | -} | |
| 4102 | 4344 | .edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title, .edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info { |
| 4103 | 4345 | overflow: hidden; |
| 4104 | 4346 | text-overflow: ellipsis; |
| 4105 | 4347 | display: block; |
| @@ -4131,14 +4373,10 @@ | ||
| 4131 | 4373 | } |
| 4132 | 4374 | } |
| 4133 | 4375 | .edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg, |
| 4134 | 4376 | .edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg { |
| 4135 | - fill: var(--wp-admin-theme-color); | |
| 4377 | + color: var(--wp-admin-theme-color); | |
| 4136 | 4378 | } |
| 4137 | -.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name { | |
| 4138 | - flex-grow: 1; | |
| 4139 | - align-items: flex-start; | |
| 4140 | -} | |
| 4141 | 4379 | .edit-site-add-new-template__modal .edit-site-add-new-template__template-icon { |
| 4142 | 4380 | padding: 8px; |
| 4143 | 4381 | background: rgba(var(--wp-admin-theme-color--rgb), 0.04); |
| 4144 | 4382 | border-radius: 100%; |
| @@ -4152,9 +4390,8 @@ | ||
| 4152 | 4390 | display: flex; |
| 4153 | 4391 | flex-direction: column; |
| 4154 | 4392 | border: 1px solid #ddd; |
| 4155 | 4393 | justify-content: center; |
| 4156 | - outline: 1px solid transparent; | |
| 4157 | 4394 | } |
| 4158 | 4395 | .edit-site-custom-template-modal__contents > .components-button span:first-child, |
| 4159 | 4396 | .edit-site-add-new-template__template-list__contents > .components-button span:first-child { |
| 4160 | 4397 | color: #1e1e1e; |
| @@ -4172,14 +4409,8 @@ | ||
| 4172 | 4409 | .edit-site-custom-template-modal__contents > .components-button:hover span, |
| 4173 | 4410 | .edit-site-add-new-template__template-list__contents > .components-button:hover span { |
| 4174 | 4411 | color: var(--wp-admin-theme-color); |
| 4175 | 4412 | } |
| 4176 | -.edit-site-custom-template-modal__contents > .components-button:focus, | |
| 4177 | -.edit-site-add-new-template__template-list__contents > .components-button:focus { | |
| 4178 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 4179 | - border-color: transparent; | |
| 4180 | - outline: 3px solid transparent; | |
| 4181 | -} | |
| 4182 | 4413 | .edit-site-custom-template-modal__contents > .components-button:focus span:first-child, |
| 4183 | 4414 | .edit-site-add-new-template__template-list__contents > .components-button:focus span:first-child { |
| 4184 | 4415 | color: var(--wp-admin-theme-color); |
| 4185 | 4416 | } |
| @@ -4191,10 +4422,12 @@ | ||
| 4191 | 4422 | } |
| 4192 | 4423 | |
| 4193 | 4424 | .edit-site-add-new-template__template-list__contents > .components-button { |
| 4194 | 4425 | height: 100%; |
| 4426 | + padding: 16px; | |
| 4195 | 4427 | text-align: start; |
| 4196 | 4428 | align-items: flex-start; |
| 4429 | + justify-content: flex-start; | |
| 4197 | 4430 | } |
| 4198 | 4431 | |
| 4199 | 4432 | .edit-site-visual-editor__editor-canvas.is-focused { |
| 4200 | 4433 | outline: calc(2 * var(--wp-admin-border-width-focus)) solid var(--wp-admin-theme-color); |
| @@ -4201,8 +4434,9 @@ | ||
| 4201 | 4434 | outline-offset: calc(-2 * var(--wp-admin-border-width-focus)); |
| 4202 | 4435 | } |
| 4203 | 4436 | |
| 4204 | 4437 | .edit-site-canvas-loader { |
| 4438 | + --wp-components-color-foreground: var(--color); | |
| 4205 | 4439 | width: 100%; |
| 4206 | 4440 | height: 100%; |
| 4207 | 4441 | display: flex; |
| 4208 | 4442 | position: absolute; |
| @@ -4217,11 +4451,8 @@ | ||
| 4217 | 4451 | animation: 0.5s ease 0.2s edit-site-canvas-loader__fade-in-animation; |
| 4218 | 4452 | animation-fill-mode: forwards; |
| 4219 | 4453 | } |
| 4220 | 4454 | } |
| 4221 | -.edit-site-canvas-loader > div { | |
| 4222 | - width: 160px; | |
| 4223 | -} | |
| 4224 | 4455 | |
| 4225 | 4456 | @keyframes edit-site-canvas-loader__fade-in-animation { |
| 4226 | 4457 | from { |
| 4227 | 4458 | opacity: 0; |
| @@ -4285,11 +4516,12 @@ | ||
| 4285 | 4516 | .edit-site-patterns__section-header .screen-reader-shortcut:focus { |
| 4286 | 4517 | top: 0; |
| 4287 | 4518 | } |
| 4288 | 4519 | |
| 4289 | -.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully) { | |
| 4520 | +.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully) { | |
| 4290 | 4521 | background: rgba(var(--wp-block-synced-color--rgb), 0.04); |
| 4291 | 4522 | color: var(--wp-block-synced-color); |
| 4523 | + border-color: currentColor; | |
| 4292 | 4524 | } |
| 4293 | 4525 | |
| 4294 | 4526 | .dataviews-action-modal__duplicate-pattern [role=dialog] > [role=document] { |
| 4295 | 4527 | width: 350px; |
| @@ -4304,9 +4536,9 @@ | ||
| 4304 | 4536 | border-bottom-right-radius: 2px; |
| 4305 | 4537 | box-shadow: 0 0 0.5px 0.5px var(--wp-admin-theme-color); |
| 4306 | 4538 | box-sizing: border-box; |
| 4307 | 4539 | z-index: 1; |
| 4308 | - background-color: #fff; | |
| 4540 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 4309 | 4541 | width: calc(100% + 2px); |
| 4310 | 4542 | left: -1px; |
| 4311 | 4543 | min-width: initial; |
| 4312 | 4544 | max-height: 96px; |
| @@ -4358,20 +4590,11 @@ | ||
| 4358 | 4590 | text-wrap: balance; |
| 4359 | 4591 | text-wrap: pretty; |
| 4360 | 4592 | } |
| 4361 | 4593 | |
| 4362 | -.edit-site-page-templates .dataviews-pagination { | |
| 4363 | - z-index: 2; | |
| 4364 | -} | |
| 4365 | - | |
| 4366 | 4594 | .edit-site-list__rename-modal { |
| 4367 | 4595 | z-index: 1000001; |
| 4368 | 4596 | } |
| 4369 | -@media (min-width: 782px) { | |
| 4370 | - .edit-site-list__rename-modal .components-base-control { | |
| 4371 | - width: 320px; | |
| 4372 | - } | |
| 4373 | -} | |
| 4374 | 4597 | |
| 4375 | 4598 | .edit-site-editor__editor-interface { |
| 4376 | 4599 | opacity: 1; |
| 4377 | 4600 | } |
| @@ -4393,61 +4616,8 @@ | ||
| 4393 | 4616 | display: flex; |
| 4394 | 4617 | justify-content: center; |
| 4395 | 4618 | } |
| 4396 | 4619 | |
| 4397 | -.edit-site-editor__view-mode-toggle { | |
| 4398 | - /* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */ | |
| 4399 | - view-transition-name: toggle; | |
| 4400 | - /* stylelint-enable */ | |
| 4401 | - top: 0; | |
| 4402 | - left: 0; | |
| 4403 | - height: 64px; | |
| 4404 | - width: 64px; | |
| 4405 | - z-index: 100; | |
| 4406 | -} | |
| 4407 | -.edit-site-editor__view-mode-toggle .components-button { | |
| 4408 | - color: #fff; | |
| 4409 | - height: 100%; | |
| 4410 | - width: 100%; | |
| 4411 | - border-radius: 0; | |
| 4412 | - overflow: hidden; | |
| 4413 | - padding: 0; | |
| 4414 | - display: flex; | |
| 4415 | - align-items: center; | |
| 4416 | - justify-content: center; | |
| 4417 | -} | |
| 4418 | -.edit-site-editor__view-mode-toggle .components-button:hover, .edit-site-editor__view-mode-toggle .components-button:active { | |
| 4419 | - color: #fff; | |
| 4420 | -} | |
| 4421 | -.edit-site-editor__view-mode-toggle .components-button:focus { | |
| 4422 | - box-shadow: none; | |
| 4423 | -} | |
| 4424 | -.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon svg, | |
| 4425 | -.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon img { | |
| 4426 | - background: #1e1e1e; | |
| 4427 | - display: block; | |
| 4428 | -} | |
| 4429 | - | |
| 4430 | -.edit-site-editor__back-icon { | |
| 4431 | - position: absolute; | |
| 4432 | - top: 0; | |
| 4433 | - left: 0; | |
| 4434 | - width: 64px; | |
| 4435 | - height: 64px; | |
| 4436 | - display: flex; | |
| 4437 | - align-items: center; | |
| 4438 | - justify-content: center; | |
| 4439 | - background-color: hsl(0, 0%, 80%); | |
| 4440 | - pointer-events: none; | |
| 4441 | -} | |
| 4442 | -.edit-site-editor__back-icon svg { | |
| 4443 | - fill: currentColor; | |
| 4444 | -} | |
| 4445 | -.edit-site-editor__back-icon.has-site-icon { | |
| 4446 | - background-color: hsla(0, 0%, 100%, 0.6); | |
| 4447 | - backdrop-filter: saturate(180%) blur(15px); | |
| 4448 | -} | |
| 4449 | - | |
| 4450 | 4620 | .edit-site-welcome-guide { |
| 4451 | 4621 | width: 312px; |
| 4452 | 4622 | } |
| 4453 | 4623 | .edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image { |
| @@ -4469,9 +4639,9 @@ | ||
| 4469 | 4639 | max-width: 100%; |
| 4470 | 4640 | object-fit: cover; |
| 4471 | 4641 | } |
| 4472 | 4642 | .edit-site-welcome-guide__heading { |
| 4473 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 4643 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 4474 | 4644 | font-size: 24px; |
| 4475 | 4645 | line-height: 1.4; |
| 4476 | 4646 | margin: 16px 0 16px 0; |
| 4477 | 4647 | padding: 0 32px; |
| @@ -4489,24 +4659,25 @@ | ||
| 4489 | 4659 | margin: 0 4px; |
| 4490 | 4660 | vertical-align: text-top; |
| 4491 | 4661 | } |
| 4492 | 4662 | .edit-site-welcome-guide .components-button:hover svg { |
| 4493 | - fill: #fff; | |
| 4663 | + color: #fff; | |
| 4494 | 4664 | } |
| 4495 | 4665 | |
| 4496 | 4666 | .edit-site-layout { |
| 4497 | 4667 | height: 100%; |
| 4498 | - background: #1e1e1e; | |
| 4499 | - color: #ccc; | |
| 4668 | + background: var(--wpds-color-background-surface-neutral-weak, #f4f4f4); | |
| 4669 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 4500 | 4670 | display: flex; |
| 4501 | 4671 | flex-direction: column; |
| 4502 | 4672 | } |
| 4503 | 4673 | .edit-site-layout:not(.is-full-canvas) .editor-visual-editor { |
| 4504 | - background: #1e1e1e; | |
| 4674 | + background: var(--wpds-color-background-surface-neutral-weak, #f4f4f4); | |
| 4505 | 4675 | } |
| 4506 | 4676 | |
| 4507 | 4677 | .edit-site-layout__content { |
| 4508 | 4678 | height: 100%; |
| 4679 | + min-height: 0; | |
| 4509 | 4680 | flex-grow: 1; |
| 4510 | 4681 | display: flex; |
| 4511 | 4682 | } |
| 4512 | 4683 | |
| @@ -4521,16 +4692,17 @@ | ||
| 4521 | 4692 | } |
| 4522 | 4693 | } |
| 4523 | 4694 | .edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region { |
| 4524 | 4695 | position: fixed !important; |
| 4525 | - height: 100vh; | |
| 4696 | + height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); | |
| 4526 | 4697 | left: 0; |
| 4527 | - top: 0; | |
| 4698 | + top: var(--wp-admin--admin-bar--height, 0); | |
| 4528 | 4699 | } |
| 4529 | 4700 | .edit-site-layout__sidebar-region .edit-site-layout__sidebar { |
| 4530 | 4701 | display: flex; |
| 4531 | 4702 | flex-direction: column; |
| 4532 | 4703 | height: 100%; |
| 4704 | + min-height: 0; | |
| 4533 | 4705 | } |
| 4534 | 4706 | .edit-site-layout__sidebar-region .resizable-editor__drag-handle { |
| 4535 | 4707 | right: 0; |
| 4536 | 4708 | } |
| @@ -4563,8 +4735,18 @@ | ||
| 4563 | 4735 | .edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main { |
| 4564 | 4736 | padding: 0 12px; |
| 4565 | 4737 | } |
| 4566 | 4738 | |
| 4739 | +.edit-site-layout__mobile-content { | |
| 4740 | + display: flex; | |
| 4741 | + flex-direction: column; | |
| 4742 | + flex-grow: 1; | |
| 4743 | +} | |
| 4744 | + | |
| 4745 | +.edit-site-sidebar__screen-wrapper:has(.edit-site-layout__mobile-content) { | |
| 4746 | + background: var(--wpds-color-background-surface-neutral, #fcfcfc); | |
| 4747 | +} | |
| 4748 | + | |
| 4567 | 4749 | .edit-site-layout__canvas-container { |
| 4568 | 4750 | position: relative; |
| 4569 | 4751 | flex-grow: 1; |
| 4570 | 4752 | z-index: 2; |
| @@ -4569,17 +4751,8 @@ | ||
| 4569 | 4751 | flex-grow: 1; |
| 4570 | 4752 | z-index: 2; |
| 4571 | 4753 | overflow: visible; |
| 4572 | 4754 | } |
| 4573 | -.edit-site-layout__canvas-container.is-resizing::after { | |
| 4574 | - position: absolute; | |
| 4575 | - top: 0; | |
| 4576 | - left: 0; | |
| 4577 | - right: 0; | |
| 4578 | - bottom: 0; | |
| 4579 | - content: ""; | |
| 4580 | - z-index: 100; | |
| 4581 | -} | |
| 4582 | 4755 | |
| 4583 | 4756 | .edit-site-layout__canvas { |
| 4584 | 4757 | position: absolute; |
| 4585 | 4758 | top: 0; |
| @@ -4593,9 +4766,9 @@ | ||
| 4593 | 4766 | .edit-site-layout__canvas.is-right-aligned { |
| 4594 | 4767 | justify-content: flex-end; |
| 4595 | 4768 | } |
| 4596 | 4769 | .edit-site-layout__canvas .edit-site-resizable-frame__inner { |
| 4597 | - color: #1e1e1e; | |
| 4770 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 4598 | 4771 | } |
| 4599 | 4772 | @media (min-width: 782px) { |
| 4600 | 4773 | .edit-site-layout__canvas { |
| 4601 | 4774 | top: 16px; |
| @@ -4613,9 +4786,9 @@ | ||
| 4613 | 4786 | } |
| 4614 | 4787 | } |
| 4615 | 4788 | @media (min-width: 782px) { |
| 4616 | 4789 | .edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content { |
| 4617 | - border-radius: 8px; | |
| 4790 | + border-radius: var(--wpds-border-radius-xl, 12px); | |
| 4618 | 4791 | } |
| 4619 | 4792 | .edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover { |
| 4620 | 4793 | box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02); |
| 4621 | 4794 | } |
| @@ -4636,9 +4809,8 @@ | ||
| 4636 | 4809 | .edit-site-template-pages-preview { |
| 4637 | 4810 | height: 100%; |
| 4638 | 4811 | } |
| 4639 | 4812 | |
| 4640 | -/* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */ | |
| 4641 | 4813 | html.canvas-mode-edit-transition::view-transition-group(toggle) { |
| 4642 | 4814 | animation-delay: 255ms; |
| 4643 | 4815 | } |
| 4644 | 4816 | |
| @@ -4648,61 +4820,8 @@ | ||
| 4648 | 4820 | ::view-transition-new(*) { |
| 4649 | 4821 | animation: none !important; |
| 4650 | 4822 | } |
| 4651 | 4823 | } |
| 4652 | -/* stylelint-enable */ | |
| 4653 | -.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle { | |
| 4654 | - display: none; | |
| 4655 | -} | |
| 4656 | - | |
| 4657 | -.edit-site-layout__view-mode-toggle.components-button { | |
| 4658 | - /* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */ | |
| 4659 | - view-transition-name: toggle; | |
| 4660 | - /* stylelint-enable */ | |
| 4661 | - position: relative; | |
| 4662 | - color: #fff; | |
| 4663 | - height: 64px; | |
| 4664 | - width: 64px; | |
| 4665 | - overflow: hidden; | |
| 4666 | - padding: 0; | |
| 4667 | - display: flex; | |
| 4668 | - align-items: center; | |
| 4669 | - justify-content: center; | |
| 4670 | - background: #1e1e1e; | |
| 4671 | - border-radius: 0; | |
| 4672 | -} | |
| 4673 | -.edit-site-layout__view-mode-toggle.components-button:hover, .edit-site-layout__view-mode-toggle.components-button:active { | |
| 4674 | - color: #fff; | |
| 4675 | -} | |
| 4676 | -.edit-site-layout__view-mode-toggle.components-button:focus-visible, .edit-site-layout__view-mode-toggle.components-button:focus { | |
| 4677 | - box-shadow: 0 0 0 3px #1e1e1e, 0 0 0 6px var(--wp-admin-theme-color); | |
| 4678 | - outline: 4px solid rgba(0, 0, 0, 0); | |
| 4679 | - outline-offset: 4px; | |
| 4680 | -} | |
| 4681 | -.edit-site-layout__view-mode-toggle.components-button::before { | |
| 4682 | - content: ""; | |
| 4683 | - display: block; | |
| 4684 | - position: absolute; | |
| 4685 | - top: 9px; | |
| 4686 | - right: 9px; | |
| 4687 | - bottom: 9px; | |
| 4688 | - left: 17px; | |
| 4689 | - border-radius: 4px; | |
| 4690 | - box-shadow: none; | |
| 4691 | -} | |
| 4692 | -@media not (prefers-reduced-motion) { | |
| 4693 | - .edit-site-layout__view-mode-toggle.components-button::before { | |
| 4694 | - transition: box-shadow 0.1s ease; | |
| 4695 | - } | |
| 4696 | -} | |
| 4697 | -.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon { | |
| 4698 | - display: flex; | |
| 4699 | - height: 64px; | |
| 4700 | - width: 64px; | |
| 4701 | - justify-content: center; | |
| 4702 | - align-items: center; | |
| 4703 | -} | |
| 4704 | - | |
| 4705 | 4824 | .edit-site-layout__actions { |
| 4706 | 4825 | z-index: 100000; |
| 4707 | 4826 | position: fixed !important; |
| 4708 | 4827 | top: -9999em; |
| @@ -4709,10 +4828,10 @@ | ||
| 4709 | 4828 | bottom: auto; |
| 4710 | 4829 | left: auto; |
| 4711 | 4830 | right: 0; |
| 4712 | 4831 | width: 280px; |
| 4713 | - color: #1e1e1e; | |
| 4714 | - background: #fff; | |
| 4832 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 4833 | + background: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 4715 | 4834 | } |
| 4716 | 4835 | .edit-site-layout__actions:focus, .edit-site-layout__actions:focus-within { |
| 4717 | 4836 | top: auto; |
| 4718 | 4837 | bottom: 0; |
| @@ -4717,13 +4836,13 @@ | ||
| 4717 | 4836 | top: auto; |
| 4718 | 4837 | bottom: 0; |
| 4719 | 4838 | } |
| 4720 | 4839 | .edit-site-layout__actions.is-entity-save-view-open:focus, .edit-site-layout__actions.is-entity-save-view-open:focus-within { |
| 4721 | - top: 0; | |
| 4840 | + top: var(--wp-admin--admin-bar--height, 0); | |
| 4722 | 4841 | } |
| 4723 | 4842 | @media (min-width: 782px) { |
| 4724 | 4843 | .edit-site-layout__actions { |
| 4725 | - border-left: 1px solid #ddd; | |
| 4844 | + border-left: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 4726 | 4845 | } |
| 4727 | 4846 | } |
| 4728 | 4847 | |
| 4729 | 4848 | .edit-site-layout__area { |
| @@ -4733,9 +4852,9 @@ | ||
| 4733 | 4852 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01); |
| 4734 | 4853 | } |
| 4735 | 4854 | @media (min-width: 782px) { |
| 4736 | 4855 | .edit-site-layout__area { |
| 4737 | - border-radius: 8px; | |
| 4856 | + border-radius: var(--wpds-border-radius-xl, 12px); | |
| 4738 | 4857 | margin: 16px 16px 16px 0; |
| 4739 | 4858 | } |
| 4740 | 4859 | } |
| 4741 | 4860 | |
| @@ -4740,9 +4859,9 @@ | ||
| 4740 | 4859 | } |
| 4741 | 4860 | |
| 4742 | 4861 | .edit-site-layout__snackbar { |
| 4743 | 4862 | position: fixed; |
| 4744 | - bottom: 24px; | |
| 4863 | + bottom: var(--wpds-dimension-size-md, 32px); | |
| 4745 | 4864 | left: 0; |
| 4746 | 4865 | right: 0; |
| 4747 | 4866 | padding-inline: 16px; |
| 4748 | 4867 | box-sizing: border-box; |
| @@ -4754,13 +4873,13 @@ | ||
| 4754 | 4873 | margin-inline: auto; |
| 4755 | 4874 | } |
| 4756 | 4875 | |
| 4757 | 4876 | .edit-site-save-hub { |
| 4758 | - color: #949494; | |
| 4759 | - border-top: 1px solid #2f2f2f; | |
| 4877 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 4878 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 4760 | 4879 | flex-shrink: 0; |
| 4761 | 4880 | margin: 0; |
| 4762 | - padding: 16px 16px; | |
| 4881 | + padding: 16px; | |
| 4763 | 4882 | } |
| 4764 | 4883 | |
| 4765 | 4884 | .edit-site-save-hub__button { |
| 4766 | 4885 | color: inherit; |
| @@ -4769,13 +4888,13 @@ | ||
| 4769 | 4888 | } |
| 4770 | 4889 | .edit-site-save-hub__button[aria-disabled=true] { |
| 4771 | 4890 | opacity: 1; |
| 4772 | 4891 | } |
| 4773 | -.edit-site-save-hub__button[aria-disabled=true]:hover { | |
| 4892 | +.edit-site-save-hub__button[aria-disabled=true], .edit-site-save-hub__button[aria-disabled=true]:hover { | |
| 4774 | 4893 | color: inherit; |
| 4775 | 4894 | } |
| 4776 | 4895 | .edit-site-save-hub__button:not(.is-primary).is-busy, .edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover { |
| 4777 | - color: #1e1e1e; | |
| 4896 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 4778 | 4897 | } |
| 4779 | 4898 | |
| 4780 | 4899 | @media (min-width: 600px) { |
| 4781 | 4900 | .edit-site-save-panel__modal { |
| @@ -4784,8 +4903,10 @@ | ||
| 4784 | 4903 | } |
| 4785 | 4904 | |
| 4786 | 4905 | .edit-site-sidebar__content { |
| 4787 | 4906 | flex-grow: 1; |
| 4907 | + flex-basis: 0; | |
| 4908 | + min-height: 0; | |
| 4788 | 4909 | overflow-y: auto; |
| 4789 | 4910 | overflow-x: hidden; |
| 4790 | 4911 | contain: content; |
| 4791 | 4912 | } |
| @@ -4868,46 +4989,36 @@ | ||
| 4868 | 4989 | animation-name: local--slide-from-right; |
| 4869 | 4990 | } |
| 4870 | 4991 | |
| 4871 | 4992 | .edit-site-sidebar-button { |
| 4872 | - color: #e0e0e0; | |
| 4993 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 4873 | 4994 | flex-shrink: 0; |
| 4874 | 4995 | } |
| 4875 | -.edit-site-sidebar-button:focus:not(:disabled) { | |
| 4876 | - box-shadow: none; | |
| 4996 | +.edit-site-sidebar-button:focus:not(:focus-visible) { | |
| 4877 | 4997 | outline: none; |
| 4878 | 4998 | } |
| 4879 | -.edit-site-sidebar-button:focus-visible:not(:disabled) { | |
| 4880 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 4881 | - outline: 3px solid transparent; | |
| 4882 | -} | |
| 4883 | 4999 | .edit-site-sidebar-button:hover:not(:disabled, [aria-disabled=true]), .edit-site-sidebar-button:focus-visible, .edit-site-sidebar-button:focus, .edit-site-sidebar-button:not(:disabled, [aria-disabled=true]):active, .edit-site-sidebar-button[aria-expanded=true] { |
| 4884 | - color: #f0f0f0; | |
| 5000 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 4885 | 5001 | } |
| 4886 | 5002 | |
| 4887 | 5003 | .edit-site-sidebar-navigation-item.components-item { |
| 4888 | - color: #949494; | |
| 5004 | + color: var(--wpds-color-foreground-interactive-neutral-weak, #707070); | |
| 4889 | 5005 | padding: 8px 6px 8px 16px; |
| 4890 | 5006 | border: none; |
| 4891 | 5007 | min-height: 40px; |
| 4892 | 5008 | } |
| 4893 | -.edit-site-sidebar-navigation-item.components-item:hover, .edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current=true] { | |
| 4894 | - color: #e0e0e0; | |
| 5009 | +.edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current=true], .edit-site-sidebar-navigation-item.components-item.edit-site-sidebar-navigation-item.components-item:hover { | |
| 5010 | + color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e); | |
| 4895 | 5011 | } |
| 4896 | -.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator { | |
| 4897 | - fill: #e0e0e0; | |
| 4898 | -} | |
| 4899 | 5012 | .edit-site-sidebar-navigation-item.components-item[aria-current=true] { |
| 4900 | - background: #2f2f2f; | |
| 4901 | - color: #fff; | |
| 4902 | - font-weight: 499; | |
| 5013 | + background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); | |
| 5014 | + color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e); | |
| 5015 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 4903 | 5016 | } |
| 4904 | 5017 | .edit-site-sidebar-navigation-item.components-item:focus-visible { |
| 5018 | + --wp-components-color-accent: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 4905 | 5019 | transform: translateZ(0); |
| 4906 | 5020 | } |
| 4907 | -.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator { | |
| 4908 | - fill: #949494; | |
| 4909 | -} | |
| 4910 | 5021 | .edit-site-sidebar-navigation-item.components-item.with-suffix { |
| 4911 | 5022 | padding-right: 16px; |
| 4912 | 5023 | } |
| 4913 | 5024 | |
| @@ -4934,9 +5045,9 @@ | ||
| 4934 | 5045 | .edit-site-sidebar-navigation-screen__content { |
| 4935 | 5046 | padding: 0 16px; |
| 4936 | 5047 | } |
| 4937 | 5048 | .edit-site-sidebar-navigation-screen__content .components-text { |
| 4938 | - color: #ccc; | |
| 5049 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 4939 | 5050 | } |
| 4940 | 5051 | .edit-site-sidebar-navigation-screen__content .components-heading { |
| 4941 | 5052 | margin-bottom: 8px; |
| 4942 | 5053 | } |
| @@ -4943,10 +5054,10 @@ | ||
| 4943 | 5054 | |
| 4944 | 5055 | .edit-site-sidebar-navigation-screen__title-icon { |
| 4945 | 5056 | position: sticky; |
| 4946 | 5057 | top: 0; |
| 4947 | - background: #1e1e1e; | |
| 4948 | - padding-top: 48px; | |
| 5058 | + background: var(--wpds-color-background-surface-neutral-weak, #f4f4f4); | |
| 5059 | + padding-top: 32px; | |
| 4949 | 5060 | margin-bottom: 8px; |
| 4950 | 5061 | padding-bottom: 8px; |
| 4951 | 5062 | z-index: 1; |
| 4952 | 5063 | } |
| @@ -4985,13 +5096,13 @@ | ||
| 4985 | 5096 | |
| 4986 | 5097 | .edit-site-sidebar-navigation-screen__footer { |
| 4987 | 5098 | position: sticky; |
| 4988 | 5099 | bottom: 0; |
| 4989 | - background-color: #1e1e1e; | |
| 5100 | + background-color: var(--wpds-color-background-surface-neutral-weak, #f4f4f4); | |
| 4990 | 5101 | gap: 0; |
| 4991 | 5102 | padding: 8px 16px; |
| 4992 | 5103 | margin: 16px 0 0; |
| 4993 | - border-top: 1px solid #2f2f2f; | |
| 5104 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 4994 | 5105 | } |
| 4995 | 5106 | .edit-site-sidebar-navigation-screen__footer .edit-site-sidebar-navigation-screen-details-footer { |
| 4996 | 5107 | margin-left: -16px; |
| 4997 | 5108 | margin-right: -16px; |
| @@ -5006,22 +5117,22 @@ | ||
| 5006 | 5117 | .edit-site-sidebar-navigation-screen__input-control { |
| 5007 | 5118 | width: 100%; |
| 5008 | 5119 | } |
| 5009 | 5120 | .edit-site-sidebar-navigation-screen__input-control .components-input-control__container { |
| 5010 | - background: #2f2f2f; | |
| 5121 | + background: var(--wpds-color-background-interactive-neutral-weak, #0000); | |
| 5011 | 5122 | } |
| 5012 | 5123 | .edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button { |
| 5013 | - color: #e0e0e0 !important; | |
| 5124 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e) !important; | |
| 5014 | 5125 | } |
| 5015 | 5126 | .edit-site-sidebar-navigation-screen__input-control .components-input-control__input { |
| 5016 | - color: #e0e0e0 !important; | |
| 5017 | - background: #2f2f2f !important; | |
| 5127 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e) !important; | |
| 5128 | + background: var(--wpds-color-background-interactive-neutral-weak, #0000) !important; | |
| 5018 | 5129 | } |
| 5019 | 5130 | .edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop { |
| 5020 | 5131 | border: 4px !important; |
| 5021 | 5132 | } |
| 5022 | 5133 | .edit-site-sidebar-navigation-screen__input-control .components-base-control__help { |
| 5023 | - color: #949494; | |
| 5134 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 5024 | 5135 | } |
| 5025 | 5136 | |
| 5026 | 5137 | .edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus, |
| 5027 | 5138 | .edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover, |
| @@ -5029,12 +5140,12 @@ | ||
| 5029 | 5140 | background: none; |
| 5030 | 5141 | } |
| 5031 | 5142 | |
| 5032 | 5143 | .sidebar-navigation__more-menu .components-button { |
| 5033 | - color: #e0e0e0; | |
| 5144 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 5034 | 5145 | } |
| 5035 | 5146 | .sidebar-navigation__more-menu .components-button:hover, .sidebar-navigation__more-menu .components-button:focus, .sidebar-navigation__more-menu .components-button[aria-current] { |
| 5036 | - color: #f0f0f0; | |
| 5147 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 5037 | 5148 | } |
| 5038 | 5149 | |
| 5039 | 5150 | .edit-site-sidebar-navigation-screen-patterns__group { |
| 5040 | 5151 | margin-bottom: 24px; |
| @@ -5050,18 +5161,18 @@ | ||
| 5050 | 5161 | .edit-site-sidebar-navigation-screen-patterns__group-header { |
| 5051 | 5162 | margin-top: 16px; |
| 5052 | 5163 | } |
| 5053 | 5164 | .edit-site-sidebar-navigation-screen-patterns__group-header p { |
| 5054 | - color: #949494; | |
| 5165 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 5055 | 5166 | } |
| 5056 | 5167 | .edit-site-sidebar-navigation-screen-patterns__group-header h2 { |
| 5057 | 5168 | font-size: 11px; |
| 5058 | - font-weight: 499; | |
| 5169 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5059 | 5170 | text-transform: uppercase; |
| 5060 | 5171 | } |
| 5061 | 5172 | |
| 5062 | 5173 | .edit-site-sidebar-navigation-screen-patterns__divider { |
| 5063 | - border-top: 1px solid #2f2f2f; | |
| 5174 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 5064 | 5175 | margin: 16px 0; |
| 5065 | 5176 | } |
| 5066 | 5177 | |
| 5067 | 5178 | .edit-site-sidebar-navigation-screen__description { |
| @@ -5082,19 +5193,27 @@ | ||
| 5082 | 5193 | .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell { |
| 5083 | 5194 | padding-right: 0; |
| 5084 | 5195 | } |
| 5085 | 5196 | .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button { |
| 5086 | - color: #949494; | |
| 5197 | + color: var(--wpds-color-foreground-interactive-neutral-weak, #707070); | |
| 5087 | 5198 | } |
| 5088 | 5199 | .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover, .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus, .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current] { |
| 5089 | - color: #fff; | |
| 5200 | + color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e); | |
| 5090 | 5201 | } |
| 5091 | 5202 | .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu { |
| 5092 | - color: #949494; | |
| 5203 | + color: var(--wpds-color-foreground-interactive-neutral-weak, #707070); | |
| 5093 | 5204 | } |
| 5094 | 5205 | .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover, .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus { |
| 5095 | - color: #fff; | |
| 5206 | + color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e); | |
| 5096 | 5207 | } |
| 5208 | +.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle { | |
| 5209 | + background: var(--wpds-color-background-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 5210 | + color: var(--wpds-color-foreground-interactive-brand-strong, #fff); | |
| 5211 | +} | |
| 5212 | +.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle:hover, .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle:focus { | |
| 5213 | + background: var(--wpds-color-background-interactive-brand-strong-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black)); | |
| 5214 | + color: var(--wpds-color-foreground-interactive-brand-strong-active, #fff); | |
| 5215 | +} | |
| 5097 | 5216 | |
| 5098 | 5217 | .edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner { |
| 5099 | 5218 | margin-left: auto; |
| 5100 | 5219 | margin-right: auto; |
| @@ -5109,13 +5228,8 @@ | ||
| 5109 | 5228 | margin-left: -16px; |
| 5110 | 5229 | margin-right: -16px; |
| 5111 | 5230 | } |
| 5112 | 5231 | |
| 5113 | -.edit-site-sidebar-navigation-screen-templates-browse { | |
| 5114 | - margin-left: -16px; | |
| 5115 | - margin-right: -16px; | |
| 5116 | -} | |
| 5117 | - | |
| 5118 | 5232 | .edit-site-sidebar-dataviews { |
| 5119 | 5233 | margin-left: -16px; |
| 5120 | 5234 | margin-right: -16px; |
| 5121 | 5235 | } |
| @@ -5122,111 +5236,16 @@ | ||
| 5122 | 5236 | |
| 5123 | 5237 | .edit-site-site-hub { |
| 5124 | 5238 | display: flex; |
| 5125 | 5239 | align-items: center; |
| 5126 | - justify-content: space-between; | |
| 5127 | - gap: 8px; | |
| 5128 | - margin-right: 12px; | |
| 5240 | + padding-left: 16px; | |
| 5129 | 5241 | height: 64px; |
| 5130 | 5242 | } |
| 5131 | 5243 | |
| 5132 | -.edit-site-site-hub__actions { | |
| 5133 | - flex-shrink: 0; | |
| 5244 | +.edit-site-site-hub__back-button:hover:not(:disabled, [aria-disabled=true]), .edit-site-site-hub__back-button:active:not(:disabled, [aria-disabled=true]) { | |
| 5245 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 5134 | 5246 | } |
| 5135 | 5247 | |
| 5136 | -.edit-site-site-hub__view-mode-toggle-container { | |
| 5137 | - height: 64px; | |
| 5138 | - width: 64px; | |
| 5139 | - flex-shrink: 0; | |
| 5140 | -} | |
| 5141 | -.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon { | |
| 5142 | - background: transparent; | |
| 5143 | -} | |
| 5144 | - | |
| 5145 | -.edit-site-site-hub__title .components-button { | |
| 5146 | - color: #e0e0e0; | |
| 5147 | - display: block; | |
| 5148 | - flex-grow: 1; | |
| 5149 | - font-size: 15px; | |
| 5150 | - font-weight: 499; | |
| 5151 | - overflow: hidden; | |
| 5152 | - padding-right: 16px; | |
| 5153 | - margin-left: -4px; | |
| 5154 | - position: relative; | |
| 5155 | - text-decoration: none; | |
| 5156 | - text-overflow: ellipsis; | |
| 5157 | - white-space: nowrap; | |
| 5158 | -} | |
| 5159 | -.edit-site-site-hub__title .components-button:hover, .edit-site-site-hub__title .components-button:focus, .edit-site-site-hub__title .components-button:active { | |
| 5160 | - color: #e0e0e0; | |
| 5161 | -} | |
| 5162 | -.edit-site-site-hub__title .components-button:focus { | |
| 5163 | - box-shadow: none; | |
| 5164 | - outline: none; | |
| 5165 | -} | |
| 5166 | -.edit-site-site-hub__title .components-button:focus-visible { | |
| 5167 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e, 0 0 0 calc(2 * var(--wp-admin-border-width-focus)) var(--wp-admin-theme-color); | |
| 5168 | - outline: 2px solid transparent; | |
| 5169 | - outline-offset: 2px; | |
| 5170 | -} | |
| 5171 | -.edit-site-site-hub__title .components-button::after { | |
| 5172 | - content: "↗"; | |
| 5173 | - font-weight: 400; | |
| 5174 | - opacity: 0; | |
| 5175 | - position: absolute; | |
| 5176 | - right: 0; | |
| 5177 | -} | |
| 5178 | -@media not (prefers-reduced-motion) { | |
| 5179 | - .edit-site-site-hub__title .components-button::after { | |
| 5180 | - transition: opacity 0.1s linear; | |
| 5181 | - } | |
| 5182 | -} | |
| 5183 | -.edit-site-site-hub__title .components-button:hover::after, .edit-site-site-hub__title .components-button:focus::after, .edit-site-site-hub__title .components-button:active::after { | |
| 5184 | - opacity: 1; | |
| 5185 | -} | |
| 5186 | - | |
| 5187 | -.edit-site-site-hub_toggle-command-center { | |
| 5188 | - color: #e0e0e0; | |
| 5189 | -} | |
| 5190 | -.edit-site-site-hub_toggle-command-center:hover svg, .edit-site-site-hub_toggle-command-center:active svg { | |
| 5191 | - fill: #f0f0f0; | |
| 5192 | -} | |
| 5193 | - | |
| 5194 | -.edit-site-site-icon__icon { | |
| 5195 | - fill: currentColor; | |
| 5196 | - width: 100%; | |
| 5197 | - height: 100%; | |
| 5198 | -} | |
| 5199 | -.edit-site-layout.is-full-canvas .edit-site-site-icon__icon { | |
| 5200 | - padding: 12px; | |
| 5201 | -} | |
| 5202 | - | |
| 5203 | -.edit-site-site-icon__image { | |
| 5204 | - width: 100%; | |
| 5205 | - height: 100%; | |
| 5206 | - object-fit: cover; | |
| 5207 | - background: #333; | |
| 5208 | - aspect-ratio: 1/1; | |
| 5209 | -} | |
| 5210 | -.edit-site-layout.is-full-canvas .edit-site-site-icon__image { | |
| 5211 | - border-radius: 0; | |
| 5212 | -} | |
| 5213 | - | |
| 5214 | -.edit-site-editor__view-mode-toggle button:focus { | |
| 5215 | - position: relative; | |
| 5216 | -} | |
| 5217 | -.edit-site-editor__view-mode-toggle button:focus::before { | |
| 5218 | - content: ""; | |
| 5219 | - display: block; | |
| 5220 | - position: absolute; | |
| 5221 | - z-index: 1; | |
| 5222 | - top: 0; | |
| 5223 | - right: 0; | |
| 5224 | - bottom: 0; | |
| 5225 | - left: 0; | |
| 5226 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff; | |
| 5227 | -} | |
| 5228 | - | |
| 5229 | 5248 | .fields-controls__password { |
| 5230 | 5249 | border-top: 1px solid #e0e0e0; |
| 5231 | 5250 | padding-top: 16px; |
| 5232 | 5251 | } |
| @@ -5391,18 +5410,26 @@ | ||
| 5391 | 5410 | padding-left: 0; |
| 5392 | 5411 | padding-right: 0; |
| 5393 | 5412 | } |
| 5394 | 5413 | .edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen { |
| 5395 | - padding-top: 12px; | |
| 5396 | - padding-left: 12px; | |
| 5397 | - padding-right: 12px; | |
| 5398 | - padding-bottom: 12px; | |
| 5414 | + padding: 12px; | |
| 5399 | 5415 | outline: none; |
| 5400 | 5416 | } |
| 5417 | +.edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen .global-styles-ui-color-palette__tablist-container { | |
| 5418 | + margin-inline: -12px; | |
| 5419 | + width: calc(100% + 24px); | |
| 5420 | + padding-inline: 12px; | |
| 5421 | +} | |
| 5401 | 5422 | .edit-site-styles .edit-site-sidebar-button { |
| 5402 | - color: #1e1e1e; | |
| 5423 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 5403 | 5424 | } |
| 5404 | 5425 | |
| 5426 | +.edit-site-styles__content { | |
| 5427 | + flex-grow: 1; | |
| 5428 | + min-height: 0; | |
| 5429 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 5430 | +} | |
| 5431 | + | |
| 5405 | 5432 | .show-icon-labels .edit-site-styles__header-actions .components-button.has-icon { |
| 5406 | 5433 | width: auto; |
| 5407 | 5434 | padding: 0 var(--wpds-dimension-padding-xs, 4px); |
| 5408 | 5435 | } |
| @@ -5413,9 +5440,16 @@ | ||
| 5413 | 5440 | content: attr(aria-label); |
| 5414 | 5441 | font-size: var(--wpds-typography-font-size-sm, 12px); |
| 5415 | 5442 | } |
| 5416 | 5443 | |
| 5417 | -/* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */ | |
| 5444 | +.edit-site-sidebar-identity__form { | |
| 5445 | + flex-grow: 1; | |
| 5446 | + min-height: 0; | |
| 5447 | + overflow: auto; | |
| 5448 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 5449 | + padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px); | |
| 5450 | +} | |
| 5451 | + | |
| 5418 | 5452 | ::view-transition-image-pair(root) { |
| 5419 | 5453 | isolation: auto; |
| 5420 | 5454 | } |
| 5421 | 5455 | |
| @@ -5425,13 +5459,8 @@ | ||
| 5425 | 5459 | mix-blend-mode: normal; |
| 5426 | 5460 | display: block; |
| 5427 | 5461 | } |
| 5428 | 5462 | |
| 5429 | -/* stylelint-enable */ | |
| 5430 | -body.js #wpadminbar { | |
| 5431 | - display: none; | |
| 5432 | -} | |
| 5433 | - | |
| 5434 | 5463 | body.js #wpbody { |
| 5435 | 5464 | padding-top: 0; |
| 5436 | 5465 | } |
| 5437 | 5466 | |
| @@ -5477,10 +5506,19 @@ | ||
| 5477 | 5506 | max-width: 100%; |
| 5478 | 5507 | } |
| 5479 | 5508 | |
| 5480 | 5509 | body.js.site-editor-php { |
| 5481 | - background: #1e1e1e; | |
| 5510 | + background: var(--wpds-color-background-surface-neutral-weak, #f4f4f4); | |
| 5482 | 5511 | } |
| 5512 | +@media (min-width: 782px) { | |
| 5513 | + body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free) { | |
| 5514 | + --wp-admin--admin-bar--height: 0px; | |
| 5515 | + --wp-editor-admin-bar-display: none; | |
| 5516 | + } | |
| 5517 | + body.js.site-editor-php #wpadminbar { | |
| 5518 | + display: var(--wp-editor-admin-bar-display, block); | |
| 5519 | + } | |
| 5520 | +} | |
| 5483 | 5521 | |
| 5484 | 5522 | .edit-site { |
| 5485 | 5523 | box-sizing: border-box; |
| 5486 | 5524 | } |
| @@ -5489,8 +5527,9 @@ | ||
| 5489 | 5527 | .edit-site *::after { |
| 5490 | 5528 | box-sizing: inherit; |
| 5491 | 5529 | } |
| 5492 | 5530 | .edit-site { |
| 5531 | + padding-top: var(--wp-admin--admin-bar--height, 0); | |
| 5493 | 5532 | height: 100vh; |
| 5494 | 5533 | } |
| 5495 | 5534 | @media (min-width: 600px) { |
| 5496 | 5535 | .edit-site { |
| @@ -5495,12 +5534,13 @@ | ||
| 5495 | 5534 | @media (min-width: 600px) { |
| 5496 | 5535 | .edit-site { |
| 5497 | 5536 | bottom: 0; |
| 5498 | 5537 | left: 0; |
| 5499 | - min-height: 100vh; | |
| 5538 | + height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); | |
| 5539 | + padding-top: 0; | |
| 5500 | 5540 | position: fixed; |
| 5501 | 5541 | right: 0; |
| 5502 | - top: 0; | |
| 5542 | + top: var(--wp-admin--admin-bar--height, 0); | |
| 5503 | 5543 | } |
| 5504 | 5544 | } |
| 5505 | 5545 | .no-js .edit-site { |
| 5506 | 5546 | min-height: 0; |