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

@ -25,7 +25,7 @@
.submenu_$useableName:hover { .submenu_$useableName:hover {
display: block; display: block;
background-color: $randomColor, 0.2); background-color: $randomColor, 0.2);
}\n"; }\n\n";
generateCSSCode($filename); generateCSSCode($filename);
} }
@ -40,7 +40,7 @@
$folderName = end(explode("/", $path)); $folderName = end(explode("/", $path));
echo " $indentation<label for='input_$useableName' class='inout hcb-label label_$useableName'>$folderName</label> 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<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 if (file_exists("$path/README.txt")) { // show description text if there is a README.txt
echo " $indentation<p class='tiny-text'>Beschreibung:</p>\n"; echo " $indentation<p class='tiny-text'>Beschreibung:</p>\n";

View file

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