Editor: Fix layout of no-js state in site editor.

Remove padding and adjust classes to match current state of editor.

Props afercia, andraganescu, poena.
Fixes #56228.

git-svn-id: https://develop.svn.wordpress.org/trunk@56187 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joe Dolson
2023-07-10 21:20:15 +00:00
parent 8b8afa1299
commit b1775f327d
3 changed files with 2 additions and 7 deletions

View File

@@ -581,11 +581,6 @@ code {
margin: 10px 20px 0 2px;
}
.wrap.block-editor-no-js,
.wrap.site-editor-no-js {
padding-left: 20px;
}
.wrap > h2:first-child, /* Back-compat for pre-4.4 */
.wrap [class$="icon32"] + h2, /* Back-compat for pre-4.4 */
.postbox .inside h2, /* Back-compat for pre-4.4 */

View File

@@ -319,7 +319,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<?php // JavaScript is disabled. ?>
<div class="wrap hide-if-js block-editor-no-js">
<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
<div class="notice notice-error notice-alt">
<div class="notice notice-error">
<p>
<?php
$message = sprintf(

View File

@@ -172,7 +172,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<?php // JavaScript is disabled. ?>
<div class="wrap hide-if-js site-editor-no-js">
<h1 class="wp-heading-inline"><?php _e( 'Edit site' ); ?></h1>
<div class="notice notice-error notice-alt">
<div class="notice notice-error">
<p>
<?php
/**