| @@ -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 |
| @@ -134,9 +153,11 @@ | ||
| 134 | 153 | text-overflow: ellipsis; |
| 135 | 154 | overflow: hidden; |
| 136 | 155 | } |
| 137 | 156 | |
| 138 | -.dataviews-media-field__filename { | |
| 157 | +.dataviews-view-table .dataviews-media-field__filename, | |
| 158 | +.dataviews-view-grid .dataviews-media-field__filename, | |
| 159 | +.dataviews-view-list .dataviews-media-field__filename { | |
| 139 | 160 | display: inline-block; |
| 140 | 161 | max-inline-size: 15ch; |
| 141 | 162 | overflow: hidden; |
| 142 | 163 | text-overflow: ellipsis; |
| @@ -188,10 +209,10 @@ | ||
| 188 | 209 | text-align: center; |
| 189 | 210 | padding: 0 16px; |
| 190 | 211 | width: 100%; |
| 191 | 212 | container-type: inline-size; |
| 192 | - font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 193 | - 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); | |
| 194 | 215 | font-size: 12px; |
| 195 | 216 | line-height: 16px; |
| 196 | 217 | } |
| 197 | 218 | |
| @@ -273,8 +294,14 @@ | ||
| 273 | 294 | /** |
| 274 | 295 | * Focus styles. |
| 275 | 296 | */ |
| 276 | 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 | +/** | |
| 277 | 304 | * Applies editor left position to the selector passed as argument |
| 278 | 305 | */ |
| 279 | 306 | /** |
| 280 | 307 | * Styles that are reused verbatim in a few places |
| @@ -336,9 +363,9 @@ | ||
| 336 | 363 | } |
| 337 | 364 | |
| 338 | 365 | .media-upload-modal__snackbar { |
| 339 | 366 | position: fixed; |
| 340 | - bottom: 24px; | |
| 367 | + bottom: var(--wpds-dimension-size-md, 32px); | |
| 341 | 368 | left: 0; |
| 342 | 369 | right: 0; |
| 343 | 370 | padding-inline: 16px; |
| 344 | 371 | box-sizing: border-box; |
| @@ -368,9 +395,9 @@ | ||
| 368 | 395 | } |
| 369 | 396 | .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header h3 { |
| 370 | 397 | margin: 0; |
| 371 | 398 | font-size: 13px; |
| 372 | - font-weight: 499; | |
| 399 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 373 | 400 | } |
| 374 | 401 | .media-upload-modal__upload-status__popover .media-upload-modal__upload-status__list { |
| 375 | 402 | max-height: 200px; |
| 376 | 403 | overflow-y: auto; |