Most style customizations can be done by adding and editing a file _files/css/custom.css
.
https://www.files.gallery/docs/css-styling/
Henri We need a much larger value for "menu_max_depth" than 5 in the left menu and would therefore like to reduce the spacing of the folder icons to make the display clearer. Is there a way to do this?
Can't you just increase the width of the menu? For example:
:root {
--sidebar-width: 480px;
}
Optionally, you would have to redefine the CSS style that applies left spacing. By default, it is aligned with icons for a seemingly balanced space.
.menu-a {
/* See the *.5 multiplication factor that halves the indent */
padding-left: calc((38px - var(--menu-folder-icon-size))/2 + .5 * (var(--menu-folder-icon-size) + var(--menu-text-indent) - 1px) * var(--depth));
}
Henri Also we would like to change the background color of the menu bar and the folder display.
You can do almost anything with custom CSS. Keep in mind, we use CSS gradients, and all colors are shades of the same color. Proceed at your own discretion, as you are breaking up the original design. For example:
#sidebar-topbar, #topbar-top {
background: blue;
}
Henri But the folder of files.gallery is outside this webroot and should not be accessible without a password.
Files gallery will do this by default when you pass in a root
path that is outside the server document root. Keep in mind, when Files gallery displays files outside the web root, it has to "proxy" the files. For example, instead of loading some/path/image.jpg
, it will use index.php?file=some/path/image.jpg
, because the browser can't access files directly if they are not within the server document root.
Henri Is it perhaps possible to pass the parent authentication to files.gallery?
There is no "option" for this, because we don't know how your login works, but it should be possible if you have some knowledge of PHP. You would have to edit the index.php
file, likely from the line that starts with function check_login($is_doc){ ...
.