mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
admin/add: add ?mode=student toggle — hides admin header, keeps admin form css
This commit is contained in:
@@ -49,11 +49,11 @@ function wasSelected($key, $value) {
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
$isAdmin = true;
|
||||
if ($studentMode) {
|
||||
$bodyClass = 'student-body';
|
||||
$bodyClass = 'admin-body student-body';
|
||||
require_once APP_ROOT . '/templates/head.php';
|
||||
} else {
|
||||
$isAdmin = true;
|
||||
$bodyClass = 'admin-body';
|
||||
require_once APP_ROOT . '/templates/head.php';
|
||||
include APP_ROOT . '/templates/header.php';
|
||||
|
||||
@@ -1684,11 +1684,7 @@
|
||||
gap: var(--space-3xs);
|
||||
}
|
||||
|
||||
/* ── Student mode & toggle ──────────────────────────────────────────────────── */
|
||||
.student-body header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ════ Student mode (modifier on admin-body) ════════════════════════════════ */
|
||||
.student-body main {
|
||||
max-width: 720px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user