| @@ -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 |
| @@ -106,77 +111,12 @@ | ||
| 106 | 111 | --wp-admin-border-width-focus: 1.5px; |
| 107 | 112 | } |
| 108 | 113 | } |
| 109 | 114 | |
| 110 | -.admin-ui-page { | |
| 111 | - display: flex; | |
| 112 | - height: 100%; | |
| 113 | - background-color: var(--wpds-color-bg-surface-neutral, #fcfcfc); | |
| 114 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 115 | - position: relative; | |
| 116 | - z-index: 1; | |
| 117 | - flex-flow: column; | |
| 118 | - text-wrap: pretty; | |
| 119 | -} | |
| 120 | - | |
| 121 | -.admin-ui-page__header { | |
| 122 | - padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px); | |
| 123 | - border-bottom: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #e4e4e4); | |
| 124 | - background: var(--wpds-color-bg-surface-neutral-strong, #ffffff); | |
| 125 | - position: sticky; | |
| 126 | - top: 0; | |
| 127 | - z-index: 1; | |
| 128 | -} | |
| 129 | - | |
| 130 | -.admin-ui-page__header-title { | |
| 131 | - font-family: var(--wpds-typography-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif); | |
| 132 | - font-size: var(--wpds-typography-font-size-lg, 15px); | |
| 133 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 134 | - line-height: var(--wpds-typography-line-height-lg, 28px); | |
| 135 | - margin: 0; | |
| 136 | - overflow: hidden; | |
| 137 | - text-overflow: ellipsis; | |
| 138 | - white-space: nowrap; | |
| 139 | -} | |
| 140 | - | |
| 141 | -.admin-ui-page__sidebar-toggle-slot:empty { | |
| 142 | - display: none; | |
| 143 | -} | |
| 144 | - | |
| 145 | -.admin-ui-page__header-subtitle { | |
| 146 | - padding-block-end: var(--wpds-dimension-padding-xs, 4px); | |
| 147 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 148 | - font-size: var(--wpds-typography-font-size-md, 13px); | |
| 149 | - line-height: var(--wpds-typography-line-height-md, 24px); | |
| 150 | - margin: 0; | |
| 151 | -} | |
| 152 | - | |
| 153 | -.admin-ui-page__content { | |
| 154 | - flex-grow: 1; | |
| 155 | - overflow: auto; | |
| 156 | - display: flex; | |
| 157 | - flex-direction: column; | |
| 158 | -} | |
| 159 | - | |
| 160 | -.admin-ui-page__content.has-padding { | |
| 161 | - padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px); | |
| 162 | -} | |
| 163 | - | |
| 164 | -.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon { | |
| 165 | - width: auto; | |
| 166 | - padding: 0 var(--wpds-dimension-padding-xs, 4px); | |
| 167 | -} | |
| 168 | - | |
| 169 | -.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg { | |
| 170 | - display: none; | |
| 171 | -} | |
| 172 | - | |
| 173 | -.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after { | |
| 174 | - content: attr(aria-label); | |
| 175 | - font-size: var(--wpds-typography-font-size-sm, 12px); | |
| 176 | -} | |
| 177 | - | |
| 178 | 115 | /** |
| 116 | + * Typography | |
| 117 | + */ | |
| 118 | +/** | |
| 179 | 119 | * SCSS Variables. |
| 180 | 120 | * |
| 181 | 121 | * Please use variables from this sheet to ensure consistency across the UI. |
| 182 | 122 | * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
| @@ -219,79 +159,9 @@ | ||
| 219 | 159 | /** |
| 220 | 160 | * React Native specific. |
| 221 | 161 | * These variables do not appear to be used anywhere else. |
| 222 | 162 | */ |
| 223 | -.admin-ui-breadcrumbs__list { | |
| 224 | - font-family: var(--wpds-typography-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif); | |
| 225 | - font-size: var(--wpds-typography-font-size-lg, 15px); | |
| 226 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 227 | - line-height: var(--wpds-typography-line-height-lg, 28px); | |
| 228 | - list-style: none; | |
| 229 | - padding: 0; | |
| 230 | - margin: 0; | |
| 231 | - gap: 0; | |
| 232 | - min-height: 32px; | |
| 233 | -} | |
| 234 | - | |
| 235 | -.admin-ui-breadcrumbs__list li:not(:last-child)::after { | |
| 236 | - content: "/"; | |
| 237 | - margin: 0 8px; | |
| 238 | -} | |
| 239 | - | |
| 240 | -.admin-ui-breadcrumbs__list h1 { | |
| 241 | - font-size: inherit; | |
| 242 | - line-height: inherit; | |
| 243 | -} | |
| 244 | - | |
| 245 | 163 | /** |
| 246 | - * Colors | |
| 247 | - */ | |
| 248 | -/** | |
| 249 | - * SCSS Variables. | |
| 250 | - * | |
| 251 | - * Please use variables from this sheet to ensure consistency across the UI. | |
| 252 | - * Don't add to this sheet unless you're pretty sure the value will be reused in many places. | |
| 253 | - * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. | |
| 254 | - */ | |
| 255 | -/** | |
| 256 | - * Fonts & basic variables. | |
| 257 | - */ | |
| 258 | -/** | |
| 259 | - * Typography | |
| 260 | - */ | |
| 261 | -/** | |
| 262 | - * Grid System. | |
| 263 | - * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ | |
| 264 | - */ | |
| 265 | -/** | |
| 266 | - * Radius scale. | |
| 267 | - */ | |
| 268 | -/** | |
| 269 | - * Elevation scale. | |
| 270 | - */ | |
| 271 | -/** | |
| 272 | - * Dimensions. | |
| 273 | - */ | |
| 274 | -/** | |
| 275 | - * Mobile specific styles | |
| 276 | - */ | |
| 277 | -/** | |
| 278 | - * Editor styles. | |
| 279 | - */ | |
| 280 | -/** | |
| 281 | - * Block & Editor UI. | |
| 282 | - */ | |
| 283 | -/** | |
| 284 | - * Block paddings. | |
| 285 | - */ | |
| 286 | -/** | |
| 287 | - * React Native specific. | |
| 288 | - * These variables do not appear to be used anywhere else. | |
| 289 | - */ | |
| 290 | -/** | |
| 291 | - * Typography | |
| 292 | - */ | |
| 293 | -/** | |
| 294 | 164 | * Breakpoints & Media Queries |
| 295 | 165 | */ |
| 296 | 166 | /** |
| 297 | 167 | * Converts a hex value into the rgb equivalent. |
| @@ -311,8 +181,14 @@ | ||
| 311 | 181 | /** |
| 312 | 182 | * Focus styles. |
| 313 | 183 | */ |
| 314 | 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 | +/** | |
| 315 | 191 | * Applies editor left position to the selector passed as argument |
| 316 | 192 | */ |
| 317 | 193 | /** |
| 318 | 194 | * Styles that are reused verbatim in a few places |
| @@ -333,23 +209,24 @@ | ||
| 333 | 209 | */ |
| 334 | 210 | .dataviews-wrapper, |
| 335 | 211 | .dataviews-picker-wrapper { |
| 336 | 212 | height: 100%; |
| 213 | + flex-grow: 1; | |
| 214 | + min-height: 0; | |
| 337 | 215 | box-sizing: border-box; |
| 338 | 216 | scroll-padding-bottom: 64px; |
| 339 | - /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */ | |
| 340 | 217 | container: dataviews-wrapper/inline-size; |
| 341 | 218 | display: flex; |
| 342 | 219 | flex-direction: column; |
| 343 | - font-size: 13px; | |
| 344 | - line-height: 1.4; | |
| 345 | - 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)); | |
| 346 | 223 | } |
| 347 | 224 | |
| 348 | 225 | .dataviews__view-actions, |
| 349 | 226 | .dataviews-filters__container { |
| 350 | 227 | box-sizing: border-box; |
| 351 | - padding: 16px 24px; | |
| 228 | + padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px); | |
| 352 | 229 | flex-shrink: 0; |
| 353 | 230 | position: sticky; |
| 354 | 231 | right: 0; |
| 355 | 232 | background-color: inherit; |
| @@ -360,11 +237,19 @@ | ||
| 360 | 237 | .dataviews-filters__container { |
| 361 | 238 | transition: padding ease-out 0.1s; |
| 362 | 239 | } |
| 363 | 240 | } |
| 241 | +.dataviews__search { | |
| 242 | + flex-grow: 1; | |
| 243 | +} | |
| 244 | + | |
| 245 | +.dataviews__search .dataviews-search { | |
| 246 | + flex-basis: 210px; | |
| 247 | +} | |
| 248 | + | |
| 364 | 249 | .dataviews-no-results, |
| 365 | 250 | .dataviews-loading { |
| 366 | - padding: 0 24px; | |
| 251 | + padding: 0 var(--wpds-dimension-padding-2xl, 24px); | |
| 367 | 252 | flex-grow: 1; |
| 368 | 253 | display: flex; |
| 369 | 254 | align-items: center; |
| 370 | 255 | justify-content: center; |
| @@ -398,18 +283,22 @@ | ||
| 398 | 283 | .dataviews-loading-more { |
| 399 | 284 | text-align: center; |
| 400 | 285 | } |
| 401 | 286 | |
| 287 | +.dataviews-loading-more[aria-hidden=true] { | |
| 288 | + visibility: hidden; | |
| 289 | +} | |
| 290 | + | |
| 402 | 291 | @container (max-width: 430px) { |
| 403 | 292 | .dataviews__view-actions, |
| 404 | 293 | .dataviews-filters__container { |
| 405 | - padding: 12px 24px; | |
| 294 | + padding: var(--wpds-dimension-padding-md, 12px) var(--wpds-dimension-padding-2xl, 24px); | |
| 406 | 295 | } |
| 407 | 296 | } |
| 408 | 297 | .dataviews-title-field { |
| 409 | - font-size: 13px; | |
| 410 | - font-weight: 499; | |
| 411 | - 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); | |
| 412 | 301 | text-overflow: ellipsis; |
| 413 | 302 | white-space: nowrap; |
| 414 | 303 | width: 100%; |
| 415 | 304 | } |
| @@ -420,13 +309,13 @@ | ||
| 420 | 309 | white-space: nowrap; |
| 421 | 310 | overflow: hidden; |
| 422 | 311 | display: block; |
| 423 | 312 | flex-grow: 0; |
| 424 | - color: #2f2f2f; | |
| 313 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 425 | 314 | } |
| 426 | 315 | |
| 427 | 316 | .dataviews-title-field a:hover { |
| 428 | - color: var(--wp-admin-theme-color); | |
| 317 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 429 | 318 | } |
| 430 | 319 | |
| 431 | 320 | .dataviews-title-field a:focus { |
| 432 | 321 | color: var(--wp-admin-theme-color--rgb); |
| @@ -441,22 +330,22 @@ | ||
| 441 | 330 | white-space: nowrap; |
| 442 | 331 | overflow: hidden; |
| 443 | 332 | display: block; |
| 444 | 333 | width: 100%; |
| 445 | - color: #1e1e1e; | |
| 334 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 446 | 335 | } |
| 447 | 336 | |
| 448 | 337 | .dataviews-title-field button.components-button.is-link:hover { |
| 449 | - color: var(--wp-admin-theme-color); | |
| 338 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 450 | 339 | } |
| 451 | 340 | |
| 452 | 341 | .dataviews-title-field--clickable { |
| 453 | 342 | cursor: var(--wpds-cursor-control, pointer); |
| 454 | - color: #2f2f2f; | |
| 343 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 455 | 344 | } |
| 456 | 345 | |
| 457 | 346 | .dataviews-title-field--clickable:hover { |
| 458 | - color: var(--wp-admin-theme-color); | |
| 347 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 459 | 348 | } |
| 460 | 349 | |
| 461 | 350 | .dataviews-title-field--clickable:focus { |
| 462 | 351 | color: var(--wp-admin-theme-color--rgb); |
| @@ -470,15 +359,24 @@ | ||
| 470 | 359 | z-index: 2; |
| 471 | 360 | background-color: #fff; |
| 472 | 361 | } |
| 473 | 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 | + | |
| 474 | 372 | .dataviews-bulk-actions-footer__item-count { |
| 475 | - color: #1e1e1e; | |
| 373 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 476 | 374 | } |
| 477 | 375 | |
| 478 | 376 | .dataviews-bulk-actions-footer__container { |
| 479 | 377 | margin-left: auto; |
| 480 | - min-height: 32px; | |
| 378 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 481 | 379 | } |
| 482 | 380 | |
| 483 | 381 | .dataviews-layout__container { |
| 484 | 382 | flex: 1; |
| @@ -505,10 +403,10 @@ | ||
| 505 | 403 | opacity: 1; |
| 506 | 404 | } |
| 507 | 405 | |
| 508 | 406 | .dataviews-filters__summary-popover { |
| 509 | - font-size: 13px; | |
| 510 | - line-height: 1.4; | |
| 407 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 408 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 511 | 409 | } |
| 512 | 410 | |
| 513 | 411 | .dataviews-filters__summary-popover .components-popover__content { |
| 514 | 412 | width: 100%; |
| @@ -513,9 +411,9 @@ | ||
| 513 | 411 | .dataviews-filters__summary-popover .components-popover__content { |
| 514 | 412 | width: 100%; |
| 515 | 413 | min-width: 230px; |
| 516 | 414 | max-width: 250px; |
| 517 | - border-radius: 4px; | |
| 415 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 518 | 416 | } |
| 519 | 417 | |
| 520 | 418 | .dataviews-filters__summary-popover.components-dropdown__content .components-popover__content { |
| 521 | 419 | padding: 0; |
| @@ -521,13 +419,13 @@ | ||
| 521 | 419 | padding: 0; |
| 522 | 420 | } |
| 523 | 421 | |
| 524 | 422 | .dataviews-filters__summary-operators-container { |
| 525 | - padding: 8px 16px; | |
| 423 | + padding: var(--wpds-dimension-padding-sm, 8px) var(--wpds-dimension-padding-lg, 16px); | |
| 526 | 424 | } |
| 527 | 425 | |
| 528 | 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) { |
| 529 | - border-bottom: 1px solid #e0e0e0; | |
| 427 | + border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 530 | 428 | } |
| 531 | 429 | |
| 532 | 430 | .dataviews-filters__summary-operators-container:empty { |
| 533 | 431 | display: none; |
| @@ -533,9 +431,9 @@ | ||
| 533 | 431 | display: none; |
| 534 | 432 | } |
| 535 | 433 | |
| 536 | 434 | .dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name { |
| 537 | - color: #757575; | |
| 435 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 538 | 436 | white-space: nowrap; |
| 539 | 437 | overflow: hidden; |
| 540 | 438 | text-overflow: ellipsis; |
| 541 | 439 | flex-shrink: 0; /* Prevents this element from shrinking */ |
| @@ -543,10 +441,10 @@ | ||
| 543 | 441 | } |
| 544 | 442 | |
| 545 | 443 | .dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select { |
| 546 | 444 | width: 100%; |
| 445 | + min-width: 0; | |
| 547 | 446 | white-space: nowrap; |
| 548 | - overflow: hidden; | |
| 549 | 447 | } |
| 550 | 448 | |
| 551 | 449 | .dataviews-filters__summary-chip-container { |
| 552 | 450 | position: relative; |
| @@ -553,15 +451,14 @@ | ||
| 553 | 451 | white-space: pre-wrap; |
| 554 | 452 | } |
| 555 | 453 | |
| 556 | 454 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip { |
| 557 | - border-radius: 16px; | |
| 558 | - 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); | |
| 559 | 457 | cursor: var(--wpds-cursor-control, pointer); |
| 560 | - padding: 4px 12px; | |
| 561 | - min-height: 32px; | |
| 562 | - background: #f0f0f0; | |
| 563 | - 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); | |
| 564 | 461 | position: relative; |
| 565 | 462 | display: flex; |
| 566 | 463 | align-items: center; |
| 567 | 464 | box-sizing: border-box; |
| @@ -571,42 +468,46 @@ | ||
| 571 | 468 | cursor: default; |
| 572 | 469 | } |
| 573 | 470 | |
| 574 | 471 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset { |
| 575 | - padding-inline-end: 28px; | |
| 472 | + padding-inline-end: calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px)); | |
| 576 | 473 | } |
| 577 | 474 | |
| 578 | 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] { |
| 579 | - background: #e0e0e0; | |
| 580 | - 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); | |
| 581 | 479 | } |
| 582 | 480 | |
| 583 | 481 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values { |
| 584 | - color: var(--wp-admin-theme-color); | |
| 585 | - 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)); | |
| 586 | 485 | } |
| 587 | 486 | |
| 588 | -.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] { | |
| 589 | - 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)); | |
| 590 | 491 | } |
| 591 | 492 | |
| 592 | 493 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible { |
| 593 | 494 | outline: none; |
| 594 | - 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)); | |
| 595 | 496 | } |
| 596 | 497 | |
| 597 | 498 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name { |
| 598 | - font-weight: 499; | |
| 499 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 599 | 500 | } |
| 600 | 501 | |
| 601 | 502 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove { |
| 602 | - width: 24px; | |
| 603 | - height: 24px; | |
| 604 | - 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); | |
| 605 | 506 | border: 0; |
| 606 | 507 | padding: 0; |
| 607 | 508 | position: absolute; |
| 608 | - left: 4px; | |
| 509 | + left: var(--wpds-dimension-padding-xs, 4px); | |
| 609 | 510 | top: 50%; |
| 610 | 511 | transform: translateY(-50%); |
| 611 | 512 | display: flex; |
| 612 | 513 | align-items: center; |
| @@ -615,45 +516,45 @@ | ||
| 615 | 516 | cursor: var(--wpds-cursor-control, pointer); |
| 616 | 517 | } |
| 617 | 518 | |
| 618 | 519 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg { |
| 619 | - fill: #757575; | |
| 520 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 620 | 521 | } |
| 621 | 522 | |
| 622 | 523 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus { |
| 623 | - background: #e0e0e0; | |
| 524 | + background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); | |
| 624 | 525 | } |
| 625 | 526 | |
| 626 | 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 { |
| 627 | - fill: #1e1e1e; | |
| 528 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 628 | 529 | } |
| 629 | 530 | |
| 630 | 531 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg { |
| 631 | - fill: var(--wp-admin-theme-color); | |
| 532 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 632 | 533 | } |
| 633 | 534 | |
| 634 | 535 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover { |
| 635 | - 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)); | |
| 636 | 537 | } |
| 637 | 538 | |
| 638 | 539 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible { |
| 639 | 540 | outline: none; |
| 640 | - 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)); | |
| 641 | 542 | } |
| 642 | 543 | |
| 643 | 544 | .dataviews-filters__search-widget-filter-combobox-list { |
| 644 | 545 | max-height: 184px; |
| 645 | - padding: 4px; | |
| 546 | + padding: var(--wpds-dimension-padding-xs, 4px); | |
| 646 | 547 | overflow: auto; |
| 647 | - border-top: 1px solid #e0e0e0; | |
| 548 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 648 | 549 | } |
| 649 | 550 | |
| 650 | 551 | .dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value] { |
| 651 | - font-weight: 600; | |
| 552 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 652 | 553 | } |
| 653 | 554 | |
| 654 | 555 | .dataviews-filters__search-widget-listbox { |
| 655 | - padding: 4px; | |
| 556 | + padding: var(--wpds-dimension-padding-xs, 4px); | |
| 656 | 557 | overflow: auto; |
| 657 | 558 | } |
| 658 | 559 | |
| 659 | 560 | .dataviews-filters__search-widget-listitem { |
| @@ -658,18 +559,19 @@ | ||
| 658 | 559 | |
| 659 | 560 | .dataviews-filters__search-widget-listitem { |
| 660 | 561 | display: flex; |
| 661 | 562 | align-items: center; |
| 662 | - gap: 8px; | |
| 663 | - border-radius: 2px; | |
| 563 | + gap: var(--wpds-dimension-gap-md, 12px); | |
| 564 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 664 | 565 | box-sizing: border-box; |
| 665 | - padding: 4px 12px; | |
| 566 | + padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-md, 12px); | |
| 666 | 567 | cursor: default; |
| 667 | - min-height: 32px; | |
| 668 | - font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 669 | - 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); | |
| 670 | 571 | font-size: 13px; |
| 671 | 572 | line-height: 20px; |
| 573 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 672 | 574 | } |
| 673 | 575 | |
| 674 | 576 | .dataviews-filters__search-widget-listitem:last-child { |
| 675 | 577 | margin-block-end: 0; |
| @@ -675,35 +577,37 @@ | ||
| 675 | 577 | margin-block-end: 0; |
| 676 | 578 | } |
| 677 | 579 | |
| 678 | 580 | .dataviews-filters__search-widget-listitem:hover, .dataviews-filters__search-widget-listitem[data-active-item], .dataviews-filters__search-widget-listitem:focus { |
| 679 | - background-color: var(--wp-admin-theme-color); | |
| 680 | - 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); | |
| 681 | 583 | } |
| 682 | 584 | |
| 683 | -.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 { | |
| 684 | - color: #fff; | |
| 685 | -} | |
| 686 | - | |
| 687 | 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 { |
| 688 | - border-color: var(--wp-admin-theme-color-darker-20, #183ad6); | |
| 689 | - 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); | |
| 690 | 588 | } |
| 691 | 589 | |
| 692 | 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 { |
| 693 | - border-color: var(--wp-admin-theme-color-darker-20, #183ad6); | |
| 694 | - 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)); | |
| 695 | 593 | } |
| 696 | 594 | |
| 697 | 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 { |
| 698 | - 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)); | |
| 699 | 599 | } |
| 700 | 600 | |
| 701 | 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 { |
| 702 | - border-color: var(--wp-admin-theme-color-darker-20, #183ad6); | |
| 703 | - 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)); | |
| 704 | 604 | } |
| 705 | 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 | + | |
| 706 | 610 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value { |
| 707 | 611 | overflow: hidden; |
| 708 | 612 | text-overflow: ellipsis; |
| 709 | 613 | white-space: nowrap; |
| @@ -713,11 +617,11 @@ | ||
| 713 | 617 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description { |
| 714 | 618 | display: block; |
| 715 | 619 | overflow: hidden; |
| 716 | 620 | text-overflow: ellipsis; |
| 717 | - font-size: 12px; | |
| 621 | + font-size: var(--wpds-typography-font-size-sm, 12px); | |
| 718 | 622 | line-height: 16px; |
| 719 | - color: #757575; | |
| 623 | + color: var(--wpds-color-foreground-interactive-neutral-weak, #707070); | |
| 720 | 624 | } |
| 721 | 625 | |
| 722 | 626 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection { |
| 723 | 627 | border: 1px solid #1e1e1e; |
| @@ -778,10 +682,10 @@ | ||
| 778 | 682 | padding: 0; |
| 779 | 683 | } |
| 780 | 684 | |
| 781 | 685 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected { |
| 782 | - background: var(--wp-admin-theme-color, #3858e9); | |
| 783 | - 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)); | |
| 784 | 688 | } |
| 785 | 689 | |
| 786 | 690 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected::before { |
| 787 | 691 | content: ""; |
| @@ -793,10 +697,10 @@ | ||
| 793 | 697 | top: 50%; |
| 794 | 698 | right: 50%; |
| 795 | 699 | transform: translate(50%, -50%); |
| 796 | 700 | margin: 0; |
| 797 | - background-color: #fff; | |
| 798 | - 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); | |
| 799 | 703 | } |
| 800 | 704 | |
| 801 | 705 | @media (min-width: 600px) { |
| 802 | 706 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected::before { |
| @@ -806,28 +710,22 @@ | ||
| 806 | 710 | } |
| 807 | 711 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 808 | 712 | --checkbox-size: 24px; |
| 809 | 713 | flex-shrink: 0; |
| 810 | - border: 1px solid #1e1e1e; | |
| 714 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 811 | 715 | margin-left: 12px; |
| 812 | 716 | transition: none; |
| 813 | 717 | border-radius: 2px; |
| 814 | - 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; | |
| 815 | 719 | padding: 6px 8px; |
| 816 | 720 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 817 | 721 | font-size: 16px; |
| 818 | 722 | /* Override core line-height. To be reviewed. */ |
| 819 | 723 | line-height: normal; |
| 820 | - box-shadow: 0 0 0 transparent; | |
| 821 | - border-radius: 2px; | |
| 822 | - 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); | |
| 823 | 726 | } |
| 824 | 727 | |
| 825 | -@media not (prefers-reduced-motion) { | |
| 826 | - .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { | |
| 827 | - transition: box-shadow 0.1s linear; | |
| 828 | - } | |
| 829 | -} | |
| 830 | 728 | @media (min-width: 600px) { |
| 831 | 729 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 832 | 730 | font-size: 13px; |
| 833 | 731 | /* Override core line-height. To be reviewed. */ |
| @@ -833,12 +731,17 @@ | ||
| 833 | 731 | /* Override core line-height. To be reviewed. */ |
| 834 | 732 | line-height: normal; |
| 835 | 733 | } |
| 836 | 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 | + | |
| 837 | 739 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus { |
| 838 | - border-color: var(--wp-admin-theme-color); | |
| 839 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 840 | - 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; | |
| 841 | 744 | } |
| 842 | 745 | |
| 843 | 746 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder { |
| 844 | 747 | color: rgba(30, 30, 30, 0.62); |
| @@ -843,8 +746,12 @@ | ||
| 843 | 746 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder { |
| 844 | 747 | color: rgba(30, 30, 30, 0.62); |
| 845 | 748 | } |
| 846 | 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 | + | |
| 847 | 754 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus { |
| 848 | 755 | box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); |
| 849 | 756 | outline: 2px solid transparent; |
| 850 | 757 | } |
| @@ -875,9 +782,9 @@ | ||
| 875 | 782 | display: inline-block; |
| 876 | 783 | vertical-align: middle; |
| 877 | 784 | width: 16px; |
| 878 | 785 | /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */ |
| 879 | - font: normal 30px/1 dashicons; | |
| 786 | + font: 400 30px/1 dashicons; | |
| 880 | 787 | speak: none; |
| 881 | 788 | -webkit-font-smoothing: antialiased; |
| 882 | 789 | -moz-osx-font-smoothing: grayscale; |
| 883 | 790 | } |
| @@ -888,18 +795,24 @@ | ||
| 888 | 795 | font-size: 21px; |
| 889 | 796 | } |
| 890 | 797 | } |
| 891 | 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 { |
| 892 | - background: #f0f0f0; | |
| 893 | - 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); | |
| 894 | 802 | cursor: default; |
| 895 | 803 | opacity: 1; |
| 896 | 804 | } |
| 897 | 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 | + | |
| 898 | 810 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 899 | 811 | position: relative; |
| 900 | - background: #fff; | |
| 901 | - 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); | |
| 902 | 815 | margin: 0; |
| 903 | 816 | padding: 0; |
| 904 | 817 | width: var(--checkbox-size); |
| 905 | 818 | height: var(--checkbox-size); |
| @@ -915,15 +828,15 @@ | ||
| 915 | 828 | transition: 0.1s border-color ease-in-out; |
| 916 | 829 | } |
| 917 | 830 | } |
| 918 | 831 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected { |
| 919 | - background: var(--wp-admin-theme-color, #3858e9); | |
| 920 | - 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)); | |
| 921 | 834 | } |
| 922 | 835 | |
| 923 | 836 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg { |
| 924 | 837 | --checkmark-size: var(--checkbox-size); |
| 925 | - fill: #fff; | |
| 838 | + color: var(--wpds-color-foreground-interactive-neutral-strong, #f0f0f0); | |
| 926 | 839 | position: absolute; |
| 927 | 840 | right: 50%; |
| 928 | 841 | top: 50%; |
| 929 | 842 | transform: translate(50%, -50%); |
| @@ -937,28 +850,22 @@ | ||
| 937 | 850 | } |
| 938 | 851 | } |
| 939 | 852 | .dataviews-filters__search-widget-filter-combobox__wrapper { |
| 940 | 853 | position: relative; |
| 941 | - padding: 8px; | |
| 854 | + padding: var(--wpds-dimension-padding-sm, 8px); | |
| 942 | 855 | } |
| 943 | 856 | |
| 944 | 857 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 945 | - 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; | |
| 946 | 859 | padding: 6px 8px; |
| 947 | 860 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 948 | 861 | font-size: 16px; |
| 949 | 862 | /* Override core line-height. To be reviewed. */ |
| 950 | 863 | line-height: normal; |
| 951 | - box-shadow: 0 0 0 transparent; | |
| 952 | - border-radius: 2px; | |
| 953 | - 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); | |
| 954 | 866 | } |
| 955 | 867 | |
| 956 | -@media not (prefers-reduced-motion) { | |
| 957 | - .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { | |
| 958 | - transition: box-shadow 0.1s linear; | |
| 959 | - } | |
| 960 | -} | |
| 961 | 868 | @media (min-width: 600px) { |
| 962 | 869 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 963 | 870 | font-size: 13px; |
| 964 | 871 | /* Override core line-height. To be reviewed. */ |
| @@ -964,12 +871,17 @@ | ||
| 964 | 871 | /* Override core line-height. To be reviewed. */ |
| 965 | 872 | line-height: normal; |
| 966 | 873 | } |
| 967 | 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 | + | |
| 968 | 879 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus { |
| 969 | - border-color: var(--wp-admin-theme-color); | |
| 970 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 971 | - 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; | |
| 972 | 884 | } |
| 973 | 885 | |
| 974 | 886 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder { |
| 975 | 887 | color: rgba(30, 30, 30, 0.62); |
| @@ -976,11 +888,11 @@ | ||
| 976 | 888 | } |
| 977 | 889 | |
| 978 | 890 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 979 | 891 | display: block; |
| 980 | - padding: 0 32px 0 8px; | |
| 892 | + padding: 0 var(--wpds-dimension-size-md, 32px) 0 var(--wpds-dimension-padding-sm, 8px); | |
| 981 | 893 | width: 100%; |
| 982 | - height: 32px; | |
| 894 | + height: var(--wpds-dimension-size-md, 32px); | |
| 983 | 895 | margin-right: 0; |
| 984 | 896 | margin-left: 0; |
| 985 | 897 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 986 | 898 | font-size: 16px; |
| @@ -987,18 +899,17 @@ | ||
| 987 | 899 | } |
| 988 | 900 | |
| 989 | 901 | @media (min-width: 600px) { |
| 990 | 902 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 991 | - font-size: 13px; | |
| 903 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 992 | 904 | } |
| 993 | 905 | } |
| 994 | 906 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus { |
| 995 | - background: #fff; | |
| 996 | - 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); | |
| 997 | 908 | } |
| 998 | 909 | |
| 999 | 910 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder { |
| 1000 | - color: #757575; | |
| 911 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 1001 | 912 | } |
| 1002 | 913 | |
| 1003 | 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 { |
| 1004 | 915 | -webkit-appearance: none; |
| @@ -1005,15 +916,15 @@ | ||
| 1005 | 916 | } |
| 1006 | 917 | |
| 1007 | 918 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon { |
| 1008 | 919 | position: absolute; |
| 1009 | - inset-inline-start: 12px; | |
| 920 | + inset-inline-start: var(--wpds-dimension-gap-md, 12px); | |
| 1010 | 921 | top: 0; |
| 1011 | 922 | bottom: 0; |
| 1012 | 923 | display: flex; |
| 1013 | 924 | align-items: center; |
| 1014 | 925 | justify-content: center; |
| 1015 | - width: 24px; | |
| 926 | + width: var(--wpds-dimension-size-sm, 24px); | |
| 1016 | 927 | } |
| 1017 | 928 | |
| 1018 | 929 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr) { |
| 1019 | 930 | transform: scaleX(-1); |
| @@ -1028,31 +939,27 @@ | ||
| 1028 | 939 | position: absolute; |
| 1029 | 940 | top: 0; |
| 1030 | 941 | left: 0; |
| 1031 | 942 | transform: translate(-50%, -50%); |
| 1032 | - background: var(--wp-admin-theme-color, #3858e9); | |
| 1033 | - height: 16px; | |
| 1034 | - min-width: 16px; | |
| 1035 | - line-height: 16px; | |
| 1036 | - 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); | |
| 1037 | 948 | text-align: center; |
| 1038 | - border-radius: 8px; | |
| 949 | + border-radius: var(--wpds-border-radius-lg, 8px); | |
| 1039 | 950 | font-size: 11px; |
| 1040 | - outline: var(--wp-admin-border-width-focus) solid #fff; | |
| 1041 | - 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); | |
| 1042 | 953 | box-sizing: border-box; |
| 1043 | 954 | } |
| 1044 | 955 | |
| 1045 | -.dataviews-search { | |
| 1046 | - width: fit-content; | |
| 1047 | -} | |
| 1048 | - | |
| 1049 | 956 | .dataviews-filters__user-input-widget { |
| 1050 | - padding: 16px; | |
| 957 | + padding: var(--wpds-dimension-padding-lg, 16px); | |
| 1051 | 958 | } |
| 1052 | 959 | |
| 1053 | 960 | .dataviews-filters__user-input-widget .components-input-control__prefix { |
| 1054 | - padding-right: 8px; | |
| 961 | + padding-right: var(--wpds-dimension-padding-sm, 8px); | |
| 1055 | 962 | } |
| 1056 | 963 | |
| 1057 | 964 | .dataviews-filters__search-widget-no-elements { |
| 1058 | 965 | display: flex; |
| @@ -1057,9 +964,9 @@ | ||
| 1057 | 964 | .dataviews-filters__search-widget-no-elements { |
| 1058 | 965 | display: flex; |
| 1059 | 966 | align-items: center; |
| 1060 | 967 | justify-content: center; |
| 1061 | - padding: 16px; | |
| 968 | + padding: var(--wpds-dimension-padding-lg, 16px); | |
| 1062 | 969 | } |
| 1063 | 970 | |
| 1064 | 971 | .dataviews-footer { |
| 1065 | 972 | position: sticky; |
| @@ -1065,10 +972,10 @@ | ||
| 1065 | 972 | position: sticky; |
| 1066 | 973 | bottom: 0; |
| 1067 | 974 | right: 0; |
| 1068 | 975 | background-color: inherit; |
| 1069 | - padding: 12px 24px; | |
| 1070 | - 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); | |
| 1071 | 978 | flex-shrink: 0; |
| 1072 | 979 | } |
| 1073 | 980 | |
| 1074 | 981 | @media not (prefers-reduced-motion) { |
| @@ -1076,9 +983,9 @@ | ||
| 1076 | 983 | transition: padding ease-out 0.1s; |
| 1077 | 984 | } |
| 1078 | 985 | } |
| 1079 | 986 | .dataviews-footer { |
| 1080 | - z-index: 2; | |
| 987 | + z-index: 1; | |
| 1081 | 988 | } |
| 1082 | 989 | |
| 1083 | 990 | .dataviews-footer .is-refreshing { |
| 1084 | 991 | opacity: 0.5; |
| @@ -1107,9 +1014,9 @@ | ||
| 1107 | 1014 | } |
| 1108 | 1015 | } |
| 1109 | 1016 | .dataviews-pagination__page-select { |
| 1110 | 1017 | font-size: 11px; |
| 1111 | - font-weight: 499; | |
| 1018 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1112 | 1019 | text-transform: uppercase; |
| 1113 | 1020 | } |
| 1114 | 1021 | |
| 1115 | 1022 | @media (min-width: 600px) { |
| @@ -1114,9 +1021,9 @@ | ||
| 1114 | 1021 | |
| 1115 | 1022 | @media (min-width: 600px) { |
| 1116 | 1023 | .dataviews-pagination__page-select .components-select-control__input { |
| 1117 | 1024 | font-size: 11px !important; |
| 1118 | - font-weight: 499; | |
| 1025 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1119 | 1026 | } |
| 1120 | 1027 | } |
| 1121 | 1028 | .dataviews-action-modal { |
| 1122 | 1029 | z-index: 1000001; |
| @@ -1122,9 +1029,9 @@ | ||
| 1122 | 1029 | z-index: 1000001; |
| 1123 | 1030 | } |
| 1124 | 1031 | |
| 1125 | 1032 | .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) { |
| 1126 | - padding: 0 4px; | |
| 1033 | + padding: 0 var(--wpds-dimension-padding-xs, 4px); | |
| 1127 | 1034 | } |
| 1128 | 1035 | |
| 1129 | 1036 | .dataviews-selection-checkbox { |
| 1130 | 1037 | --checkbox-input-size: 24px; |
| @@ -1145,12 +1052,11 @@ | ||
| 1145 | 1052 | } |
| 1146 | 1053 | |
| 1147 | 1054 | .dataviews-view-config { |
| 1148 | 1055 | width: 320px; |
| 1149 | - /* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */ | |
| 1150 | 1056 | container-type: inline-size; |
| 1151 | - font-size: 13px; | |
| 1152 | - line-height: 1.4; | |
| 1057 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 1058 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 1153 | 1059 | } |
| 1154 | 1060 | |
| 1155 | 1061 | .dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper { |
| 1156 | 1062 | overflow-y: scroll; |
| @@ -1165,9 +1071,9 @@ | ||
| 1165 | 1071 | text-transform: uppercase; |
| 1166 | 1072 | } |
| 1167 | 1073 | |
| 1168 | 1074 | .dataviews-settings-section__title.dataviews-settings-section__title { |
| 1169 | - line-height: 24px; | |
| 1075 | + line-height: var(--wpds-typography-line-height-md, 24px); | |
| 1170 | 1076 | font-size: 15px; |
| 1171 | 1077 | } |
| 1172 | 1078 | |
| 1173 | 1079 | .dataviews-settings-section__sidebar { |
| @@ -1216,13 +1122,13 @@ | ||
| 1216 | 1122 | } |
| 1217 | 1123 | |
| 1218 | 1124 | .dataviews-view-config__modified-indicator { |
| 1219 | 1125 | position: absolute; |
| 1220 | - top: 4px; | |
| 1221 | - left: 4px; | |
| 1222 | - width: 4px; | |
| 1223 | - height: 4px; | |
| 1224 | - background: var(--wp-admin-theme-color, #3858e9); | |
| 1126 | + top: var(--wpds-dimension-gap-xs, 4px); | |
| 1127 | + left: 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)); | |
| 1225 | 1131 | border-radius: 50%; |
| 1226 | 1132 | pointer-events: none; |
| 1227 | 1133 | } |
| 1228 | 1134 | |
| @@ -1228,12 +1134,12 @@ | ||
| 1228 | 1134 | |
| 1229 | 1135 | .dataviews-view-grid-items { |
| 1230 | 1136 | margin-bottom: auto; |
| 1231 | 1137 | display: grid; |
| 1232 | - gap: 24px; | |
| 1138 | + gap: var(--wpds-dimension-gap-xl, 24px); | |
| 1233 | 1139 | grid-template-rows: max-content; |
| 1234 | 1140 | grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); |
| 1235 | - padding: 0 24px 24px; | |
| 1141 | + padding: 0 var(--wpds-dimension-padding-2xl, 24px) var(--wpds-dimension-padding-2xl, 24px); | |
| 1236 | 1142 | container-type: inline-size; |
| 1237 | 1143 | } |
| 1238 | 1144 | |
| 1239 | 1145 | @media not (prefers-reduced-motion) { |
| @@ -1241,20 +1147,20 @@ | ||
| 1241 | 1147 | transition: padding ease-out 0.1s; |
| 1242 | 1148 | } |
| 1243 | 1149 | } |
| 1244 | 1150 | .dataviews-view-grid-items.has-compact-density { |
| 1245 | - gap: 16px; | |
| 1151 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 1246 | 1152 | } |
| 1247 | 1153 | |
| 1248 | 1154 | .dataviews-view-grid-items.has-comfortable-density { |
| 1249 | - gap: 32px; | |
| 1155 | + gap: var(--wpds-dimension-gap-2xl, 32px); | |
| 1250 | 1156 | } |
| 1251 | 1157 | |
| 1252 | 1158 | .dataviews-view-grid { |
| 1253 | - padding: 0 24px 24px; | |
| 1159 | + padding: 0 var(--wpds-dimension-padding-2xl, 24px) var(--wpds-dimension-padding-2xl, 24px); | |
| 1254 | 1160 | display: flex; |
| 1255 | 1161 | flex-direction: column; |
| 1256 | - gap: 24px; | |
| 1162 | + gap: var(--wpds-dimension-gap-xl, 24px); | |
| 1257 | 1163 | container-type: inline-size; |
| 1258 | 1164 | margin-bottom: auto; |
| 1259 | 1165 | } |
| 1260 | 1166 | |
| @@ -1263,30 +1169,30 @@ | ||
| 1263 | 1169 | transition: padding ease-out 0.1s; |
| 1264 | 1170 | } |
| 1265 | 1171 | } |
| 1266 | 1172 | .dataviews-view-grid.has-compact-density { |
| 1267 | - gap: 16px; | |
| 1173 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 1268 | 1174 | } |
| 1269 | 1175 | |
| 1270 | 1176 | .dataviews-view-grid.has-compact-density .dataviews-view-grid__row { |
| 1271 | - gap: 16px; | |
| 1177 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 1272 | 1178 | } |
| 1273 | 1179 | |
| 1274 | 1180 | .dataviews-view-grid.has-comfortable-density { |
| 1275 | - gap: 32px; | |
| 1181 | + gap: var(--wpds-dimension-gap-2xl, 32px); | |
| 1276 | 1182 | } |
| 1277 | 1183 | |
| 1278 | 1184 | .dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row { |
| 1279 | - gap: 32px; | |
| 1185 | + gap: var(--wpds-dimension-gap-2xl, 32px); | |
| 1280 | 1186 | } |
| 1281 | 1187 | |
| 1282 | 1188 | .dataviews-view-grid .dataviews-view-grid__row { |
| 1283 | 1189 | display: grid; |
| 1284 | - gap: 24px; | |
| 1190 | + gap: var(--wpds-dimension-gap-xl, 24px); | |
| 1285 | 1191 | } |
| 1286 | 1192 | |
| 1287 | 1193 | .dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell { |
| 1288 | - border-radius: 4px; | |
| 1194 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1289 | 1195 | position: relative; |
| 1290 | 1196 | } |
| 1291 | 1197 | |
| 1292 | 1198 | .dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]::after { |
| @@ -1295,10 +1201,10 @@ | ||
| 1295 | 1201 | top: 0; |
| 1296 | 1202 | right: 0; |
| 1297 | 1203 | width: 100%; |
| 1298 | 1204 | height: 100%; |
| 1299 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 1300 | - 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); | |
| 1301 | 1207 | pointer-events: none; |
| 1302 | 1208 | outline: 2px solid transparent; |
| 1303 | 1209 | } |
| 1304 | 1210 | |
| @@ -1306,18 +1212,19 @@ | ||
| 1306 | 1212 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card { |
| 1307 | 1213 | height: 100%; |
| 1308 | 1214 | justify-content: flex-start; |
| 1309 | 1215 | position: relative; |
| 1216 | + isolation: isolate; | |
| 1310 | 1217 | } |
| 1311 | 1218 | |
| 1312 | -.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title, | |
| 1313 | -.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title { | |
| 1314 | - 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); | |
| 1315 | 1222 | } |
| 1316 | 1223 | |
| 1317 | 1224 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field, |
| 1318 | 1225 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field { |
| 1319 | - min-height: 24px; | |
| 1226 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 1320 | 1227 | overflow: hidden; |
| 1321 | 1228 | align-content: center; |
| 1322 | 1229 | text-align: start; |
| 1323 | 1230 | } |
| @@ -1328,34 +1235,27 @@ | ||
| 1328 | 1235 | } |
| 1329 | 1236 | |
| 1330 | 1237 | .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value, |
| 1331 | 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 { |
| 1332 | - color: #1e1e1e; | |
| 1239 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1333 | 1240 | } |
| 1334 | 1241 | |
| 1335 | 1242 | .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after, |
| 1336 | -.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after, | |
| 1337 | -.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after, | |
| 1338 | -.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus::after { | |
| 1339 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); | |
| 1340 | -} | |
| 1341 | - | |
| 1342 | -.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after, | |
| 1343 | 1243 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after { |
| 1344 | - 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); | |
| 1345 | 1245 | } |
| 1346 | 1246 | |
| 1347 | 1247 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after, |
| 1348 | 1248 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus::after { |
| 1349 | - 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)); | |
| 1350 | 1250 | } |
| 1351 | 1251 | |
| 1352 | 1252 | .dataviews-view-grid .dataviews-view-grid__media, |
| 1353 | 1253 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__media { |
| 1354 | 1254 | width: 100%; |
| 1355 | - aspect-ratio: 1/1; | |
| 1356 | - background-color: #fff; | |
| 1357 | - 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); | |
| 1358 | 1258 | overflow: hidden; |
| 1359 | 1259 | position: relative; |
| 1360 | 1260 | } |
| 1361 | 1261 | |
| @@ -1378,10 +1278,10 @@ | ||
| 1378 | 1278 | top: 0; |
| 1379 | 1279 | right: 0; |
| 1380 | 1280 | width: 100%; |
| 1381 | 1281 | height: 100%; |
| 1382 | - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); | |
| 1383 | - 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); | |
| 1384 | 1284 | pointer-events: none; |
| 1385 | 1285 | } |
| 1386 | 1286 | |
| 1387 | 1287 | .dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder, |
| @@ -1388,13 +1288,23 @@ | ||
| 1388 | 1288 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder { |
| 1389 | 1289 | width: 100%; |
| 1390 | 1290 | height: 100%; |
| 1391 | 1291 | display: block; |
| 1392 | - border-radius: 4px; | |
| 1292 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1393 | 1293 | box-shadow: none; |
| 1394 | - background: #f0f0f0; | |
| 1294 | + background: var(--wpds-color-background-surface-neutral, #fcfcfc); | |
| 1395 | 1295 | } |
| 1396 | 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 | + | |
| 1397 | 1307 | .dataviews-view-grid .dataviews-view-grid__fields, |
| 1398 | 1308 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields { |
| 1399 | 1309 | position: relative; |
| 1400 | 1310 | font-size: 12px; |
| @@ -1402,21 +1312,21 @@ | ||
| 1402 | 1312 | } |
| 1403 | 1313 | |
| 1404 | 1314 | .dataviews-view-grid .dataviews-view-grid__fields:not(:empty), |
| 1405 | 1315 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty) { |
| 1406 | - padding: 0 0 12px; | |
| 1316 | + padding: 0 0 var(--wpds-dimension-padding-md, 12px); | |
| 1407 | 1317 | } |
| 1408 | 1318 | |
| 1409 | 1319 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty), |
| 1410 | 1320 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty) { |
| 1411 | - min-height: 24px; | |
| 1412 | - line-height: 20px; | |
| 1413 | - 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); | |
| 1414 | 1324 | } |
| 1415 | 1325 | |
| 1416 | 1326 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field, |
| 1417 | 1327 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field { |
| 1418 | - min-height: 24px; | |
| 1328 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 1419 | 1329 | align-items: center; |
| 1420 | 1330 | } |
| 1421 | 1331 | |
| 1422 | 1332 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name, |
| @@ -1421,9 +1331,9 @@ | ||
| 1421 | 1331 | |
| 1422 | 1332 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name, |
| 1423 | 1333 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name { |
| 1424 | 1334 | width: 35%; |
| 1425 | - color: #757575; | |
| 1335 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 1426 | 1336 | overflow: hidden; |
| 1427 | 1337 | text-overflow: ellipsis; |
| 1428 | 1338 | white-space: nowrap; |
| 1429 | 1339 | } |
| @@ -1442,9 +1352,9 @@ | ||
| 1442 | 1352 | } |
| 1443 | 1353 | |
| 1444 | 1354 | .dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty), |
| 1445 | 1355 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty) { |
| 1446 | - padding-bottom: 12px; | |
| 1356 | + padding-bottom: var(--wpds-dimension-padding-md, 12px); | |
| 1447 | 1357 | } |
| 1448 | 1358 | |
| 1449 | 1359 | .dataviews-view-grid.is-refreshing, |
| 1450 | 1360 | .dataviews-view-grid-infinite-scroll.is-refreshing { |
| @@ -1466,9 +1376,9 @@ | ||
| 1466 | 1376 | |
| 1467 | 1377 | .dataviews-view-grid__card .dataviews-selection-checkbox { |
| 1468 | 1378 | position: absolute; |
| 1469 | 1379 | top: -9999em; |
| 1470 | - right: 8px; | |
| 1380 | + right: var(--wpds-dimension-padding-sm, 8px); | |
| 1471 | 1381 | z-index: 1; |
| 1472 | 1382 | opacity: 0; |
| 1473 | 1383 | } |
| 1474 | 1384 | |
| @@ -1479,9 +1389,9 @@ | ||
| 1479 | 1389 | } |
| 1480 | 1390 | @media (hover: none) { |
| 1481 | 1391 | .dataviews-view-grid__card .dataviews-selection-checkbox { |
| 1482 | 1392 | opacity: 1; |
| 1483 | - top: 8px; | |
| 1393 | + top: var(--wpds-dimension-padding-sm, 8px); | |
| 1484 | 1394 | } |
| 1485 | 1395 | } |
| 1486 | 1396 | .dataviews-view-grid__card:hover .dataviews-selection-checkbox, |
| 1487 | 1397 | .dataviews-view-grid__card:focus-within .dataviews-selection-checkbox, |
| @@ -1486,21 +1396,21 @@ | ||
| 1486 | 1396 | .dataviews-view-grid__card:hover .dataviews-selection-checkbox, |
| 1487 | 1397 | .dataviews-view-grid__card:focus-within .dataviews-selection-checkbox, |
| 1488 | 1398 | .dataviews-view-grid__card.is-selected .dataviews-selection-checkbox { |
| 1489 | 1399 | opacity: 1; |
| 1490 | - top: 8px; | |
| 1400 | + top: var(--wpds-dimension-padding-sm, 8px); | |
| 1491 | 1401 | } |
| 1492 | 1402 | |
| 1493 | 1403 | .dataviews-view-grid__card .dataviews-view-grid__media-actions { |
| 1494 | 1404 | position: absolute; |
| 1495 | 1405 | z-index: 1; |
| 1496 | - top: 4px; | |
| 1406 | + top: var(--wpds-dimension-padding-xs, 4px); | |
| 1497 | 1407 | opacity: 0; |
| 1498 | - left: 4px; | |
| 1408 | + left: var(--wpds-dimension-padding-xs, 4px); | |
| 1499 | 1409 | } |
| 1500 | 1410 | |
| 1501 | 1411 | .dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button { |
| 1502 | - background-color: #fff; | |
| 1412 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1503 | 1413 | } |
| 1504 | 1414 | |
| 1505 | 1415 | @media not (prefers-reduced-motion) { |
| 1506 | 1416 | .dataviews-view-grid__card .dataviews-view-grid__media-actions { |
| @@ -1509,9 +1419,9 @@ | ||
| 1509 | 1419 | } |
| 1510 | 1420 | @media (hover: none) { |
| 1511 | 1421 | .dataviews-view-grid__card .dataviews-view-grid__media-actions { |
| 1512 | 1422 | opacity: 1; |
| 1513 | - top: 4px; | |
| 1423 | + top: var(--wpds-dimension-padding-xs, 4px); | |
| 1514 | 1424 | } |
| 1515 | 1425 | } |
| 1516 | 1426 | .dataviews-view-grid__card:hover .dataviews-view-grid__media-actions, |
| 1517 | 1427 | .dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions, |
| @@ -1523,13 +1433,13 @@ | ||
| 1523 | 1433 | cursor: var(--wpds-cursor-control, pointer); |
| 1524 | 1434 | } |
| 1525 | 1435 | |
| 1526 | 1436 | .dataviews-view-grid__group-header { |
| 1527 | - font-size: 15px; | |
| 1528 | - font-weight: 499; | |
| 1529 | - color: #1e1e1e; | |
| 1530 | - margin: 0 0 8px 0; | |
| 1531 | - 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); | |
| 1532 | 1442 | container-type: inline-size; |
| 1533 | 1443 | } |
| 1534 | 1444 | |
| 1535 | 1445 | div.dataviews-view-list { |
| @@ -1542,15 +1452,15 @@ | ||
| 1542 | 1452 | |
| 1543 | 1453 | .dataviews-view-list div[role=row], |
| 1544 | 1454 | .dataviews-view-list div[role=article] { |
| 1545 | 1455 | margin: 0; |
| 1546 | - border-top: 1px solid #f0f0f0; | |
| 1456 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 1547 | 1457 | } |
| 1548 | 1458 | |
| 1549 | 1459 | .dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper, |
| 1550 | 1460 | .dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper { |
| 1551 | 1461 | position: relative; |
| 1552 | - padding: 16px 24px; | |
| 1462 | + padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px); | |
| 1553 | 1463 | box-sizing: border-box; |
| 1554 | 1464 | } |
| 1555 | 1465 | |
| 1556 | 1466 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions, |
| @@ -1557,9 +1467,9 @@ | ||
| 1557 | 1467 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions { |
| 1558 | 1468 | display: flex; |
| 1559 | 1469 | width: max-content; |
| 1560 | 1470 | flex: 0 0 auto; |
| 1561 | - gap: 4px; | |
| 1471 | + gap: var(--wpds-dimension-gap-xs, 4px); | |
| 1562 | 1472 | white-space: nowrap; |
| 1563 | 1473 | } |
| 1564 | 1474 | |
| 1565 | 1475 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button, |
| @@ -1569,9 +1479,9 @@ | ||
| 1569 | 1479 | } |
| 1570 | 1480 | |
| 1571 | 1481 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > div, |
| 1572 | 1482 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions > div { |
| 1573 | - height: 24px; | |
| 1483 | + height: var(--wpds-dimension-size-sm, 24px); | |
| 1574 | 1484 | } |
| 1575 | 1485 | |
| 1576 | 1486 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child), |
| 1577 | 1487 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions > :not(:last-child) { |
| @@ -1596,15 +1506,15 @@ | ||
| 1596 | 1506 | } |
| 1597 | 1507 | } |
| 1598 | 1508 | .dataviews-view-list div[role=row].is-selected.is-selected, |
| 1599 | 1509 | .dataviews-view-list div[role=article].is-selected.is-selected { |
| 1600 | - 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)); | |
| 1601 | 1511 | } |
| 1602 | 1512 | |
| 1603 | 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], |
| 1604 | 1514 | .dataviews-view-list div[role=article].is-selected.is-selected + div[role=row], |
| 1605 | 1515 | .dataviews-view-list div[role=article].is-selected.is-selected + div[role=article] { |
| 1606 | - 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)); | |
| 1607 | 1517 | } |
| 1608 | 1518 | |
| 1609 | 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, |
| 1610 | 1520 | .dataviews-view-list div[role=article]:not(.is-selected):hover, |
| @@ -1609,23 +1519,11 @@ | ||
| 1609 | 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, |
| 1610 | 1520 | .dataviews-view-list div[role=article]:not(.is-selected):hover, |
| 1611 | 1521 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered, |
| 1612 | 1522 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within { |
| 1613 | - color: var(--wp-admin-theme-color); | |
| 1614 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 1615 | - 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); | |
| 1616 | 1524 | } |
| 1617 | 1525 | |
| 1618 | -.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], | |
| 1619 | -.dataviews-view-list div[role=article]:not(.is-selected):hover + div[role=row], | |
| 1620 | -.dataviews-view-list div[role=article]:not(.is-selected):hover + div[role=article], | |
| 1621 | -.dataviews-view-list div[role=article]:not(.is-selected).is-hovered + div[role=row], | |
| 1622 | -.dataviews-view-list div[role=article]:not(.is-selected).is-hovered + div[role=article], | |
| 1623 | -.dataviews-view-list div[role=article]:not(.is-selected):focus-within + div[role=row], | |
| 1624 | -.dataviews-view-list div[role=article]:not(.is-selected):focus-within + div[role=article] { | |
| 1625 | - border-top: 1px solid rgba(var(--wp-admin-theme-color--rgb), 0.12); | |
| 1626 | -} | |
| 1627 | - | |
| 1628 | 1526 | .dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field, |
| 1629 | 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, |
| 1630 | 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, |
| 1631 | 1529 | .dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__field, |
| @@ -1634,9 +1532,9 @@ | ||
| 1634 | 1532 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field, |
| 1635 | 1533 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field, |
| 1636 | 1534 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field, |
| 1637 | 1535 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field { |
| 1638 | - color: var(--wp-admin-theme-color); | |
| 1536 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 1639 | 1537 | } |
| 1640 | 1538 | |
| 1641 | 1539 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper, |
| 1642 | 1540 | .dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper, |
| @@ -1641,10 +1539,10 @@ | ||
| 1641 | 1539 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper, |
| 1642 | 1540 | .dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper, |
| 1643 | 1541 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper, |
| 1644 | 1542 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper { |
| 1645 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); | |
| 1646 | - 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); | |
| 1647 | 1545 | } |
| 1648 | 1546 | |
| 1649 | 1547 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field, |
| 1650 | 1548 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field, |
| @@ -1653,9 +1551,9 @@ | ||
| 1653 | 1551 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field, |
| 1654 | 1552 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field, |
| 1655 | 1553 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field, |
| 1656 | 1554 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field { |
| 1657 | - color: #1e1e1e; | |
| 1555 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1658 | 1556 | } |
| 1659 | 1557 | |
| 1660 | 1558 | .dataviews-view-list .dataviews-view-list__item { |
| 1661 | 1559 | position: absolute; |
| @@ -1660,9 +1558,9 @@ | ||
| 1660 | 1558 | .dataviews-view-list .dataviews-view-list__item { |
| 1661 | 1559 | position: absolute; |
| 1662 | 1560 | z-index: 1; |
| 1663 | 1561 | inset: 0; |
| 1664 | - scroll-margin: 8px 0; | |
| 1562 | + scroll-margin: var(--wpds-dimension-gap-sm, 8px) 0; | |
| 1665 | 1563 | appearance: none; |
| 1666 | 1564 | border: none; |
| 1667 | 1565 | background: none; |
| 1668 | 1566 | padding: 0; |
| @@ -1676,17 +1574,17 @@ | ||
| 1676 | 1574 | .dataviews-view-list .dataviews-view-list__item:focus-visible::before { |
| 1677 | 1575 | position: absolute; |
| 1678 | 1576 | content: ""; |
| 1679 | 1577 | inset: var(--wp-admin-border-width-focus); |
| 1680 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 1681 | - 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); | |
| 1682 | 1580 | outline: 2px solid transparent; |
| 1683 | 1581 | } |
| 1684 | 1582 | |
| 1685 | 1583 | .dataviews-view-list .dataviews-view-list__title-field { |
| 1686 | 1584 | flex: 1; |
| 1687 | - min-height: 24px; | |
| 1688 | - line-height: 24px; | |
| 1585 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 1586 | + line-height: var(--wpds-typography-line-height-md, 24px); | |
| 1689 | 1587 | overflow: hidden; |
| 1690 | 1588 | } |
| 1691 | 1589 | |
| 1692 | 1590 | .dataviews-view-list .dataviews-view-list__title-field:has(a, button) { |
| @@ -1693,15 +1591,15 @@ | ||
| 1693 | 1591 | z-index: 1; |
| 1694 | 1592 | } |
| 1695 | 1593 | |
| 1696 | 1594 | .dataviews-view-list .dataviews-view-list__media-wrapper { |
| 1697 | - width: 52px; | |
| 1698 | - height: 52px; | |
| 1595 | + width: 48px; | |
| 1596 | + height: 48px; | |
| 1699 | 1597 | overflow: hidden; |
| 1700 | 1598 | position: relative; |
| 1701 | 1599 | flex-shrink: 0; |
| 1702 | - background-color: #fff; | |
| 1703 | - border-radius: 4px; | |
| 1600 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1601 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 1704 | 1602 | } |
| 1705 | 1603 | |
| 1706 | 1604 | .dataviews-view-list .dataviews-view-list__media-wrapper img { |
| 1707 | 1605 | width: 100%; |
| @@ -1715,25 +1613,26 @@ | ||
| 1715 | 1613 | top: 0; |
| 1716 | 1614 | right: 0; |
| 1717 | 1615 | width: 100%; |
| 1718 | 1616 | height: 100%; |
| 1719 | - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); | |
| 1720 | - 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); | |
| 1721 | 1619 | } |
| 1722 | 1620 | |
| 1723 | 1621 | .dataviews-view-list .dataviews-view-list__field-wrapper { |
| 1622 | + min-height: 48px; | |
| 1724 | 1623 | flex-grow: 1; |
| 1725 | 1624 | min-width: 0; |
| 1726 | 1625 | } |
| 1727 | 1626 | |
| 1728 | 1627 | .dataviews-view-list .dataviews-view-list__field { |
| 1729 | - color: #757575; | |
| 1628 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 1730 | 1629 | } |
| 1731 | 1630 | |
| 1732 | 1631 | .dataviews-view-list .dataviews-view-list__fields { |
| 1733 | 1632 | display: flex; |
| 1734 | - gap: 12px; | |
| 1735 | - row-gap: 4px; | |
| 1633 | + gap: var(--wpds-dimension-gap-md, 12px); | |
| 1634 | + row-gap: var(--wpds-dimension-gap-xs, 4px); | |
| 1736 | 1635 | flex-wrap: wrap; |
| 1737 | 1636 | font-size: 12px; |
| 1738 | 1637 | } |
| 1739 | 1638 | |
| @@ -1745,10 +1644,10 @@ | ||
| 1745 | 1644 | display: none; |
| 1746 | 1645 | } |
| 1747 | 1646 | |
| 1748 | 1647 | .dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value { |
| 1749 | - min-height: 24px; | |
| 1750 | - line-height: 20px; | |
| 1648 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 1649 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 1751 | 1650 | display: flex; |
| 1752 | 1651 | align-items: center; |
| 1753 | 1652 | } |
| 1754 | 1653 | |
| @@ -1756,38 +1655,42 @@ | ||
| 1756 | 1655 | justify-content: space-between; |
| 1757 | 1656 | } |
| 1758 | 1657 | |
| 1759 | 1658 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__item-wrapper { |
| 1760 | - padding: 8px 24px; | |
| 1659 | + padding: var(--wpds-dimension-padding-sm, 8px) var(--wpds-dimension-padding-2xl, 24px); | |
| 1761 | 1660 | } |
| 1762 | 1661 | |
| 1763 | 1662 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field { |
| 1764 | - min-height: 16px; | |
| 1765 | - line-height: 16px; | |
| 1663 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 1664 | + line-height: var(--wpds-typography-line-height-xs, 16px); | |
| 1766 | 1665 | } |
| 1767 | 1666 | |
| 1768 | 1667 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper { |
| 1769 | - width: 32px; | |
| 1770 | - height: 32px; | |
| 1668 | + width: var(--wpds-dimension-size-md, 32px); | |
| 1669 | + height: var(--wpds-dimension-size-md, 32px); | |
| 1771 | 1670 | } |
| 1772 | 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 | + | |
| 1773 | 1676 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields { |
| 1774 | - gap: 8px; | |
| 1775 | - row-gap: 4px; | |
| 1677 | + gap: var(--wpds-dimension-gap-sm, 8px); | |
| 1678 | + row-gap: var(--wpds-dimension-gap-xs, 4px); | |
| 1776 | 1679 | } |
| 1777 | 1680 | |
| 1778 | 1681 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value { |
| 1779 | - min-height: 16px; | |
| 1780 | - line-height: 16px; | |
| 1682 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 1683 | + line-height: var(--wpds-typography-line-height-xs, 16px); | |
| 1781 | 1684 | } |
| 1782 | 1685 | |
| 1783 | 1686 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper { |
| 1784 | - padding: 24px 24px; | |
| 1687 | + padding: var(--wpds-dimension-padding-2xl, 24px) var(--wpds-dimension-padding-2xl, 24px); | |
| 1785 | 1688 | } |
| 1786 | 1689 | |
| 1787 | 1690 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field { |
| 1788 | - min-height: 32px; | |
| 1789 | - line-height: 32px; | |
| 1691 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1692 | + line-height: var(--wpds-typography-line-height-xl, 32px); | |
| 1790 | 1693 | } |
| 1791 | 1694 | |
| 1792 | 1695 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper { |
| 1793 | 1696 | width: 64px; |
| @@ -1793,16 +1696,20 @@ | ||
| 1793 | 1696 | width: 64px; |
| 1794 | 1697 | height: 64px; |
| 1795 | 1698 | } |
| 1796 | 1699 | |
| 1700 | +.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper { | |
| 1701 | + min-height: 64px; | |
| 1702 | +} | |
| 1703 | + | |
| 1797 | 1704 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields { |
| 1798 | - gap: 16px; | |
| 1799 | - row-gap: 8px; | |
| 1705 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 1706 | + row-gap: var(--wpds-dimension-gap-sm, 8px); | |
| 1800 | 1707 | } |
| 1801 | 1708 | |
| 1802 | 1709 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value { |
| 1803 | - min-height: 32px; | |
| 1804 | - line-height: 24px; | |
| 1710 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1711 | + line-height: var(--wpds-typography-line-height-md, 24px); | |
| 1805 | 1712 | } |
| 1806 | 1713 | |
| 1807 | 1714 | .dataviews-view-list.is-refreshing { |
| 1808 | 1715 | opacity: 0.5; |
| @@ -1815,13 +1722,13 @@ | ||
| 1815 | 1722 | animation: dataviews-pulse 1s ease-in-out infinite; |
| 1816 | 1723 | } |
| 1817 | 1724 | } |
| 1818 | 1725 | .dataviews-view-list__group-header { |
| 1819 | - font-size: 15px; | |
| 1820 | - font-weight: 499; | |
| 1821 | - color: #1e1e1e; | |
| 1822 | - margin: 0 0 8px 0; | |
| 1823 | - 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); | |
| 1824 | 1731 | } |
| 1825 | 1732 | |
| 1826 | 1733 | .dataviews-view-table { |
| 1827 | 1734 | width: 100%; |
| @@ -1828,9 +1735,9 @@ | ||
| 1828 | 1735 | text-indent: 0; |
| 1829 | 1736 | border-color: inherit; |
| 1830 | 1737 | border-collapse: collapse; |
| 1831 | 1738 | position: relative; |
| 1832 | - color: #757575; | |
| 1739 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 1833 | 1740 | margin-bottom: auto; |
| 1834 | 1741 | background-color: inherit; |
| 1835 | 1742 | } |
| 1836 | 1743 | |
| @@ -1835,16 +1742,16 @@ | ||
| 1835 | 1742 | } |
| 1836 | 1743 | |
| 1837 | 1744 | .dataviews-view-table th { |
| 1838 | 1745 | text-align: right; |
| 1839 | - color: #1e1e1e; | |
| 1840 | - font-weight: normal; | |
| 1841 | - 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); | |
| 1842 | 1749 | } |
| 1843 | 1750 | |
| 1844 | 1751 | .dataviews-view-table td, |
| 1845 | 1752 | .dataviews-view-table th { |
| 1846 | - padding: 12px; | |
| 1753 | + padding: var(--wpds-dimension-padding-md, 12px); | |
| 1847 | 1754 | } |
| 1848 | 1755 | |
| 1849 | 1756 | .dataviews-view-table td.dataviews-view-table__actions-column, |
| 1850 | 1757 | .dataviews-view-table th.dataviews-view-table__actions-column { |
| @@ -1854,9 +1761,9 @@ | ||
| 1854 | 1761 | .dataviews-view-table td.dataviews-view-table__actions-column--sticky, |
| 1855 | 1762 | .dataviews-view-table th.dataviews-view-table__actions-column--sticky { |
| 1856 | 1763 | position: sticky; |
| 1857 | 1764 | left: 0; |
| 1858 | - background-color: var(--wp-dataviews-color-background, #fff); | |
| 1765 | + background-color: var(--wp-dataviews-color-background, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 1859 | 1766 | } |
| 1860 | 1767 | |
| 1861 | 1768 | .dataviews-view-table td.dataviews-view-table__actions-column--stuck::after, |
| 1862 | 1769 | .dataviews-view-table th.dataviews-view-table__actions-column--stuck::after { |
| @@ -1866,9 +1773,9 @@ | ||
| 1866 | 1773 | top: 0; |
| 1867 | 1774 | bottom: 0; |
| 1868 | 1775 | right: 0; |
| 1869 | 1776 | width: 1px; |
| 1870 | - background-color: #f0f0f0; | |
| 1777 | + background-color: var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 1871 | 1778 | } |
| 1872 | 1779 | |
| 1873 | 1780 | .dataviews-view-table td.dataviews-view-table__checkbox-column, |
| 1874 | 1781 | .dataviews-view-table th.dataviews-view-table__checkbox-column { |
| @@ -1881,20 +1788,20 @@ | ||
| 1881 | 1788 | min-width: auto; |
| 1882 | 1789 | } |
| 1883 | 1790 | |
| 1884 | 1791 | .dataviews-view-table tr { |
| 1885 | - border-top: 1px solid #f0f0f0; | |
| 1792 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 1886 | 1793 | background-color: inherit; |
| 1887 | 1794 | } |
| 1888 | 1795 | |
| 1889 | 1796 | .dataviews-view-table tr td:first-child, |
| 1890 | 1797 | .dataviews-view-table tr th:first-child { |
| 1891 | - padding-right: 24px; | |
| 1798 | + padding-right: var(--wpds-dimension-padding-2xl, 24px); | |
| 1892 | 1799 | } |
| 1893 | 1800 | |
| 1894 | 1801 | .dataviews-view-table tr td:last-child, |
| 1895 | 1802 | .dataviews-view-table tr th:last-child { |
| 1896 | - padding-left: 24px; | |
| 1803 | + padding-left: var(--wpds-dimension-padding-2xl, 24px); | |
| 1897 | 1804 | } |
| 1898 | 1805 | |
| 1899 | 1806 | .dataviews-view-table tr:last-child { |
| 1900 | 1807 | border-bottom: 0; |
| @@ -1909,18 +1816,18 @@ | ||
| 1909 | 1816 | opacity: 1; |
| 1910 | 1817 | } |
| 1911 | 1818 | } |
| 1912 | 1819 | .dataviews-view-table tr.is-selected { |
| 1913 | - background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 4%, #fff); | |
| 1914 | - 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); | |
| 1915 | 1822 | } |
| 1916 | 1823 | |
| 1917 | 1824 | .dataviews-view-table tr.is-selected, .dataviews-view-table tr.is-selected + tr { |
| 1918 | - 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)); | |
| 1919 | 1826 | } |
| 1920 | 1827 | |
| 1921 | 1828 | .dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky { |
| 1922 | - 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)); | |
| 1923 | 1830 | } |
| 1924 | 1831 | |
| 1925 | 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) { |
| 1926 | 1833 | opacity: 1; |
| @@ -1926,13 +1833,13 @@ | ||
| 1926 | 1833 | opacity: 1; |
| 1927 | 1834 | } |
| 1928 | 1835 | |
| 1929 | 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 { |
| 1930 | - background-color: var(--wp-dataviews-color-background, #fff); | |
| 1837 | + background-color: var(--wp-dataviews-color-background, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 1931 | 1838 | } |
| 1932 | 1839 | |
| 1933 | 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 { |
| 1934 | - 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)); | |
| 1935 | 1842 | } |
| 1936 | 1843 | |
| 1937 | 1844 | .dataviews-view-table thead { |
| 1938 | 1845 | position: sticky; |
| @@ -1948,9 +1855,9 @@ | ||
| 1948 | 1855 | bottom: 0; |
| 1949 | 1856 | right: 0; |
| 1950 | 1857 | left: 0; |
| 1951 | 1858 | height: 1px; |
| 1952 | - background-color: #f0f0f0; | |
| 1859 | + background-color: var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 1953 | 1860 | } |
| 1954 | 1861 | |
| 1955 | 1862 | .dataviews-view-table thead tr { |
| 1956 | 1863 | border: 0; |
| @@ -1957,30 +1864,30 @@ | ||
| 1957 | 1864 | } |
| 1958 | 1865 | |
| 1959 | 1866 | .dataviews-view-table thead th { |
| 1960 | 1867 | background-color: inherit; |
| 1961 | - padding-top: 8px; | |
| 1962 | - padding-bottom: 8px; | |
| 1868 | + padding-top: var(--wpds-dimension-padding-sm, 8px); | |
| 1869 | + padding-bottom: var(--wpds-dimension-padding-sm, 8px); | |
| 1963 | 1870 | font-size: 11px; |
| 1964 | 1871 | text-transform: uppercase; |
| 1965 | - font-weight: 499; | |
| 1872 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1966 | 1873 | } |
| 1967 | 1874 | |
| 1968 | 1875 | .dataviews-view-table thead th:has(.dataviews-view-table-header-button) { |
| 1969 | - padding-right: 4px; | |
| 1970 | - padding-left: 4px; | |
| 1876 | + padding-right: var(--wpds-dimension-padding-xs, 4px); | |
| 1877 | + padding-left: var(--wpds-dimension-padding-xs, 4px); | |
| 1971 | 1878 | } |
| 1972 | 1879 | |
| 1973 | 1880 | .dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button { |
| 1974 | - gap: 4px; | |
| 1881 | + gap: var(--wpds-dimension-gap-xs, 4px); | |
| 1975 | 1882 | } |
| 1976 | 1883 | |
| 1977 | 1884 | .dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child { |
| 1978 | - padding-right: 16px; | |
| 1885 | + padding-right: var(--wpds-dimension-padding-lg, 16px); | |
| 1979 | 1886 | } |
| 1980 | 1887 | |
| 1981 | 1888 | .dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child { |
| 1982 | - padding-left: 16px; | |
| 1889 | + padding-left: var(--wpds-dimension-padding-lg, 16px); | |
| 1983 | 1890 | } |
| 1984 | 1891 | |
| 1985 | 1892 | .dataviews-view-table tbody td { |
| 1986 | 1893 | vertical-align: top; |
| @@ -1986,9 +1893,9 @@ | ||
| 1986 | 1893 | vertical-align: top; |
| 1987 | 1894 | } |
| 1988 | 1895 | |
| 1989 | 1896 | .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper { |
| 1990 | - min-height: 32px; | |
| 1897 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1991 | 1898 | display: flex; |
| 1992 | 1899 | align-items: center; |
| 1993 | 1900 | white-space: nowrap; |
| 1994 | 1901 | } |
| @@ -2006,16 +1913,16 @@ | ||
| 2006 | 1913 | min-height: 0; |
| 2007 | 1914 | } |
| 2008 | 1915 | |
| 2009 | 1916 | .dataviews-view-table .dataviews-view-table-header-button { |
| 2010 | - padding: 4px 8px; | |
| 1917 | + padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-sm, 8px); | |
| 2011 | 1918 | font-size: 11px; |
| 2012 | 1919 | text-transform: uppercase; |
| 2013 | - font-weight: 499; | |
| 1920 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2014 | 1921 | } |
| 2015 | 1922 | |
| 2016 | 1923 | .dataviews-view-table .dataviews-view-table-header-button:not(:hover) { |
| 2017 | - color: #1e1e1e; | |
| 1924 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 2018 | 1925 | } |
| 2019 | 1926 | |
| 2020 | 1927 | .dataviews-view-table .dataviews-view-table-header-button span { |
| 2021 | 1928 | speak: none; |
| @@ -2025,9 +1932,9 @@ | ||
| 2025 | 1932 | display: none; |
| 2026 | 1933 | } |
| 2027 | 1934 | |
| 2028 | 1935 | .dataviews-view-table .dataviews-view-table-header { |
| 2029 | - padding-right: 4px; | |
| 1936 | + padding-right: var(--wpds-dimension-padding-xs, 4px); | |
| 2030 | 1937 | } |
| 2031 | 1938 | |
| 2032 | 1939 | .dataviews-view-table .dataviews-view-table__actions-column { |
| 2033 | 1940 | width: auto; |
| @@ -2043,14 +1950,14 @@ | ||
| 2043 | 1950 | } |
| 2044 | 1951 | |
| 2045 | 1952 | .dataviews-view-table.has-compact-density td, |
| 2046 | 1953 | .dataviews-view-table.has-compact-density th { |
| 2047 | - padding: 4px 8px; | |
| 1954 | + padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-sm, 8px); | |
| 2048 | 1955 | } |
| 2049 | 1956 | |
| 2050 | 1957 | .dataviews-view-table.has-comfortable-density td, |
| 2051 | 1958 | .dataviews-view-table.has-comfortable-density th { |
| 2052 | - padding: 16px 12px; | |
| 1959 | + padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-md, 12px); | |
| 2053 | 1960 | } |
| 2054 | 1961 | |
| 2055 | 1962 | .dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column, |
| 2056 | 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, |
| @@ -2068,20 +1975,20 @@ | ||
| 2068 | 1975 | } |
| 2069 | 1976 | } |
| 2070 | 1977 | .dataviews-column-primary__media { |
| 2071 | 1978 | max-width: 60px; |
| 2072 | - min-width: 32px; | |
| 2073 | - min-height: 32px; | |
| 1979 | + min-width: var(--wpds-dimension-size-md, 32px); | |
| 1980 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 2074 | 1981 | overflow: hidden; |
| 2075 | 1982 | position: relative; |
| 2076 | 1983 | flex-shrink: 0; |
| 2077 | - background-color: #fff; | |
| 2078 | - border-radius: 4px; | |
| 1984 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1985 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 2079 | 1986 | } |
| 2080 | 1987 | |
| 2081 | 1988 | .dataviews-column-primary__media img { |
| 2082 | - width: 32px; | |
| 2083 | - height: 32px; | |
| 1989 | + width: var(--wpds-dimension-size-md, 32px); | |
| 1990 | + height: var(--wpds-dimension-size-md, 32px); | |
| 2084 | 1991 | object-fit: cover; |
| 2085 | 1992 | } |
| 2086 | 1993 | |
| 2087 | 1994 | .dataviews-column-primary__media::after { |
| @@ -2090,12 +1997,23 @@ | ||
| 2090 | 1997 | top: 0; |
| 2091 | 1998 | right: 0; |
| 2092 | 1999 | width: 100%; |
| 2093 | 2000 | height: 100%; |
| 2094 | - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); | |
| 2095 | - 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); | |
| 2096 | 2003 | } |
| 2097 | 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 | + | |
| 2098 | 2016 | .dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media), |
| 2099 | 2017 | .dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) { |
| 2100 | 2018 | min-width: 15ch; |
| 2101 | 2019 | max-width: 80ch; |
| @@ -2101,11 +2019,11 @@ | ||
| 2101 | 2019 | max-width: 80ch; |
| 2102 | 2020 | } |
| 2103 | 2021 | |
| 2104 | 2022 | .dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell { |
| 2105 | - font-weight: 499; | |
| 2106 | - padding: 12px 24px; | |
| 2107 | - 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); | |
| 2108 | 2026 | } |
| 2109 | 2027 | |
| 2110 | 2028 | /* Column width intents via colgroup: make non-primary columns shrink-to-fit */ |
| 2111 | 2029 | .dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand) { |
| @@ -2123,13 +2041,13 @@ | ||
| 2123 | 2041 | animation: dataviews-pulse 1s ease-in-out infinite; |
| 2124 | 2042 | } |
| 2125 | 2043 | } |
| 2126 | 2044 | .dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items { |
| 2127 | - gap: 16px; | |
| 2045 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 2128 | 2046 | } |
| 2129 | 2047 | |
| 2130 | 2048 | .dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items { |
| 2131 | - gap: 32px; | |
| 2049 | + gap: var(--wpds-dimension-gap-2xl, 32px); | |
| 2132 | 2050 | } |
| 2133 | 2051 | |
| 2134 | 2052 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card { |
| 2135 | 2053 | height: 100%; |
| @@ -2134,16 +2052,17 @@ | ||
| 2134 | 2052 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card { |
| 2135 | 2053 | height: 100%; |
| 2136 | 2054 | justify-content: flex-start; |
| 2137 | 2055 | position: relative; |
| 2056 | + isolation: isolate; | |
| 2138 | 2057 | } |
| 2139 | 2058 | |
| 2140 | 2059 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions { |
| 2141 | - padding: 8px 0 4px; | |
| 2060 | + padding: var(--wpds-dimension-padding-sm, 8px) 0 var(--wpds-dimension-padding-xs, 4px); | |
| 2142 | 2061 | } |
| 2143 | 2062 | |
| 2144 | 2063 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field { |
| 2145 | - min-height: 24px; | |
| 2064 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2146 | 2065 | overflow: hidden; |
| 2147 | 2066 | align-content: center; |
| 2148 | 2067 | text-align: start; |
| 2149 | 2068 | } |
| @@ -2152,22 +2071,17 @@ | ||
| 2152 | 2071 | width: fit-content; |
| 2153 | 2072 | } |
| 2154 | 2073 | |
| 2155 | 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 { |
| 2156 | - color: #1e1e1e; | |
| 2075 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2157 | 2076 | } |
| 2158 | 2077 | |
| 2159 | -.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media::after, | |
| 2160 | -.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus::after { | |
| 2161 | - background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); | |
| 2162 | -} | |
| 2163 | - | |
| 2164 | 2078 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media::after { |
| 2165 | - 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); | |
| 2166 | 2080 | } |
| 2167 | 2081 | |
| 2168 | 2082 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus::after { |
| 2169 | - 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)); | |
| 2170 | 2084 | } |
| 2171 | 2085 | |
| 2172 | 2086 | .dataviews-view-picker-grid:focus-visible[aria-activedescendant] { |
| 2173 | 2087 | outline: none; |
| @@ -2173,13 +2087,13 @@ | ||
| 2173 | 2087 | outline: none; |
| 2174 | 2088 | } |
| 2175 | 2089 | |
| 2176 | 2090 | .dataviews-view-picker-grid:focus-visible [data-active-item=true] { |
| 2177 | - outline: 2px solid var(--wp-admin-theme-color); | |
| 2091 | + outline: 2px solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2178 | 2092 | } |
| 2179 | 2093 | |
| 2180 | 2094 | .dataviews-view-picker-grid .dataviews-selection-checkbox { |
| 2181 | - top: 8px !important; | |
| 2095 | + top: var(--wpds-dimension-padding-sm, 8px) !important; | |
| 2182 | 2096 | } |
| 2183 | 2097 | |
| 2184 | 2098 | .dataviews-view-picker-grid .dataviews-selection-checkbox input { |
| 2185 | 2099 | pointer-events: none; |
| @@ -2188,10 +2102,11 @@ | ||
| 2188 | 2102 | .dataviews-view-picker-grid .dataviews-view-picker-grid__media { |
| 2189 | 2103 | width: 100%; |
| 2190 | 2104 | aspect-ratio: 1/1; |
| 2191 | 2105 | min-height: 0; |
| 2192 | - background-color: #fff; | |
| 2193 | - 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; | |
| 2194 | 2109 | position: relative; |
| 2195 | 2110 | } |
| 2196 | 2111 | |
| 2197 | 2112 | .dataviews-view-picker-grid .dataviews-view-picker-grid__media img { |
| @@ -2206,13 +2121,21 @@ | ||
| 2206 | 2121 | top: 0; |
| 2207 | 2122 | right: 0; |
| 2208 | 2123 | width: 100%; |
| 2209 | 2124 | height: 100%; |
| 2210 | - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); | |
| 2211 | - 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); | |
| 2212 | 2127 | pointer-events: none; |
| 2213 | 2128 | } |
| 2214 | 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 | + | |
| 2215 | 2138 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields { |
| 2216 | 2139 | position: relative; |
| 2217 | 2140 | font-size: 12px; |
| 2218 | 2141 | line-height: 16px; |
| @@ -2218,25 +2141,25 @@ | ||
| 2218 | 2141 | line-height: 16px; |
| 2219 | 2142 | } |
| 2220 | 2143 | |
| 2221 | 2144 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty) { |
| 2222 | - padding: 0 0 12px; | |
| 2145 | + padding: 0 0 var(--wpds-dimension-padding-md, 12px); | |
| 2223 | 2146 | } |
| 2224 | 2147 | |
| 2225 | 2148 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty) { |
| 2226 | - min-height: 24px; | |
| 2227 | - line-height: 20px; | |
| 2228 | - 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); | |
| 2229 | 2152 | } |
| 2230 | 2153 | |
| 2231 | 2154 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field { |
| 2232 | - min-height: 24px; | |
| 2155 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2233 | 2156 | align-items: center; |
| 2234 | 2157 | } |
| 2235 | 2158 | |
| 2236 | 2159 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name { |
| 2237 | 2160 | width: 35%; |
| 2238 | - color: #757575; | |
| 2161 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2239 | 2162 | overflow: hidden; |
| 2240 | 2163 | text-overflow: ellipsis; |
| 2241 | 2164 | white-space: nowrap; |
| 2242 | 2165 | } |
| @@ -2252,9 +2175,9 @@ | ||
| 2252 | 2175 | display: none; |
| 2253 | 2176 | } |
| 2254 | 2177 | |
| 2255 | 2178 | .dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty) { |
| 2256 | - padding-bottom: 12px; | |
| 2179 | + padding-bottom: var(--wpds-dimension-padding-md, 12px); | |
| 2257 | 2180 | } |
| 2258 | 2181 | |
| 2259 | 2182 | .dataviews-view-picker-grid__field-value:empty, |
| 2260 | 2183 | .dataviews-view-picker-grid__field:empty { |
| @@ -2263,21 +2186,21 @@ | ||
| 2263 | 2186 | |
| 2264 | 2187 | .dataviews-view-picker-grid__card .dataviews-selection-checkbox { |
| 2265 | 2188 | position: absolute; |
| 2266 | 2189 | top: -9999em; |
| 2267 | - right: 8px; | |
| 2190 | + right: var(--wpds-dimension-padding-sm, 8px); | |
| 2268 | 2191 | z-index: 1; |
| 2269 | 2192 | } |
| 2270 | 2193 | |
| 2271 | 2194 | @media (hover: none) { |
| 2272 | 2195 | .dataviews-view-picker-grid__card .dataviews-selection-checkbox { |
| 2273 | - top: 8px; | |
| 2196 | + top: var(--wpds-dimension-padding-sm, 8px); | |
| 2274 | 2197 | } |
| 2275 | 2198 | } |
| 2276 | 2199 | .dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox, |
| 2277 | 2200 | .dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox, |
| 2278 | 2201 | .dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox { |
| 2279 | - top: 8px; | |
| 2202 | + top: var(--wpds-dimension-padding-sm, 8px); | |
| 2280 | 2203 | } |
| 2281 | 2204 | |
| 2282 | 2205 | .dataviews-view-picker-grid__media--clickable { |
| 2283 | 2206 | cursor: var(--wpds-cursor-control, pointer); |
| @@ -2283,12 +2206,12 @@ | ||
| 2283 | 2206 | cursor: var(--wpds-cursor-control, pointer); |
| 2284 | 2207 | } |
| 2285 | 2208 | |
| 2286 | 2209 | .dataviews-view-picker-grid-group__header { |
| 2287 | - font-size: 15px; | |
| 2288 | - font-weight: 499; | |
| 2289 | - color: #1e1e1e; | |
| 2290 | - 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; | |
| 2291 | 2214 | padding: 0 48px; |
| 2292 | 2215 | } |
| 2293 | 2216 | |
| 2294 | 2217 | .dataviews-view-picker-table { |
| @@ -2303,9 +2226,9 @@ | ||
| 2303 | 2226 | outline: none; |
| 2304 | 2227 | } |
| 2305 | 2228 | |
| 2306 | 2229 | .dataviews-view-picker-table tbody:focus-visible [data-active-item=true] { |
| 2307 | - outline: 2px solid var(--wp-admin-theme-color); | |
| 2230 | + outline: 2px solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2308 | 2231 | } |
| 2309 | 2232 | |
| 2310 | 2233 | .dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input { |
| 2311 | 2234 | pointer-events: none; |
| @@ -2316,34 +2239,34 @@ | ||
| 2316 | 2239 | cursor: var(--wpds-cursor-control, pointer); |
| 2317 | 2240 | } |
| 2318 | 2241 | |
| 2319 | 2242 | .dataviews-view-picker-table .dataviews-view-table__row.is-selected { |
| 2320 | - 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)); | |
| 2321 | 2244 | } |
| 2322 | 2245 | |
| 2323 | 2246 | .dataviews-view-picker-table .dataviews-view-table__row.is-hovered { |
| 2324 | - 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)); | |
| 2325 | 2248 | } |
| 2326 | 2249 | |
| 2327 | 2250 | .dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered { |
| 2328 | - 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)); | |
| 2329 | 2252 | } |
| 2330 | 2253 | |
| 2331 | 2254 | .dataviews-view-activity { |
| 2332 | 2255 | margin: 0 0 auto; |
| 2333 | - padding: 0 24px; | |
| 2256 | + padding: 0 var(--wpds-dimension-padding-2xl, 24px); | |
| 2334 | 2257 | } |
| 2335 | 2258 | |
| 2336 | 2259 | .dataviews-view-activity .dataviews-view-activity__group-header { |
| 2337 | - font-size: 15px; | |
| 2338 | - font-weight: 499; | |
| 2339 | - color: #949494; | |
| 2340 | - 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; | |
| 2341 | 2264 | padding: 0; |
| 2342 | 2265 | } |
| 2343 | 2266 | |
| 2344 | 2267 | .dataviews-view-activity .dataviews-view-activity__item-actions { |
| 2345 | - min-width: 24px; | |
| 2268 | + min-width: var(--wpds-dimension-size-sm, 24px); | |
| 2346 | 2269 | } |
| 2347 | 2270 | |
| 2348 | 2271 | .dataviews-view-activity .dataviews-view-activity__item-content { |
| 2349 | 2272 | flex-grow: 1; |
| @@ -2351,9 +2274,9 @@ | ||
| 2351 | 2274 | |
| 2352 | 2275 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title, |
| 2353 | 2276 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description, |
| 2354 | 2277 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields { |
| 2355 | - min-height: 16px; | |
| 2278 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 2356 | 2279 | } |
| 2357 | 2280 | |
| 2358 | 2281 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title { |
| 2359 | 2282 | position: relative; |
| @@ -2367,11 +2290,11 @@ | ||
| 2367 | 2290 | cursor: var(--wpds-cursor-control, pointer); |
| 2368 | 2291 | } |
| 2369 | 2292 | |
| 2370 | 2293 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible { |
| 2371 | - 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)); | |
| 2372 | 2295 | outline-offset: var(--wp-admin-border-width-focus); |
| 2373 | - border-radius: 2px; | |
| 2296 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 2374 | 2297 | } |
| 2375 | 2298 | |
| 2376 | 2299 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions { |
| 2377 | 2300 | display: flex; |
| @@ -2384,12 +2307,12 @@ | ||
| 2384 | 2307 | z-index: 1; |
| 2385 | 2308 | } |
| 2386 | 2309 | |
| 2387 | 2310 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields { |
| 2388 | - color: #757575; | |
| 2311 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2389 | 2312 | display: flex; |
| 2390 | - gap: 12px; | |
| 2391 | - row-gap: 4px; | |
| 2313 | + gap: var(--wpds-dimension-gap-md, 12px); | |
| 2314 | + row-gap: var(--wpds-dimension-gap-xs, 4px); | |
| 2392 | 2315 | flex-wrap: wrap; |
| 2393 | 2316 | } |
| 2394 | 2317 | |
| 2395 | 2318 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty { |
| @@ -2414,9 +2337,9 @@ | ||
| 2414 | 2337 | content: ""; |
| 2415 | 2338 | flex: 1 1 auto; |
| 2416 | 2339 | width: 1px; |
| 2417 | 2340 | margin: 0 auto; |
| 2418 | - background-color: #ddd; | |
| 2341 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2419 | 2342 | } |
| 2420 | 2343 | |
| 2421 | 2344 | .dataviews-view-activity .dataviews-view-activity__item-type::before { |
| 2422 | 2345 | content: ""; |
| @@ -2422,67 +2345,67 @@ | ||
| 2422 | 2345 | content: ""; |
| 2423 | 2346 | flex: 0 0 auto; |
| 2424 | 2347 | width: 1px; |
| 2425 | 2348 | margin: 0 auto; |
| 2426 | - background-color: #ddd; | |
| 2349 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2427 | 2350 | } |
| 2428 | 2351 | |
| 2429 | 2352 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type { |
| 2430 | - width: 12px; | |
| 2353 | + width: var(--wpds-dimension-padding-md, 12px); | |
| 2431 | 2354 | } |
| 2432 | 2355 | |
| 2433 | 2356 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type::before { |
| 2434 | - height: 12px; | |
| 2357 | + height: var(--wpds-dimension-size-3xs, 12px); | |
| 2435 | 2358 | } |
| 2436 | 2359 | |
| 2437 | 2360 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon { |
| 2438 | - width: 11px; | |
| 2439 | - height: 11px; | |
| 2361 | + width: calc(var(--wpds-dimension-size-3xs, 12px) - 1px); | |
| 2362 | + height: calc(var(--wpds-dimension-size-3xs, 12px) - 1px); | |
| 2440 | 2363 | } |
| 2441 | 2364 | |
| 2442 | 2365 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content { |
| 2443 | - margin: 12px 0; | |
| 2366 | + margin: var(--wpds-dimension-gap-md, 12px) 0; | |
| 2444 | 2367 | } |
| 2445 | 2368 | |
| 2446 | 2369 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type { |
| 2447 | - width: 24px; | |
| 2370 | + width: var(--wpds-dimension-size-sm, 24px); | |
| 2448 | 2371 | } |
| 2449 | 2372 | |
| 2450 | 2373 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type::before { |
| 2451 | - height: 12px; | |
| 2374 | + height: var(--wpds-dimension-size-3xs, 12px); | |
| 2452 | 2375 | } |
| 2453 | 2376 | |
| 2454 | 2377 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon { |
| 2455 | - width: 25px; | |
| 2456 | - height: 25px; | |
| 2378 | + width: calc(var(--wpds-dimension-size-sm, 24px) + 1px); | |
| 2379 | + height: calc(var(--wpds-dimension-size-sm, 24px) + 1px); | |
| 2457 | 2380 | } |
| 2458 | 2381 | |
| 2459 | 2382 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content { |
| 2460 | - margin: 12px 0; | |
| 2461 | - padding-top: 8px; | |
| 2383 | + margin: var(--wpds-dimension-gap-md, 12px) 0; | |
| 2384 | + padding-top: var(--wpds-dimension-padding-sm, 8px); | |
| 2462 | 2385 | } |
| 2463 | 2386 | |
| 2464 | 2387 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type { |
| 2465 | - width: 32px; | |
| 2388 | + width: var(--wpds-dimension-size-md, 32px); | |
| 2466 | 2389 | } |
| 2467 | 2390 | |
| 2468 | 2391 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type::before { |
| 2469 | - height: 8px; | |
| 2392 | + height: var(--wpds-dimension-size-4xs, 8px); | |
| 2470 | 2393 | } |
| 2471 | 2394 | |
| 2472 | 2395 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon { |
| 2473 | - width: 33px; | |
| 2474 | - height: 33px; | |
| 2396 | + width: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 2397 | + height: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 2475 | 2398 | } |
| 2476 | 2399 | |
| 2477 | 2400 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content { |
| 2478 | - margin: 8px 0 16px; | |
| 2479 | - 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); | |
| 2480 | 2403 | } |
| 2481 | 2404 | |
| 2482 | 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 { |
| 2483 | - width: 9px; | |
| 2484 | - height: 9px; | |
| 2406 | + width: calc(var(--wpds-dimension-size-4xs, 8px) + 1px); | |
| 2407 | + height: calc(var(--wpds-dimension-size-4xs, 8px) + 1px); | |
| 2485 | 2408 | position: relative; |
| 2486 | 2409 | top: 50%; |
| 2487 | 2410 | transform: translateY(-50%); |
| 2488 | 2411 | } |
| @@ -2491,15 +2414,15 @@ | ||
| 2491 | 2414 | visibility: hidden; |
| 2492 | 2415 | } |
| 2493 | 2416 | |
| 2494 | 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 { |
| 2495 | - 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%); | |
| 2496 | 2419 | } |
| 2497 | 2420 | |
| 2498 | 2421 | .dataviews-view-activity .dataviews-view-activity__item-type-icon { |
| 2499 | 2422 | overflow: hidden; |
| 2500 | 2423 | flex-shrink: 0; |
| 2501 | - background-color: #fff; | |
| 2424 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2502 | 2425 | } |
| 2503 | 2426 | |
| 2504 | 2427 | .dataviews-view-activity .dataviews-view-activity__item-type-icon img, |
| 2505 | 2428 | .dataviews-view-activity .dataviews-view-activity__item-type-icon svg, |
| @@ -2510,18 +2433,18 @@ | ||
| 2510 | 2433 | margin: 0 auto; |
| 2511 | 2434 | object-fit: cover; |
| 2512 | 2435 | border-radius: 50%; |
| 2513 | 2436 | box-sizing: border-box; |
| 2514 | - 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); | |
| 2515 | 2438 | } |
| 2516 | 2439 | |
| 2517 | 2440 | .dataviews-view-activity .dataviews-view-activity__item-type-icon svg { |
| 2518 | - padding: 4px; | |
| 2441 | + padding: var(--wpds-dimension-padding-xs, 4px); | |
| 2519 | 2442 | } |
| 2520 | 2443 | |
| 2521 | 2444 | .dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet { |
| 2522 | 2445 | content: ""; |
| 2523 | - background-color: #ddd; | |
| 2446 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2524 | 2447 | } |
| 2525 | 2448 | |
| 2526 | 2449 | .dataviews-view-activity.is-refreshing { |
| 2527 | 2450 | opacity: 0.5; |
| @@ -2537,11 +2460,211 @@ | ||
| 2537 | 2460 | .dataviews-view-activity + .dataviews-pagination { |
| 2538 | 2461 | justify-content: space-between; |
| 2539 | 2462 | } |
| 2540 | 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 | + | |
| 2541 | 2664 | .dataviews-picker-footer__bulk-selection { |
| 2542 | 2665 | align-self: flex-start; |
| 2543 | - height: 32px; | |
| 2666 | + height: var(--wpds-dimension-size-md, 32px); | |
| 2544 | 2667 | } |
| 2545 | 2668 | |
| 2546 | 2669 | .dataviews-picker-footer__actions { |
| 2547 | 2670 | align-self: flex-end; |
| @@ -2571,30 +2694,51 @@ | ||
| 2571 | 2694 | display: flex; |
| 2572 | 2695 | } |
| 2573 | 2696 | |
| 2574 | 2697 | .dataviews-controls__date-preset { |
| 2575 | - border: 1px solid #ddd; | |
| 2698 | + border: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 2576 | 2699 | } |
| 2577 | 2700 | |
| 2578 | 2701 | .dataviews-controls__date-preset:active { |
| 2579 | - background-color: #000; | |
| 2702 | + background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e); | |
| 2580 | 2703 | } |
| 2581 | 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 | + | |
| 2582 | 2726 | .dataforms-layouts-panel__field-trigger { |
| 2583 | 2727 | position: relative; |
| 2584 | 2728 | color: inherit; |
| 2585 | 2729 | display: flex; |
| 2586 | 2730 | width: 100%; |
| 2587 | - min-height: 24px; | |
| 2731 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2588 | 2732 | cursor: var(--wpds-cursor-control, pointer); |
| 2589 | 2733 | align-items: flex-start; |
| 2590 | - border-radius: 2px; | |
| 2734 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 2591 | 2735 | isolation: isolate; |
| 2592 | 2736 | } |
| 2593 | 2737 | |
| 2594 | 2738 | .dataforms-layouts-panel__field-trigger--label-side { |
| 2595 | 2739 | flex-direction: row; |
| 2596 | - gap: var(--wpds-dimension-gap-md, 12px); | |
| 2740 | + gap: var(--wpds-dimension-gap-sm, 8px); | |
| 2597 | 2741 | } |
| 2598 | 2742 | |
| 2599 | 2743 | .dataforms-layouts-panel__field-trigger--label-top { |
| 2600 | 2744 | display: grid; |
| @@ -2605,9 +2749,9 @@ | ||
| 2605 | 2749 | align-items: center; |
| 2606 | 2750 | } |
| 2607 | 2751 | |
| 2608 | 2752 | .dataforms-layouts-panel__field-trigger:not(.is-disabled):hover { |
| 2609 | - color: var(--wp-admin-theme-color); | |
| 2753 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2610 | 2754 | } |
| 2611 | 2755 | |
| 2612 | 2756 | .dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon { |
| 2613 | 2757 | opacity: 1; |
| @@ -2613,9 +2757,9 @@ | ||
| 2613 | 2757 | opacity: 1; |
| 2614 | 2758 | } |
| 2615 | 2759 | |
| 2616 | 2760 | .dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label { |
| 2617 | - color: var(--wp-admin-theme-color); | |
| 2761 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2618 | 2762 | } |
| 2619 | 2763 | |
| 2620 | 2764 | .dataforms-layouts-panel__field-trigger.is-disabled { |
| 2621 | 2765 | cursor: default; |
| @@ -2621,10 +2765,10 @@ | ||
| 2621 | 2765 | cursor: default; |
| 2622 | 2766 | } |
| 2623 | 2767 | |
| 2624 | 2768 | .dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control { |
| 2625 | - color: #757575; | |
| 2626 | - 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); | |
| 2627 | 2771 | } |
| 2628 | 2772 | |
| 2629 | 2773 | .dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon { |
| 2630 | 2774 | opacity: 1; |
| @@ -2631,22 +2775,28 @@ | ||
| 2631 | 2775 | fill: currentColor; |
| 2632 | 2776 | } |
| 2633 | 2777 | |
| 2634 | 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 { |
| 2635 | - fill: var(--wp-admin-theme-color); | |
| 2779 | + fill: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2636 | 2780 | } |
| 2637 | 2781 | |
| 2638 | 2782 | .dataforms-layouts-panel__field-trigger-icon { |
| 2639 | 2783 | padding: 0; |
| 2640 | - color: var(--wp-admin-theme-color); | |
| 2784 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2641 | 2785 | flex: 0 0 auto; |
| 2642 | 2786 | opacity: 0; |
| 2643 | 2787 | border-radius: var(--wpds-border-radius-xs, 1px); |
| 2644 | 2788 | } |
| 2645 | 2789 | |
| 2790 | +.dataforms-layouts-panel__field-trigger-icon::after { | |
| 2791 | + content: ""; | |
| 2792 | + position: absolute; | |
| 2793 | + inset: 0; | |
| 2794 | +} | |
| 2795 | + | |
| 2646 | 2796 | .dataforms-layouts-panel__field-trigger-icon:focus-visible { |
| 2647 | 2797 | opacity: 1; |
| 2648 | - 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)); | |
| 2649 | 2799 | } |
| 2650 | 2800 | |
| 2651 | 2801 | .dataforms-layouts-panel__field-dropdown-anchor { |
| 2652 | 2802 | width: 100%; |
| @@ -2658,14 +2808,14 @@ | ||
| 2658 | 2808 | |
| 2659 | 2809 | .dataforms-layouts-panel__field-label { |
| 2660 | 2810 | width: 38%; |
| 2661 | 2811 | flex-shrink: 0; |
| 2662 | - min-height: 24px; | |
| 2812 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2663 | 2813 | display: flex; |
| 2664 | 2814 | align-items: center; |
| 2665 | - line-height: 20px; | |
| 2815 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 2666 | 2816 | hyphens: auto; |
| 2667 | - color: #757575; | |
| 2817 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2668 | 2818 | } |
| 2669 | 2819 | |
| 2670 | 2820 | .dataforms-layouts-panel__field-label .components-base-control__label { |
| 2671 | 2821 | display: inline; |
| @@ -2673,38 +2823,39 @@ | ||
| 2673 | 2823 | line-height: inherit; |
| 2674 | 2824 | } |
| 2675 | 2825 | |
| 2676 | 2826 | .dataforms-layouts-panel__field-label.has-error { |
| 2677 | - color: #cc1818; | |
| 2827 | + color: var(--wpds-color-foreground-content-error-weak, #cc1818); | |
| 2678 | 2828 | } |
| 2679 | 2829 | |
| 2680 | 2830 | .dataforms-layouts-panel__field-label-error-content { |
| 2681 | - position: relative; | |
| 2682 | - z-index: 1; | |
| 2683 | - cursor: help; | |
| 2684 | - fill: #cc1818; | |
| 2831 | + pointer-events: none; | |
| 2832 | + color: var(--wpds-color-foreground-content-error-weak, #cc1818); | |
| 2685 | 2833 | display: inline-flex; |
| 2686 | 2834 | flex-direction: row; |
| 2687 | 2835 | align-items: center; |
| 2688 | - gap: 4px; | |
| 2836 | + gap: var(--wpds-dimension-gap-xs, 4px); | |
| 2689 | 2837 | } |
| 2690 | 2838 | |
| 2691 | -.dataforms-layouts-panel__field-label-error-content svg { | |
| 2692 | - fill: currentColor; | |
| 2693 | -} | |
| 2694 | - | |
| 2695 | 2839 | .dataforms-layouts-panel__field-control { |
| 2696 | 2840 | flex-grow: 1; |
| 2697 | 2841 | min-width: 0; |
| 2698 | - min-height: 24px; | |
| 2842 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2699 | 2843 | line-height: var(--wpds-typography-line-height-md, 24px); |
| 2700 | 2844 | display: flex; |
| 2701 | 2845 | align-items: center; |
| 2702 | - overflow: hidden; | |
| 2703 | - word-break: break-word; | |
| 2704 | - 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); | |
| 2705 | 2852 | } |
| 2706 | 2853 | |
| 2854 | +.dataforms-layouts-panel__field-control:has(a, button) { | |
| 2855 | + z-index: 1; | |
| 2856 | +} | |
| 2857 | + | |
| 2707 | 2858 | .dataforms-layouts-panel__field-control > * { |
| 2708 | 2859 | min-width: 0; |
| 2709 | 2860 | } |
| 2710 | 2861 | |
| @@ -2721,18 +2872,18 @@ | ||
| 2721 | 2872 | grid-column: 2; |
| 2722 | 2873 | } |
| 2723 | 2874 | |
| 2724 | 2875 | .dataforms-layouts-panel__field-dropdown .components-popover__content { |
| 2725 | - min-width: 256px; | |
| 2726 | - padding: 16px; | |
| 2876 | + min-width: 320px; | |
| 2877 | + padding: var(--wpds-dimension-padding-lg, 16px); | |
| 2727 | 2878 | } |
| 2728 | 2879 | |
| 2729 | 2880 | .dataforms-layouts-panel__dropdown-header { |
| 2730 | - margin-bottom: 16px; | |
| 2881 | + margin-bottom: var(--wpds-dimension-gap-lg, 16px); | |
| 2731 | 2882 | } |
| 2732 | 2883 | |
| 2733 | 2884 | .dataforms-layouts-panel__modal-footer { |
| 2734 | - margin-top: 16px; | |
| 2885 | + margin-top: var(--wpds-dimension-gap-lg, 16px); | |
| 2735 | 2886 | } |
| 2736 | 2887 | |
| 2737 | 2888 | .components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown { |
| 2738 | 2889 | z-index: 159990; |
| @@ -2739,9 +2890,9 @@ | ||
| 2739 | 2890 | } |
| 2740 | 2891 | |
| 2741 | 2892 | .dataforms-layouts-regular__field { |
| 2742 | 2893 | width: 100%; |
| 2743 | - min-height: 32px; | |
| 2894 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 2744 | 2895 | justify-content: flex-start !important; |
| 2745 | 2896 | align-items: flex-start !important; |
| 2746 | 2897 | } |
| 2747 | 2898 | |
| @@ -2747,18 +2898,18 @@ | ||
| 2747 | 2898 | |
| 2748 | 2899 | .dataforms-layouts-regular__field .components-base-control__label, |
| 2749 | 2900 | .dataforms-layouts-regular__field .components-input-control__label, |
| 2750 | 2901 | .dataforms-layouts-regular__field .components-form-token-field__label { |
| 2751 | - color: #1e1e1e; | |
| 2902 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2752 | 2903 | } |
| 2753 | 2904 | |
| 2754 | 2905 | .dataforms-layouts-regular__field-label { |
| 2755 | 2906 | width: 38%; |
| 2756 | 2907 | flex-shrink: 0; |
| 2757 | - min-height: 32px; | |
| 2908 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 2758 | 2909 | display: flex; |
| 2759 | 2910 | align-items: center; |
| 2760 | - line-height: 20px; | |
| 2911 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 2761 | 2912 | hyphens: auto; |
| 2762 | 2913 | } |
| 2763 | 2914 | |
| 2764 | 2915 | .dataforms-layouts-regular__field-label--label-position-side { |
| @@ -2770,9 +2921,9 @@ | ||
| 2770 | 2921 | } |
| 2771 | 2922 | |
| 2772 | 2923 | .dataforms-layouts-regular__field-control { |
| 2773 | 2924 | flex-grow: 1; |
| 2774 | - min-height: 32px; | |
| 2925 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 2775 | 2926 | display: flex; |
| 2776 | 2927 | align-items: center; |
| 2777 | 2928 | } |
| 2778 | 2929 | |
| @@ -2788,28 +2939,28 @@ | ||
| 2788 | 2939 | display: contents; |
| 2789 | 2940 | } |
| 2790 | 2941 | |
| 2791 | 2942 | .dataforms-layouts-card__field-description { |
| 2792 | - color: #757575; | |
| 2943 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2793 | 2944 | display: block; |
| 2794 | - font-size: 13px; | |
| 2795 | - margin-bottom: 16px; | |
| 2945 | + font-size: var(--wpds-typography-font-size-md, 13px); | |
| 2946 | + margin-bottom: var(--wpds-dimension-gap-lg, 16px); | |
| 2796 | 2947 | } |
| 2797 | 2948 | |
| 2798 | 2949 | .dataforms-layouts-card__field-summary { |
| 2799 | 2950 | display: flex; |
| 2800 | 2951 | flex-direction: row; |
| 2801 | - gap: 16px; | |
| 2952 | + gap: var(--wpds-dimension-gap-lg, 16px); | |
| 2802 | 2953 | align-items: center; |
| 2803 | 2954 | } |
| 2804 | 2955 | |
| 2805 | 2956 | .dataforms-layouts-details__summary-content { |
| 2806 | 2957 | display: inline-flex; |
| 2807 | - min-height: 24px; | |
| 2958 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2808 | 2959 | } |
| 2809 | 2960 | |
| 2810 | 2961 | .dataforms-layouts-details__content { |
| 2811 | - padding-top: 12px; | |
| 2962 | + padding-top: var(--wpds-dimension-padding-md, 12px); | |
| 2812 | 2963 | } |
| 2813 | 2964 | |
| 2814 | 2965 | .dataforms-layouts-row__field-control { |
| 2815 | 2966 | width: 100%; |
| @@ -2815,10 +2966,10 @@ | ||
| 2815 | 2966 | width: 100%; |
| 2816 | 2967 | } |
| 2817 | 2968 | |
| 2818 | 2969 | .dataforms-layouts__wrapper { |
| 2819 | - font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 2820 | - 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); | |
| 2821 | 2972 | font-size: 13px; |
| 2822 | 2973 | line-height: 20px; |
| 2823 | 2974 | } |
| 2824 | 2975 | |
| @@ -2891,8 +3042,14 @@ | ||
| 2891 | 3042 | /** |
| 2892 | 3043 | * Focus styles. |
| 2893 | 3044 | */ |
| 2894 | 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 | +/** | |
| 2895 | 3052 | * Applies editor left position to the selector passed as argument |
| 2896 | 3053 | */ |
| 2897 | 3054 | /** |
| 2898 | 3055 | * Styles that are reused verbatim in a few places |
| @@ -2950,9 +3107,9 @@ | ||
| 2950 | 3107 | padding: 12px; |
| 2951 | 3108 | display: grid; |
| 2952 | 3109 | align-items: center; |
| 2953 | 3110 | grid-template-columns: min-content 1fr min-content; |
| 2954 | - grid-gap: 4px 8px; | |
| 3111 | + gap: 4px 8px; | |
| 2955 | 3112 | color: #1e1e1e; |
| 2956 | 3113 | } |
| 2957 | 3114 | |
| 2958 | 3115 | .fields-create-template-part-modal__area-radio-wrapper + .fields-create-template-part-modal__area-radio-wrapper { |
| @@ -2982,9 +3139,9 @@ | ||
| 2982 | 3139 | inset: 0; |
| 2983 | 3140 | } |
| 2984 | 3141 | |
| 2985 | 3142 | input[type=radio]:not(:checked) ~ .fields-create-template-part-modal__area-radio-label::before { |
| 2986 | - cursor: pointer; | |
| 3143 | + cursor: var(--wpds-cursor-control, pointer); | |
| 2987 | 3144 | } |
| 2988 | 3145 | |
| 2989 | 3146 | input[type=radio]:focus-visible ~ .fields-create-template-part-modal__area-radio-label::before { |
| 2990 | 3147 | outline: 4px solid transparent; |
| @@ -3029,9 +3186,8 @@ | ||
| 3029 | 3186 | line-height: 1.5; |
| 3030 | 3187 | } |
| 3031 | 3188 | |
| 3032 | 3189 | fieldset.fields__media-edit { |
| 3033 | - /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */ | |
| 3034 | 3190 | container-type: inline-size; |
| 3035 | 3191 | } |
| 3036 | 3192 | |
| 3037 | 3193 | fieldset.fields__media-edit .fields__media-edit-compact-group { |
| @@ -3110,9 +3266,9 @@ | ||
| 3110 | 3266 | border: 1px dashed #949494; |
| 3111 | 3267 | border-radius: 2px; |
| 3112 | 3268 | padding: 4px 8px; |
| 3113 | 3269 | min-height: 40px; |
| 3114 | - cursor: pointer; | |
| 3270 | + cursor: var(--wpds-cursor-control, pointer); | |
| 3115 | 3271 | min-width: 0; |
| 3116 | 3272 | } |
| 3117 | 3273 | |
| 3118 | 3274 | fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment) { |
| @@ -3267,9 +3423,8 @@ | ||
| 3267 | 3423 | } |
| 3268 | 3424 | |
| 3269 | 3425 | fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) { |
| 3270 | 3426 | grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); |
| 3271 | - /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */ | |
| 3272 | 3427 | } |
| 3273 | 3428 | |
| 3274 | 3429 | @container (max-width: 500px) { |
| 3275 | 3430 | fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) { |
| @@ -3336,18 +3491,15 @@ | ||
| 3336 | 3491 | padding: 0; |
| 3337 | 3492 | margin: 0; |
| 3338 | 3493 | } |
| 3339 | 3494 | |
| 3340 | -.fields-controls__slug .fields-controls__slug-external-icon { | |
| 3341 | - margin-right: 5ch; | |
| 3342 | -} | |
| 3343 | - | |
| 3344 | 3495 | .fields-controls__slug .fields-controls__slug-input input.components-input-control__input { |
| 3345 | 3496 | padding-inline-start: 0 !important; |
| 3346 | 3497 | } |
| 3347 | 3498 | |
| 3348 | 3499 | .fields-controls__slug .fields-controls__slug-help-link { |
| 3349 | - word-break: break-word; | |
| 3500 | + word-break: normal; | |
| 3501 | + overflow-wrap: anywhere; | |
| 3350 | 3502 | } |
| 3351 | 3503 | |
| 3352 | 3504 | .fields-controls__slug .fields-controls__slug-help { |
| 3353 | 3505 | display: flex; |
| @@ -3354,9 +3506,9 @@ | ||
| 3354 | 3506 | flex-direction: column; |
| 3355 | 3507 | } |
| 3356 | 3508 | |
| 3357 | 3509 | .fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug { |
| 3358 | - font-weight: 600; | |
| 3510 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3359 | 3511 | } |
| 3360 | 3512 | |
| 3361 | 3513 | .fields-controls__featured-image-image, |
| 3362 | 3514 | .fields-controls__featured-image-placeholder { |
| @@ -3475,8 +3627,14 @@ | ||
| 3475 | 3627 | /** |
| 3476 | 3628 | * Focus styles. |
| 3477 | 3629 | */ |
| 3478 | 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 | +/** | |
| 3479 | 3637 | * Applies editor left position to the selector passed as argument |
| 3480 | 3638 | */ |
| 3481 | 3639 | /** |
| 3482 | 3640 | * Styles that are reused verbatim in a few places |
| @@ -3510,9 +3668,9 @@ | ||
| 3510 | 3668 | } |
| 3511 | 3669 | |
| 3512 | 3670 | .font-library-modal .font-library__subtitle { |
| 3513 | 3671 | text-transform: uppercase; |
| 3514 | - font-weight: 499; | |
| 3672 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3515 | 3673 | font-size: 11px; |
| 3516 | 3674 | } |
| 3517 | 3675 | |
| 3518 | 3676 | .font-library-modal__tab-panel { |
| @@ -3550,9 +3708,9 @@ | ||
| 3550 | 3708 | .font-library__footer { |
| 3551 | 3709 | position: absolute; |
| 3552 | 3710 | width: 100%; |
| 3553 | 3711 | bottom: 0; |
| 3554 | - border-top: 1px solid #ddd; | |
| 3712 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 3555 | 3713 | padding: 24px; |
| 3556 | 3714 | background-color: #fff; |
| 3557 | 3715 | box-sizing: border-box; |
| 3558 | 3716 | flex-grow: 0 !important; |
| @@ -3561,22 +3719,26 @@ | ||
| 3561 | 3719 | } |
| 3562 | 3720 | |
| 3563 | 3721 | .font-library__page-selection { |
| 3564 | 3722 | font-size: 11px; |
| 3565 | - font-weight: 499; | |
| 3723 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3566 | 3724 | text-transform: uppercase; |
| 3567 | 3725 | } |
| 3568 | 3726 | |
| 3569 | 3727 | @media (min-width: 600px) { |
| 3570 | - .font-library__page-selection .font-library__page-selection-trigger { | |
| 3728 | + .font-library__page-selection .components-select-control__input { | |
| 3571 | 3729 | font-size: 11px !important; |
| 3572 | - font-weight: 499; | |
| 3730 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3573 | 3731 | } |
| 3574 | 3732 | } |
| 3733 | +.font-library__search { | |
| 3734 | + width: 240px; | |
| 3735 | +} | |
| 3736 | + | |
| 3575 | 3737 | .font-library__fonts-title { |
| 3576 | 3738 | text-transform: uppercase; |
| 3577 | 3739 | font-size: 11px; |
| 3578 | - font-weight: 600; | |
| 3740 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3579 | 3741 | margin-top: 0; |
| 3580 | 3742 | margin-bottom: 0; |
| 3581 | 3743 | } |
| 3582 | 3744 | |
| @@ -3590,11 +3752,15 @@ | ||
| 3590 | 3752 | .font-library__fonts-list-item { |
| 3591 | 3753 | margin-bottom: 0; |
| 3592 | 3754 | } |
| 3593 | 3755 | |
| 3756 | +.font-library__font-demo { | |
| 3757 | + position: relative; | |
| 3758 | +} | |
| 3759 | + | |
| 3594 | 3760 | .font-library__font-card { |
| 3595 | 3761 | box-sizing: border-box; |
| 3596 | - border: 1px solid #ddd; | |
| 3762 | + border: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 3597 | 3763 | width: 100%; |
| 3598 | 3764 | height: auto !important; |
| 3599 | 3765 | padding: 16px; |
| 3600 | 3766 | margin-top: -1px; /* To collapse the margin with the previous element */ |
| @@ -3608,13 +3774,13 @@ | ||
| 3608 | 3774 | position: relative; |
| 3609 | 3775 | } |
| 3610 | 3776 | |
| 3611 | 3777 | .font-library__font-card .font-library__font-card__name { |
| 3612 | - font-weight: bold; | |
| 3778 | + font-weight: 700; | |
| 3613 | 3779 | } |
| 3614 | 3780 | |
| 3615 | 3781 | .font-library__font-card .font-library__font-card__count { |
| 3616 | - color: #757575; | |
| 3782 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3617 | 3783 | } |
| 3618 | 3784 | |
| 3619 | 3785 | .font-library__font-card .font-library__font-variant_demo-image { |
| 3620 | 3786 | display: block; |
| @@ -3621,8 +3787,25 @@ | ||
| 3621 | 3787 | height: 24px; |
| 3622 | 3788 | width: auto; |
| 3623 | 3789 | } |
| 3624 | 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 | + right: 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 | + | |
| 3625 | 3808 | .font-library__font-card .font-library__font-variant_demo-text { |
| 3626 | 3809 | white-space: nowrap; |
| 3627 | 3810 | flex-shrink: 0; |
| 3628 | 3811 | } |
| @@ -3634,9 +3817,9 @@ | ||
| 3634 | 3817 | } |
| 3635 | 3818 | .font-library-modal__tablist-container { |
| 3636 | 3819 | position: sticky; |
| 3637 | 3820 | top: 0; |
| 3638 | - border-bottom: 1px solid #ddd; | |
| 3821 | + border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 3639 | 3822 | background: #fff; |
| 3640 | 3823 | z-index: 1; |
| 3641 | 3824 | } |
| 3642 | 3825 | |
| @@ -3657,9 +3840,9 @@ | ||
| 3657 | 3840 | width: 80%; |
| 3658 | 3841 | } |
| 3659 | 3842 | |
| 3660 | 3843 | .font-library__local-fonts .font-library__upload-area__text { |
| 3661 | - color: #757575; | |
| 3844 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3662 | 3845 | } |
| 3663 | 3846 | |
| 3664 | 3847 | .font-library__google-fonts-confirm { |
| 3665 | 3848 | display: flex; |
| @@ -3694,115 +3877,22 @@ | ||
| 3694 | 3877 | .font-library__select-all .components-checkbox-control__label { |
| 3695 | 3878 | padding-right: 16px; |
| 3696 | 3879 | } |
| 3697 | 3880 | |
| 3698 | -.global-styles-ui-pagination .components-button.is-tertiary { | |
| 3699 | - width: 32px; | |
| 3700 | - height: 32px; | |
| 3701 | - justify-content: center; | |
| 3702 | -} | |
| 3703 | - | |
| 3704 | -.global-styles-ui-screen-revisions__revisions-list { | |
| 3705 | - list-style: none; | |
| 3706 | - margin: 0 16px 16px 16px; | |
| 3707 | - flex-grow: 1; | |
| 3708 | -} | |
| 3709 | - | |
| 3710 | -.global-styles-ui-screen-revisions__revisions-list li { | |
| 3711 | - margin-bottom: 0; | |
| 3712 | -} | |
| 3713 | - | |
| 3714 | -.global-styles-ui-screen-revisions__revision-item { | |
| 3715 | - position: relative; | |
| 3716 | - cursor: pointer; | |
| 3881 | +.global-styles-ui-screen-revisions { | |
| 3717 | 3882 | display: flex; |
| 3718 | 3883 | flex-direction: column; |
| 3884 | + flex-grow: 1; | |
| 3885 | + min-height: 0; | |
| 3719 | 3886 | } |
| 3720 | 3887 | |
| 3721 | -.global-styles-ui-screen-revisions__revision-item[role=option]:active, .global-styles-ui-screen-revisions__revision-item[role=option]:focus { | |
| 3722 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 3723 | - outline: 2px solid transparent; | |
| 3888 | +.global-styles-ui-screen-revisions__actions { | |
| 3889 | + margin-inline-start: auto; | |
| 3724 | 3890 | } |
| 3725 | 3891 | |
| 3726 | -.global-styles-ui-screen-revisions__revision-item:hover { | |
| 3727 | - background: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 3728 | -} | |
| 3729 | - | |
| 3730 | -.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date { | |
| 3731 | - color: var(--wp-admin-theme-color); | |
| 3732 | -} | |
| 3733 | - | |
| 3734 | -.global-styles-ui-screen-revisions__revision-item::before, .global-styles-ui-screen-revisions__revision-item::after { | |
| 3735 | - position: absolute; | |
| 3736 | - content: "\a"; | |
| 3737 | - display: block; | |
| 3738 | -} | |
| 3739 | - | |
| 3740 | -.global-styles-ui-screen-revisions__revision-item::before { | |
| 3741 | - background: #ddd; | |
| 3742 | - border-radius: 50%; | |
| 3743 | - height: 8px; | |
| 3744 | - width: 8px; | |
| 3745 | - top: 18px; | |
| 3746 | - right: 17px; | |
| 3747 | - transform: translate(50%, -50%); | |
| 3748 | - z-index: 1; | |
| 3749 | - border: 4px solid transparent; | |
| 3750 | -} | |
| 3751 | - | |
| 3752 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] { | |
| 3753 | - border-radius: 2px; | |
| 3754 | - outline: 3px solid transparent; | |
| 3755 | - outline-offset: -2px; | |
| 3756 | - color: var(--wp-admin-theme-color); | |
| 3757 | - background: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 3758 | -} | |
| 3759 | - | |
| 3760 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date { | |
| 3761 | - color: var(--wp-admin-theme-color); | |
| 3762 | -} | |
| 3763 | - | |
| 3764 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true]::before { | |
| 3765 | - background: var(--wp-admin-theme-color); | |
| 3766 | -} | |
| 3767 | - | |
| 3768 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes > li, | |
| 3769 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta, | |
| 3770 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__applied-text { | |
| 3771 | - color: #1e1e1e; | |
| 3772 | -} | |
| 3773 | - | |
| 3774 | -.global-styles-ui-screen-revisions__revision-item::after { | |
| 3775 | - height: 100%; | |
| 3776 | - right: 16px; | |
| 3777 | - top: 0; | |
| 3778 | - width: 0; | |
| 3779 | - border: 0.5px solid #ddd; | |
| 3780 | -} | |
| 3781 | - | |
| 3782 | -.global-styles-ui-screen-revisions__revision-item:first-child::after { | |
| 3783 | - top: 18px; | |
| 3784 | -} | |
| 3785 | - | |
| 3786 | -.global-styles-ui-screen-revisions__revision-item:last-child::after { | |
| 3787 | - height: 18px; | |
| 3788 | -} | |
| 3789 | - | |
| 3790 | -.global-styles-ui-screen-revisions__revision-item-wrapper { | |
| 3791 | - display: block; | |
| 3792 | - padding: 12px 40px 4px 12px; | |
| 3793 | -} | |
| 3794 | - | |
| 3795 | -.global-styles-ui-screen-revisions__apply-button.is-primary, | |
| 3796 | -.global-styles-ui-screen-revisions__applied-text { | |
| 3797 | - align-self: flex-start; | |
| 3798 | - margin: 4px 40px 12px 12px; | |
| 3799 | -} | |
| 3800 | - | |
| 3801 | -.global-styles-ui-screen-revisions__changes, | |
| 3802 | -.global-styles-ui-screen-revisions__meta, | |
| 3803 | -.global-styles-ui-screen-revisions__applied-text { | |
| 3804 | - color: #757575; | |
| 3892 | +.global-styles-ui-screen-revisions__date { | |
| 3893 | + text-transform: uppercase; | |
| 3894 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3805 | 3895 | font-size: 12px; |
| 3806 | 3896 | } |
| 3807 | 3897 | |
| 3808 | 3898 | .global-styles-ui-screen-revisions__description { |
| @@ -3811,11 +3901,11 @@ | ||
| 3811 | 3901 | align-items: flex-start; |
| 3812 | 3902 | gap: 8px; |
| 3813 | 3903 | } |
| 3814 | 3904 | |
| 3815 | -.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date { | |
| 3816 | - text-transform: uppercase; | |
| 3817 | - font-weight: 600; | |
| 3905 | +.global-styles-ui-screen-revisions__changes, | |
| 3906 | +.global-styles-ui-screen-revisions__meta { | |
| 3907 | + color: #2f2f2f; | |
| 3818 | 3908 | font-size: 12px; |
| 3819 | 3909 | } |
| 3820 | 3910 | |
| 3821 | 3911 | .global-styles-ui-screen-revisions__meta { |
| @@ -3821,11 +3911,10 @@ | ||
| 3821 | 3911 | .global-styles-ui-screen-revisions__meta { |
| 3822 | 3912 | display: flex; |
| 3823 | 3913 | justify-content: start; |
| 3824 | 3914 | width: 100%; |
| 3825 | - align-items: flex-start; | |
| 3915 | + align-items: center; | |
| 3826 | 3916 | text-align: right; |
| 3827 | - margin-bottom: 4px; | |
| 3828 | 3917 | } |
| 3829 | 3918 | |
| 3830 | 3919 | .global-styles-ui-screen-revisions__meta img { |
| 3831 | 3920 | width: 16px; |
| @@ -3833,16 +3922,12 @@ | ||
| 3833 | 3922 | border-radius: 100%; |
| 3834 | 3923 | margin-left: 8px; |
| 3835 | 3924 | } |
| 3836 | 3925 | |
| 3837 | -.global-styles-ui-screen-revisions__loading { | |
| 3838 | - margin: 24px auto !important; | |
| 3839 | -} | |
| 3840 | - | |
| 3841 | 3926 | .global-styles-ui-screen-revisions__changes { |
| 3842 | 3927 | text-align: right; |
| 3843 | 3928 | line-height: 1.4; |
| 3844 | - margin-right: 12px; | |
| 3929 | + margin: 0 12px 0 0; | |
| 3845 | 3930 | list-style: disc; |
| 3846 | 3931 | } |
| 3847 | 3932 | |
| 3848 | 3933 | .global-styles-ui-screen-revisions__changes li { |
| @@ -3848,50 +3933,11 @@ | ||
| 3848 | 3933 | .global-styles-ui-screen-revisions__changes li { |
| 3849 | 3934 | margin-bottom: 4px; |
| 3850 | 3935 | } |
| 3851 | 3936 | |
| 3852 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination { | |
| 3853 | - justify-content: space-between; | |
| 3854 | - gap: 2px; | |
| 3855 | -} | |
| 3856 | - | |
| 3857 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total { | |
| 3858 | - position: absolute; | |
| 3859 | - right: -1000px; | |
| 3860 | - height: 1px; | |
| 3861 | - margin: -1px; | |
| 3862 | - overflow: hidden; | |
| 3863 | -} | |
| 3864 | - | |
| 3865 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text { | |
| 3866 | - font-size: 12px; | |
| 3867 | - will-change: opacity; | |
| 3868 | -} | |
| 3869 | - | |
| 3870 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary { | |
| 3871 | - color: #1e1e1e; | |
| 3872 | -} | |
| 3873 | - | |
| 3874 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled, | |
| 3875 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true] { | |
| 3876 | - color: #949494; | |
| 3877 | -} | |
| 3878 | - | |
| 3879 | -.global-styles-ui-screen-revisions__footer { | |
| 3880 | - height: 56px; | |
| 3881 | - z-index: 1; | |
| 3882 | - position: sticky; | |
| 3883 | - min-width: 100%; | |
| 3884 | - bottom: 0; | |
| 3885 | - background: #fff; | |
| 3886 | - padding: 12px; | |
| 3887 | - border-top: 1px solid #ddd; | |
| 3888 | - box-sizing: border-box; | |
| 3889 | -} | |
| 3890 | - | |
| 3891 | 3937 | .global-styles-ui-variations_item { |
| 3892 | 3938 | box-sizing: border-box; |
| 3893 | - cursor: pointer; | |
| 3939 | + cursor: var(--wpds-cursor-control, pointer); | |
| 3894 | 3940 | } |
| 3895 | 3941 | |
| 3896 | 3942 | .global-styles-ui-variations_item .global-styles-ui-variations_item-preview { |
| 3897 | 3943 | border-radius: 2px; |
| @@ -3927,16 +3973,8 @@ | ||
| 3927 | 3973 | .global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview { |
| 3928 | 3974 | outline-color: var(--wp-admin-theme-color); |
| 3929 | 3975 | } |
| 3930 | 3976 | |
| 3931 | -.global-styles-ui-preview { | |
| 3932 | - display: flex; | |
| 3933 | - align-items: center; | |
| 3934 | - justify-content: center; | |
| 3935 | - line-height: 1; | |
| 3936 | - cursor: pointer; | |
| 3937 | -} | |
| 3938 | - | |
| 3939 | 3977 | .global-styles-ui-preview__wrapper { |
| 3940 | 3978 | max-width: 100%; |
| 3941 | 3979 | display: block; |
| 3942 | 3980 | width: 100%; |
| @@ -3941,8 +3979,12 @@ | ||
| 3941 | 3979 | display: block; |
| 3942 | 3980 | width: 100%; |
| 3943 | 3981 | } |
| 3944 | 3982 | |
| 3983 | +.global-styles-ui-preview__wrapper.is-hoverable { | |
| 3984 | + cursor: var(--wpds-cursor-control, pointer); | |
| 3985 | +} | |
| 3986 | + | |
| 3945 | 3987 | .global-styles-ui-typography-preview { |
| 3946 | 3988 | display: flex; |
| 3947 | 3989 | align-items: center; |
| 3948 | 3990 | justify-content: center; |
| @@ -3973,13 +4015,34 @@ | ||
| 3973 | 4015 | justify-content: center; |
| 3974 | 4016 | border-radius: 2px; |
| 3975 | 4017 | } |
| 3976 | 4018 | |
| 4019 | +.global-styles-ui-block-types-filter { | |
| 4020 | + margin-bottom: 12px; | |
| 4021 | + padding: 0 16px; | |
| 4022 | +} | |
| 4023 | + | |
| 3977 | 4024 | .global-styles-ui-block-types-search { |
| 3978 | - margin-bottom: 10px; | |
| 3979 | - padding: 0 16px; | |
| 4025 | + flex-grow: 1; | |
| 3980 | 4026 | } |
| 3981 | 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-right: auto; | |
| 4042 | + width: 6px; | |
| 4043 | +} | |
| 4044 | + | |
| 3982 | 4045 | .global-styles-ui-screen-typography__font-variants-count { |
| 3983 | 4046 | color: #757575; |
| 3984 | 4047 | } |
| 3985 | 4048 | |
| @@ -3996,20 +4059,21 @@ | ||
| 3996 | 4059 | } |
| 3997 | 4060 | |
| 3998 | 4061 | .global-styles-ui-header { |
| 3999 | 4062 | margin-bottom: 0 !important; |
| 4063 | + line-height: 1.9 !important; | |
| 4000 | 4064 | } |
| 4001 | 4065 | |
| 4002 | 4066 | .global-styles-ui-subtitle { |
| 4003 | 4067 | margin-bottom: 0 !important; |
| 4004 | 4068 | text-transform: uppercase; |
| 4005 | - font-weight: 499 !important; | |
| 4069 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600) !important; | |
| 4006 | 4070 | font-size: 11px !important; |
| 4007 | 4071 | } |
| 4008 | 4072 | |
| 4009 | 4073 | .global-styles-ui-section-title { |
| 4010 | 4074 | color: #2f2f2f; |
| 4011 | - font-weight: 600; | |
| 4075 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 4012 | 4076 | line-height: 1.2; |
| 4013 | 4077 | padding: 16px 16px 0; |
| 4014 | 4078 | margin: 0; |
| 4015 | 4079 | } |
| @@ -4020,10 +4084,20 @@ | ||
| 4020 | 4084 | |
| 4021 | 4085 | .global-styles-ui__color-indicator-wrapper { |
| 4022 | 4086 | height: 24px; |
| 4023 | 4087 | flex-shrink: 0; |
| 4088 | + display: flex; | |
| 4089 | + align-items: center; | |
| 4024 | 4090 | } |
| 4025 | 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 | + | |
| 4026 | 4100 | .global-styles-ui__shadows-panel__options-container, |
| 4027 | 4101 | .global-styles-ui__typography-panel__options-container { |
| 4028 | 4102 | height: 24px; |
| 4029 | 4103 | } |
| @@ -4035,9 +4109,10 @@ | ||
| 4035 | 4109 | border-radius: 2px; |
| 4036 | 4110 | overflow: hidden; |
| 4037 | 4111 | } |
| 4038 | 4112 | |
| 4039 | -.global-styles-ui__shadow-preview-panel { | |
| 4113 | +.global-styles-ui__shadow-preview-panel, | |
| 4114 | +.global-styles-ui__text-shadow-preview-panel { | |
| 4040 | 4115 | height: 144px; |
| 4041 | 4116 | border: #ddd 1px solid; |
| 4042 | 4117 | border-radius: 2px; |
| 4043 | 4118 | overflow: auto; |
| @@ -4045,9 +4120,9 @@ | ||
| 4045 | 4120 | background-position: 0 0, 8px 8px; |
| 4046 | 4121 | background-size: 16px 16px; |
| 4047 | 4122 | } |
| 4048 | 4123 | |
| 4049 | -.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block { | |
| 4124 | +.global-styles-ui__shadow-preview-block { | |
| 4050 | 4125 | border: #ddd 1px solid; |
| 4051 | 4126 | border-radius: 2px; |
| 4052 | 4127 | background-color: #fff; |
| 4053 | 4128 | width: 60%; |
| @@ -4053,22 +4128,44 @@ | ||
| 4053 | 4128 | width: 60%; |
| 4054 | 4129 | height: 60px; |
| 4055 | 4130 | } |
| 4056 | 4131 | |
| 4057 | -.global-styles-ui__shadow-editor__dropdown-content { | |
| 4132 | +.global-styles-ui__text-shadow-preview-panel { | |
| 4133 | + margin-block: -8px 16px; | |
| 4134 | +} | |
| 4135 | + | |
| 4136 | +.global-styles-ui__text-shadow-preview-text { | |
| 4137 | + font-size: 24px; | |
| 4138 | +} | |
| 4139 | + | |
| 4140 | +.global-styles-ui__text-shadow-editor__header { | |
| 4141 | + margin-block-end: 8px; | |
| 4142 | +} | |
| 4143 | + | |
| 4144 | +.global-styles-ui__text-shadow-editor__inputs { | |
| 4145 | + display: grid; | |
| 4146 | + grid-template-columns: repeat(2, 1fr); | |
| 4147 | + gap: 16px; | |
| 4148 | +} | |
| 4149 | + | |
| 4150 | +.global-styles-ui__shadow-editor__dropdown-content, | |
| 4151 | +.global-styles-ui__text-shadow-editor__dropdown-content { | |
| 4058 | 4152 | width: 280px; |
| 4059 | 4153 | } |
| 4060 | 4154 | |
| 4061 | -.global-styles-ui__shadow-editor-panel { | |
| 4155 | +.global-styles-ui__shadow-editor-panel, | |
| 4156 | +.global-styles-ui__text-shadow-editor-panel { | |
| 4062 | 4157 | margin-bottom: 4px; |
| 4063 | 4158 | } |
| 4064 | 4159 | |
| 4065 | -.global-styles-ui__shadow-editor__dropdown { | |
| 4160 | +.global-styles-ui__shadow-editor__dropdown, | |
| 4161 | +.global-styles-ui__text-shadow-editor__dropdown { | |
| 4066 | 4162 | width: 100%; |
| 4067 | 4163 | position: relative; |
| 4068 | 4164 | } |
| 4069 | 4165 | |
| 4070 | -.global-styles-ui__shadow-editor__dropdown-toggle { | |
| 4166 | +.global-styles-ui__shadow-editor__dropdown-toggle, | |
| 4167 | +.global-styles-ui__text-shadow-editor__dropdown-toggle { | |
| 4071 | 4168 | width: 100%; |
| 4072 | 4169 | height: auto; |
| 4073 | 4170 | padding-top: 8px; |
| 4074 | 4171 | padding-bottom: 8px; |
| @@ -4075,14 +4172,16 @@ | ||
| 4075 | 4172 | text-align: right; |
| 4076 | 4173 | border-radius: inherit; |
| 4077 | 4174 | } |
| 4078 | 4175 | |
| 4079 | -.global-styles-ui__shadow-editor__dropdown-toggle.is-open { | |
| 4176 | +.global-styles-ui__shadow-editor__dropdown-toggle.is-open, | |
| 4177 | +.global-styles-ui__text-shadow-editor__dropdown-toggle.is-open { | |
| 4080 | 4178 | background: #f0f0f0; |
| 4081 | 4179 | color: var(--wp-admin-theme-color); |
| 4082 | 4180 | } |
| 4083 | 4181 | |
| 4084 | -.global-styles-ui__shadow-editor__remove-button { | |
| 4182 | +.global-styles-ui__shadow-editor__remove-button, | |
| 4183 | +.global-styles-ui__text-shadow-editor__remove-button { | |
| 4085 | 4184 | position: absolute; |
| 4086 | 4185 | left: 8px; |
| 4087 | 4186 | top: 8px; |
| 4088 | 4187 | opacity: 0; |
| @@ -4087,18 +4186,19 @@ | ||
| 4087 | 4186 | top: 8px; |
| 4088 | 4187 | opacity: 0; |
| 4089 | 4188 | } |
| 4090 | 4189 | |
| 4091 | -.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button { | |
| 4092 | - border: none; | |
| 4093 | -} | |
| 4094 | - | |
| 4095 | -.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 { | |
| 4190 | +.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, | |
| 4191 | +.global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__text-shadow-editor__remove-button, | |
| 4192 | +.global-styles-ui__text-shadow-editor__dropdown-toggle:hover + .global-styles-ui__text-shadow-editor__remove-button, | |
| 4193 | +.global-styles-ui__text-shadow-editor__remove-button:focus, | |
| 4194 | +.global-styles-ui__text-shadow-editor__remove-button:hover { | |
| 4096 | 4195 | opacity: 1; |
| 4097 | 4196 | } |
| 4098 | 4197 | |
| 4099 | 4198 | @media (hover: none) { |
| 4100 | - .global-styles-ui__shadow-editor__remove-button { | |
| 4199 | + .global-styles-ui__shadow-editor__remove-button, | |
| 4200 | + .global-styles-ui__text-shadow-editor__remove-button { | |
| 4101 | 4201 | opacity: 1; |
| 4102 | 4202 | } |
| 4103 | 4203 | } |
| 4104 | 4204 | .global-styles-ui-screen-css { |
| @@ -4107,27 +4207,26 @@ | ||
| 4107 | 4207 | flex-direction: column; |
| 4108 | 4208 | margin: 16px; |
| 4109 | 4209 | } |
| 4110 | 4210 | |
| 4111 | -.global-styles-ui-screen-css .components-v-stack { | |
| 4211 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel { | |
| 4112 | 4212 | flex: 1 1 auto; |
| 4113 | 4213 | } |
| 4114 | 4214 | |
| 4115 | -.global-styles-ui-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input { | |
| 4215 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input { | |
| 4116 | 4216 | flex: 1 1 auto; |
| 4117 | 4217 | display: flex; |
| 4118 | 4218 | flex-direction: column; |
| 4119 | 4219 | } |
| 4120 | 4220 | |
| 4121 | -.global-styles-ui-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field { | |
| 4221 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field { | |
| 4122 | 4222 | flex: 1 1 auto; |
| 4123 | 4223 | display: flex; |
| 4124 | 4224 | flex-direction: column; |
| 4125 | 4225 | } |
| 4126 | 4226 | |
| 4127 | -.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 { | |
| 4227 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea { | |
| 4128 | 4228 | flex: 1 1 auto; |
| 4129 | - direction: ltr; | |
| 4130 | 4229 | } |
| 4131 | 4230 | |
| 4132 | 4231 | .global-styles-ui-screen-css-help-link { |
| 4133 | 4232 | display: inline-block; |
| @@ -4152,8 +4251,16 @@ | ||
| 4152 | 4251 | flex-direction: column; |
| 4153 | 4252 | height: 100%; |
| 4154 | 4253 | } |
| 4155 | 4254 | |
| 4255 | +.global-styles-ui-color-palette__tablist-container { | |
| 4256 | + border-bottom: 1px solid #ddd; | |
| 4257 | +} | |
| 4258 | + | |
| 4259 | +.global-styles-ui-color-palette__tablist { | |
| 4260 | + margin-bottom: -1px; | |
| 4261 | +} | |
| 4262 | + | |
| 4156 | 4263 | .global-styles-ui-sidebar__navigator-screen .single-column { |
| 4157 | 4264 | grid-column: span 1; |
| 4158 | 4265 | } |
| 4159 | 4266 | |
| @@ -4175,9 +4282,10 @@ | ||
| 4175 | 4282 | clip-path: border-box; |
| 4176 | 4283 | } |
| 4177 | 4284 | |
| 4178 | 4285 | .global-styles-ui-color-palette-panel, |
| 4179 | -.global-styles-ui-gradient-palette-panel { | |
| 4286 | +.global-styles-ui-gradient-palette-panel, | |
| 4287 | +.global-styles-ui-duotone-palette-panel { | |
| 4180 | 4288 | padding: 16px; |
| 4181 | 4289 | } |
| 4182 | 4290 | |
| 4183 | 4291 | .edit-site-custom-template-modal__contents-wrapper { |
| @@ -4186,13 +4294,8 @@ | ||
| 4186 | 4294 | } |
| 4187 | 4295 | .edit-site-custom-template-modal__contents-wrapper > * { |
| 4188 | 4296 | width: 100%; |
| 4189 | 4297 | } |
| 4190 | -.edit-site-custom-template-modal__contents-wrapper__suggestions_list { | |
| 4191 | - margin-right: -12px; | |
| 4192 | - margin-left: -12px; | |
| 4193 | - width: calc(100% + 24px); | |
| 4194 | -} | |
| 4195 | 4298 | .edit-site-custom-template-modal__contents > .components-button { |
| 4196 | 4299 | height: auto; |
| 4197 | 4300 | justify-content: center; |
| 4198 | 4301 | } |
| @@ -4202,10 +4305,14 @@ | ||
| 4202 | 4305 | } |
| 4203 | 4306 | } |
| 4204 | 4307 | @media (min-width: 600px) { |
| 4205 | 4308 | .edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list { |
| 4206 | - max-height: 224px; | |
| 4207 | 4309 | overflow-y: auto; |
| 4310 | + max-height: calc(224px + 4 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4311 | + padding: calc(2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4312 | + margin-inline: calc(-2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4313 | + width: calc(100% + 4 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4314 | + scroll-padding-block: calc(2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4208 | 4315 | } |
| 4209 | 4316 | } |
| 4210 | 4317 | .edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item { |
| 4211 | 4318 | display: block; |
| @@ -4231,11 +4338,8 @@ | ||
| 4231 | 4338 | } |
| 4232 | 4339 | .edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus { |
| 4233 | 4340 | background-color: #f0f0f0; |
| 4234 | 4341 | } |
| 4235 | -.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled) { | |
| 4236 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset; | |
| 4237 | -} | |
| 4238 | 4342 | .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 { |
| 4239 | 4343 | overflow: hidden; |
| 4240 | 4344 | text-overflow: ellipsis; |
| 4241 | 4345 | display: block; |
| @@ -4267,14 +4371,10 @@ | ||
| 4267 | 4371 | } |
| 4268 | 4372 | } |
| 4269 | 4373 | .edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg, |
| 4270 | 4374 | .edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg { |
| 4271 | - fill: var(--wp-admin-theme-color); | |
| 4375 | + color: var(--wp-admin-theme-color); | |
| 4272 | 4376 | } |
| 4273 | -.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name { | |
| 4274 | - flex-grow: 1; | |
| 4275 | - align-items: flex-start; | |
| 4276 | -} | |
| 4277 | 4377 | .edit-site-add-new-template__modal .edit-site-add-new-template__template-icon { |
| 4278 | 4378 | padding: 8px; |
| 4279 | 4379 | background: rgba(var(--wp-admin-theme-color--rgb), 0.04); |
| 4280 | 4380 | border-radius: 100%; |
| @@ -4288,9 +4388,8 @@ | ||
| 4288 | 4388 | display: flex; |
| 4289 | 4389 | flex-direction: column; |
| 4290 | 4390 | border: 1px solid #ddd; |
| 4291 | 4391 | justify-content: center; |
| 4292 | - outline: 1px solid transparent; | |
| 4293 | 4392 | } |
| 4294 | 4393 | .edit-site-custom-template-modal__contents > .components-button span:first-child, |
| 4295 | 4394 | .edit-site-add-new-template__template-list__contents > .components-button span:first-child { |
| 4296 | 4395 | color: #1e1e1e; |
| @@ -4308,14 +4407,8 @@ | ||
| 4308 | 4407 | .edit-site-custom-template-modal__contents > .components-button:hover span, |
| 4309 | 4408 | .edit-site-add-new-template__template-list__contents > .components-button:hover span { |
| 4310 | 4409 | color: var(--wp-admin-theme-color); |
| 4311 | 4410 | } |
| 4312 | -.edit-site-custom-template-modal__contents > .components-button:focus, | |
| 4313 | -.edit-site-add-new-template__template-list__contents > .components-button:focus { | |
| 4314 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 4315 | - border-color: transparent; | |
| 4316 | - outline: 3px solid transparent; | |
| 4317 | -} | |
| 4318 | 4411 | .edit-site-custom-template-modal__contents > .components-button:focus span:first-child, |
| 4319 | 4412 | .edit-site-add-new-template__template-list__contents > .components-button:focus span:first-child { |
| 4320 | 4413 | color: var(--wp-admin-theme-color); |
| 4321 | 4414 | } |
| @@ -4327,10 +4420,12 @@ | ||
| 4327 | 4420 | } |
| 4328 | 4421 | |
| 4329 | 4422 | .edit-site-add-new-template__template-list__contents > .components-button { |
| 4330 | 4423 | height: 100%; |
| 4424 | + padding: 16px; | |
| 4331 | 4425 | text-align: start; |
| 4332 | 4426 | align-items: flex-start; |
| 4427 | + justify-content: flex-start; | |
| 4333 | 4428 | } |
| 4334 | 4429 | |
| 4335 | 4430 | .edit-site-visual-editor__editor-canvas.is-focused { |
| 4336 | 4431 | outline: calc(2 * var(--wp-admin-border-width-focus)) solid var(--wp-admin-theme-color); |
| @@ -4337,8 +4432,9 @@ | ||
| 4337 | 4432 | outline-offset: calc(-2 * var(--wp-admin-border-width-focus)); |
| 4338 | 4433 | } |
| 4339 | 4434 | |
| 4340 | 4435 | .edit-site-canvas-loader { |
| 4436 | + --wp-components-color-foreground: var(--color); | |
| 4341 | 4437 | width: 100%; |
| 4342 | 4438 | height: 100%; |
| 4343 | 4439 | display: flex; |
| 4344 | 4440 | position: absolute; |
| @@ -4353,11 +4449,8 @@ | ||
| 4353 | 4449 | animation: 0.5s ease 0.2s edit-site-canvas-loader__fade-in-animation; |
| 4354 | 4450 | animation-fill-mode: forwards; |
| 4355 | 4451 | } |
| 4356 | 4452 | } |
| 4357 | -.edit-site-canvas-loader > div { | |
| 4358 | - width: 160px; | |
| 4359 | -} | |
| 4360 | 4453 | |
| 4361 | 4454 | @keyframes edit-site-canvas-loader__fade-in-animation { |
| 4362 | 4455 | from { |
| 4363 | 4456 | opacity: 0; |
| @@ -4421,11 +4514,12 @@ | ||
| 4421 | 4514 | .edit-site-patterns__section-header .screen-reader-shortcut:focus { |
| 4422 | 4515 | top: 0; |
| 4423 | 4516 | } |
| 4424 | 4517 | |
| 4425 | -.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully) { | |
| 4518 | +.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully) { | |
| 4426 | 4519 | background: rgba(var(--wp-block-synced-color--rgb), 0.04); |
| 4427 | 4520 | color: var(--wp-block-synced-color); |
| 4521 | + border-color: currentColor; | |
| 4428 | 4522 | } |
| 4429 | 4523 | |
| 4430 | 4524 | .dataviews-action-modal__duplicate-pattern [role=dialog] > [role=document] { |
| 4431 | 4525 | width: 350px; |
| @@ -4440,9 +4534,9 @@ | ||
| 4440 | 4534 | border-bottom-left-radius: 2px; |
| 4441 | 4535 | box-shadow: 0 0 0.5px 0.5px var(--wp-admin-theme-color); |
| 4442 | 4536 | box-sizing: border-box; |
| 4443 | 4537 | z-index: 1; |
| 4444 | - background-color: #fff; | |
| 4538 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 4445 | 4539 | width: calc(100% + 2px); |
| 4446 | 4540 | right: -1px; |
| 4447 | 4541 | min-width: initial; |
| 4448 | 4542 | max-height: 96px; |
| @@ -4459,8 +4553,20 @@ | ||
| 4459 | 4553 | padding-right: 24px; |
| 4460 | 4554 | padding-left: 24px; |
| 4461 | 4555 | } |
| 4462 | 4556 | } |
| 4557 | +.show-icon-labels .edit-site-patterns__button.has-icon { | |
| 4558 | + width: auto; | |
| 4559 | + padding: 0 var(--wpds-dimension-padding-xs, 4px); | |
| 4560 | +} | |
| 4561 | +.show-icon-labels .edit-site-patterns__button.has-icon svg { | |
| 4562 | + display: none; | |
| 4563 | +} | |
| 4564 | +.show-icon-labels .edit-site-patterns__button.has-icon::after { | |
| 4565 | + content: attr(aria-label); | |
| 4566 | + font-size: var(--wpds-typography-font-size-sm, 12px); | |
| 4567 | +} | |
| 4568 | + | |
| 4463 | 4569 | .page-templates-preview-field { |
| 4464 | 4570 | display: flex; |
| 4465 | 4571 | justify-content: center; |
| 4466 | 4572 | align-items: center; |
| @@ -4482,20 +4588,11 @@ | ||
| 4482 | 4588 | text-wrap: balance; |
| 4483 | 4589 | text-wrap: pretty; |
| 4484 | 4590 | } |
| 4485 | 4591 | |
| 4486 | -.edit-site-page-templates .dataviews-pagination { | |
| 4487 | - z-index: 2; | |
| 4488 | -} | |
| 4489 | - | |
| 4490 | 4592 | .edit-site-list__rename-modal { |
| 4491 | 4593 | z-index: 1000001; |
| 4492 | 4594 | } |
| 4493 | -@media (min-width: 782px) { | |
| 4494 | - .edit-site-list__rename-modal .components-base-control { | |
| 4495 | - width: 320px; | |
| 4496 | - } | |
| 4497 | -} | |
| 4498 | 4595 | |
| 4499 | 4596 | .edit-site-editor__editor-interface { |
| 4500 | 4597 | opacity: 1; |
| 4501 | 4598 | } |
| @@ -4517,61 +4614,8 @@ | ||
| 4517 | 4614 | display: flex; |
| 4518 | 4615 | justify-content: center; |
| 4519 | 4616 | } |
| 4520 | 4617 | |
| 4521 | -.edit-site-editor__view-mode-toggle { | |
| 4522 | - /* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */ | |
| 4523 | - view-transition-name: toggle; | |
| 4524 | - /* stylelint-enable */ | |
| 4525 | - top: 0; | |
| 4526 | - right: 0; | |
| 4527 | - height: 64px; | |
| 4528 | - width: 64px; | |
| 4529 | - z-index: 100; | |
| 4530 | -} | |
| 4531 | -.edit-site-editor__view-mode-toggle .components-button { | |
| 4532 | - color: #fff; | |
| 4533 | - height: 100%; | |
| 4534 | - width: 100%; | |
| 4535 | - border-radius: 0; | |
| 4536 | - overflow: hidden; | |
| 4537 | - padding: 0; | |
| 4538 | - display: flex; | |
| 4539 | - align-items: center; | |
| 4540 | - justify-content: center; | |
| 4541 | -} | |
| 4542 | -.edit-site-editor__view-mode-toggle .components-button:hover, .edit-site-editor__view-mode-toggle .components-button:active { | |
| 4543 | - color: #fff; | |
| 4544 | -} | |
| 4545 | -.edit-site-editor__view-mode-toggle .components-button:focus { | |
| 4546 | - box-shadow: none; | |
| 4547 | -} | |
| 4548 | -.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon svg, | |
| 4549 | -.edit-site-editor__view-mode-toggle .edit-site-editor__view-mode-toggle-icon img { | |
| 4550 | - background: #1e1e1e; | |
| 4551 | - display: block; | |
| 4552 | -} | |
| 4553 | - | |
| 4554 | -.edit-site-editor__back-icon { | |
| 4555 | - position: absolute; | |
| 4556 | - top: 0; | |
| 4557 | - right: 0; | |
| 4558 | - width: 64px; | |
| 4559 | - height: 64px; | |
| 4560 | - display: flex; | |
| 4561 | - align-items: center; | |
| 4562 | - justify-content: center; | |
| 4563 | - background-color: hsl(0, 0%, 80%); | |
| 4564 | - pointer-events: none; | |
| 4565 | -} | |
| 4566 | -.edit-site-editor__back-icon svg { | |
| 4567 | - fill: currentColor; | |
| 4568 | -} | |
| 4569 | -.edit-site-editor__back-icon.has-site-icon { | |
| 4570 | - background-color: hsla(0, 0%, 100%, 0.6); | |
| 4571 | - backdrop-filter: saturate(180%) blur(15px); | |
| 4572 | -} | |
| 4573 | - | |
| 4574 | 4618 | .edit-site-welcome-guide { |
| 4575 | 4619 | width: 312px; |
| 4576 | 4620 | } |
| 4577 | 4621 | .edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image { |
| @@ -4593,9 +4637,9 @@ | ||
| 4593 | 4637 | max-width: 100%; |
| 4594 | 4638 | object-fit: cover; |
| 4595 | 4639 | } |
| 4596 | 4640 | .edit-site-welcome-guide__heading { |
| 4597 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 4641 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 4598 | 4642 | font-size: 24px; |
| 4599 | 4643 | line-height: 1.4; |
| 4600 | 4644 | margin: 16px 0 16px 0; |
| 4601 | 4645 | padding: 0 32px; |
| @@ -4613,24 +4657,25 @@ | ||
| 4613 | 4657 | margin: 0 4px; |
| 4614 | 4658 | vertical-align: text-top; |
| 4615 | 4659 | } |
| 4616 | 4660 | .edit-site-welcome-guide .components-button:hover svg { |
| 4617 | - fill: #fff; | |
| 4661 | + color: #fff; | |
| 4618 | 4662 | } |
| 4619 | 4663 | |
| 4620 | 4664 | .edit-site-layout { |
| 4621 | 4665 | height: 100%; |
| 4622 | - background: #1e1e1e; | |
| 4623 | - color: #ccc; | |
| 4666 | + background: var(--wpds-color-background-surface-neutral-weak, #f4f4f4); | |
| 4667 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 4624 | 4668 | display: flex; |
| 4625 | 4669 | flex-direction: column; |
| 4626 | 4670 | } |
| 4627 | 4671 | .edit-site-layout:not(.is-full-canvas) .editor-visual-editor { |
| 4628 | - background: #1e1e1e; | |
| 4672 | + background: var(--wpds-color-background-surface-neutral-weak, #f4f4f4); | |
| 4629 | 4673 | } |
| 4630 | 4674 | |
| 4631 | 4675 | .edit-site-layout__content { |
| 4632 | 4676 | height: 100%; |
| 4677 | + min-height: 0; | |
| 4633 | 4678 | flex-grow: 1; |
| 4634 | 4679 | display: flex; |
| 4635 | 4680 | } |
| 4636 | 4681 | |
| @@ -4645,16 +4690,17 @@ | ||
| 4645 | 4690 | } |
| 4646 | 4691 | } |
| 4647 | 4692 | .edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region { |
| 4648 | 4693 | position: fixed !important; |
| 4649 | - height: 100vh; | |
| 4694 | + height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); | |
| 4650 | 4695 | right: 0; |
| 4651 | - top: 0; | |
| 4696 | + top: var(--wp-admin--admin-bar--height, 0); | |
| 4652 | 4697 | } |
| 4653 | 4698 | .edit-site-layout__sidebar-region .edit-site-layout__sidebar { |
| 4654 | 4699 | display: flex; |
| 4655 | 4700 | flex-direction: column; |
| 4656 | 4701 | height: 100%; |
| 4702 | + min-height: 0; | |
| 4657 | 4703 | } |
| 4658 | 4704 | .edit-site-layout__sidebar-region .resizable-editor__drag-handle { |
| 4659 | 4705 | left: 0; |
| 4660 | 4706 | } |
| @@ -4687,8 +4733,18 @@ | ||
| 4687 | 4733 | .edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main { |
| 4688 | 4734 | padding: 0 12px; |
| 4689 | 4735 | } |
| 4690 | 4736 | |
| 4737 | +.edit-site-layout__mobile-content { | |
| 4738 | + display: flex; | |
| 4739 | + flex-direction: column; | |
| 4740 | + flex-grow: 1; | |
| 4741 | +} | |
| 4742 | + | |
| 4743 | +.edit-site-sidebar__screen-wrapper:has(.edit-site-layout__mobile-content) { | |
| 4744 | + background: var(--wpds-color-background-surface-neutral, #fcfcfc); | |
| 4745 | +} | |
| 4746 | + | |
| 4691 | 4747 | .edit-site-layout__canvas-container { |
| 4692 | 4748 | position: relative; |
| 4693 | 4749 | flex-grow: 1; |
| 4694 | 4750 | z-index: 2; |
| @@ -4693,17 +4749,8 @@ | ||
| 4693 | 4749 | flex-grow: 1; |
| 4694 | 4750 | z-index: 2; |
| 4695 | 4751 | overflow: visible; |
| 4696 | 4752 | } |
| 4697 | -.edit-site-layout__canvas-container.is-resizing::after { | |
| 4698 | - position: absolute; | |
| 4699 | - top: 0; | |
| 4700 | - right: 0; | |
| 4701 | - left: 0; | |
| 4702 | - bottom: 0; | |
| 4703 | - content: ""; | |
| 4704 | - z-index: 100; | |
| 4705 | -} | |
| 4706 | 4753 | |
| 4707 | 4754 | .edit-site-layout__canvas { |
| 4708 | 4755 | position: absolute; |
| 4709 | 4756 | top: 0; |
| @@ -4717,9 +4764,9 @@ | ||
| 4717 | 4764 | .edit-site-layout__canvas.is-right-aligned { |
| 4718 | 4765 | justify-content: flex-end; |
| 4719 | 4766 | } |
| 4720 | 4767 | .edit-site-layout__canvas .edit-site-resizable-frame__inner { |
| 4721 | - color: #1e1e1e; | |
| 4768 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 4722 | 4769 | } |
| 4723 | 4770 | @media (min-width: 782px) { |
| 4724 | 4771 | .edit-site-layout__canvas { |
| 4725 | 4772 | top: 16px; |
| @@ -4737,9 +4784,9 @@ | ||
| 4737 | 4784 | } |
| 4738 | 4785 | } |
| 4739 | 4786 | @media (min-width: 782px) { |
| 4740 | 4787 | .edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content { |
| 4741 | - border-radius: 8px; | |
| 4788 | + border-radius: var(--wpds-border-radius-xl, 12px); | |
| 4742 | 4789 | } |
| 4743 | 4790 | .edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover { |
| 4744 | 4791 | 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); |
| 4745 | 4792 | } |
| @@ -4760,9 +4807,8 @@ | ||
| 4760 | 4807 | .edit-site-template-pages-preview { |
| 4761 | 4808 | height: 100%; |
| 4762 | 4809 | } |
| 4763 | 4810 | |
| 4764 | -/* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */ | |
| 4765 | 4811 | html.canvas-mode-edit-transition::view-transition-group(toggle) { |
| 4766 | 4812 | animation-delay: 255ms; |
| 4767 | 4813 | } |
| 4768 | 4814 | |
| @@ -4772,61 +4818,8 @@ | ||
| 4772 | 4818 | ::view-transition-new(*) { |
| 4773 | 4819 | animation: none !important; |
| 4774 | 4820 | } |
| 4775 | 4821 | } |
| 4776 | -/* stylelint-enable */ | |
| 4777 | -.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region .edit-site-layout__view-mode-toggle { | |
| 4778 | - display: none; | |
| 4779 | -} | |
| 4780 | - | |
| 4781 | -.edit-site-layout__view-mode-toggle.components-button { | |
| 4782 | - /* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */ | |
| 4783 | - view-transition-name: toggle; | |
| 4784 | - /* stylelint-enable */ | |
| 4785 | - position: relative; | |
| 4786 | - color: #fff; | |
| 4787 | - height: 64px; | |
| 4788 | - width: 64px; | |
| 4789 | - overflow: hidden; | |
| 4790 | - padding: 0; | |
| 4791 | - display: flex; | |
| 4792 | - align-items: center; | |
| 4793 | - justify-content: center; | |
| 4794 | - background: #1e1e1e; | |
| 4795 | - border-radius: 0; | |
| 4796 | -} | |
| 4797 | -.edit-site-layout__view-mode-toggle.components-button:hover, .edit-site-layout__view-mode-toggle.components-button:active { | |
| 4798 | - color: #fff; | |
| 4799 | -} | |
| 4800 | -.edit-site-layout__view-mode-toggle.components-button:focus-visible, .edit-site-layout__view-mode-toggle.components-button:focus { | |
| 4801 | - box-shadow: 0 0 0 3px #1e1e1e, 0 0 0 6px var(--wp-admin-theme-color); | |
| 4802 | - outline: 4px solid rgba(0, 0, 0, 0); | |
| 4803 | - outline-offset: 4px; | |
| 4804 | -} | |
| 4805 | -.edit-site-layout__view-mode-toggle.components-button::before { | |
| 4806 | - content: ""; | |
| 4807 | - display: block; | |
| 4808 | - position: absolute; | |
| 4809 | - top: 9px; | |
| 4810 | - left: 9px; | |
| 4811 | - bottom: 9px; | |
| 4812 | - right: 17px; | |
| 4813 | - border-radius: 4px; | |
| 4814 | - box-shadow: none; | |
| 4815 | -} | |
| 4816 | -@media not (prefers-reduced-motion) { | |
| 4817 | - .edit-site-layout__view-mode-toggle.components-button::before { | |
| 4818 | - transition: box-shadow 0.1s ease; | |
| 4819 | - } | |
| 4820 | -} | |
| 4821 | -.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon { | |
| 4822 | - display: flex; | |
| 4823 | - height: 64px; | |
| 4824 | - width: 64px; | |
| 4825 | - justify-content: center; | |
| 4826 | - align-items: center; | |
| 4827 | -} | |
| 4828 | - | |
| 4829 | 4822 | .edit-site-layout__actions { |
| 4830 | 4823 | z-index: 100000; |
| 4831 | 4824 | position: fixed !important; |
| 4832 | 4825 | top: -9999em; |
| @@ -4833,10 +4826,10 @@ | ||
| 4833 | 4826 | bottom: auto; |
| 4834 | 4827 | right: auto; |
| 4835 | 4828 | left: 0; |
| 4836 | 4829 | width: 280px; |
| 4837 | - color: #1e1e1e; | |
| 4838 | - background: #fff; | |
| 4830 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 4831 | + background: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 4839 | 4832 | } |
| 4840 | 4833 | .edit-site-layout__actions:focus, .edit-site-layout__actions:focus-within { |
| 4841 | 4834 | top: auto; |
| 4842 | 4835 | bottom: 0; |
| @@ -4841,13 +4834,13 @@ | ||
| 4841 | 4834 | top: auto; |
| 4842 | 4835 | bottom: 0; |
| 4843 | 4836 | } |
| 4844 | 4837 | .edit-site-layout__actions.is-entity-save-view-open:focus, .edit-site-layout__actions.is-entity-save-view-open:focus-within { |
| 4845 | - top: 0; | |
| 4838 | + top: var(--wp-admin--admin-bar--height, 0); | |
| 4846 | 4839 | } |
| 4847 | 4840 | @media (min-width: 782px) { |
| 4848 | 4841 | .edit-site-layout__actions { |
| 4849 | - border-right: 1px solid #ddd; | |
| 4842 | + border-right: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 4850 | 4843 | } |
| 4851 | 4844 | } |
| 4852 | 4845 | |
| 4853 | 4846 | .edit-site-layout__area { |
| @@ -4857,9 +4850,9 @@ | ||
| 4857 | 4850 | 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); |
| 4858 | 4851 | } |
| 4859 | 4852 | @media (min-width: 782px) { |
| 4860 | 4853 | .edit-site-layout__area { |
| 4861 | - border-radius: 8px; | |
| 4854 | + border-radius: var(--wpds-border-radius-xl, 12px); | |
| 4862 | 4855 | margin: 16px 0 16px 16px; |
| 4863 | 4856 | } |
| 4864 | 4857 | } |
| 4865 | 4858 | |
| @@ -4864,9 +4857,9 @@ | ||
| 4864 | 4857 | } |
| 4865 | 4858 | |
| 4866 | 4859 | .edit-site-layout__snackbar { |
| 4867 | 4860 | position: fixed; |
| 4868 | - bottom: 24px; | |
| 4861 | + bottom: var(--wpds-dimension-size-md, 32px); | |
| 4869 | 4862 | right: 0; |
| 4870 | 4863 | left: 0; |
| 4871 | 4864 | padding-inline: 16px; |
| 4872 | 4865 | box-sizing: border-box; |
| @@ -4878,13 +4871,13 @@ | ||
| 4878 | 4871 | margin-inline: auto; |
| 4879 | 4872 | } |
| 4880 | 4873 | |
| 4881 | 4874 | .edit-site-save-hub { |
| 4882 | - color: #949494; | |
| 4883 | - border-top: 1px solid #2f2f2f; | |
| 4875 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 4876 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 4884 | 4877 | flex-shrink: 0; |
| 4885 | 4878 | margin: 0; |
| 4886 | - padding: 16px 16px; | |
| 4879 | + padding: 16px; | |
| 4887 | 4880 | } |
| 4888 | 4881 | |
| 4889 | 4882 | .edit-site-save-hub__button { |
| 4890 | 4883 | color: inherit; |
| @@ -4893,13 +4886,13 @@ | ||
| 4893 | 4886 | } |
| 4894 | 4887 | .edit-site-save-hub__button[aria-disabled=true] { |
| 4895 | 4888 | opacity: 1; |
| 4896 | 4889 | } |
| 4897 | -.edit-site-save-hub__button[aria-disabled=true]:hover { | |
| 4890 | +.edit-site-save-hub__button[aria-disabled=true], .edit-site-save-hub__button[aria-disabled=true]:hover { | |
| 4898 | 4891 | color: inherit; |
| 4899 | 4892 | } |
| 4900 | 4893 | .edit-site-save-hub__button:not(.is-primary).is-busy, .edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover { |
| 4901 | - color: #1e1e1e; | |
| 4894 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 4902 | 4895 | } |
| 4903 | 4896 | |
| 4904 | 4897 | @media (min-width: 600px) { |
| 4905 | 4898 | .edit-site-save-panel__modal { |
| @@ -4908,8 +4901,10 @@ | ||
| 4908 | 4901 | } |
| 4909 | 4902 | |
| 4910 | 4903 | .edit-site-sidebar__content { |
| 4911 | 4904 | flex-grow: 1; |
| 4905 | + flex-basis: 0; | |
| 4906 | + min-height: 0; | |
| 4912 | 4907 | overflow-y: auto; |
| 4913 | 4908 | overflow-x: hidden; |
| 4914 | 4909 | contain: content; |
| 4915 | 4910 | } |
| @@ -4992,46 +4987,36 @@ | ||
| 4992 | 4987 | animation-name: local--slide-from-right; |
| 4993 | 4988 | } |
| 4994 | 4989 | |
| 4995 | 4990 | .edit-site-sidebar-button { |
| 4996 | - color: #e0e0e0; | |
| 4991 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 4997 | 4992 | flex-shrink: 0; |
| 4998 | 4993 | } |
| 4999 | -.edit-site-sidebar-button:focus:not(:disabled) { | |
| 5000 | - box-shadow: none; | |
| 4994 | +.edit-site-sidebar-button:focus:not(:focus-visible) { | |
| 5001 | 4995 | outline: none; |
| 5002 | 4996 | } |
| 5003 | -.edit-site-sidebar-button:focus-visible:not(:disabled) { | |
| 5004 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 5005 | - outline: 3px solid transparent; | |
| 5006 | -} | |
| 5007 | 4997 | .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] { |
| 5008 | - color: #f0f0f0; | |
| 4998 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 5009 | 4999 | } |
| 5010 | 5000 | |
| 5011 | 5001 | .edit-site-sidebar-navigation-item.components-item { |
| 5012 | - color: #949494; | |
| 5002 | + color: var(--wpds-color-foreground-interactive-neutral-weak, #707070); | |
| 5013 | 5003 | padding: 8px 16px 8px 6px; |
| 5014 | 5004 | border: none; |
| 5015 | 5005 | min-height: 40px; |
| 5016 | 5006 | } |
| 5017 | -.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] { | |
| 5018 | - color: #e0e0e0; | |
| 5007 | +.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 { | |
| 5008 | + color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e); | |
| 5019 | 5009 | } |
| 5020 | -.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 { | |
| 5021 | - fill: #e0e0e0; | |
| 5022 | -} | |
| 5023 | 5010 | .edit-site-sidebar-navigation-item.components-item[aria-current=true] { |
| 5024 | - background: #2f2f2f; | |
| 5025 | - color: #fff; | |
| 5026 | - font-weight: 499; | |
| 5011 | + background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); | |
| 5012 | + color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e); | |
| 5013 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5027 | 5014 | } |
| 5028 | 5015 | .edit-site-sidebar-navigation-item.components-item:focus-visible { |
| 5016 | + --wp-components-color-accent: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 5029 | 5017 | transform: translateZ(0); |
| 5030 | 5018 | } |
| 5031 | -.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator { | |
| 5032 | - fill: #949494; | |
| 5033 | -} | |
| 5034 | 5019 | .edit-site-sidebar-navigation-item.components-item.with-suffix { |
| 5035 | 5020 | padding-left: 16px; |
| 5036 | 5021 | } |
| 5037 | 5022 | |
| @@ -5058,9 +5043,9 @@ | ||
| 5058 | 5043 | .edit-site-sidebar-navigation-screen__content { |
| 5059 | 5044 | padding: 0 16px; |
| 5060 | 5045 | } |
| 5061 | 5046 | .edit-site-sidebar-navigation-screen__content .components-text { |
| 5062 | - color: #ccc; | |
| 5047 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 5063 | 5048 | } |
| 5064 | 5049 | .edit-site-sidebar-navigation-screen__content .components-heading { |
| 5065 | 5050 | margin-bottom: 8px; |
| 5066 | 5051 | } |
| @@ -5067,10 +5052,10 @@ | ||
| 5067 | 5052 | |
| 5068 | 5053 | .edit-site-sidebar-navigation-screen__title-icon { |
| 5069 | 5054 | position: sticky; |
| 5070 | 5055 | top: 0; |
| 5071 | - background: #1e1e1e; | |
| 5072 | - padding-top: 48px; | |
| 5056 | + background: var(--wpds-color-background-surface-neutral-weak, #f4f4f4); | |
| 5057 | + padding-top: 32px; | |
| 5073 | 5058 | margin-bottom: 8px; |
| 5074 | 5059 | padding-bottom: 8px; |
| 5075 | 5060 | z-index: 1; |
| 5076 | 5061 | } |
| @@ -5109,13 +5094,13 @@ | ||
| 5109 | 5094 | |
| 5110 | 5095 | .edit-site-sidebar-navigation-screen__footer { |
| 5111 | 5096 | position: sticky; |
| 5112 | 5097 | bottom: 0; |
| 5113 | - background-color: #1e1e1e; | |
| 5098 | + background-color: var(--wpds-color-background-surface-neutral-weak, #f4f4f4); | |
| 5114 | 5099 | gap: 0; |
| 5115 | 5100 | padding: 8px 16px; |
| 5116 | 5101 | margin: 16px 0 0; |
| 5117 | - border-top: 1px solid #2f2f2f; | |
| 5102 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 5118 | 5103 | } |
| 5119 | 5104 | .edit-site-sidebar-navigation-screen__footer .edit-site-sidebar-navigation-screen-details-footer { |
| 5120 | 5105 | margin-right: -16px; |
| 5121 | 5106 | margin-left: -16px; |
| @@ -5130,22 +5115,22 @@ | ||
| 5130 | 5115 | .edit-site-sidebar-navigation-screen__input-control { |
| 5131 | 5116 | width: 100%; |
| 5132 | 5117 | } |
| 5133 | 5118 | .edit-site-sidebar-navigation-screen__input-control .components-input-control__container { |
| 5134 | - background: #2f2f2f; | |
| 5119 | + background: var(--wpds-color-background-interactive-neutral-weak, #0000); | |
| 5135 | 5120 | } |
| 5136 | 5121 | .edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button { |
| 5137 | - color: #e0e0e0 !important; | |
| 5122 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e) !important; | |
| 5138 | 5123 | } |
| 5139 | 5124 | .edit-site-sidebar-navigation-screen__input-control .components-input-control__input { |
| 5140 | - color: #e0e0e0 !important; | |
| 5141 | - background: #2f2f2f !important; | |
| 5125 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e) !important; | |
| 5126 | + background: var(--wpds-color-background-interactive-neutral-weak, #0000) !important; | |
| 5142 | 5127 | } |
| 5143 | 5128 | .edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop { |
| 5144 | 5129 | border: 4px !important; |
| 5145 | 5130 | } |
| 5146 | 5131 | .edit-site-sidebar-navigation-screen__input-control .components-base-control__help { |
| 5147 | - color: #949494; | |
| 5132 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 5148 | 5133 | } |
| 5149 | 5134 | |
| 5150 | 5135 | .edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus, |
| 5151 | 5136 | .edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover, |
| @@ -5153,12 +5138,12 @@ | ||
| 5153 | 5138 | background: none; |
| 5154 | 5139 | } |
| 5155 | 5140 | |
| 5156 | 5141 | .sidebar-navigation__more-menu .components-button { |
| 5157 | - color: #e0e0e0; | |
| 5142 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 5158 | 5143 | } |
| 5159 | 5144 | .sidebar-navigation__more-menu .components-button:hover, .sidebar-navigation__more-menu .components-button:focus, .sidebar-navigation__more-menu .components-button[aria-current] { |
| 5160 | - color: #f0f0f0; | |
| 5145 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 5161 | 5146 | } |
| 5162 | 5147 | |
| 5163 | 5148 | .edit-site-sidebar-navigation-screen-patterns__group { |
| 5164 | 5149 | margin-bottom: 24px; |
| @@ -5174,18 +5159,18 @@ | ||
| 5174 | 5159 | .edit-site-sidebar-navigation-screen-patterns__group-header { |
| 5175 | 5160 | margin-top: 16px; |
| 5176 | 5161 | } |
| 5177 | 5162 | .edit-site-sidebar-navigation-screen-patterns__group-header p { |
| 5178 | - color: #949494; | |
| 5163 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 5179 | 5164 | } |
| 5180 | 5165 | .edit-site-sidebar-navigation-screen-patterns__group-header h2 { |
| 5181 | 5166 | font-size: 11px; |
| 5182 | - font-weight: 499; | |
| 5167 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5183 | 5168 | text-transform: uppercase; |
| 5184 | 5169 | } |
| 5185 | 5170 | |
| 5186 | 5171 | .edit-site-sidebar-navigation-screen-patterns__divider { |
| 5187 | - border-top: 1px solid #2f2f2f; | |
| 5172 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 5188 | 5173 | margin: 16px 0; |
| 5189 | 5174 | } |
| 5190 | 5175 | |
| 5191 | 5176 | .edit-site-sidebar-navigation-screen__description { |
| @@ -5206,19 +5191,27 @@ | ||
| 5206 | 5191 | .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell { |
| 5207 | 5192 | padding-left: 0; |
| 5208 | 5193 | } |
| 5209 | 5194 | .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button { |
| 5210 | - color: #949494; | |
| 5195 | + color: var(--wpds-color-foreground-interactive-neutral-weak, #707070); | |
| 5211 | 5196 | } |
| 5212 | 5197 | .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] { |
| 5213 | - color: #fff; | |
| 5198 | + color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e); | |
| 5214 | 5199 | } |
| 5215 | 5200 | .edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu { |
| 5216 | - color: #949494; | |
| 5201 | + color: var(--wpds-color-foreground-interactive-neutral-weak, #707070); | |
| 5217 | 5202 | } |
| 5218 | 5203 | .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 { |
| 5219 | - color: #fff; | |
| 5204 | + color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e); | |
| 5220 | 5205 | } |
| 5206 | +.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle { | |
| 5207 | + background: var(--wpds-color-background-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 5208 | + color: var(--wpds-color-foreground-interactive-brand-strong, #fff); | |
| 5209 | +} | |
| 5210 | +.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 { | |
| 5211 | + background: var(--wpds-color-background-interactive-brand-strong-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black)); | |
| 5212 | + color: var(--wpds-color-foreground-interactive-brand-strong-active, #fff); | |
| 5213 | +} | |
| 5221 | 5214 | |
| 5222 | 5215 | .edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner { |
| 5223 | 5216 | margin-right: auto; |
| 5224 | 5217 | margin-left: auto; |
| @@ -5233,13 +5226,8 @@ | ||
| 5233 | 5226 | margin-right: -16px; |
| 5234 | 5227 | margin-left: -16px; |
| 5235 | 5228 | } |
| 5236 | 5229 | |
| 5237 | -.edit-site-sidebar-navigation-screen-templates-browse { | |
| 5238 | - margin-right: -16px; | |
| 5239 | - margin-left: -16px; | |
| 5240 | -} | |
| 5241 | - | |
| 5242 | 5230 | .edit-site-sidebar-dataviews { |
| 5243 | 5231 | margin-right: -16px; |
| 5244 | 5232 | margin-left: -16px; |
| 5245 | 5233 | } |
| @@ -5246,165 +5234,16 @@ | ||
| 5246 | 5234 | |
| 5247 | 5235 | .edit-site-site-hub { |
| 5248 | 5236 | display: flex; |
| 5249 | 5237 | align-items: center; |
| 5250 | - justify-content: space-between; | |
| 5251 | - gap: 8px; | |
| 5252 | - margin-left: 12px; | |
| 5238 | + padding-right: 16px; | |
| 5253 | 5239 | height: 64px; |
| 5254 | 5240 | } |
| 5255 | 5241 | |
| 5256 | -.edit-site-site-hub__actions { | |
| 5257 | - flex-shrink: 0; | |
| 5242 | +.edit-site-site-hub__back-button:hover:not(:disabled, [aria-disabled=true]), .edit-site-site-hub__back-button:active:not(:disabled, [aria-disabled=true]) { | |
| 5243 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 5258 | 5244 | } |
| 5259 | 5245 | |
| 5260 | -.edit-site-site-hub__view-mode-toggle-container { | |
| 5261 | - height: 64px; | |
| 5262 | - width: 64px; | |
| 5263 | - flex-shrink: 0; | |
| 5264 | -} | |
| 5265 | -.edit-site-site-hub__view-mode-toggle-container.has-transparent-background .edit-site-layout__view-mode-toggle-icon { | |
| 5266 | - background: transparent; | |
| 5267 | -} | |
| 5268 | - | |
| 5269 | -.edit-site-site-hub__title .components-button { | |
| 5270 | - color: #e0e0e0; | |
| 5271 | - display: block; | |
| 5272 | - flex-grow: 1; | |
| 5273 | - font-size: 15px; | |
| 5274 | - font-weight: 499; | |
| 5275 | - overflow: hidden; | |
| 5276 | - padding-left: 16px; | |
| 5277 | - margin-right: -4px; | |
| 5278 | - position: relative; | |
| 5279 | - text-decoration: none; | |
| 5280 | - text-overflow: ellipsis; | |
| 5281 | - white-space: nowrap; | |
| 5282 | -} | |
| 5283 | -.edit-site-site-hub__title .components-button:hover, .edit-site-site-hub__title .components-button:focus, .edit-site-site-hub__title .components-button:active { | |
| 5284 | - color: #e0e0e0; | |
| 5285 | -} | |
| 5286 | -.edit-site-site-hub__title .components-button:focus { | |
| 5287 | - box-shadow: none; | |
| 5288 | - outline: none; | |
| 5289 | -} | |
| 5290 | -.edit-site-site-hub__title .components-button:focus-visible { | |
| 5291 | - 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); | |
| 5292 | - outline: 2px solid transparent; | |
| 5293 | - outline-offset: 2px; | |
| 5294 | -} | |
| 5295 | -.edit-site-site-hub__title .components-button::after { | |
| 5296 | - content: "↗"; | |
| 5297 | - font-weight: 400; | |
| 5298 | - opacity: 0; | |
| 5299 | - position: absolute; | |
| 5300 | - left: 0; | |
| 5301 | -} | |
| 5302 | -@media not (prefers-reduced-motion) { | |
| 5303 | - .edit-site-site-hub__title .components-button::after { | |
| 5304 | - transition: opacity 0.1s linear; | |
| 5305 | - } | |
| 5306 | -} | |
| 5307 | -.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 { | |
| 5308 | - opacity: 1; | |
| 5309 | -} | |
| 5310 | - | |
| 5311 | -.edit-site-site-hub_toggle-command-center { | |
| 5312 | - color: #e0e0e0; | |
| 5313 | -} | |
| 5314 | -.edit-site-site-hub_toggle-command-center:hover svg, .edit-site-site-hub_toggle-command-center:active svg { | |
| 5315 | - fill: #f0f0f0; | |
| 5316 | -} | |
| 5317 | - | |
| 5318 | -.edit-site-site-icon__icon { | |
| 5319 | - fill: currentColor; | |
| 5320 | - width: 100%; | |
| 5321 | - height: 100%; | |
| 5322 | -} | |
| 5323 | -.edit-site-layout.is-full-canvas .edit-site-site-icon__icon { | |
| 5324 | - padding: 12px; | |
| 5325 | -} | |
| 5326 | - | |
| 5327 | -.edit-site-site-icon__image { | |
| 5328 | - width: 100%; | |
| 5329 | - height: 100%; | |
| 5330 | - object-fit: cover; | |
| 5331 | - background: #333; | |
| 5332 | - aspect-ratio: 1/1; | |
| 5333 | -} | |
| 5334 | -.edit-site-layout.is-full-canvas .edit-site-site-icon__image { | |
| 5335 | - border-radius: 0; | |
| 5336 | -} | |
| 5337 | - | |
| 5338 | -.edit-site-editor__view-mode-toggle button:focus { | |
| 5339 | - position: relative; | |
| 5340 | -} | |
| 5341 | -.edit-site-editor__view-mode-toggle button:focus::before { | |
| 5342 | - content: ""; | |
| 5343 | - display: block; | |
| 5344 | - position: absolute; | |
| 5345 | - z-index: 1; | |
| 5346 | - top: 0; | |
| 5347 | - left: 0; | |
| 5348 | - bottom: 0; | |
| 5349 | - right: 0; | |
| 5350 | - 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; | |
| 5351 | -} | |
| 5352 | - | |
| 5353 | -.edit-site-post-list__featured-image { | |
| 5354 | - height: 100%; | |
| 5355 | - object-fit: cover; | |
| 5356 | - width: 100%; | |
| 5357 | -} | |
| 5358 | - | |
| 5359 | -.edit-site-post-list__featured-image-wrapper { | |
| 5360 | - height: 100%; | |
| 5361 | - width: 100%; | |
| 5362 | - border-radius: 4px; | |
| 5363 | -} | |
| 5364 | -.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button)), .edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button { | |
| 5365 | - width: 32px; | |
| 5366 | - height: 32px; | |
| 5367 | - display: block; | |
| 5368 | - border-radius: 4px; | |
| 5369 | - position: relative; | |
| 5370 | - overflow: hidden; | |
| 5371 | - background-color: #f0f0f0; | |
| 5372 | - flex-grow: 0 !important; | |
| 5373 | -} | |
| 5374 | -.edit-site-post-list__featured-image-wrapper.is-layout-table:not(:has(.edit-site-post-list__featured-image-button))::after, .edit-site-post-list__featured-image-wrapper.is-layout-table .edit-site-post-list__featured-image-button::after { | |
| 5375 | - border-radius: 4px; | |
| 5376 | - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); | |
| 5377 | - content: ""; | |
| 5378 | - height: 100%; | |
| 5379 | - right: 0; | |
| 5380 | - position: absolute; | |
| 5381 | - top: 0; | |
| 5382 | - width: 100%; | |
| 5383 | -} | |
| 5384 | - | |
| 5385 | -.edit-site-post-list__featured-image-button { | |
| 5386 | - box-shadow: none; | |
| 5387 | - border: none; | |
| 5388 | - padding: 0; | |
| 5389 | - background-color: unset; | |
| 5390 | - box-sizing: border-box; | |
| 5391 | - cursor: pointer; | |
| 5392 | - overflow: hidden; | |
| 5393 | - height: 100%; | |
| 5394 | - width: 100%; | |
| 5395 | - border-radius: 4px; | |
| 5396 | -} | |
| 5397 | -.edit-site-post-list__featured-image-button:focus-visible { | |
| 5398 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 5399 | - outline: 2px solid transparent; | |
| 5400 | -} | |
| 5401 | - | |
| 5402 | -.dataviews-view-grid__card.is-selected .edit-site-post-list__featured-image-button::after { | |
| 5403 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 5404 | - background: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 5405 | -} | |
| 5406 | - | |
| 5407 | 5246 | .fields-controls__password { |
| 5408 | 5247 | border-top: 1px solid #e0e0e0; |
| 5409 | 5248 | padding-top: 16px; |
| 5410 | 5249 | } |
| @@ -5569,19 +5408,46 @@ | ||
| 5569 | 5408 | padding-right: 0; |
| 5570 | 5409 | padding-left: 0; |
| 5571 | 5410 | } |
| 5572 | 5411 | .edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen { |
| 5573 | - padding-top: 12px; | |
| 5574 | - padding-right: 12px; | |
| 5575 | - padding-left: 12px; | |
| 5576 | - padding-bottom: 12px; | |
| 5412 | + padding: 12px; | |
| 5577 | 5413 | outline: none; |
| 5578 | 5414 | } |
| 5415 | +.edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen .global-styles-ui-color-palette__tablist-container { | |
| 5416 | + margin-inline: -12px; | |
| 5417 | + width: calc(100% + 24px); | |
| 5418 | + padding-inline: 12px; | |
| 5419 | +} | |
| 5579 | 5420 | .edit-site-styles .edit-site-sidebar-button { |
| 5580 | - color: #1e1e1e; | |
| 5421 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 5581 | 5422 | } |
| 5582 | 5423 | |
| 5583 | -/* stylelint-disable -- Disable reason: View Transitions not supported properly by stylelint. */ | |
| 5424 | +.edit-site-styles__content { | |
| 5425 | + flex-grow: 1; | |
| 5426 | + min-height: 0; | |
| 5427 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 5428 | +} | |
| 5429 | + | |
| 5430 | +.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon { | |
| 5431 | + width: auto; | |
| 5432 | + padding: 0 var(--wpds-dimension-padding-xs, 4px); | |
| 5433 | +} | |
| 5434 | +.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon svg { | |
| 5435 | + display: none; | |
| 5436 | +} | |
| 5437 | +.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon::after { | |
| 5438 | + content: attr(aria-label); | |
| 5439 | + font-size: var(--wpds-typography-font-size-sm, 12px); | |
| 5440 | +} | |
| 5441 | + | |
| 5442 | +.edit-site-sidebar-identity__form { | |
| 5443 | + flex-grow: 1; | |
| 5444 | + min-height: 0; | |
| 5445 | + overflow: auto; | |
| 5446 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 5447 | + padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px); | |
| 5448 | +} | |
| 5449 | + | |
| 5584 | 5450 | ::view-transition-image-pair(root) { |
| 5585 | 5451 | isolation: auto; |
| 5586 | 5452 | } |
| 5587 | 5453 | |
| @@ -5591,13 +5457,8 @@ | ||
| 5591 | 5457 | mix-blend-mode: normal; |
| 5592 | 5458 | display: block; |
| 5593 | 5459 | } |
| 5594 | 5460 | |
| 5595 | -/* stylelint-enable */ | |
| 5596 | -body.js #wpadminbar { | |
| 5597 | - display: none; | |
| 5598 | -} | |
| 5599 | - | |
| 5600 | 5461 | body.js #wpbody { |
| 5601 | 5462 | padding-top: 0; |
| 5602 | 5463 | } |
| 5603 | 5464 | |
| @@ -5643,10 +5504,19 @@ | ||
| 5643 | 5504 | max-width: 100%; |
| 5644 | 5505 | } |
| 5645 | 5506 | |
| 5646 | 5507 | body.js.site-editor-php { |
| 5647 | - background: #1e1e1e; | |
| 5508 | + background: var(--wpds-color-background-surface-neutral-weak, #f4f4f4); | |
| 5648 | 5509 | } |
| 5510 | +@media (min-width: 782px) { | |
| 5511 | + body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free) { | |
| 5512 | + --wp-admin--admin-bar--height: 0px; | |
| 5513 | + --wp-editor-admin-bar-display: none; | |
| 5514 | + } | |
| 5515 | + body.js.site-editor-php #wpadminbar { | |
| 5516 | + display: var(--wp-editor-admin-bar-display, block); | |
| 5517 | + } | |
| 5518 | +} | |
| 5649 | 5519 | |
| 5650 | 5520 | .edit-site { |
| 5651 | 5521 | box-sizing: border-box; |
| 5652 | 5522 | } |
| @@ -5655,8 +5525,9 @@ | ||
| 5655 | 5525 | .edit-site *::after { |
| 5656 | 5526 | box-sizing: inherit; |
| 5657 | 5527 | } |
| 5658 | 5528 | .edit-site { |
| 5529 | + padding-top: var(--wp-admin--admin-bar--height, 0); | |
| 5659 | 5530 | height: 100vh; |
| 5660 | 5531 | } |
| 5661 | 5532 | @media (min-width: 600px) { |
| 5662 | 5533 | .edit-site { |
| @@ -5661,12 +5532,13 @@ | ||
| 5661 | 5532 | @media (min-width: 600px) { |
| 5662 | 5533 | .edit-site { |
| 5663 | 5534 | bottom: 0; |
| 5664 | 5535 | right: 0; |
| 5665 | - min-height: 100vh; | |
| 5536 | + height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); | |
| 5537 | + padding-top: 0; | |
| 5666 | 5538 | position: fixed; |
| 5667 | 5539 | left: 0; |
| 5668 | - top: 0; | |
| 5540 | + top: var(--wp-admin--admin-bar--height, 0); | |
| 5669 | 5541 | } |
| 5670 | 5542 | } |
| 5671 | 5543 | .no-js .edit-site { |
| 5672 | 5544 | min-height: 0; |