From 89e1ffbb4d58f3257843f5effb73017d97ea5f85 Mon Sep 17 00:00:00 2001 From: cleverson Date: Sun, 21 Apr 2024 12:24:29 -0300 Subject: [PATCH] =?UTF-8?q?adi=C3=A7=C3=A3o=20de=20script=20de=20anuncios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/ads.css | 27 +++++++++++++++++++++++++++ templates/blog/render_text.html | 32 ++++++++++++++++++++++++++++++-- templates/layout.html | 4 +++- 3 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 static/css/ads.css diff --git a/static/css/ads.css b/static/css/ads.css new file mode 100644 index 0000000..0e3236f --- /dev/null +++ b/static/css/ads.css @@ -0,0 +1,27 @@ +.mobileShow { + display: none; + margin-left: auto; + margin-right: auto; +} + +/* Smartphone Portrait and Landscape */ +@media only screen + and (min-device-width : 320px) + and (max-device-width : 480px){ + .mobileShow { + display: inline; + } +} + +.mobileHide { + display: inline; + margin-left: auto; + margin-right: auto; +} + +/* Smartphone Portrait and Landscape */ +@media only screen + and (min-device-width : 320px) + and (max-device-width : 480px){ + .mobileHide { display: none;} +} \ No newline at end of file diff --git a/templates/blog/render_text.html b/templates/blog/render_text.html index afb3a5c..920caa1 100644 --- a/templates/blog/render_text.html +++ b/templates/blog/render_text.html @@ -6,12 +6,40 @@

{{title}}

+ +
+ + +
+ +
+ + +
+ + + {% endblock %} \ No newline at end of file diff --git a/templates/layout.html b/templates/layout.html index 8b617b3..6af89b5 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -30,7 +30,9 @@ + + @@ -42,7 +44,7 @@ {% include 'components/footer.html' %} - + \ No newline at end of file