mirror of
https://github.com/funamitech/mastodon
synced 2024-12-15 23:28:31 +09:00
621 lines
9.2 KiB
SCSS
621 lines
9.2 KiB
SCSS
@import 'fonts/inter';
|
|
|
|
body {
|
|
accent-color: #6364ff;
|
|
word-break: break-word;
|
|
margin: 0;
|
|
background-color: #f3f2f5;
|
|
padding: 0;
|
|
-webkit-text-size-adjust: none;
|
|
text-size-adjust: none;
|
|
}
|
|
|
|
p,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
margin: 0;
|
|
background-color: transparent;
|
|
padding: 0;
|
|
border: none;
|
|
font-family: Inter, 'Lucida Grande', sans-serif;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border: none;
|
|
text-indent: 0;
|
|
vertical-align: middle;
|
|
color: inherit;
|
|
font-family: inherit;
|
|
}
|
|
|
|
table {
|
|
border: none;
|
|
}
|
|
|
|
table + p {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.email {
|
|
min-width: 280px;
|
|
font-family: Inter, 'Lucida Grande', sans-serif;
|
|
word-break: break-word;
|
|
color: #17063b;
|
|
background-color: #f3f2f5;
|
|
}
|
|
|
|
.email-container {
|
|
max-width: 740px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
// Outer email card
|
|
.email-card-table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
|
|
.email-card-td {
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 16px 0 rgba(23, 6, 59, 4%);
|
|
background-color: #fff;
|
|
}
|
|
|
|
// Inner email card
|
|
.email-inner-card-table {
|
|
border-collapse: separate;
|
|
width: 100%;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.email-inner-card-td-without-padding,
|
|
.email-inner-card-td {
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 16px 0 rgba(23, 6, 59, 8%);
|
|
background-color: #fff;
|
|
border: 1px solid #dfdee3;
|
|
}
|
|
|
|
.email-inner-card-td {
|
|
padding: 24px;
|
|
}
|
|
|
|
// Account
|
|
.email-account-banner-table {
|
|
background-color: #f3f2f5;
|
|
border-top-left-radius: 12px;
|
|
border-top-right-radius: 12px;
|
|
}
|
|
|
|
.email-account-banner-td {
|
|
border-top-left-radius: 12px;
|
|
border-top-right-radius: 12px;
|
|
height: 140px;
|
|
vertical-align: bottom;
|
|
background-position: center !important;
|
|
background-size: cover !important;
|
|
}
|
|
|
|
.email-account-banner-inner-td {
|
|
padding: 24px 24px 0;
|
|
mso-padding-alt: 24px;
|
|
}
|
|
|
|
.email-account-banner-overlap-div {
|
|
max-height: 42px;
|
|
}
|
|
|
|
.email-account-banner-icon-table {
|
|
width: auto;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
border-radius: 8px;
|
|
border-collapse: separate;
|
|
background-color: #fff;
|
|
border: 2px solid #fff;
|
|
|
|
img {
|
|
display: block;
|
|
max-width: 100%;
|
|
border: none;
|
|
border-radius: 6px;
|
|
}
|
|
}
|
|
|
|
.email-account-body-td {
|
|
padding: 56px 24px 24px;
|
|
mso-padding-alt: 24px;
|
|
}
|
|
|
|
.email-account-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
line-height: 24px;
|
|
color: #17063b;
|
|
}
|
|
|
|
.email-account-handle {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: #746a89;
|
|
}
|
|
|
|
.email-account-stats-table {
|
|
td {
|
|
padding-right: 16px;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: #746a89;
|
|
}
|
|
|
|
b {
|
|
font-weight: 600;
|
|
color: #17063b;
|
|
}
|
|
|
|
span {
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
// Utility classes
|
|
.email-w-full {
|
|
width: 100%;
|
|
}
|
|
|
|
.email-prose {
|
|
p {
|
|
color: #17063b;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
|
|
&:not(:last-child) {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
a:not([class]) {
|
|
color: #6364ff;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: #563acc !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.email-padding-24 {
|
|
padding: 24px;
|
|
}
|
|
|
|
.email-padding-top-24 {
|
|
padding-top: 24px;
|
|
}
|
|
|
|
.email-padding-top-16 {
|
|
padding-top: 16px;
|
|
}
|
|
|
|
.email-padding-top-0 {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.email-border-top {
|
|
border-top: 1px solid #dfdee3;
|
|
}
|
|
|
|
.email-border-bottom {
|
|
border-bottom: 1px solid #dfdee3;
|
|
}
|
|
|
|
// Header
|
|
.email-header-td {
|
|
padding: 16px 32px;
|
|
background-color: #1b001f;
|
|
background-image: url('../images/mailer-new/common/header-bg-start.png');
|
|
background-position: left top;
|
|
background-repeat: repeat;
|
|
}
|
|
|
|
.email-header-logo-table {
|
|
width: auto;
|
|
margin: 0;
|
|
}
|
|
|
|
.email-header-logo-td {
|
|
padding: 16px 0;
|
|
font-size: 0;
|
|
|
|
img {
|
|
color: #fff;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
max-height: 40px;
|
|
}
|
|
}
|
|
|
|
.email-header-logo-a {
|
|
display: inline-block;
|
|
|
|
img {
|
|
display: inline-block;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
.email-header-logo-div {
|
|
max-height: 0;
|
|
}
|
|
|
|
.email-header-logo-p {
|
|
word-break: break-all;
|
|
padding-left: 40px;
|
|
padding-top: 26px;
|
|
font-size: 11px;
|
|
line-height: 13px;
|
|
color: #8d808f;
|
|
text-align: left;
|
|
}
|
|
|
|
.email-header-logo-span {
|
|
display: block;
|
|
text-align: right;
|
|
}
|
|
|
|
.email-header-heading-td {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.email-header-heading-img-td {
|
|
width: 56px;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
|
|
img {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 12px;
|
|
}
|
|
}
|
|
|
|
.email-header-heading-txt-td {
|
|
vertical-align: middle;
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
|
|
h1 {
|
|
margin-bottom: 5px;
|
|
color: #fff;
|
|
font-size: 24px;
|
|
line-height: 28px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
p {
|
|
color: #a399a5;
|
|
font-size: 18px;
|
|
line-height: 21.6px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
&:only-child {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
|
|
// To make the design work with images off
|
|
// we create an empty div that overlaps with
|
|
// the rest of the content with a dark background.
|
|
.email-header-after-div {
|
|
max-height: 0;
|
|
}
|
|
|
|
.email-header-after-inside-div {
|
|
height: 30px;
|
|
background-color: #1b001f;
|
|
}
|
|
|
|
// Body content
|
|
.email-body-td {
|
|
background-image: url('../images/mailer-new/common/header-bg-end.png');
|
|
background-position: left top;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.email-body-padding-td {
|
|
padding: 0 32px 32px;
|
|
mso-padding-alt: 32px;
|
|
}
|
|
|
|
.email-body-padding-td {
|
|
& > p {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: #17063b;
|
|
|
|
a {
|
|
color: #6364ff;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: #563acc !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Footer
|
|
.email-footer-td {
|
|
padding: 28px 32px 32px;
|
|
text-align: center;
|
|
}
|
|
|
|
.email-footer-logo-a {
|
|
display: inline-block;
|
|
}
|
|
|
|
.email-footer-p {
|
|
color: #9b94ab;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
|
|
a {
|
|
color: #9b94ab;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
&:first-child {
|
|
margin-bottom: 12px;
|
|
}
|
|
}
|
|
|
|
// Button
|
|
.email-btn-table {
|
|
margin: 0;
|
|
max-width: 100%;
|
|
border-collapse: separate;
|
|
border-radius: 8px;
|
|
background-color: #6364ff;
|
|
}
|
|
|
|
.email-btn-td {
|
|
height: 40px;
|
|
text-align: center;
|
|
mso-padding-alt: 0 35px;
|
|
}
|
|
|
|
.email-btn-a {
|
|
display: block;
|
|
border-radius: 8px;
|
|
padding-left: 35px;
|
|
padding-right: 35px;
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
text-align: center;
|
|
font-family: Inter, 'Lucida Grande', sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 20px;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
transition: background-color 0.3s ease-in-out;
|
|
}
|
|
|
|
// Status
|
|
.email-status-header-img {
|
|
vertical-align: top;
|
|
width: 48px;
|
|
|
|
img {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
.email-status-header-text {
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.email-status-header-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
line-height: 24px;
|
|
color: #17063b;
|
|
}
|
|
|
|
.email-status-header-handle {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: #746a89;
|
|
}
|
|
|
|
.email-status-content {
|
|
padding-top: 24px;
|
|
}
|
|
|
|
.email-status-spoiler {
|
|
color: #746a89;
|
|
font-style: italic;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.email-status-prose {
|
|
p {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: #17063b;
|
|
}
|
|
|
|
a {
|
|
color: #6364ff;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: #563acc !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.email-status-media {
|
|
margin-top: 16px;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: #17063b;
|
|
|
|
img {
|
|
border-radius: 8px;
|
|
}
|
|
|
|
a {
|
|
color: #6364ff;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: #563acc !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.email-status-footer {
|
|
margin-top: 16px;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
color: #746a89;
|
|
|
|
a {
|
|
color: #746a89;
|
|
}
|
|
|
|
a:hover {
|
|
color: #746a89 !important;
|
|
text-decoration: underline !important;
|
|
}
|
|
}
|
|
|
|
// Purple frame for emphasis
|
|
.email-frame-table {
|
|
background-color: #efefff;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.email-frame-td {
|
|
padding: 16px;
|
|
}
|
|
|
|
.email-frame-wrapper-td {
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.email-frame-td > p {
|
|
text-align: center;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
// Checklist item
|
|
.email-checklist-wrapper-td {
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.email-checklist-table {
|
|
border-radius: 12px;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-color: #efefff;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.email-checklist-td {
|
|
padding: 16px;
|
|
}
|
|
|
|
.email-checklist-icons-td {
|
|
width: 84px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.email-checklist-icons-checkbox-td {
|
|
width: 20px;
|
|
vertical-align: middle;
|
|
|
|
img {
|
|
max-width: 100%;
|
|
width: 20px;
|
|
}
|
|
}
|
|
|
|
.email-checklist-icons-step-td {
|
|
width: 64px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
|
|
img {
|
|
max-width: 100%;
|
|
width: 40px;
|
|
}
|
|
}
|
|
|
|
.email-checklist-text-td {
|
|
h3 {
|
|
margin: 0 0 4px;
|
|
color: #17063b;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 16.8px;
|
|
}
|
|
|
|
p {
|
|
margin: 0 0 2px;
|
|
color: #746a89;
|
|
font-size: 14px;
|
|
line-height: 16.8px;
|
|
}
|
|
|
|
.email-btn-table {
|
|
width: 100px;
|
|
}
|
|
|
|
.email-btn-td {
|
|
mso-padding-alt: 10px;
|
|
}
|
|
|
|
.email-btn-a {
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
}
|
|
}
|
|
|
|
// Responsive
|
|
/* stylelint-disable-next-line media-feature-range-notation -- Basic media queries have better support across email clients. */
|
|
@media only screen and (min-width: 740px) {
|
|
.email-desktop-p-8 {
|
|
padding: 32px !important;
|
|
}
|
|
|
|
.email-desktop-rounded-16px {
|
|
border-radius: 16px !important;
|
|
}
|
|
|
|
.email-header-td {
|
|
border-radius: 16px 16px 0 0 !important;
|
|
}
|
|
|
|
.email-desktop-flex {
|
|
display: flex;
|
|
}
|
|
}
|