From 71036bfd44d052823631f749f14e3f8ca99c01df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Tue, 25 Apr 2023 08:10:22 -0300 Subject: [PATCH] Criando o partial postblock.html e usando include --- aula207_ola_django/base/global/base.html | 4 ++++ .../base/global/partials/postblock.html | 13 +++++++++++++ .../base/static/global/css/style.css | 16 +++++++++++++++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 aula207_ola_django/base/global/partials/postblock.html diff --git a/aula207_ola_django/base/global/base.html b/aula207_ola_django/base/global/base.html index e638e14..533a828 100644 --- a/aula207_ola_django/base/global/base.html +++ b/aula207_ola_django/base/global/base.html @@ -3,5 +3,9 @@

{% block texto %}{% endblock texto %}

+
+ {% include 'global/partials/postblock.html' %} +
+ diff --git a/aula207_ola_django/base/global/partials/postblock.html b/aula207_ola_django/base/global/partials/postblock.html new file mode 100644 index 0000000..f9f308e --- /dev/null +++ b/aula207_ola_django/base/global/partials/postblock.html @@ -0,0 +1,13 @@ +
+
+

Lorem ipsum dolor sit amet.

+
+
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Aperiam doloremque + praesentium nam mollitia, recusandae asperiores in corporis ut eius + architecto rerum quae adipisci. Animi, repudiandae aut alias neque ab nemo + quasi perspiciatis natus odio ad aliquid eos. Illum incidunt perspiciatis + autem dolorum maxime, repellat facere, quae assumenda adipisci iure + officiis. +
+
diff --git a/aula207_ola_django/base/static/global/css/style.css b/aula207_ola_django/base/static/global/css/style.css index cca57b3..4c6b9cc 100644 --- a/aula207_ola_django/base/static/global/css/style.css +++ b/aula207_ola_django/base/static/global/css/style.css @@ -1,5 +1,19 @@ -* { +/* Reset */ +*, +*:after, +*:before { margin: 0; padding: 0; box-sizing: border-box; } + +html { + font-size: 62.5%; +} + +body { + font-size: 1.6rem; + background: #f1f1f1; + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, + Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; +}