Set box shadow to all sites, prevent scrolling

This commit is contained in:
Marc Ole Bulling
2026-01-26 15:11:33 +01:00
parent a9da3f8c88
commit 8c17325e93
5 changed files with 17 additions and 7 deletions

View File

@@ -28,6 +28,20 @@ body {
-webkit-box-pack: center;
justify-content: center;
}
body::after {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* This creates the inset border effect */
box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.5);
/* Essential: allows clicking buttons/inputs through the shadow */
pointer-events: none;
/* Ensures it stays above the background but below modals if needed */
z-index: 10;
}
td {
vertical-align: middle;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -58,11 +58,6 @@
{{ else }}
<title>{{.PublicName}}</title>
{{end }}
<style>
body {
box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);
}
</style>
{{ if .CustomContent.UseCustomCss }}
<link href="./custom/custom.v{{.CustomContent.Version}}.css" rel="stylesheet">
{{ end }}

View File

@@ -1,5 +1,6 @@
{{define "publicUpload"}}{{template "header" .}}
<main style="margin-top: 2rem">
<div class="row justify-content-center">
<div class="col-lg-8">