Change the IDs

This commit is contained in:
Dan 2025-04-21 14:24:18 +07:00
commit a305ba2b31
2 changed files with 10 additions and 10 deletions

View file

@ -1626,9 +1626,9 @@ function toolbar()
$toolbar = '';
$toolbar .= <<<EOF
<link href="{$base}system/resources/css/toolbar.css" rel="stylesheet" />
<link href="{$base}system/resources/css/toolbar.css?v=1" rel="stylesheet" />
EOF;
$toolbar .= '<div id="toolbar"><label for="menu-toggle" id="menu-button">☰ ' . i18n('Menu') . '</label><input type="checkbox" id="menu-toggle"><div id="menu"><ul>';
$toolbar .= '<div id="toolbar"><label for="htmly-menu-toggle" id="htmly-menu-button">☰ ' . i18n('Menu') . '</label><input type="checkbox" id="htmly-menu-toggle"><div id="htmly-menu"><ul>';
$toolbar .= '<li class="tb-admin"><a href="' . $base . 'admin">' . i18n('Admin') . '</a></li>';
$toolbar .= '<li class="tb-addcontent"><a href="' . $base . 'admin/content">' . i18n('Add_content') . '</a></li>';
if ($role === 'editor' || $role === 'admin') {

View file

@ -62,7 +62,7 @@ table#config input {
table#config tr:last-child td {
border-bottom: none
}
#menu-toggle {
#htmly-menu-toggle {
display: none;
background: #666;
color: white;
@ -72,15 +72,15 @@ table#config tr:last-child td {
font-size: 18px;
}
#menu {
#htmly-menu {
display: block;
}
#menu-toggle {
#htmly-menu-toggle {
display: none;
}
#menu-button {
#htmly-menu-button {
display: none;
background: #666;
color: white;
@ -90,11 +90,11 @@ table#config tr:last-child td {
}
@media all and (max-width: 550px) {
#menu-button {
#htmly-menu-button {
display: block;
}
#menu {
#htmly-menu {
display: none;
background: #666;
position: absolute;
@ -104,13 +104,13 @@ table#config tr:last-child td {
box-shadow: 0 5px 15px #000;
}
#menu ul {
#htmly-menu ul {
display: flex;
flex-direction: column;
text-align: center;
}
#menu-toggle:checked + #menu {
#htmly-menu-toggle:checked + #htmly-menu {
display: block;
}
}