diff --git a/internal/assets/static/app-icon.png b/internal/assets/static/app-icon.png new file mode 100644 index 0000000..54fc413 Binary files /dev/null and b/internal/assets/static/app-icon.png differ diff --git a/internal/assets/static/main.css b/internal/assets/static/main.css index c221607..6ed4c12 100644 --- a/internal/assets/static/main.css +++ b/internal/assets/static/main.css @@ -1132,6 +1132,36 @@ body { } } +@media (max-width: 1190px) and (display-mode: standalone) { + :root { + --safe-area-inset-bottom: env(safe-area-inset-bottom, 0); + } + + .list-collapsible-label:has(.list-collapsible-input:checked) { + bottom: calc(var(--mobile-navigation-height) + var(--safe-area-inset-bottom)); + } + + .mobile-navigation { + transform: translateY(calc(100% - var(--mobile-navigation-height) - var(--safe-area-inset-bottom))); + padding-bottom: var(--safe-area-inset-bottom); + } + + .mobile-navigation-icons { + padding-bottom: var(--safe-area-inset-bottom); + transition: padding-bottom .3s; + } + + .mobile-navigation-icons:has(.mobile-navigation-page-links-input:checked) { + padding-bottom: 0; + } +} + +@media (display-mode: standalone) { + body { + padding-top: env(safe-area-inset-top, 0); + } +} + @media (max-width: 550px) { :root { font-size: 9px; diff --git a/internal/assets/static/manifest.json b/internal/assets/static/manifest.json new file mode 100644 index 0000000..8ce7aa8 --- /dev/null +++ b/internal/assets/static/manifest.json @@ -0,0 +1,13 @@ +{ + "name": "Glance", + "display": "standalone", + "scope": "/", + "start_url": "/", + "icons": [ + { + "src": "/static/app-icon.png", + "type": "image/png", + "sizes": "512x512" + } + ] +} \ No newline at end of file diff --git a/internal/assets/templates/document.html b/internal/assets/templates/document.html index 04984f8..d126d8b 100644 --- a/internal/assets/templates/document.html +++ b/internal/assets/templates/document.html @@ -5,7 +5,15 @@ {{ block "document-title" . }}{{ end }} - + + + + + + + + +