Files
GiteaMailTemplates/themes/heritage/theme.css
T
KenanZhu c93f2bf8b2
Release / Validate Templates (push) Successful in 2m55s
Release / Package & Release (push) Skipped
Release / Remind to Update Release Documentation (push) Skipped
chore: simplify workflows and unify tool logging and mail presentation
2026-10-10 14:54:40 +08:00

68 lines
4.1 KiB
CSS

/* Base */
body,.ExternalClass,.ReadMsgBody { background-color:#faf8f5 }
/* Header */
.email-logo { display:inline-block;margin:0 auto 12px;border:0;outline:none }
.email-brand { margin:0;font-size:20px;font-weight:700;color:#1e3a5f;letter-spacing:2px;font-variant:small-caps;font-family:Georgia,'Times New Roman',serif }
.email-header { padding:32px 36px 20px;text-align:center;border-bottom:1px solid #c4a97d }
/* Card */
.email-card { max-width:600px;margin:24px auto;background:#ffffff;border:3px double #c4a97d;padding:0 }
.email-heading,
.mail-type-activate > p:first-child,
.mail-type-activate_email > p:first-child { margin:0 0 14px;font-size:17px;line-height:1.5;color:#1e3a5f;font-weight:600;font-family:Georgia,'Times New Roman',serif }
.email-text,
.mail-type-activate > p:nth-of-type(2) { margin:0 0 8px;font-size:16px;line-height:1.7;color:#2c1810 }
.email-subtext { margin:0 0 20px;font-size:15px;line-height:1.7;color:#5c4a3a }
/* Button */
.email-btn-row { margin:28px 0 24px;border-collapse:separate }
.email-btn,.card-body .email-btn,.card-body .email-btn:link,.card-body .email-btn:visited { display:inline-block;padding:13px 38px;font-size:15px;font-weight:600;color:#ffffff!important;text-decoration:none!important;background-color:#1e3a5f;border:2px solid #8b6914;font-family:Georgia,'Times New Roman',serif;font-variant:small-caps;letter-spacing:1px }
/* Fallback link */
.email-link-box { background:#faf8f5;border:2px solid #d4c4a8;padding:16px 18px;margin:24px 0 16px }
.email-link-label { margin:0 0 8px;font-size:14px;color:#5c4a3a;line-height:1.5;font-style:italic }
.email-link-url { margin:0;font-size:13px;color:#1e3a5f;background:#ffffff;padding:10px 12px;border:1px solid #d4c4a8;word-break:break-all;font-family:monospace }
/* Footer */
.email-footer { padding:20px 36px 24px;background:#faf8f5;border-top:3px double #c4a97d;text-align:center }
.email-footer-text { margin:0;font-size:13px;color:#5c4a3a }
.email-footer-link { color:#1e3a5f;text-decoration:none;font-weight:600 }
/* Official-snapshot presentation adapter: no content or translation overrides. */
body { margin:0; padding:24px 16px; background-color:#faf8f5; }
body, td { font-family:Georgia,'Times New Roman',serif; }
.email-wrap { width:100%; max-width:600px; border-collapse:separate; border-spacing:0; }
.card-body { font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.card-body > pre, .card-body code { font-family:Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.card-body ul { padding-left:22px; }
.card-body blockquote { padding-left:16px; border-left:3px solid #1e3a5f; }
.mail-footer { margin:0; }
.mail-footer td { border-top-color:transparent!important; color:#2c1810!important; }
.mail-footer a { color:#1e3a5f!important; text-decoration:none; }
.email-body { padding:32px 36px 24px; color:#2c1810; }
.heritage-rule { width:80px; margin:16px auto 0; border-top:3px double #c4a97d; }
.card-body h4 { font-variant:small-caps; letter-spacing:1px; color:#1e3a5f; }
@media only screen and (max-width:480px) {
body { padding:12px 8px; }
.email-wrap { margin:0 auto; }
.email-body { padding:24px 18px!important; }
.card-body { width:auto!important; }
.resp-hide { display:none!important; }
}
/* Shared framework controls: keep URLs readable, never style them as CTAs. */
.email-link-cell { padding:16px 18px; }
.email-link-url a,.card-body .email-link-url a { color:inherit!important; text-decoration:none!important; font-size:inherit; }
.email-link-url { overflow-wrap:anywhere; word-break:break-all; }
.email-action { margin:20px 0 0; }
.email-btn-row { box-sizing:border-box; }
.card-body .email-btn { max-width:100%; box-sizing:border-box; white-space:normal; overflow-wrap:anywhere; }
@media only screen and (max-width:480px) { .card-body .email-btn { display:block; text-align:center; width:100%; } .email-btn-table { width:100%; } }
/* Account activation instructions use the normal body style. */
.mail-type-activate > p:nth-of-type(2) { font-style:normal; border-left:0; padding-left:0; }