diff --git a/assets/css/frontend/pages/submit.css b/assets/css/frontend/pages/submit.css index a842a2b6..bf979db4 100644 --- a/assets/css/frontend/pages/submit.css +++ b/assets/css/frontend/pages/submit.css @@ -1,24 +1,5 @@ /* Front-end article editor — follows the reference theme's newposts page. */ -.newposts-wrap { - display: flex; - align-items: flex-start; - gap: 15px; - width: 100%; - margin: 20px 0 30px; -} - -.newposts-wrap > .content-layout { - flex: 1 1 auto; - min-width: 0; -} - -.newposts-wrap > .sidebar { - display: block; - flex: 0 0 300px; - width: 300px; -} - -.newposts-wrap .zib-widget { +#aksrt-submit-form .zib-widget { margin-bottom: 15px; padding: 15px; border-radius: var(--main-radius, 8px); @@ -516,33 +497,17 @@ body.aksrt-editor-media-open { margin-right: 4px; } -.newposts-wrap [hidden] { +#aksrt-submit-form [hidden] { display: none !important; } -.newposts-wrap .new-posts-submit { - display: inline-flex; - align-items: center; - justify-content: center; - white-space: nowrap; -} - @media (max-width: 991px) { - .newposts-wrap { - display: block; + body .newposts-wrap { float: none; } - - .newposts-wrap > .sidebar { - width: 100%; - } } @media (max-width: 767px) { - .newposts-wrap { - margin-top: 10px; - } - .newposts-wrap .zib-widget { border-radius: 0; } diff --git a/templates/pages/page-submit.php b/templates/pages/page-submit.php index 2c871893..fa79f7a4 100644 --- a/templates/pages/page-submit.php +++ b/templates/pages/page-submit.php @@ -223,24 +223,24 @@ get_header(); } ?> - + +
diff --git a/tests/widget-system/post-editor-reference-contract.test.cjs b/tests/widget-system/post-editor-reference-contract.test.cjs index 1897ce62..1b6bc922 100644 --- a/tests/widget-system/post-editor-reference-contract.test.cjs +++ b/tests/widget-system/post-editor-reference-contract.test.cjs @@ -43,7 +43,8 @@ test('front submit follows the reference newposts shell and cards', () => { assert.match(page, /content-wrap newposts-wrap/); assert.match(page, /class="content-layout"/); - assert.match(page, /class="sidebar show-sidebar"/); + assert.match(page, /<\/div>\s*<\/div>\s*