| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | /** |
| 2 | - * Typography | |
| 3 | - */ | |
| 4 | -/** | |
| 5 | 2 | * SCSS Variables. |
| 6 | 3 | * |
| 7 | 4 | * Please use variables from this sheet to ensure consistency across the UI. |
| 8 | 5 | * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
| @@ -45,9 +42,25 @@ | ||
| 45 | 42 | /** |
| 46 | 43 | * React Native specific. |
| 47 | 44 | * These variables do not appear to be used anywhere else. |
| 48 | 45 | */ |
| 46 | +.components-popover__content:has(.dataviews-media-field__attached-to) { | |
| 47 | + margin-bottom: 96px; | |
| 48 | +} | |
| 49 | + | |
| 50 | +.components-popover__content:has(.dataviews-media-field__attached-to):has(.components-form-token-field__suggestions-list) { | |
| 51 | + margin-bottom: 0; | |
| 52 | +} | |
| 53 | + | |
| 54 | +.components-popover__content:has(.dataviews-media-field__attached-to) .components-form-token-field__suggestions-list { | |
| 55 | + height: 96px; | |
| 56 | + max-height: none; | |
| 57 | +} | |
| 58 | + | |
| 49 | 59 | /** |
| 60 | + * Typography | |
| 61 | + */ | |
| 62 | +/** | |
| 50 | 63 | * Breakpoints & Media Queries |
| 51 | 64 | */ |
| 52 | 65 | /** |
| 53 | 66 | * Converts a hex value into the rgb equivalent. |
| @@ -67,8 +80,14 @@ | ||
| 67 | 80 | /** |
| 68 | 81 | * Focus styles. |
| 69 | 82 | */ |
| 70 | 83 | /** |
| 84 | + * Standard focus rings for the WordPress Design System. | |
| 85 | + * | |
| 86 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 87 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 88 | + */ | |
| 89 | +/** | |
| 71 | 90 | * Applies editor left position to the selector passed as argument |
| 72 | 91 | */ |
| 73 | 92 | /** |
| 74 | 93 | * Styles that are reused verbatim in a few places |
| @@ -99,9 +118,8 @@ | ||
| 99 | 118 | |
| 100 | 119 | .media-author-field__avatar img { |
| 101 | 120 | width: 16px; |
| 102 | 121 | height: 16px; |
| 103 | - -o-object-fit: cover; | |
| 104 | 122 | object-fit: cover; |
| 105 | 123 | opacity: 1; |
| 106 | 124 | border-radius: 100%; |
| 107 | 125 | } |
| @@ -170,9 +188,8 @@ | ||
| 170 | 188 | .dataviews-media-field__media-thumbnail--image { |
| 171 | 189 | display: block; |
| 172 | 190 | width: 100%; |
| 173 | 191 | height: 100%; |
| 174 | - -o-object-fit: cover; | |
| 175 | 192 | object-fit: cover; |
| 176 | 193 | } |
| 177 | 194 | |
| 178 | 195 | .dataviews-media-field__media-thumbnail__stack { |
| @@ -192,10 +209,10 @@ | ||
| 192 | 209 | text-align: center; |
| 193 | 210 | padding: 0 16px; |
| 194 | 211 | width: 100%; |
| 195 | 212 | container-type: inline-size; |
| 196 | - font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 197 | - font-weight: 400; | |
| 213 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 214 | + font-weight: var(--wpds-typography-font-weight-default, 400); | |
| 198 | 215 | font-size: 12px; |
| 199 | 216 | line-height: 16px; |
| 200 | 217 | } |
| 201 | 218 | |
| @@ -277,8 +294,14 @@ | ||
| 277 | 294 | /** |
| 278 | 295 | * Focus styles. |
| 279 | 296 | */ |
| 280 | 297 | /** |
| 298 | + * Standard focus rings for the WordPress Design System. | |
| 299 | + * | |
| 300 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 301 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 302 | + */ | |
| 303 | +/** | |
| 281 | 304 | * Applies editor left position to the selector passed as argument |
| 282 | 305 | */ |
| 283 | 306 | /** |
| 284 | 307 | * Styles that are reused verbatim in a few places |
| @@ -340,9 +363,9 @@ | ||
| 340 | 363 | } |
| 341 | 364 | |
| 342 | 365 | .media-upload-modal__snackbar { |
| 343 | 366 | position: fixed; |
| 344 | - bottom: 24px; | |
| 367 | + bottom: var(--wpds-dimension-size-md, 32px); | |
| 345 | 368 | left: 0; |
| 346 | 369 | right: 0; |
| 347 | 370 | padding-inline: 16px; |
| 348 | 371 | box-sizing: border-box; |
| @@ -372,9 +395,9 @@ | ||
| 372 | 395 | } |
| 373 | 396 | .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header h3 { |
| 374 | 397 | margin: 0; |
| 375 | 398 | font-size: 13px; |
| 376 | - font-weight: 499; | |
| 399 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 377 | 400 | } |
| 378 | 401 | .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__list { |
| 379 | 402 | max-height: 200px; |
| 380 | 403 | overflow-y: auto; |