mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 03:54:36 -04:00
Align content to left by default
This commit is contained in:
parent
dfb8500a58
commit
653973c826
@ -123,7 +123,7 @@ class EmailTemplateDefaults
|
|||||||
|
|
||||||
public static function emailInvoiceTemplate()
|
public static function emailInvoiceTemplate()
|
||||||
{
|
{
|
||||||
$invoice_message = '<p>'.self::transformText('invoice_message').'</p><p>$view_link</p>';
|
$invoice_message = '<p>'.self::transformText('invoice_message').'</p><div class="center">$view_link</div>';
|
||||||
|
|
||||||
return $invoice_message;
|
return $invoice_message;
|
||||||
}
|
}
|
||||||
@ -135,7 +135,7 @@ class EmailTemplateDefaults
|
|||||||
|
|
||||||
public static function emailQuoteTemplate()
|
public static function emailQuoteTemplate()
|
||||||
{
|
{
|
||||||
$quote_message = '<p>'.self::transformText('quote_message').'</p><p>$view_link</p>';
|
$quote_message = '<p>'.self::transformText('quote_message').'</p><div class="center">$view_link</div>';
|
||||||
|
|
||||||
return $quote_message;
|
return $quote_message;
|
||||||
}
|
}
|
||||||
@ -147,21 +147,21 @@ class EmailTemplateDefaults
|
|||||||
|
|
||||||
public static function emailPaymentTemplate()
|
public static function emailPaymentTemplate()
|
||||||
{
|
{
|
||||||
$payment_message = '<p>'.self::transformText('payment_message').'</p><p>$view_link</p>';
|
$payment_message = '<p>'.self::transformText('payment_message').'</p><div class="center">$view_link</div>';
|
||||||
|
|
||||||
return $payment_message;
|
return $payment_message;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function emailCreditTemplate()
|
public static function emailCreditTemplate()
|
||||||
{
|
{
|
||||||
$credit_message = '<p>'.self::transformText('credit_message').'</p><p>$view_link</p>';
|
$credit_message = '<p>'.self::transformText('credit_message').'</p><div class="center">$view_link</div>';
|
||||||
|
|
||||||
return $credit_message;
|
return $credit_message;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function emailPaymentPartialTemplate()
|
public static function emailPaymentPartialTemplate()
|
||||||
{
|
{
|
||||||
$payment_message = '<p>'.self::transformText('payment_message').'</p><p>$view_link</p>';
|
$payment_message = '<p>'.self::transformText('payment_message').'</p><div class="center">$view_link</div>';
|
||||||
|
|
||||||
return $payment_message;
|
return $payment_message;
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,10 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
|
<title></title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<style>
|
<style type="text/css">
|
||||||
:root {
|
:root {
|
||||||
--primary-color: {{ isset($settings) ? $settings->primary_color : '#4caf50' }};
|
--primary-color: {{ isset($settings) ? $settings->primary_color : '#4caf50' }};
|
||||||
}
|
}
|
||||||
@ -46,6 +47,18 @@
|
|||||||
#email-content a, .link {
|
#email-content a, .link {
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#email-content .button {
|
||||||
|
position: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<body style="margin: 0; padding: 0; background-color: {{ $design == 'light' ? '#F9FAFB' : '#111827' }};">
|
<body style="margin: 0; padding: 0; background-color: {{ $design == 'light' ? '#F9FAFB' : '#111827' }};">
|
||||||
@ -63,7 +76,7 @@
|
|||||||
<td bgcolor="{{ $design == 'light' ? '#ffffff' : '#1F2937'}}" style="padding: 40px 30px 40px 30px;">
|
<td bgcolor="{{ $design == 'light' ? '#ffffff' : '#1F2937'}}" style="padding: 40px 30px 40px 30px;">
|
||||||
<table cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;">
|
<table cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" id="email-content">
|
<td id="email-content">
|
||||||
@yield('greeting')
|
@yield('greeting')
|
||||||
|
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user