From 022da504b5b9a68ccf6924ab57b74b2b94d1a7f2 Mon Sep 17 00:00:00 2001 From: kaushal-malpure Date: Wed, 25 Oct 2023 19:23:53 +0530 Subject: [PATCH 1/2] banner styling changed with addition to css file. --- djangoproject/scss/_style.scss | 8 ++++++++ djangoproject/templates/base.html | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/djangoproject/scss/_style.scss b/djangoproject/scss/_style.scss index 2013b3f42..cc9be332b 100644 --- a/djangoproject/scss/_style.scss +++ b/djangoproject/scss/_style.scss @@ -866,6 +866,14 @@ blockquote { } } +.banner{ + background-color: $green-dark; + color: $white; + text-align: center; + padding: 1em 3em; + margin: 0 auto; +} + [role="alert"] { //Announcement banner above the footer. clear: both; diff --git a/djangoproject/templates/base.html b/djangoproject/templates/base.html index 3a652ffbe..f8c1b09f2 100644 --- a/djangoproject/templates/base.html +++ b/djangoproject/templates/base.html @@ -70,12 +70,12 @@
{% block billboard %} -
-
+
{% endblock %}
From 6d7c941dc43429ed143630b05141115a1ebc9304 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 25 Oct 2023 13:57:06 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- djangoproject/scss/_style.scss | 4 ++-- djangoproject/templates/base.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/djangoproject/scss/_style.scss b/djangoproject/scss/_style.scss index cc9be332b..72e265ad3 100644 --- a/djangoproject/scss/_style.scss +++ b/djangoproject/scss/_style.scss @@ -866,12 +866,12 @@ blockquote { } } -.banner{ +.banner{ background-color: $green-dark; color: $white; text-align: center; padding: 1em 3em; - margin: 0 auto; + margin: 0 auto; } [role="alert"] { diff --git a/djangoproject/templates/base.html b/djangoproject/templates/base.html index f8c1b09f2..aff5dbfb7 100644 --- a/djangoproject/templates/base.html +++ b/djangoproject/templates/base.html @@ -75,7 +75,7 @@

Please take a few minutes to complete the Django Developers Survey 2023.
Your feedback will help guide future efforts.

-
+
{% endblock %}