And made some small style changes again.

This commit is contained in:
The Wobbler 2024-10-26 14:22:45 +02:00
parent f9ed9d64eb
commit a8053841a4
3 changed files with 8 additions and 4 deletions

View file

@ -21,11 +21,11 @@
$randomColor = "rgba(" . rand(0, 255) . ", " . rand(0, 255) . ", " . rand(0, 255);
$useableName = str_replace("/", "_", $path);
echo "#input_$useableName:checked + .submenu_$useableName,
echo " #input_$useableName:checked + .submenu_$useableName,
.submenu_$useableName:hover {
display: block;
background-color: $randomColor, 0.2);
}\n";
}\n\n";
generateCSSCode($filename);
}
@ -40,7 +40,7 @@
$folderName = end(explode("/", $path));
echo " $indentation<label for='input_$useableName' class='inout hcb-label label_$useableName'>$folderName</label>
$indentation<input type='checkbox' id='input_$useableName' class='hacked-checkbox'>
$indentation<div class='glass inset submenu submenu_$useableName'>\n";
$indentation<div class='glass inset submenu submenu_$useableName' id='submenu_$useableName'>\n";
if (file_exists("$path/README.txt")) { // show description text if there is a README.txt
echo " $indentation<p class='tiny-text'>Beschreibung:</p>\n";

View file

@ -6,6 +6,10 @@
background-color: rgba(46, 46, 46, 0.5)
}
.submenu:target {
display: block;
}
.file-link {
padding: 0px 16px 0px 16px;
display: block;

View file

@ -18,7 +18,7 @@
<?php
echo " <style>
/* This CSS code is php generated. Hardcoding it would be a programming war crime. :3 */\n\n ";
/* This CSS code is php generated. Hardcoding it would be a programming war crime. :3 */\n\n";
echo generateCSSCode(completeScanDir("files"));
echo " </style>";
?>