From 397848f9f7f692c3b8ac43efbc85b231ac32cb08 Mon Sep 17 00:00:00 2001
From: Suraj Shetty
Date: Tue, 19 Jan 2021 17:37:05 +0530
Subject: [PATCH] fix: Email new notification style
---
frappe/public/scss/email.scss | 28 +++++++++++++++++--
frappe/templates/emails/new_notification.html | 3 +-
2 files changed, 27 insertions(+), 4 deletions(-)
diff --git a/frappe/public/scss/email.scss b/frappe/public/scss/email.scss
index 1b7576bc68..da23e259a2 100644
--- a/frappe/public/scss/email.scss
+++ b/frappe/public/scss/email.scss
@@ -11,6 +11,8 @@ $gray-100: #F4F5F6;
$gray-50: #F9FAFA;
$primary: #2490EF;
+$blue-500: #2D95F0;
+
$text-color: $gray-900;
$border-color: $gray-100;
$dark-border-color: $gray-200;
@@ -29,8 +31,12 @@ body {
color: $text-color;
}
+a {
+ color: $blue-500;
+}
+
p {
- margin: 1em 0 !important;
+ margin: 5px 0 !important;
}
.ql-editor {
@@ -210,7 +216,6 @@ hr {
.more-info {
font-size: 80% !important;
color: $text-muted !important;
- border-top: 1px solid $border-color;
padding-top: 10px;
}
@@ -316,3 +321,22 @@ hr {
line-height: 28px;
font-size: 12px;
}
+
+blockquote {
+ padding: 1px 15px;
+ position: relative;
+ margin-left: 0px;
+ p {
+ margin: 5px 0;
+ }
+}
+
+blockquote:before {
+ content: "";
+ width: 2px;
+ height: 100%;
+ position: absolute;
+ background: $gray-300;
+ border-radius: 1px;
+ left: 0;
+}
\ No newline at end of file
diff --git a/frappe/templates/emails/new_notification.html b/frappe/templates/emails/new_notification.html
index 4eea49a712..6700b44238 100644
--- a/frappe/templates/emails/new_notification.html
+++ b/frappe/templates/emails/new_notification.html
@@ -2,8 +2,7 @@
{{ body_content }}
{% if description %}
-
+
{{ description | markdown }}
{% endif %}