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>
108 lines
4.5 KiB
Cheetah
108 lines
4.5 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.register_notify.title" (.DisplayName|DotEscape) AppName}}
|
|
</title>
|
|
|
|
<style type="text/css">
|
|
/* Base */
|
|
body,.ExternalClass,.ReadMsgBody { background-color:#fff7ed }
|
|
|
|
/* Header */
|
|
.email-logo { display:inline-block;vertical-align:middle;margin:0 10px;border:0;outline:none }
|
|
.email-brand { font-size:20px;font-weight:700;color:#9a3412;letter-spacing:-0.3px;vertical-align:middle;font-family:Georgia,'Times New Roman',serif }
|
|
.email-header { padding:28px 32px 16px;border-bottom:1px solid #fed7aa;background:linear-gradient(135deg,#fff7ed,#ffffff) }
|
|
|
|
/* Card */
|
|
.email-card { max-width:600px;margin:20px auto;background:#ffffff;border-radius:16px;box-shadow:0 2px 16px rgba(234,88,12,0.08);overflow:hidden;border:1px solid #fed7aa }
|
|
.email-heading { margin:0 0 12px;font-size:17px;line-height:1.5;color:#9a3412;font-family:Georgia,'Times New Roman',serif;font-weight:600 }
|
|
.email-text { margin:0 0 8px;font-size:16px;line-height:1.6;color:#78350f }
|
|
.email-subtext { margin:0 0 20px;font-size:15px;line-height:1.6;color:#92400e }
|
|
|
|
/* Button */
|
|
.email-btn-row { margin:28px 0 24px;border-collapse:separate }
|
|
.email-btn { display:inline-block;padding:14px 40px;font-size:16px;font-weight:600;color:#ffffff;text-decoration:none;background:linear-gradient(135deg,#ea580c,#c2410c);border-radius:50px;font-family:system-ui,sans-serif }
|
|
|
|
/* Fallback link */
|
|
.email-link-box { background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:16px 18px;margin:24px 0 16px }
|
|
.email-link-label { margin:0 0 8px;font-size:14px;color:#92400e;line-height:1.5 }
|
|
.email-link-url { margin:0;font-size:13px;color:#c2410c;background:#ffffff;padding:10px 12px;border-radius:8px;border:1px solid #fed7aa;word-break:break-all;font-family:monospace }
|
|
|
|
/* Footer */
|
|
.email-footer { padding:20px 32px 24px;background:#fff7ed;border-top:1px solid #fed7aa }
|
|
.email-footer-text { margin:0;font-size:14px;color:#92400e }
|
|
.email-footer-link { color:#ea580c;text-decoration:none;font-weight:600 }
|
|
</style>
|
|
</head>
|
|
|
|
<body style="margin:0;padding:0;background-color:#fff7ed;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;">
|
|
<center style="width:100%;table-layout:fixed;">
|
|
<div class="email-card">
|
|
|
|
<!-- Floating Title -->
|
|
<div class="email-header">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr>
|
|
<td style="vertical-align:middle;">
|
|
<span style="font-size:15px;">👋</span>
|
|
<img src="{{AppUrl}}assets/img/favicon.png" alt="logo" width="30" height="30" class="email-logo" />
|
|
<span class="email-brand">{{AppName}}</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- Card -->
|
|
<div style="padding:32px 32px 24px;color:#78350f;">
|
|
|
|
<p class="email-heading">
|
|
{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}
|
|
</p>
|
|
|
|
<p class="email-text">
|
|
{{.locale.Tr "mail.register_notify.text_1" AppName}}
|
|
</p>
|
|
|
|
<p class="email-subtext">
|
|
{{.locale.Tr "mail.register_notify.text_2" .Username}}
|
|
</p>
|
|
|
|
<!-- Button -->
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="email-btn-row">
|
|
<tr>
|
|
<td align="center">
|
|
<a href="{{AppUrl}}user/login" class="email-btn">{{.locale.Tr "mail.view_it_on" AppName}}</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{{$set_pwd_url := printf "%suser/forgot_password" AppUrl}}
|
|
<p style="margin:0 0 16px;font-size:15px;line-height:1.6;color:#92400e;">
|
|
{{.locale.Tr "mail.register_notify.text_3" $set_pwd_url}}
|
|
</p>
|
|
|
|
<!-- Fallback link -->
|
|
<div class="email-link-box">
|
|
<p class="email-link-label">{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
|
|
<p class="email-link-url">{{AppUrl}}user/login</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<div class="email-footer">
|
|
<p class="email-footer-text">
|
|
©
|
|
<a href="{{AppUrl}}" class="email-footer-link">{{AppName}}</a>
|
|
— Gitea Mail Templates
|
|
</p>
|
|
</div>
|
|
|
|
</div>
|
|
</center>
|
|
</body>
|
|
</html> |