mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-01 06:41:41 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
8
app/views/shared/mailers/_greeting_and_intro.html.haml
Normal file
8
app/views/shared/mailers/_greeting_and_intro.html.haml
Normal 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
|
||||
Reference in New Issue
Block a user