瀏覽代碼

Add CSS to keep footer always at the bottom

Stasiek Michalski 7 年之前
父節點
當前提交
ddbf0adb67
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      resources/assets/sass/custom.scss

+ 12 - 0
resources/assets/sass/custom.scss

@@ -1,3 +1,15 @@
+html, body {
+  min-height:100vh;
+}
+
+body {
+  display: flex;
+  flex-flow: column;
+}
+
+#content {
+  margin-bottom: auto !important;
+}
 body, button, input, textarea {
 body, button, input, textarea {
     font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",
     font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",
                  Roboto,Helvetica,Arial,sans-serif;
                  Roboto,Helvetica,Arial,sans-serif;