From 528404ff96d4f8dbef2b3002db799f2b7618eb44 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 3 Apr 2017 17:34:03 +0200 Subject: [PATCH] Support embed style for attachment preview --- skins/elastic/README | 1 + skins/elastic/meta.json | 3 ++- skins/elastic/styles/embed.less | 29 +++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 skins/elastic/styles/embed.less diff --git a/skins/elastic/README b/skins/elastic/README index fe971eee5..eb26c7f09 100644 --- a/skins/elastic/README +++ b/skins/elastic/README @@ -41,6 +41,7 @@ RPM package which depends on nodejs. $ lessc -x styles/styles.less > styles/styles.css $ lessc -x styles/print.less > styles/print.css + $ lessc -x styles/embed.less > styles/embed.css (the -x option minifies the CSS code) diff --git a/skins/elastic/meta.json b/skins/elastic/meta.json index 2bbef8880..4b89697c2 100644 --- a/skins/elastic/meta.json +++ b/skins/elastic/meta.json @@ -4,6 +4,7 @@ "license": "Creative Commons Attribution-ShareAlike", "license-url": "http://creativecommons.org/licenses/by-sa/3.0/", "config": { - "layout": "widescreen" + "layout": "widescreen", + "embed_css_location": "/styles/embed.css" } } diff --git a/skins/elastic/styles/embed.less b/skins/elastic/styles/embed.less new file mode 100644 index 000000000..048a91cf4 --- /dev/null +++ b/skins/elastic/styles/embed.less @@ -0,0 +1,29 @@ +/* Style for embedded inline warning */ + +/* TODO: review */ + +.rcmail-inline-message { + font-family: sans-serif; + font-size: 11px; + font-weight: bold; + color: #996600; + border: 1px solid #ffdf0e; + background: url("images/messages.png") no-repeat scroll 5px -83px #fef893; + padding: 6px 12px 4px 30px; + margin-bottom: 0.8em; +} + +.rcmail-inline-message em { + font-size: 90%; +} + +.rcmail-inline-buttons { + margin-bottom: 0; + display: inline; +} + +.rcmail-inline-buttons > button { + margin-left: 1em; + vertical-align: baseline; + line-height: 12px; +}