Skip to content

Commit

Permalink
fix: footer position
Browse files Browse the repository at this point in the history
Closes #1439
  • Loading branch information
HEIGE-PCloud committed Feb 20, 2025
1 parent 1a5a232 commit cee30bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,14 @@ html.dark {
max-height: 100%;
}

.tw-min-h-full {
min-height: 100%;
}

.tw-min-h-screen {
min-height: 100vh;
}

.tw-w-full {
width: 100%;
}
Expand All @@ -905,6 +913,10 @@ html.dark {
max-width: 100%;
}

.tw-flex-1 {
flex: 1 1 0%;
}

.tw-translate-y-\[-2px\] {
--tw-translate-y: -2px;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
By default, instant.page preloads 65 ms after hovering a link and when a mobile user starts touching their display. There are other options.
Preloading links as soon as they’re visible. On small mobile devices (such as smartphones) if you want your pages to be instant in more situations you can preload links as soon as they’re visible.
*/}}
<body data-instant-intensity="viewport">
<body data-instant-intensity="viewport" class="tw-flex tw-min-h-screen tw-flex-col">
{{- partial "theme.html" . -}}
<div id="back-to-top"></div>
<div id="mask"></div>
{{- partial "header.html" . -}}
<main class="tw-mx-4">
<main class="tw-mx-4 tw-flex-1">
{{- block "content" . }}{{ end -}}
</main>
{{- partial "footer.html" . -}}
Expand Down

0 comments on commit cee30bd

Please sign in to comment.