进行了一些小修复
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
box-shadow: 0 0 10px var(--main-shadow, rgba(116, 116, 116, 0.08));
|
||||
}
|
||||
|
||||
#aksrt-submit-form .new-posts-submit {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.editor-main-box {
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -505,6 +509,12 @@ body.aksrt-editor-media-open {
|
||||
body .newposts-wrap {
|
||||
float: none;
|
||||
}
|
||||
|
||||
body .sidebar.show-sidebar {
|
||||
display: unset;
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
|
||||
@@ -48,7 +48,7 @@ if (file_exists($css)) {
|
||||
wp_enqueue_style(
|
||||
'aksrt-submit',
|
||||
get_template_directory_uri() . '/assets/css/frontend/pages/submit.css',
|
||||
[],
|
||||
['aksrt-public'],
|
||||
(string) filemtime($css)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ test('front submit follows the reference newposts shell and cards', () => {
|
||||
const submit = read('templates/parts/submit/sidebar-submit.php');
|
||||
const submitJs = read('assets/js/front-submit.js');
|
||||
const submitCss = read('assets/css/frontend/pages/submit.css');
|
||||
const publicCss = read('assets/css/build/public.min.css');
|
||||
const mainCss = read('assets/css/main.css');
|
||||
const mobileSubmitCss = submitCss.slice(submitCss.indexOf('@media (max-width: 991px)'));
|
||||
|
||||
@@ -45,6 +46,7 @@ test('front submit follows the reference newposts shell and cards', () => {
|
||||
assert.match(page, /class="content-layout"/);
|
||||
assert.match(page, /<\/div>\s*<\/div>\s*<div class="sidebar show-sidebar">/);
|
||||
assert.equal((page.match(/class="sidebar show-sidebar"/g) || []).length, 1);
|
||||
assert.match(page, /'aksrt-submit',[\s\S]*?\['aksrt-public'\]/);
|
||||
assert.match(main, /zib-widget full-widget-sm editor-main-box/);
|
||||
assert.match(main, /relative newposts-title/);
|
||||
assert.match(terms, /newpost-cat-drop drop-select dropdown dependency-box/);
|
||||
@@ -59,9 +61,10 @@ test('front submit follows the reference newposts shell and cards', () => {
|
||||
assert.match(pay, /pay-dawnload-edit/);
|
||||
assert.match(submit, /separator muted-3-color theme-box/);
|
||||
assert.match(submit, /new-posts-submit/);
|
||||
assert.match(mainCss, /\.but-average > \.but\s*{[^}]*flex:\s*auto;/);
|
||||
assert.match(mainCss, /body \.sidebar\.show-sidebar\s*{[^}]*display:\s*unset;[^}]*width:\s*100%;[^}]*margin-left:\s*0;/);
|
||||
assert.match(publicCss, /\.but-average\s*>\s*\.but\s*{[^}]*flex:\s*auto/);
|
||||
assert.match(submitCss, /#aksrt-submit-form \.new-posts-submit\s*{[^}]*white-space:\s*nowrap;/);
|
||||
assert.match(mobileSubmitCss, /body \.newposts-wrap\s*{[^}]*float:\s*none;/);
|
||||
assert.match(mobileSubmitCss, /body \.sidebar\.show-sidebar\s*{[^}]*display:\s*unset;[^}]*width:\s*100%;[^}]*margin-left:\s*0;/);
|
||||
assert.doesNotMatch(submitCss, /\.newposts-wrap\s*>\s*\.(?:content-layout|sidebar)/);
|
||||
assert.doesNotMatch(submitCss, /\.newposts-wrap \.new-posts-submit/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user