Skip to content

armgit / posta

Public Imported from GitHub
0

Self-hosted email delivery platform that enables applications to send emails via HTTP APIs while handling SMTP delivery, templates, storage, security, and analytics. Fully self-hostable alternative to services like SendGrid or Mailgun.

5.0 KB
Raw Blame
/* Posta Email Templates - Shared Styles */
body {
  margin: 0;
  padding: 0;
  background-color: #f3f4f6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

table {
  border-collapse: collapse;
  mso-table-lspace: 0pt;
  mso-table-rspace: 0pt;
}

img {
  border: 0;
  line-height: 100%;
  outline: none;
  text-decoration: none;
}

/* Hidden preview text shown in the inbox list, not in the message body. */
.preheader {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  color: transparent;
  height: 0;
  width: 0;
  max-height: 0;
  max-width: 0;
  overflow: hidden;
  mso-hide: all;
}

.email-wrapper {
  width: 100%;
  background-color: #f3f4f6;
  padding: 32px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
}

.email-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.email-header {
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  background-color: #7e22ce;
  color: #ffffff;
  padding: 40px 36px;
  text-align: center;
}

.email-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.email-header p {
  margin: 0;
  font-size: 14px;
  color: #f3e8ff;
}

.email-body {
  padding: 36px;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
}

.email-body h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.email-body p {
  margin: 0 0 16px;
  color: #374151;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  background-color: #7e22ce;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}

.btn-secondary {
  display: inline-block;
  padding: 13px 28px;
  background-color: #ffffff;
  color: #7c3aed !important;
  text-decoration: none;
  border: 1px solid #d8b4fe;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}

.muted {
  color: #6b7280;
  font-size: 14px;
}

.divider {
  height: 1px;
  line-height: 1px;
  font-size: 0;
  background-color: #e5e7eb;
  margin: 28px 0;
}

.info-box {
  background-color: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 14px;
}

.code-pill {
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #111827;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 28px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
}

.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
  font-size: 15px;
}

.feature-list li:last-child {
  border-bottom: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.data-table th {
  text-align: left;
  padding: 10px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  border-bottom: 2px solid #e5e7eb;
}

.data-table td {
  padding: 12px 0;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
  font-size: 15px;
}

.data-table .total-label {
  font-weight: 700;
  color: #111827;
}

.data-table .total-value {
  font-weight: 700;
  color: #111827;
  text-align: right;
}

.email-footer {
  padding: 28px 36px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
  background-color: #fafafa;
}

.email-footer p {
  margin: 0 0 8px;
}

.email-footer a {
  color: #7c3aed;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  body, .email-wrapper { background-color: #0b0b0f !important; color: #e5e7eb !important; }
  .email-container { background-color: #17171c !important; border-color: #2a2a31 !important; }
  .email-body { color: #cbd5e1 !important; }
  .email-body h2 { color: #f9fafb !important; }
  .email-body p { color: #cbd5e1 !important; }
  .email-footer { background-color: #121217 !important; color: #9ca3af !important; border-color: #2a2a31 !important; }
  .info-box { background-color: #1f1530 !important; border-color: #3b2a52 !important; color: #cbd5e1 !important; }
  .code-pill { background-color: #0b0b0f !important; border-color: #2a2a31 !important; color: #f9fafb !important; }
  .feature-list li { border-color: #23232a !important; color: #cbd5e1 !important; }
  .data-table th { color: #9ca3af !important; border-color: #2a2a31 !important; }
  .data-table td { color: #cbd5e1 !important; border-color: #23232a !important; }
  .data-table .total-label, .data-table .total-value { color: #f9fafb !important; }
  .divider { background-color: #2a2a31 !important; }
}

@media only screen and (max-width: 620px) {
  .email-header, .email-body, .email-footer { padding-left: 22px !important; padding-right: 22px !important; }
  .code-pill { font-size: 24px !important; letter-spacing: 6px !important; }
}