From bcf17ab2823d26a517101c344321eb7a472e6b29 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 15 May 2024 13:52:25 +0100 Subject: Tidying up the create form - using custom css --- pyblackbird_cc/resources/forms.py | 2 +- pyblackbird_cc/static/css/custom.css | 11 +++++++++++ pyblackbird_cc/static/css/project.css | 3 +-- pyblackbird_cc/static/scss/custom.scss | 13 +++++++++++++ .../templates/resources/resource_create.html | 22 ++++++++++------------ .../templates/resources/resource_list.html | 4 ++-- 6 files changed, 38 insertions(+), 17 deletions(-) (limited to 'pyblackbird_cc') diff --git a/pyblackbird_cc/resources/forms.py b/pyblackbird_cc/resources/forms.py index 9645a82..f905811 100644 --- a/pyblackbird_cc/resources/forms.py +++ b/pyblackbird_cc/resources/forms.py @@ -26,7 +26,7 @@ class ResourceCreateForm(forms.Form): name = forms.CharField( max_length=255, help_text="Concisely describe what the resource is, aiming for" - "35-45 characters. " + " in 35-45 characters. " "eg: 'Fractions KS2 Worksheet and Answers.'", ) description = forms.CharField( diff --git a/pyblackbird_cc/static/css/custom.css b/pyblackbird_cc/static/css/custom.css index 833e0a0..5df7099 100644 --- a/pyblackbird_cc/static/css/custom.css +++ b/pyblackbird_cc/static/css/custom.css @@ -6149,3 +6149,14 @@ progress { display: none !important; } } +h2, .h2 { + color: #51635e; +} + +.form-label { + font-weight: 500; +} + +.asteriskField { + color: red; +} diff --git a/pyblackbird_cc/static/css/project.css b/pyblackbird_cc/static/css/project.css index 0f95690..a0a7496 100644 --- a/pyblackbird_cc/static/css/project.css +++ b/pyblackbird_cc/static/css/project.css @@ -34,9 +34,8 @@ body { h1 { color: #657c76; - font-size: 1.8rem; + font-size: 2.0rem; font-weight: bold; - } a { diff --git a/pyblackbird_cc/static/scss/custom.scss b/pyblackbird_cc/static/scss/custom.scss index fc9b6c4..a87a968 100644 --- a/pyblackbird_cc/static/scss/custom.scss +++ b/pyblackbird_cc/static/scss/custom.scss @@ -7,6 +7,7 @@ // 2. Include any default variable overrides here $primary: #51635EFF; $display-font-weight: 600; +$ml-font-label-weight: 500; // 3. Include remainder of required Bootstrap stylesheets @import "../bootstrap/scss/variables"; @@ -22,3 +23,15 @@ $display-font-weight: 600; @import "../bootstrap/scss/buttons"; @import "../bootstrap/scss/bootstrap-utilities"; // 5. Add additional custom code here + +h2 { + color: $primary; +} + +.form-label { + font-weight: $ml-font-label-weight; +} + +.asteriskField { + color: red; +} diff --git a/pyblackbird_cc/templates/resources/resource_create.html b/pyblackbird_cc/templates/resources/resource_create.html index c10e7b8..d428e46 100644 --- a/pyblackbird_cc/templates/resources/resource_create.html +++ b/pyblackbird_cc/templates/resources/resource_create.html @@ -7,18 +7,16 @@ {# #} {# {% endblock %}#} {% block content %} -
-
-
-

Upload a new resource

-

{% lorem %}

-
- {% csrf_token %} - {% crispy form form.helper %} -
-
+
+
+

Upload a new resource

+

{% lorem %}

+
+ {% csrf_token %} + {% crispy form form.helper %} +
{% endblock content %} diff --git a/pyblackbird_cc/templates/resources/resource_list.html b/pyblackbird_cc/templates/resources/resource_list.html index 2a6ab3a..3c8780f 100644 --- a/pyblackbird_cc/templates/resources/resource_list.html +++ b/pyblackbird_cc/templates/resources/resource_list.html @@ -44,7 +44,7 @@
-
+
Welcome!

I love to make clear and colourful resources and can't resist using rainbow colours @@ -53,7 +53,7 @@ I am also available to tutor younger learners online via Sherpa!

-
+

Subscriptions available now!

I love to make clear and colourful resources and can't resist using rainbow colours -- cgit v1.2.3