From ee32a25c2e9ceeadd184a95b0a482943e957ff29 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 18 Oct 2017 09:42:31 +0200 Subject: [PATCH] Html/Plain mode switch for mail preview --- skins/elastic/styles/widgets/mail.less | 9 +++++++++ skins/elastic/templates/message.html | 10 +++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/skins/elastic/styles/widgets/mail.less b/skins/elastic/styles/widgets/mail.less index e94949240..b52be21a2 100644 --- a/skins/elastic/styles/widgets/mail.less +++ b/skins/elastic/styles/widgets/mail.less @@ -58,6 +58,7 @@ color: #aaa; font-size: 90%; padding-right: .25rem; + text-decoration: none; &:before { &:extend(.font-icon-class); @@ -72,6 +73,14 @@ &.headers:before { content: @fa-var-wrench; } + + &.html:before { + content: @fa-var-code; + } + + &.plain:before { + content: @fa-var-align-justify; + } } } } diff --git a/skins/elastic/templates/message.html b/skins/elastic/templates/message.html index fb44979df..b8e642cf8 100644 --- a/skins/elastic/templates/message.html +++ b/skins/elastic/templates/message.html @@ -30,7 +30,15 @@ - + + + + + +