From 6fbca01a23d1b41e680787fcc02c6230718b3e77 Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 27 Jan 2022 13:18:45 -0600 Subject: [PATCH] css: make footer sticky. --- app/helpers/application_helper.rb | 2 +- app/javascript/src/styles/base/010_reset.scss | 4 ++++ app/javascript/src/styles/common/utilities.scss | 2 ++ app/views/layouts/default.html.erb | 2 +- app/views/static/_footer.html.erb | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ccd0c6ff3..10a04f7d3 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -266,7 +266,7 @@ module ApplicationHelper { lang: "en", - class: "c-#{controller_param} a-#{action_param}", + class: "c-#{controller_param} a-#{action_param} flex flex-col", spellcheck: "false", data: { controller: controller_param, diff --git a/app/javascript/src/styles/base/010_reset.scss b/app/javascript/src/styles/base/010_reset.scss index b928b2506..a0b8ce241 100644 --- a/app/javascript/src/styles/base/010_reset.scss +++ b/app/javascript/src/styles/base/010_reset.scss @@ -6,6 +6,10 @@ html { text-size-adjust: none; } +html, body { + height: 100%; +} + *, ::before, ::after { box-sizing: border-box; } diff --git a/app/javascript/src/styles/common/utilities.scss b/app/javascript/src/styles/common/utilities.scss index 9d477a705..b3c3f889f 100644 --- a/app/javascript/src/styles/common/utilities.scss +++ b/app/javascript/src/styles/common/utilities.scss @@ -95,7 +95,9 @@ $spacer: 0.25rem; /* 4px */ .flex-1 { flex: 1 1 0%; } .flex-auto { flex: 1 1 auto; } +.flex-initial { flex: 0 1 auto; } .flex-grow-1 { flex-grow: 1; } +.flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-center { justify-content: center; } diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb index 1a16bb66e..32377de7f 100644 --- a/app/views/layouts/default.html.erb +++ b/app/views/layouts/default.html.erb @@ -78,7 +78,7 @@ -
+
<%= render "users/verification_notice" %> <% if Danbooru.config.is_promotion? && cookies[:hide_winter_sale_notice].blank? %> diff --git a/app/views/static/_footer.html.erb b/app/views/static/_footer.html.erb index cf7dd3664..2dc26ba31 100644 --- a/app/views/static/_footer.html.erb +++ b/app/views/static/_footer.html.erb @@ -1,4 +1,4 @@ -