进行了一些小修复
This commit is contained in:
1 parent
fbada8bd6a
commit
8111b17392
3 files changed
+10
-12
No files matched your search
@@ -520,18 +520,11 @@ body.aksrt-editor-media-open {
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newposts-wrap .but-average {
|
|
||||||
display: flex;
|
|
||||||
align-items: stretch;
|
|
||||||
gap: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.newposts-wrap .but-average > * {
|
|
||||||
flex: 1 1 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.newposts-wrap .new-posts-submit {
|
.newposts-wrap .new-posts-submit {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 991px) {
|
@media (max-width: 991px) {
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ get_header();
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<aside class="sidebar">
|
<aside class="sidebar show-sidebar">
|
||||||
<?php \AKSRT\WidgetSystem\WidgetAreas::render('newposts_sidebar_top'); ?>
|
<?php \AKSRT\WidgetSystem\WidgetAreas::render('newposts_sidebar_top'); ?>
|
||||||
<?php
|
<?php
|
||||||
$terms = get_template_directory() . '/templates/parts/submit/sidebar-terms.php';
|
$terms = get_template_directory() . '/templates/parts/submit/sidebar-terms.php';
|
||||||
|
|||||||
@@ -39,10 +39,11 @@ test('front submit follows the reference newposts shell and cards', () => {
|
|||||||
const submitJs = read('assets/js/front-submit.js');
|
const submitJs = read('assets/js/front-submit.js');
|
||||||
const submitCss = read('assets/css/frontend/pages/submit.css');
|
const submitCss = read('assets/css/frontend/pages/submit.css');
|
||||||
const mainCss = read('assets/css/main.css');
|
const mainCss = read('assets/css/main.css');
|
||||||
|
const mobileSubmitCss = submitCss.slice(submitCss.indexOf('@media (max-width: 991px)'));
|
||||||
|
|
||||||
assert.match(page, /content-wrap newposts-wrap/);
|
assert.match(page, /content-wrap newposts-wrap/);
|
||||||
assert.match(page, /class="content-layout"/);
|
assert.match(page, /class="content-layout"/);
|
||||||
assert.match(page, /class="sidebar"/);
|
assert.match(page, /class="sidebar show-sidebar"/);
|
||||||
assert.match(main, /zib-widget full-widget-sm editor-main-box/);
|
assert.match(main, /zib-widget full-widget-sm editor-main-box/);
|
||||||
assert.match(main, /relative newposts-title/);
|
assert.match(main, /relative newposts-title/);
|
||||||
assert.match(terms, /newpost-cat-drop drop-select dropdown dependency-box/);
|
assert.match(terms, /newpost-cat-drop drop-select dropdown dependency-box/);
|
||||||
@@ -57,6 +58,10 @@ test('front submit follows the reference newposts shell and cards', () => {
|
|||||||
assert.match(pay, /pay-dawnload-edit/);
|
assert.match(pay, /pay-dawnload-edit/);
|
||||||
assert.match(submit, /separator muted-3-color theme-box/);
|
assert.match(submit, /separator muted-3-color theme-box/);
|
||||||
assert.match(submit, /new-posts-submit/);
|
assert.match(submit, /new-posts-submit/);
|
||||||
|
assert.match(submitCss, /\.newposts-wrap \.new-posts-submit\s*{[^}]*display:\s*inline-flex;[^}]*white-space:\s*nowrap;/);
|
||||||
|
assert.doesNotMatch(submitCss, /\.newposts-wrap \.but-average\s*>\s*\*\s*{[^}]*flex:\s*1 1 0;/);
|
||||||
|
assert.match(mobileSubmitCss, /\.newposts-wrap\s*{[^}]*display:\s*block;/);
|
||||||
|
assert.match(mobileSubmitCss, /\.newposts-wrap > \.sidebar\s*{[^}]*width:\s*100%;/);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('front submit paid resources use the reference modal editor and compact list', () => {
|
test('front submit paid resources use the reference modal editor and compact list', () => {
|
||||||
|
|||||||
Reference in new issue
Block a user