mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Reverse client template changes
This commit is contained in:
parent
c6fd68b591
commit
547a543455
@ -2,6 +2,7 @@
|
|||||||
$primary_color = isset($settings) ? $settings->primary_color : '#4caf50';
|
$primary_color = isset($settings) ? $settings->primary_color : '#4caf50';
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html
|
<!DOCTYPE html
|
||||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||||||
@ -21,9 +22,33 @@
|
|||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
supported-color-schemes: light dark;
|
supported-color-schemes: light dark;
|
||||||
}
|
}
|
||||||
|
@if(isset($settings) && $settings->email_style === 'dark')
|
||||||
@media screen and (prefers-color-scheme: light ) {
|
body {
|
||||||
|
background-color: #1a1a1a !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
div, tr, td {
|
||||||
|
border-color: #222222 !important;
|
||||||
|
}
|
||||||
|
h1, h2, h3, p, td {
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
color: #bbbbbc !important;
|
||||||
|
}
|
||||||
|
.dark-bg-base {
|
||||||
|
background-color: #222222 !important;
|
||||||
|
}
|
||||||
|
.dark-bg {
|
||||||
|
background-color: #3a3a3c !important;
|
||||||
|
}
|
||||||
|
.dark-text-white p {
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
hr {
|
||||||
|
border-color: #474849 !important;
|
||||||
|
}
|
||||||
|
@endif
|
||||||
/** Content-specific styles. **/
|
/** Content-specific styles. **/
|
||||||
#content .button {
|
#content .button {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -37,7 +62,6 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content h1 {
|
#content h1 {
|
||||||
font-family: 'canada-type-gibson', 'roboto', Arial, Helvetica, sans-serif;
|
font-family: 'canada-type-gibson', 'roboto', Arial, Helvetica, sans-serif;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@ -45,183 +69,53 @@
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content > p {
|
#content > p {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: 'roboto', Arial, Helvetica, sans-serif;
|
font-family: 'roboto', Arial, Helvetica, sans-serif;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content .center {
|
#content .center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content .left {
|
#content .left {
|
||||||
text-align: left !important;
|
text-align: left !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.body_style {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
font-family: 'roboto', Arial, Helvetica, sans-serif;
|
|
||||||
color: #3b3b3b;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-container {
|
|
||||||
border: 1px solid #c2c2c2;
|
|
||||||
border-bottom: none;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
border-top-left-radius: 3px;
|
|
||||||
border-top-right-radius: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-style {
|
|
||||||
margin-top: 40px;
|
|
||||||
height: 40px;
|
|
||||||
display: block;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.buffer {
|
|
||||||
text-align: center;
|
|
||||||
margin-top: 25px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content {
|
|
||||||
border: 1px solid #c2c2c2;
|
|
||||||
border-top: none;
|
|
||||||
border-bottom: none;
|
|
||||||
padding: 20px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link-button {
|
|
||||||
display: inline-block;
|
|
||||||
background-color: {{ $primary_color }};
|
|
||||||
color: #ffffff;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.signature_container {
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 10px;
|
|
||||||
padding-bottom: 25px;
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
border: 1px solid #c2c2c2;
|
|
||||||
border-top: none;
|
|
||||||
border-bottom-color: #f9f9f9;
|
|
||||||
}
|
|
||||||
|
|
||||||
.signature {
|
|
||||||
font-size: 15px;
|
|
||||||
color: #2e2e2e;
|
|
||||||
font-family: 'roboto', Arial, Helvetica, sans-serif;
|
|
||||||
font-weight: 400;
|
|
||||||
margin-bottom: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
padding-top: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
background-color: #242424;
|
|
||||||
border: 1px solid #c2c2c2;
|
|
||||||
border-top-color: #242424;
|
|
||||||
border-bottom-color: #242424;
|
|
||||||
}
|
|
||||||
|
|
||||||
.copyright {
|
|
||||||
text-align: center;
|
|
||||||
color: #ffffff;
|
|
||||||
font-size: 10px;
|
|
||||||
font-family: Verdana, Geneva, Tahoma, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark-bg-base {
|
|
||||||
background-color: #242424 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark-bg {
|
|
||||||
background-color: #242424 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (prefers-color-scheme: dark ) {
|
|
||||||
|
|
||||||
:root {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.body-style {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
font-family: 'roboto', Arial, Helvetica, sans-serif;
|
|
||||||
color: #3b3b3b;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark-bg-base {
|
|
||||||
background-color: #fff !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark-bg {
|
|
||||||
background-color: #fff !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content .button {
|
|
||||||
display: inline-block;
|
|
||||||
background-color: {{ $primary_color }};
|
|
||||||
color: #ffffff;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: 13px;
|
|
||||||
padding: 15px 50px;
|
|
||||||
font-weight: 600;
|
|
||||||
margin-bottom: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="body-style">
|
<body
|
||||||
|
style="margin: 0; padding: 0; font-family: 'roboto', Arial, Helvetica, sans-serif; color: #3b3b3b;-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;">
|
||||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
|
<table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="570" style="border-collapse: collapse;" class="dark-bg-base">
|
<table align="center" border="0" cellpadding="0" cellspacing="0" width="570"
|
||||||
|
style="border-collapse: collapse;" class="dark-bg-base">
|
||||||
<tr>
|
<tr>
|
||||||
<div class="buffer"></div>
|
<div style="text-align: center;margin-top: 25px; margin-bottom: 10px;"></div>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div class="logo-container">
|
<div
|
||||||
|
style="border: 1px solid #c2c2c2; border-bottom: none; padding-bottom: 10px; border-top-left-radius: 3px; border-top-right-radius: 3px;">
|
||||||
|
|
||||||
<img class="logo-style" alt="" src="{{ $logo ?? '' }}"/>
|
<img
|
||||||
|
style="margin-top: 40px; height: 40px; display: block; margin-left: auto; margin-right: auto;"
|
||||||
|
alt=""
|
||||||
|
src="{{ $logo ?? '' }}"/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div id="content">
|
<div style="border: 1px solid #c2c2c2; border-top: none; border-bottom: none; padding: 20px; text-align: center" id="content">
|
||||||
<div style="padding-top: 10px;"></div>
|
<div style="padding-top: 10px;"></div>
|
||||||
|
|
||||||
{{ $slot ?? '' }}
|
{{ $slot ?? '' }}
|
||||||
{!! $body ?? '' !!}
|
{!! $body ?? '' !!}
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a href="#" class="link-button">
|
<a href="#"
|
||||||
|
style="display: inline-block;background-color: {{ $primary_color }}; color: #ffffff; text-transform: uppercase;letter-spacing: 2px; text-decoration: none; font-size: 13px; font-weight: 600;">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -230,17 +124,18 @@
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div class="dark-bg dark-text-white signature_container" >
|
<div class="dark-bg dark-text-white"
|
||||||
|
style="text-align: center; padding-top: 10px; padding-bottom: 25px; background-color: #f9f9f9; border: 1px solid #c2c2c2; border-top: none; border-bottom-color: #f9f9f9;">
|
||||||
@isset($signature)
|
@isset($signature)
|
||||||
<p class="signature">
|
<p style="font-size: 15px; color: #2e2e2e; font-family: 'roboto', Arial, Helvetica, sans-serif; font-weight: 400; margin-bottom: 30px;">
|
||||||
{!! nl2br($signature) !!}
|
{!! nl2br($signature) !!}
|
||||||
</p>
|
</p>
|
||||||
@endisset
|
@endisset
|
||||||
|
|
||||||
@if(isset($company) && $company instanceof \App\Models\Company)
|
@if(isset($company) && $company instanceof \App\Models\Company)
|
||||||
<p class="signature" style="margin-bottom:0;">
|
<p style="font-size: 15px; color: #2e2e2e; font-family: 'roboto', Arial, Helvetica, sans-serif; font-weight: 500; margin-bottom:0;">
|
||||||
{{ $company->present()->name() }}</p>
|
{{ $company->present()->name() }}</p>
|
||||||
<p class="signature" style="margin-top: 5px;">
|
<p style="font-size: 15px; color: #2e2e2e; font-family: 'roboto', Arial, Helvetica, sans-serif; font-weight: 400; margin-top: 5px;">
|
||||||
<span>{{ $company->settings->phone }}</span>
|
<span>{{ $company->settings->phone }}</span>
|
||||||
<span style="font-weight: 500"> {{ $company->settings->website }}</span>
|
<span style="font-weight: 500"> {{ $company->settings->website }}</span>
|
||||||
</p>
|
</p>
|
||||||
@ -251,17 +146,19 @@
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div class="dark-bg-base footer">
|
<div class="dark-bg-base"
|
||||||
|
style="padding-top: 10px;padding-bottom: 10px; background-color: #242424; border: 1px solid #c2c2c2; border-top-color: #242424; border-bottom-color: #242424;">
|
||||||
@if(isset($company))
|
@if(isset($company))
|
||||||
@if($company->account->isPaid())
|
@if($company->account->isPaid())
|
||||||
<p class="copyright">© {{ date('Y') }} {{ $company->present()->name() }}, All Rights Reserved</p>
|
<p style="text-align: center; color: #ffffff; font-size: 10px;
|
||||||
|
font-family: Verdana, Geneva, Tahoma, sans-serif;">© {{ date('Y') }} {{ $company->present()->name() }}, All Rights Reserved</p>
|
||||||
@else
|
@else
|
||||||
<p class="copyright">
|
<p style="text-align: center; color: #ffffff; font-size: 10px; font-family: Verdana, Geneva, Tahoma, sans-serif;">
|
||||||
© {{ date('Y') }} Invoice Ninja, All Rights Reserved
|
© {{ date('Y') }} Invoice Ninja, All Rights Reserved
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
<p class="copyright">
|
<p style="text-align: center; color: #ffffff; font-size: 10px; font-family: Verdana, Geneva, Tahoma, sans-serif;">
|
||||||
© {{ date('Y') }} Invoice Ninja, All Rights Reserved
|
© {{ date('Y') }} Invoice Ninja, All Rights Reserved
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@endif
|
||||||
@ -273,4 +170,5 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user