Authentication-Results: mail-b.sr.ht; dkim=pass header.d=alyssa.is header.i=@alyssa.is; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mail-b.sr.ht (Postfix) with ESMTPS id 439A911EF0F for <~qaul/community@lists.sr.ht>; Fri, 26 Feb 2021 13:56:42 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 1C3ED5C011B; Fri, 26 Feb 2021 08:56:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 26 Feb 2021 08:56:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=k4x3uT8xzcDPD Zn+kYg8srJ7e1fQYCTiHJqfR16f8ok=; b=Nc9Ylx0AvsacGvbiKbJxC0rBZeGVz x576Q1/Hk9GWbSPDlYk2biaHtkna7ZDUPt+rVtBRGzpJ6Nzt1iTv2fpfIRFyjHm7 PAotrjx/1YmlRWgUAx+lEg7YQHqE+bd6hjXoNyHVxTupd/7ddH5DM9zdQh5Zc71a eWSeUncBdFzP7JQ7+qA6OY6xBzKcdMIo3k2D8CxbwGuIqfijygUrq7wWSUV+zfem mH/ehieSG1E5AujGOHjQSDZZHq4n/+90adzpidh7bhwqd0qqfrdC9VoXG3WxDQA8 lUKVFSDmM5t5m5HcK2/3WimQDTod39yAiNf8gOE/kw7TZ9ZqX1tbRN8QA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=k4x3uT8xzcDPDZn+kYg8srJ7e1fQYCTiHJqfR16f8ok=; b=wohUo/Ys soydVxPcKdcKE+T8Vn2EErRZEaF7JWwg32f3QMccHkR6a6CPI5qk+3UzXehJk4A7 ZyiLytuaQlDpqaOMua9YbCZTLRhCp+kk9VIqTbEustWS5B0HVFIkwZrJdjll9dCd GvL7pkEEEnIsR8HZy2dUsniomVyxNs41ZH/dJrtdIDsckkHOHmet/3DDXyNBjCN5 yTkXwMZ4+1PYGKzKN8vEgGtjTar3WsL7iJoN1K1OZE57k92r7c5mWSpQJtRD78yr Xl9TqzS+q4btKT8nfsjyrvEXaEvSq9UzKG0x5UWWMsJia1xy1QRG0xIzBZULXxm+ 6e4C+QJABQGhOg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrledugdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeetlhihshhsrgcutfhoshhsuceohhhisegrlhihshhsrgdrihhs qeenucggtffrrghtthgvrhhnpeeutdfgleelgefggeefiefhvefgudeiueefheekueduhf fhheegveejfffgkeehleenucffohhmrghinhepshhrrdhhthenucfkphepjeelrddvfeeh rdduvddvrddugeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepqhihlhhishhssegvvhgvrdhqhihlihhsshdrnhgvth X-ME-Proxy: Received: from eve.qyliss.net (p4feb7a91.dip0.t-ipconnect.de [79.235.122.145]) by mail.messagingengine.com (Postfix) with ESMTPA id 88D36108005F; Fri, 26 Feb 2021 08:56:41 -0500 (EST) Received: by eve.qyliss.net (Postfix, from userid 1000) id 7CB6DEB3; Fri, 26 Feb 2021 13:56:40 +0000 (UTC) From: Alyssa Ross To: ~qaul/community@lists.sr.ht Cc: Katharina Fey Subject: [PATCH 3/3] docs/website: pin footer to bottom of viewport Date: Fri, 26 Feb 2021 13:56:38 +0000 Message-Id: <20210226135638.2560-1-hi@alyssa.is> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210226135046.32283-1-hi@alyssa.is> References: <20210226135046.32283-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Previously, the footer would show up immediately after the content on short pages, so it would appear in the middle of the page, with blank space after it. We can solve that by making all blocks (apart from the header and footer) grow equally until they've filled up the page, making sure the footer is no higher than the bottom of the window. We have to set align-items center, or otherwise the content will appear at the top of a stretched block, which looks fine on a page with just a single stretched block, but not so good on a page with several like the home page. --- This patch is similar to Milan's patch[1], but it also makes the stretched blocks center their contents as described above. I also have to reset flex-grow on the header and footer because of the shared "block" class I introduced earlier in this series. [1]: https://lists.sr.ht/~qaul/community/%3C20210226131524.12552-1-milan%40petabyte.dev%3E docs/website/themes/qaul-theme/static/css/qaul.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/website/themes/qaul-theme/static/css/qaul.css b/docs/website/themes/qaul-theme/static/css/qaul.css index 47ff119c..ebd6290e 100644 --- a/docs/website/themes/qaul-theme/static/css/qaul.css +++ b/docs/website/themes/qaul-theme/static/css/qaul.css @@ -5,6 +5,7 @@ body { font-family: sans-serif; background: #e0e2e2; font-weight: 300; + min-height: 100vh; } strong { @@ -27,11 +28,14 @@ p,li { .block { display: flex; + flex-grow: 1; justify-content: center; + align-items: center; padding: 2em; } header.block, footer.block { + flex-grow: 0; background: black; color: #EFEFEF; } -- 2.30.0