From de23c885c3708224e59a3641bee404377e33aaae Mon Sep 17 00:00:00 2001 From: Jiro Ghianni Date: Tue, 13 Feb 2024 16:00:59 +0100 Subject: [PATCH] [#2059] Simplified and improved padding of mail templates --- .../conf/parts/case_status_notification.html | 22 ++++++++++---- ...e_status_notification_action_required.html | 19 +++++++----- src/open_inwoner/static/mailcss/email.css | 30 +++++++++++++++++-- src/open_inwoner/templates/mail/_base.html | 6 ++-- 4 files changed, 58 insertions(+), 19 deletions(-) diff --git a/src/open_inwoner/conf/parts/case_status_notification.html b/src/open_inwoner/conf/parts/case_status_notification.html index 566c6d587a..9a791b2211 100644 --- a/src/open_inwoner/conf/parts/case_status_notification.html +++ b/src/open_inwoner/conf/parts/case_status_notification.html @@ -6,6 +6,11 @@

Er is iets veranderd in één van uw aanvragen.

+ + +   + +

Nieuw:

@@ -14,7 +19,7 @@

Nieuw:

Aanvraag:

-

{{ type_description }}

+

{{ type_description }}

Zaaknummer:
{{ identification }}

@@ -42,9 +47,14 @@

{{ type_description }}

- +

U hoeft niets te doen. Zodra er weer een update beschikbaar is ontvangt u hier een melding over. U kunt wel inloggen om uw aanvraag te bekijken.

-

Log in

+

Log in

+ + + + +   @@ -67,9 +77,9 @@

{{ type_description }}

- Ga naar onze contactpagina +

Ga naar onze contactpagina

- Bel 14050 +

Bel 14050

@@ -78,7 +88,7 @@

{{ type_description }}

-

Pas hier uw voorkeuren aan voor de notificaties.

+

Pas hier uw voorkeuren aan voor de notificaties.

diff --git a/src/open_inwoner/conf/parts/case_status_notification_action_required.html b/src/open_inwoner/conf/parts/case_status_notification_action_required.html index f77de79a33..aed640a5ff 100644 --- a/src/open_inwoner/conf/parts/case_status_notification_action_required.html +++ b/src/open_inwoner/conf/parts/case_status_notification_action_required.html @@ -6,6 +6,11 @@

Er is iets veranderd in één van uw aanvragen.

+ + +   + +

Nieuw:

@@ -14,7 +19,7 @@

Nieuw:

Aanvraag:

-

{{ type_description }}

+

{{ type_description }}

Zaaknummer:
{{ identification }}

@@ -40,13 +45,13 @@

{{ type_description }}

- Upload documenten +

Log in om de documenten te uploaden.

+ Log in - -

U hoeft niets te doen. Zodra er weer een update beschikbaar is ontvangt u hier een melding over.

-

Bekijk aanvraag →

+ +   @@ -69,9 +74,9 @@

{{ type_description }}

- Ga naar onze contactpagina +

Ga naar onze contactpagina

- Bel 14050 +

Bel 14050

diff --git a/src/open_inwoner/static/mailcss/email.css b/src/open_inwoner/static/mailcss/email.css index 6a9cd32416..0dfd0d3652 100644 --- a/src/open_inwoner/static/mailcss/email.css +++ b/src/open_inwoner/static/mailcss/email.css @@ -17,7 +17,7 @@ p { margin: 0; } -.heading-font, h1 { +.heading-font, h1, h2, h3, h4 { color: #000000; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-weight: bold; @@ -44,13 +44,33 @@ td, .td-mail { /* Class styles for differing elements */ -.logo-mail { +.td-mail__bg-danger .td-mail__bg-white a { + color: #704000; +} + +.td-mail__bg-info .td-mail__bg-white a, .td-mail__bg-info a, .td__info-link a { + color: #2566A7; +} + +.td__logo-mail { text-align: center; + padding-top: 16px; +} + +.img__logo-mail { width: auto; max-height: 55px; max-width: 600px; } +.td-mail h1 { + font-size: 20px; +} + +.td-mail h2 { + font-size: 18px; +} + .td-mail.align-top { vertical-align: top; } @@ -65,7 +85,7 @@ td.align-center { .td-mail.spacer-bottom { border-bottom: 1px solid #d2d2d2; - padding-top: 80px; + padding-top: 60px; } .td-mail--accent { @@ -118,6 +138,10 @@ td.align-center { padding: 0; } +.spacing__extra { + height: 20px; +} + /* Theme-colors and other mail-template colors */ .text-color__info { diff --git a/src/open_inwoner/templates/mail/_base.html b/src/open_inwoner/templates/mail/_base.html index c64d9e248a..819ac4a9f3 100644 --- a/src/open_inwoner/templates/mail/_base.html +++ b/src/open_inwoner/templates/mail/_base.html @@ -163,9 +163,9 @@   - - - + + +