| @@ -67,14 +67,8 @@ | ||
| 67 | 67 | /** |
| 68 | 68 | * Focus styles. |
| 69 | 69 | */ |
| 70 | 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 | -/** | |
| 77 | 71 | * Applies editor left position to the selector passed as argument |
| 78 | 72 | */ |
| 79 | 73 | /** |
| 80 | 74 | * Styles that are reused verbatim in a few places |
| @@ -111,8 +105,269 @@ | ||
| 111 | 105 | --wp-admin-border-width-focus: 1.5px; |
| 112 | 106 | } |
| 113 | 107 | } |
| 114 | 108 | |
| 109 | +/** | |
| 110 | + * Colors | |
| 111 | + */ | |
| 112 | +/** | |
| 113 | + * SCSS Variables. | |
| 114 | + * | |
| 115 | + * Please use variables from this sheet to ensure consistency across the UI. | |
| 116 | + * Don't add to this sheet unless you're pretty sure the value will be reused in many places. | |
| 117 | + * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. | |
| 118 | + */ | |
| 119 | +/** | |
| 120 | + * Fonts & basic variables. | |
| 121 | + */ | |
| 122 | +/** | |
| 123 | + * Typography | |
| 124 | + */ | |
| 125 | +/** | |
| 126 | + * Grid System. | |
| 127 | + * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ | |
| 128 | + */ | |
| 129 | +/** | |
| 130 | + * Radius scale. | |
| 131 | + */ | |
| 132 | +/** | |
| 133 | + * Elevation scale. | |
| 134 | + */ | |
| 135 | +/** | |
| 136 | + * Dimensions. | |
| 137 | + */ | |
| 138 | +/** | |
| 139 | + * Mobile specific styles | |
| 140 | + */ | |
| 141 | +/** | |
| 142 | + * Editor styles. | |
| 143 | + */ | |
| 144 | +/** | |
| 145 | + * Block & Editor UI. | |
| 146 | + */ | |
| 147 | +/** | |
| 148 | + * Block paddings. | |
| 149 | + */ | |
| 150 | +/** | |
| 151 | + * React Native specific. | |
| 152 | + * These variables do not appear to be used anywhere else. | |
| 153 | + */ | |
| 154 | +/** | |
| 155 | + * Typography | |
| 156 | + */ | |
| 157 | +/** | |
| 158 | + * Breakpoints & Media Queries | |
| 159 | + */ | |
| 160 | +/** | |
| 161 | +* Converts a hex value into the rgb equivalent. | |
| 162 | +* | |
| 163 | +* @param {string} hex - the hexadecimal value to convert | |
| 164 | +* @return {string} comma separated rgb values | |
| 165 | +*/ | |
| 166 | +/** | |
| 167 | + * Long content fade mixin | |
| 168 | + * | |
| 169 | + * Creates a fading overlay to signify that the content is longer | |
| 170 | + * than the space allows. | |
| 171 | + */ | |
| 172 | +/** | |
| 173 | + * Breakpoint mixins | |
| 174 | + */ | |
| 175 | +/** | |
| 176 | + * Focus styles. | |
| 177 | + */ | |
| 178 | +/** | |
| 179 | + * Applies editor left position to the selector passed as argument | |
| 180 | + */ | |
| 181 | +/** | |
| 182 | + * Styles that are reused verbatim in a few places | |
| 183 | + */ | |
| 184 | +/** | |
| 185 | + * Allows users to opt-out of animations via OS-level preferences. | |
| 186 | + */ | |
| 187 | +/** | |
| 188 | + * Reset default styles for JavaScript UI based pages. | |
| 189 | + * This is a WP-admin agnostic reset | |
| 190 | + */ | |
| 191 | +/** | |
| 192 | + * Reset the WP Admin page styles for Gutenberg-like pages. | |
| 193 | + */ | |
| 194 | +/** | |
| 195 | + * Creates a checkerboard pattern background to indicate transparency. | |
| 196 | + * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px. | |
| 197 | + */ | |
| 198 | +.admin-ui-page { | |
| 199 | + display: flex; | |
| 200 | + height: 100%; | |
| 201 | + background-color: #fff; | |
| 202 | + color: #2f2f2f; | |
| 203 | + position: relative; | |
| 204 | + z-index: 1; | |
| 205 | + flex-flow: column; | |
| 206 | + text-wrap: pretty; | |
| 207 | +} | |
| 208 | + | |
| 209 | +.admin-ui-page__header { | |
| 210 | + padding: 16px 24px; | |
| 211 | + border-bottom: 1px solid #f0f0f0; | |
| 212 | + background: #fff; | |
| 213 | + position: sticky; | |
| 214 | + top: 0; | |
| 215 | + z-index: 1; | |
| 216 | +} | |
| 217 | + | |
| 218 | +.admin-ui-page__sidebar-toggle-slot:empty { | |
| 219 | + display: none; | |
| 220 | +} | |
| 221 | + | |
| 222 | +.admin-ui-page__header-subtitle { | |
| 223 | + padding-block-end: 8px; | |
| 224 | + color: #757575; | |
| 225 | + font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 226 | + font-weight: 400; | |
| 227 | + font-size: 13px; | |
| 228 | + line-height: 20px; | |
| 229 | + margin: 0; | |
| 230 | +} | |
| 231 | + | |
| 232 | +.admin-ui-page__content { | |
| 233 | + flex-grow: 1; | |
| 234 | + overflow: auto; | |
| 235 | + display: flex; | |
| 236 | + flex-direction: column; | |
| 237 | +} | |
| 238 | + | |
| 239 | +.admin-ui-page__content.has-padding { | |
| 240 | + padding: 16px 24px; | |
| 241 | +} | |
| 242 | + | |
| 243 | +.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon { | |
| 244 | + width: auto; | |
| 245 | + padding: 0 8px; | |
| 246 | +} | |
| 247 | + | |
| 248 | +.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg { | |
| 249 | + display: none; | |
| 250 | +} | |
| 251 | + | |
| 252 | +.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after { | |
| 253 | + content: attr(aria-label); | |
| 254 | + font-size: 12px; | |
| 255 | +} | |
| 256 | + | |
| 257 | +.admin-ui-breadcrumbs__list { | |
| 258 | + list-style: none; | |
| 259 | + padding: 0; | |
| 260 | + margin: 0; | |
| 261 | + gap: 0; | |
| 262 | + font-size: 15px; | |
| 263 | + min-height: 32px; | |
| 264 | + font-weight: 500; | |
| 265 | +} | |
| 266 | + | |
| 267 | +.admin-ui-breadcrumbs__list li:not(:last-child)::after { | |
| 268 | + content: "/"; | |
| 269 | + margin: 0 8px; | |
| 270 | +} | |
| 271 | + | |
| 272 | +.admin-ui-breadcrumbs__list h1 { | |
| 273 | + font-size: inherit; | |
| 274 | + line-height: inherit; | |
| 275 | +} | |
| 276 | + | |
| 277 | +.edit-post-fullscreen-mode-close__view-mode-toggle { | |
| 278 | + top: 0; | |
| 279 | + left: 0; | |
| 280 | + height: 64px; | |
| 281 | + width: 64px; | |
| 282 | + z-index: 100; | |
| 283 | +} | |
| 284 | +.edit-post-fullscreen-mode-close__view-mode-toggle .components-button { | |
| 285 | + color: #fff; | |
| 286 | + height: 100%; | |
| 287 | + width: 100%; | |
| 288 | + border-radius: 0; | |
| 289 | + overflow: hidden; | |
| 290 | + padding: 0; | |
| 291 | + display: flex; | |
| 292 | + align-items: center; | |
| 293 | + justify-content: center; | |
| 294 | +} | |
| 295 | +.edit-post-fullscreen-mode-close__view-mode-toggle .components-button:hover, .edit-post-fullscreen-mode-close__view-mode-toggle .components-button:active { | |
| 296 | + color: #fff; | |
| 297 | +} | |
| 298 | +.edit-post-fullscreen-mode-close__view-mode-toggle .components-button:focus { | |
| 299 | + box-shadow: none; | |
| 300 | +} | |
| 301 | +.edit-post-fullscreen-mode-close__view-mode-toggle .edit-post-fullscreen-mode-close__view-mode-toggle-icon svg, | |
| 302 | +.edit-post-fullscreen-mode-close__view-mode-toggle .edit-post-fullscreen-mode-close__view-mode-toggle-icon img { | |
| 303 | + background: #1e1e1e; | |
| 304 | + display: block; | |
| 305 | +} | |
| 306 | + | |
| 307 | +.edit-post-fullscreen-mode-close-site-icon__icon { | |
| 308 | + fill: currentColor; | |
| 309 | + width: 100%; | |
| 310 | + height: 100%; | |
| 311 | + padding: 12px; | |
| 312 | +} | |
| 313 | + | |
| 314 | +.edit-post-fullscreen-mode-close-site-icon__image { | |
| 315 | + width: 100%; | |
| 316 | + height: 100%; | |
| 317 | + object-fit: cover; | |
| 318 | + background: #333; | |
| 319 | + aspect-ratio: 1/1; | |
| 320 | +} | |
| 321 | + | |
| 322 | +.edit-post-fullscreen-mode-close.components-button:focus { | |
| 323 | + position: relative; | |
| 324 | +} | |
| 325 | +.edit-post-fullscreen-mode-close.components-button:focus::before { | |
| 326 | + content: ""; | |
| 327 | + display: block; | |
| 328 | + position: absolute; | |
| 329 | + z-index: 1; | |
| 330 | + top: 0; | |
| 331 | + right: 0; | |
| 332 | + bottom: 0; | |
| 333 | + left: 0; | |
| 334 | + 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; | |
| 335 | +} | |
| 336 | + | |
| 337 | +.edit-post-fullscreen-mode-close__back-icon { | |
| 338 | + position: absolute; | |
| 339 | + top: 0; | |
| 340 | + left: 0; | |
| 341 | + width: 64px; | |
| 342 | + height: 64px; | |
| 343 | + display: flex; | |
| 344 | + align-items: center; | |
| 345 | + justify-content: center; | |
| 346 | + background-color: hsl(0, 0%, 80%); | |
| 347 | + pointer-events: none; | |
| 348 | +} | |
| 349 | +.edit-post-fullscreen-mode-close__back-icon svg { | |
| 350 | + fill: currentColor; | |
| 351 | +} | |
| 352 | +.edit-post-fullscreen-mode-close__back-icon.has-site-icon { | |
| 353 | + background-color: hsla(0, 0%, 100%, 0.6); | |
| 354 | + backdrop-filter: saturate(180%) blur(15px); | |
| 355 | +} | |
| 356 | + | |
| 357 | +/** | |
| 358 | + * Show icon label overrides. | |
| 359 | + */ | |
| 360 | +.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon { | |
| 361 | + width: 64px; | |
| 362 | +} | |
| 363 | +.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon svg { | |
| 364 | + display: block; | |
| 365 | +} | |
| 366 | +.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon::after { | |
| 367 | + content: none; | |
| 368 | +} | |
| 369 | + | |
| 115 | 370 | .edit-post-meta-boxes-main { |
| 116 | 371 | filter: drop-shadow(0 -1px rgba(0, 0, 0, 0.133)); |
| 117 | 372 | outline: 1px solid transparent; |
| 118 | 373 | background-color: #fff; |
| @@ -136,11 +391,9 @@ | ||
| 136 | 391 | height: 36px; |
| 137 | 392 | } |
| 138 | 393 | } |
| 139 | 394 | .edit-post-meta-boxes-main__presenter > button { |
| 140 | - -webkit-appearance: none; | |
| 141 | - -moz-appearance: none; | |
| 142 | - appearance: none; | |
| 395 | + appearance: none; | |
| 143 | 396 | padding: 0; |
| 144 | 397 | border: none; |
| 145 | 398 | outline: none; |
| 146 | 399 | background-color: transparent; |
| @@ -146,9 +399,9 @@ | ||
| 146 | 399 | background-color: transparent; |
| 147 | 400 | touch-action: none; |
| 148 | 401 | } |
| 149 | 402 | .edit-post-meta-boxes-main__presenter > button[aria-expanded] { |
| 150 | - cursor: var(--wpds-cursor-control, pointer); | |
| 403 | + cursor: pointer; | |
| 151 | 404 | width: 100%; |
| 152 | 405 | display: flex; |
| 153 | 406 | justify-content: space-between; |
| 154 | 407 | align-items: center; |
| @@ -268,9 +521,9 @@ | ||
| 268 | 521 | .edit-post-meta-boxes-area #poststuff .stuffbox > h3, |
| 269 | 522 | .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */ |
| 270 | 523 | box-sizing: border-box; |
| 271 | 524 | color: inherit; |
| 272 | - font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 525 | + font-weight: 600; | |
| 273 | 526 | outline: none; |
| 274 | 527 | padding: 0 24px; |
| 275 | 528 | position: relative; |
| 276 | 529 | width: 100%; |
| @@ -298,17 +551,27 @@ | ||
| 298 | 551 | content: ""; |
| 299 | 552 | background: transparent; |
| 300 | 553 | z-index: 1; |
| 301 | 554 | } |
| 302 | -.edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner { | |
| 555 | +.edit-post-meta-boxes-area .components-spinner { | |
| 303 | 556 | position: absolute; |
| 304 | 557 | top: 10px; |
| 305 | 558 | right: 20px; |
| 306 | - z-index: 2; | |
| 559 | + z-index: 5; | |
| 307 | 560 | } |
| 308 | 561 | .edit-post-meta-boxes-area .is-hidden { |
| 309 | 562 | display: none; |
| 310 | 563 | } |
| 564 | +.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox] { | |
| 565 | + border: 1px solid #757575; | |
| 566 | +} | |
| 567 | +.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked { | |
| 568 | + background: #fff; | |
| 569 | + border-color: #757575; | |
| 570 | +} | |
| 571 | +.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]::before { | |
| 572 | + margin: -3px -4px; | |
| 573 | +} | |
| 311 | 574 | |
| 312 | 575 | .edit-post-meta-boxes-area__clear { |
| 313 | 576 | clear: both; |
| 314 | 577 | } |
| @@ -325,14 +588,13 @@ | ||
| 325 | 588 | .edit-post-welcome-guide__image > img, |
| 326 | 589 | .edit-template-welcome-guide__image > img { |
| 327 | 590 | display: block; |
| 328 | 591 | max-width: 100%; |
| 329 | - -o-object-fit: cover; | |
| 330 | - object-fit: cover; | |
| 592 | + object-fit: cover; | |
| 331 | 593 | } |
| 332 | 594 | .edit-post-welcome-guide__heading, |
| 333 | 595 | .edit-template-welcome-guide__heading { |
| 334 | - font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 596 | + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 335 | 597 | font-size: 24px; |
| 336 | 598 | line-height: 1.4; |
| 337 | 599 | margin: 16px 0 16px 0; |
| 338 | 600 | padding: 0 24px; |
| @@ -388,16 +650,8 @@ | ||
| 388 | 650 | body.js.block-editor-page .media-frame select.attachment-filters:last-of-type { |
| 389 | 651 | width: auto; |
| 390 | 652 | max-width: 100%; |
| 391 | 653 | } |
| 392 | -@media (min-width: 782px) { | |
| 393 | - body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) { | |
| 394 | - --wp-admin--admin-bar--height: 0px; | |
| 395 | - } | |
| 396 | - body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) #wpadminbar { | |
| 397 | - display: none; | |
| 398 | - } | |
| 399 | -} | |
| 400 | 654 | |
| 401 | 655 | .block-editor-page #wpwrap { |
| 402 | 656 | overflow-y: auto; |
| 403 | 657 | } |
| @@ -406,14 +660,14 @@ | ||
| 406 | 660 | overflow-y: initial; |
| 407 | 661 | } |
| 408 | 662 | } |
| 409 | 663 | |
| 410 | -.edit-post-visual-editor { | |
| 664 | +.edit-post-visual-editor.is-iframed { | |
| 411 | 665 | box-sizing: border-box; |
| 412 | 666 | } |
| 413 | -.edit-post-visual-editor *, | |
| 414 | -.edit-post-visual-editor *::before, | |
| 415 | -.edit-post-visual-editor *::after { | |
| 667 | +.edit-post-visual-editor.is-iframed *, | |
| 668 | +.edit-post-visual-editor.is-iframed *::before, | |
| 669 | +.edit-post-visual-editor.is-iframed *::after { | |
| 416 | 670 | box-sizing: inherit; |
| 417 | 671 | } |
| 418 | 672 | |
| 419 | 673 | @media (min-width: 600px) { |
| @@ -427,9 +681,12 @@ | ||
| 427 | 681 | } |
| 428 | 682 | } |
| 429 | 683 | @media (min-width: 782px) { |
| 430 | 684 | .block-editor__container { |
| 431 | - min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); | |
| 685 | + min-height: calc(100vh - 32px); | |
| 686 | + } | |
| 687 | + body.is-fullscreen-mode .block-editor__container { | |
| 688 | + min-height: 100vh; | |
| 432 | 689 | } |
| 433 | 690 | } |
| 434 | 691 | .block-editor__container img { |
| 435 | 692 | max-width: 100%; |