Admin mobile block: fix inline style beating media query

This commit is contained in:
Pontoporeia
2026-05-09 20:51:44 +02:00
parent 6614b04dbd
commit a80b2c08bf
9 changed files with 149 additions and 11 deletions

View File

@@ -296,7 +296,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['csv_file'])) {
synopsis, context_note, remarks,
jury_points, baiu_link,
access_type_id, is_published, submitted_at
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,1,CURRENT_TIMESTAMP)
) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,0,CURRENT_TIMESTAMP)
");
$s->execute([
!empty($identifier) ? $identifier : null, $title,

View File

@@ -349,8 +349,8 @@
padding: var(--space-3xs);
}
.admin-body main > table td.admin-ap-col,
.admin-body main > table th.admin-ap-col {
td.admin-ap-col,
th.admin-ap-col {
white-space: nowrap;
}
@@ -1898,3 +1898,48 @@
.fhb-inline-form {
margin-top: var(--space-xs);
}
/* ── Mobile: admin unavailable ─────────────────────────────────────────── */
.admin-mobile-block {
display: none;
}
@media screen and (max-width: 640px) {
.admin-body header {
display: none;
}
.admin-body main {
display: none;
}
.admin-mobile-block {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
padding: var(--space-l);
text-align: center;
color: var(--text-secondary);
}
.admin-mobile-block svg {
width: 48px;
height: 48px;
fill: var(--text-tertiary);
margin-bottom: var(--space-m);
}
.admin-mobile-block h2 {
font-size: var(--step-0);
font-weight: 600;
color: var(--text-primary);
margin: 0 0 var(--space-xs);
}
.admin-mobile-block p {
font-size: var(--step--1);
margin: 0;
}
}