Add new partial for greeting, intro text and logo (if present) to use in ALL emails

Adjust maximum size of logo and improve responsive behaviour on small screens (display logo centered and above text)
This commit is contained in:
drummer83
2024-01-17 23:22:57 +01:00
parent d8072aa207
commit 2baf6c18b2
2 changed files with 17 additions and 0 deletions

View File

@@ -181,6 +181,10 @@ a {
img.float-right {
float: right;
display: block;
max-width: 100px;
max-height: 100px;
margin-bottom: 15px;
margin-left: 15px;
}
del.quantity_was {
@@ -379,6 +383,10 @@ ul {
}
}
.greeting_and_intro {
overflow: hidden;
}
/* Let's make sure tables in the content area are 100% wide */
/* Odds and ends */
@@ -445,6 +453,7 @@ ul {
img.float-right {
float: none !important;
margin: 0px auto 15px;
}
}

View File

@@ -0,0 +1,8 @@
.greeting_and_intro
- if @enterprise_for_logo
= image_tag @enterprise_for_logo.logo_url(:medium), class: "float-right"
%h4
= greeting
%p
= intro