From f5e96b9118f073d0fa6d6f8e04d5b6a8a2cf438b Mon Sep 17 00:00:00 2001 From: Elvia Benedith Date: Tue, 5 Dec 2023 14:47:39 +0100 Subject: [PATCH] add styles to capitalitat email template --- .../agenda_events/themes/canodrom.erb | 13 +------- .../agenda_events/themes/capitalitat.erb | 33 +++++++++++-------- 2 files changed, 21 insertions(+), 25 deletions(-) diff --git a/app/cells/decidim/newsletter_agenda/agenda_events/themes/canodrom.erb b/app/cells/decidim/newsletter_agenda/agenda_events/themes/canodrom.erb index 0081134..de29e8e 100644 --- a/app/cells/decidim/newsletter_agenda/agenda_events/themes/canodrom.erb +++ b/app/cells/decidim/newsletter_agenda/agenda_events/themes/canodrom.erb @@ -6,17 +6,6 @@ background: <%= background_color %> !important; } - table { - border-collapse: collapse !important; - } - - mso-table-lspace: 0pt; - mso-table-rspace: 0pt; - - img { - -ms-interpolation-mode: bicubic; - } - table.container, table.container td, table.container p, @@ -233,7 +222,7 @@ diff --git a/app/cells/decidim/newsletter_agenda/agenda_events/themes/capitalitat.erb b/app/cells/decidim/newsletter_agenda/agenda_events/themes/capitalitat.erb index 00110d0..c5c3f02 100644 --- a/app/cells/decidim/newsletter_agenda/agenda_events/themes/capitalitat.erb +++ b/app/cells/decidim/newsletter_agenda/agenda_events/themes/capitalitat.erb @@ -5,9 +5,6 @@ padding: 0 !important; } - mso-table-lspace: 0pt; - mso-table-rspace: 0pt; - .introduction-text, .introduction-text p { font-size: 18px !important; @@ -61,10 +58,6 @@ height: 25px; } - img { - -ms-interpolation-mode: bicubic; - } - @media only screen and (max-width: 400px) { td.mobile-responsive { width: 100% !important; @@ -97,7 +90,21 @@ } -
- <%= image_tag(image_url(:main_image, resize_to_fit: [653, 436]), width: "653", height: "436") %> + <%= image_tag image_url(:main_image, resize_to_fit: [653, 436]) %>
+ + + + + +
@@ -213,7 +220,7 @@
@@ -116,7 +123,7 @@
<% if has_image?(:main_image) %> - <%= image_tag(image_url(:main_image, resize_to_fit: [653, 436]), alt: "Intro Image", width: "653", height: "436", style: "width: 100%; height: auto;") %> + <%= image_tag image_url(:main_image, resize_to_fit: [653, 436]), alt: "Intro Image", width: "653", height: "436", style: "width: 100%; height: auto;" %> <% end %>