And made some small style changes again.
This commit is contained in:
parent
f9ed9d64eb
commit
a8053841a4
3 changed files with 8 additions and 4 deletions
|
@ -21,11 +21,11 @@
|
||||||
$randomColor = "rgba(" . rand(0, 255) . ", " . rand(0, 255) . ", " . rand(0, 255);
|
$randomColor = "rgba(" . rand(0, 255) . ", " . rand(0, 255) . ", " . rand(0, 255);
|
||||||
|
|
||||||
$useableName = str_replace("/", "_", $path);
|
$useableName = str_replace("/", "_", $path);
|
||||||
echo "#input_$useableName:checked + .submenu_$useableName,
|
echo " #input_$useableName:checked + .submenu_$useableName,
|
||||||
.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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo " <style>
|
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 generateCSSCode(completeScanDir("files"));
|
||||||
echo " </style>";
|
echo " </style>";
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue