Fixes introduced by the CSS class-based refactor (1712f77) that changed visual layout, spacing, colors, and content rendering: **Container/border displacement (neon):** - Move background, border, box-shadow back to .email-wrap (outermost) - Restore .email-card to padding-only; add color for content inheritance - Fix link box padding, link label color, button margin, link URL padding **Layout restructuring (ink, mono):** - ink: Move button + link-box back into left column (was moved to separate full-width row); remove incorrectly-added divider - mono: Remove incorrectly-added divider; restore link-box margin-top **CSS specificity conflict (ink):** - Exclude .email-btn from .card-body a rule to prevent button text being overridden to same color as background **Content class cleanup (neon, terminal, terra):** - Remove .aurora-content (aurora-specific) copied into other themes - Replace with theme-appropriate .card-body scoped rules where needed **Content color/contrast (horizon):** - Fix .horizon-content in release.tmpl from dark-theme colors (#e2e8f0 on white) to light-theme colors matching issue/default.tmpl - Fix .email-heading color to #1e293b for heading distinction **register_notify text_3 placement:** - Restore per-theme original design: inside .email-subtext (mono, ink) vs standalone <p> after button (heritage, horizon) - Move raw text in button row into proper <p> elements **Button CSS pattern (bloom):** - Remove redundant inline style/bgcolor from button <td> (already in CSS) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
135 lines
5.0 KiB
Cheetah
135 lines
5.0 KiB
Cheetah
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="x-apple-disable-message-reformatting" />
|
|
|
|
<title>
|
|
{{.locale.Tr "mail.activate_email.title" (.DisplayName|DotEscape)}}
|
|
</title>
|
|
|
|
<style type="text/css">
|
|
/* Base */
|
|
body,.ExternalClass,.ReadMsgBody { background-color:#fafafa }
|
|
.email-wrap { max-width:600px;margin:20px auto;font-family:system-ui,-apple-system,sans-serif;background:#fff;border:2px solid #000 }
|
|
|
|
/* Header */
|
|
.email-logo { display:inline-block;vertical-align:middle;margin-right:8px;border:0;outline:none }
|
|
.email-brand { font-size:14px;font-weight:900;color:#000;letter-spacing:-0.5px;text-transform:uppercase }
|
|
.email-brand-star { color:#e03131;margin-left:4px }
|
|
.email-header { padding:24px 32px 0 }
|
|
|
|
/* Card */
|
|
.email-card { padding:32px 0 0;vertical-align:top }
|
|
.email-heading { margin:0 0 32px;font-size:28px;font-weight:900;color:#000;line-height:1.1;letter-spacing:-1px }
|
|
.email-text { margin:0 0 8px;font-size:13px;line-height:1.8;color:#333;font-weight:500 }
|
|
.email-subtext { margin:0 0 32px;font-size:12px;line-height:1.8;color:#888;border-left:2px solid #e03131;padding-left:12px }
|
|
|
|
/* Button */
|
|
.email-btn-row { padding:0 32px 24px }
|
|
.email-btn { display:inline-block;padding:14px 32px;font-size:14px;font-weight:900;color:#000;text-decoration:none;border:2px solid #000;letter-spacing:-0.3px;text-transform:uppercase }
|
|
.email-btn-table { margin:0 }
|
|
|
|
/* Fallback link */
|
|
.email-link-box { margin-top:24px;border:1px solid #ccc;background:#f5f5f5 }
|
|
.email-link-label { margin:0 0 6px;font-size:11px;color:#888 }
|
|
.email-link-url { margin:0;font-size:11px;font-family:monospace;color:#000;background:#fff;padding:8px 10px;border:1px solid #000;word-break:break-all }
|
|
|
|
/* Footer */
|
|
.email-footer { padding:16px 32px;border-top:2px solid #000 }
|
|
.email-footer-text { margin:0;font-size:11px;color:#888 }
|
|
.email-footer-link { color:#e03131;text-decoration:underline;font-weight:600 }
|
|
|
|
/* Typography utilities */
|
|
.card-body a,.card-body a:link,.card-body a:visited { color:#000!important;text-decoration:underline!important;font-weight:600!important }
|
|
|
|
/* Responsive */
|
|
@media only screen and (max-width:480px) {
|
|
.email-header { padding-left:16px!important;padding-right:16px!important }
|
|
.email-card { width:100%!important;display:block!important }
|
|
.resp-hide { display:none!important }
|
|
.email-btn { display:block!important;width:auto!important }
|
|
.email-heading { font-size:22px!important }
|
|
.email-footer { padding-left:16px!important;padding-right:16px!important }
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body style="margin:0;padding:0;background:#fafafa;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;">
|
|
<center style="width:100%;table-layout:fixed;">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="email-wrap">
|
|
|
|
<!-- Floating Title -->
|
|
<tr>
|
|
<td class="email-header">
|
|
|
|
<span class="email-brand">{{AppName}}<span class="email-brand-star">*</span></span>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- Card -->
|
|
<tr>
|
|
<td class="resp-pad" style="padding:0 32px;">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td width="60%" class="email-card card-body">
|
|
|
|
<p class="email-heading">
|
|
{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}
|
|
</p>
|
|
|
|
<p class="email-text">
|
|
{{.locale.Tr "mail.activate_email.text" .ActiveCodeLives}}
|
|
</p>
|
|
|
|
</td>
|
|
<td width="40%" class="resp-hide" style="padding:32px 0 0;vertical-align:top;"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- Button & Link -->
|
|
<tr>
|
|
<td class="email-btn-row">
|
|
|
|
{{$activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl (QueryEscape .Code) (QueryEscape .Email)}}
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0" class="email-btn-table">
|
|
<tr>
|
|
<td>
|
|
<a href="{{$activate_url}}" class="email-btn">{{.locale.Tr "mail.activate_email"}}</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="email-link-box">
|
|
<tr>
|
|
<td style="padding:12px 16px;">
|
|
<p class="email-link-label">{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
|
|
<p class="email-link-url">{{$activate_url}}</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- Footer -->
|
|
<tr>
|
|
<td class="email-footer">
|
|
|
|
<p class="email-footer-text">
|
|
<a href="{{AppUrl}}" class="email-footer-link">{{AppName}}</a>
|
|
— Gitea Mail Templates
|
|
</p>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</center>
|
|
</body>
|
|
</html> |