From fecfec6debb32a2a3fb3adf00abecdabdc9b96b9 Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Tue, 29 Sep 2020 00:43:19 +0100 Subject: [PATCH] Improved bidirectionality on the 'Congrats' page. Follow up to 9012033138fa41b573d3e4e3f0dfa8b94a4719c6. --- django/views/templates/default_urlconf.html | 65 +++++++-------------- 1 file changed, 22 insertions(+), 43 deletions(-) diff --git a/django/views/templates/default_urlconf.html b/django/views/templates/default_urlconf.html index 5092377bf4..ce1084ec4e 100644 --- a/django/views/templates/default_urlconf.html +++ b/django/views/templates/default_urlconf.html @@ -26,30 +26,25 @@ main { text-align: center; } - .u-clearfix:after { - content: ""; - clear: both; - display: table; - } h1, h2, h3, h4, h5, p, ul { padding: 0; margin: 0; font-weight: 400; } header { + display: grid; + grid-template-columns: auto auto; + align-items: self-end; + justify-content: space-between; + gap: 7px; padding-top: 20px; padding-bottom: 10px; } .logo { - float: left; font-weight: 700; font-size: 1.375rem; text-decoration: none; } - .release-notes { - float: right; - margin-top: 7px; - } .figure { margin-top: 19vh; max-width: 265px; @@ -108,8 +103,12 @@ margin: 15px auto 0; } footer { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 5px; padding: 25px 0; position: fixed; + box-sizing: border-box; left: 50%; bottom: 0; width: 960px; @@ -118,11 +117,10 @@ border-top: 1px solid #efefef; } .option { - display: block; - float: left; - width: 33.33%; + display: grid; + grid-template-columns: min-content 1fr; + gap: 10px; box-sizing: border-box; - padding-right: 5px; text-decoration: none; } .option svg { @@ -132,8 +130,6 @@ border: 1px solid #d6d6d6; padding: 5px; border-radius: 100%; - float: left; - margin-right: 10px; } .option p { font-weight: 300; @@ -152,27 +148,12 @@ } } @media (max-width: 800px) { - footer, main { - position: relative; - } footer { height: 100%; - } - .option { + grid-template-columns: 1fr; + gap: 60px; position: relative; - width: 100%; - left: auto; - right: auto; - top: auto; - padding: 0 25px; - margin-bottom: 60px; - } - .two { - margin-left: 0px; - transform: none; - } - .logo, .option, .release-notes { - float: none; + padding: 25px; } .figure { margin-top: 10px; @@ -184,11 +165,11 @@ font-size: 1.25rem; } header { + grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; } footer { - overflow: hidden; width: 100%; margin-top: 50px; } @@ -219,13 +200,11 @@ -
+
-
-

{% blocktranslate %}View release notes for Django {{ version }}{% endblocktranslate %}

-
+

{% blocktranslate %}View release notes for Django {{ version }}{% endblocktranslate %}

{% translate "The install worked successfully! Congratulations!" %}

{% blocktranslate %}You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.{% endblocktranslate %}

-