b2in/resources/views/vendor/mail/html/themes/b2in.css
2026-01-23 17:33:10 +01:00

468 lines
8.6 KiB
CSS

/* B2IN Mail Theme - E-Mail Client Optimized */
/* Primary: #2b3f51 (Anthracite) | Secondary: #20a0da (Dynamic Blue) */
/* Kompatibel mit: Outlook, Gmail, Apple Mail, Yahoo, Thunderbird */
/* ============================================
BASE STYLES
============================================ */
body,
body *:not(html):not(style):not(br):not(tr):not(code) {
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
position: relative;
}
body {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
background-color: #f5f4f2;
color: #2a2a2a;
height: 100%;
line-height: 1.6;
margin: 0;
padding: 0;
width: 100% !important;
}
p,
ul,
ol,
blockquote {
line-height: 1.6;
text-align: left;
}
a {
color: #20a0da;
text-decoration: underline;
}
a img {
border: none;
}
/* ============================================
TYPOGRAPHY
============================================ */
h1 {
color: #2b3f51;
font-size: 24px;
font-weight: 700;
margin-top: 0;
margin-bottom: 16px;
text-align: left;
line-height: 1.3;
mso-line-height-rule: exactly;
}
h2 {
color: #2b3f51;
font-size: 20px;
font-weight: 600;
margin-top: 24px;
margin-bottom: 12px;
text-align: left;
line-height: 1.3;
mso-line-height-rule: exactly;
}
h3 {
color: #2b3f51;
font-size: 18px;
font-weight: 600;
margin-top: 20px;
margin-bottom: 10px;
text-align: left;
mso-line-height-rule: exactly;
}
p {
font-size: 16px;
line-height: 1.6;
margin-top: 0;
margin-bottom: 16px;
text-align: left;
color: #2a2a2a;
mso-line-height-rule: exactly;
}
p.sub {
font-size: 13px;
color: #606060;
}
strong {
color: #2b3f51;
font-weight: 600;
}
img {
max-width: 100%;
height: auto;
border: 0;
outline: none;
text-decoration: none;
-ms-interpolation-mode: bicubic;
}
/* ============================================
LAYOUT
============================================ */
.wrapper {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
background-color: #f5f4f2;
margin: 0;
padding: 0;
width: 100%;
}
.content {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
margin: 0;
padding: 0;
width: 100%;
}
/* ============================================
HEADER
============================================ */
.header {
padding: 30px 0;
text-align: center;
background-color: #2b3f51;
}
.header a {
color: #ffffff;
font-size: 24px;
font-weight: 700;
text-decoration: none;
letter-spacing: 0.5px;
}
/* ============================================
LOGO
============================================ */
.logo {
height: 50px;
margin-top: 0;
margin-bottom: 0;
max-height: 50px;
width: auto;
}
/* ============================================
BODY
============================================ */
.body {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
background-color: #f5f4f2;
border-bottom: 1px solid #f5f4f2;
border-top: 1px solid #f5f4f2;
margin: 0;
padding: 0;
width: 100%;
}
.inner-body {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 600px;
background-color: #ffffff;
border: 1px solid #e0e0e0;
margin: 0 auto;
padding: 0;
width: 600px;
max-width: 600px;
}
.inner-body a {
word-break: break-all;
}
/* ============================================
SUBCOPY
============================================ */
.subcopy {
border-top: 1px solid #e0e0e0;
margin-top: 30px;
padding-top: 25px;
}
.subcopy p {
font-size: 13px;
color: #606060;
}
/* ============================================
FOOTER
============================================ */
.footer {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 600px;
margin: 0 auto;
padding: 32px 0;
text-align: center;
width: 600px;
}
.footer p {
color: #999999;
font-size: 13px;
text-align: center;
line-height: 1.6;
}
.footer a {
color: #20a0da;
text-decoration: underline;
}
/* ============================================
TABLES
============================================ */
.table table {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
margin: 30px auto;
width: 100%;
border-collapse: collapse;
}
.table th {
border-bottom: 2px solid #e0e0e0;
color: #2b3f51;
font-weight: 600;
margin: 0;
padding: 10px;
text-align: left;
}
.table td {
color: #2a2a2a;
font-size: 15px;
line-height: 22px;
margin: 0;
padding: 12px 10px;
border-bottom: 1px solid #f0f0f0;
}
.content-cell {
max-width: 100vw;
padding: 40px;
}
/* ============================================
BUTTONS
============================================ */
.action {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
margin: 30px auto;
padding: 0;
text-align: center;
width: 100%;
}
.button {
-webkit-text-size-adjust: none;
color: #ffffff;
display: inline-block;
overflow: hidden;
text-decoration: none;
font-weight: 600;
font-size: 16px;
letter-spacing: 0.3px;
}
.button-blue,
.button-primary {
background-color: #20a0da;
border-top: 14px solid #20a0da;
border-bottom: 14px solid #20a0da;
border-left: 32px solid #20a0da;
border-right: 32px solid #20a0da;
}
.button-green,
.button-success {
background-color: #22c55e;
border-top: 14px solid #22c55e;
border-bottom: 14px solid #22c55e;
border-left: 32px solid #22c55e;
border-right: 32px solid #22c55e;
}
.button-red,
.button-error {
background-color: #dc2626;
border-top: 14px solid #dc2626;
border-bottom: 14px solid #dc2626;
border-left: 32px solid #dc2626;
border-right: 32px solid #dc2626;
}
/* ============================================
PANELS
============================================ */
.panel {
border-left: 4px solid #20a0da;
margin: 24px 0;
}
.panel-content {
background-color: #f0f9ff;
color: #2a2a2a;
padding: 20px;
}
.panel-content p {
color: #2a2a2a;
margin-bottom: 0;
}
.panel-item {
padding: 0;
}
.panel-item p:last-of-type {
margin-bottom: 0;
padding-bottom: 0;
}
/* Special Panel Variants */
.panel-warning {
border-left-color: #f59e0b;
}
.panel-warning .panel-content {
background-color: #fffbeb;
}
.panel-success {
border-left-color: #22c55e;
}
.panel-success .panel-content {
background-color: #f0fdf4;
}
/* ============================================
PROMOTION
============================================ */
.promotion {
background-color: #2b3f51;
color: #ffffff;
margin: 0;
padding: 24px;
}
.promotion h1 {
color: #ffffff;
margin-top: 0;
}
.promotion p {
color: #e0e0e0;
}
/* ============================================
UTILITIES
============================================ */
.break-all {
word-break: break-all;
}
.text-center {
text-align: center !important;
}
/* ============================================
RESPONSIVE
============================================ */
@media only screen and (max-width: 620px) {
.inner-body {
width: 100% !important;
max-width: 100% !important;
}
.footer {
width: 100% !important;
max-width: 100% !important;
}
.content-cell {
padding: 24px 16px !important;
}
}
/* ============================================
DARK MODE SUPPORT
(Für E-Mail-Clients die es unterstützen)
============================================ */
@media (prefers-color-scheme: dark) {
body,
.wrapper,
.body {
background-color: #1a1a1a !important;
}
.inner-body {
background-color: #2a2a2a !important;
border-color: #404040 !important;
}
h1, h2, h3, strong {
color: #ffffff !important;
}
p, .table td {
color: #e0e0e0 !important;
}
.panel-content {
background-color: #1e3a5f !important;
}
.panel-content p {
color: #e0e0e0 !important;
}
.subcopy {
border-top-color: #404040 !important;
}
.table th {
color: #ffffff !important;
border-bottom-color: #404040 !important;
}
.table td {
border-bottom-color: #333333 !important;
}
}