mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:32:25 -05:00
wrap all page content in container
for robustness with addons etc injection other elements in body
This commit is contained in:
parent
143ddaa96c
commit
23786826a8
3 changed files with 38 additions and 29 deletions
|
|
@ -7,11 +7,18 @@ html, body {
|
|||
}
|
||||
|
||||
body {
|
||||
line-height: 1.5em;
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.page {
|
||||
position: absolute;
|
||||
display: grid;
|
||||
min-height: 100%;
|
||||
min-width: 100%;
|
||||
|
||||
grid-template-rows: auto 1fr auto;
|
||||
min-height: 100vh;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
main {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
{{ if .javascript }}
|
||||
{{ range .javascript }}
|
||||
<script src="{{.}}"></script>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<!-- Header tmpl -->
|
||||
<!-- header.tmpl -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
|
@ -17,6 +17,7 @@
|
|||
<title>{{.instance.Title}} - GoToSocial</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="page">
|
||||
<header>
|
||||
<img src="/assets/logo.png" alt="Instance Logo"/>
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue