Merge commit '18945f62e07617ac44b7a25a61799b0959fe67f7' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2024-03-01 18:34:48 +01:00
117 changed files with 874 additions and 475 deletions

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020-2024 Paweł Kuna
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1 @@
Images in this folder are based on [Tabler.io icons](https://tabler.io/icons).

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020-2024 Paweł Kuna
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1 @@
Images in this folder are based on [Tabler.io icons](https://tabler.io/icons).

View File

Before

Width:  |  Height:  |  Size: 547 B

After

Width:  |  Height:  |  Size: 547 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 505 B

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 688 B

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 709 B

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 939 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -192,6 +192,18 @@ table + p {
}
}
.email-dir-rtl {
direction: rtl;
[dir='rtl'] & {
direction: ltr;
}
}
.email-dir-ltr {
direction: ltr;
}
.email-padding-24 {
padding: 24px;
}
@@ -216,6 +228,30 @@ table + p {
border-bottom: 1px solid #dfdee3;
}
.email-desktop-flex {
font-size: 0;
max-width: 740px;
margin-left: auto;
margin-right: auto;
&.email-dir-rtl > .email-desktop-column {
direction: ltr;
[dir='rtl'] & {
direction: rtl;
}
}
}
.email-desktop-column {
display: inline-block;
width: 100%;
max-width: none;
text-align: start;
vertical-align: top;
font-size: 16px;
}
// Header
.email-header-td {
padding: 16px 32px;
@@ -312,6 +348,66 @@ table + p {
}
}
.email-header-card-table {
width: 100%;
border-collapse: separate;
overflow: hidden;
border-radius: 12px;
background-color: #fff;
border: 2px solid #fff;
box-shadow: 0 4px 16px 0 rgba(23, 6, 59, 8%);
}
.email-header-card {
position: relative;
max-height: 100px;
}
.email-header-card-banner-td {
border-radius: 12px 12px 0 0;
height: 80px;
background-color: #f3f2f5 !important;
background-position: center !important;
background-size: cover !important;
}
.email-header-card-body-td {
padding: 12px;
.email-btn-table {
width: 100%;
max-width: 212px;
}
}
.email-header-card-instance {
margin-bottom: 4px;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
color: #17063b;
font-size: 14px;
line-height: 20px;
font-weight: 600;
&:only-of-type {
margin-bottom: 12px;
}
}
.email-header-card-description {
margin-bottom: 12px;
color: #746a89;
font-size: 12px;
line-height: 16px;
max-height: 32px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
// 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.
@@ -336,6 +432,16 @@ table + p {
mso-padding-alt: 32px;
}
.email-body-columns-td {
border-top: 1px solid #dfdee3;
padding: 32px 24px 8px;
}
.email-body-huge-padding-td {
padding: 110px 32px 32px;
mso-padding-alt: 32px;
}
.email-body-padding-td {
& > p {
font-size: 14px;
@@ -353,6 +459,30 @@ table + p {
}
}
// Texts
.email-h2 {
margin-bottom: 4px;
color: #17063b;
font-size: 18px;
font-weight: 600;
line-height: 28px;
}
.email-h-sub {
margin-bottom: 16px;
color: #746a89;
font-size: 14px;
line-height: 16px;
}
.email-p {
margin-bottom: 16px;
color: #746a89;
font-size: 14px;
font-weight: 400;
line-height: 20px;
}
// Footer
.email-footer-td {
padding: 28px 32px 32px;
@@ -539,8 +669,13 @@ table + p {
background-color: #fff;
}
.email-checklist-checked {
border-color: #c4e6d7;
background-color: #eaf6f1;
}
.email-checklist-td {
padding: 16px;
padding: 16px 16px 6px;
}
.email-checklist-icons-td {
@@ -576,10 +711,15 @@ table + p {
font-size: 14px;
font-weight: 600;
line-height: 16.8px;
.email-checklist-checked & {
color: #746a89;
text-decoration: line-through;
}
}
p {
margin: 0 0 2px;
margin: 0 0 12px;
color: #746a89;
font-size: 14px;
line-height: 16.8px;
@@ -597,6 +737,194 @@ table + p {
padding-left: 10px;
padding-right: 10px;
}
div + div {
margin-inline-start: auto;
margin-bottom: 12px;
}
}
// Welcome email
.email-welcome-apps-btns {
font-size: 12px;
line-height: 44px;
}
.email-column-td {
padding: 0 8px;
vertical-align: top;
}
.email-link-with-arrow {
color: #6364ff;
font-size: 14px;
font-weight: 600;
line-height: 16.8px;
&:hover {
color: #563acc !important;
}
span {
font-size: 12px;
font-weight: 400;
}
}
.email-column-action-td {
padding: 24px 0;
color: #6364ff;
font-size: 14px;
font-weight: 600;
line-height: 16.8px;
text-align: center;
}
// Follow and hashtags
.email-mini-wrapper-td {
padding: 4px 0;
table {
table-layout: fixed;
}
}
.email-mini-td {
border-radius: 12px;
border: 1px solid #e8e6eb;
background-color: #fff;
padding: 15px 16px;
}
.email-mini-follow-img-td {
width: 40px;
vertical-align: top;
img {
border-radius: 8px;
}
}
.email-mini-follow-text-td {
padding-left: 8px;
padding-right: 16px;
vertical-align: top;
h3 {
color: #17063b;
font-size: 14px;
font-weight: 600;
line-height: 20px;
}
p {
color: #746a89;
font-size: 12px;
font-weight: 400;
line-height: 16px;
}
}
.email-mini-follow-btn-td {
width: 68px;
vertical-align: top;
.email-btn-table {
width: 100%;
}
.email-btn-td {
mso-padding-alt: 10px;
}
.email-btn-a {
padding-left: 10px;
padding-right: 10px;
}
}
.email-mini-hashtag-td {
height: 40px;
td {
vertical-align: middle;
}
h3 {
color: #17063b;
font-size: 14px;
font-weight: 600;
line-height: 20px;
}
p {
color: #746a89;
font-size: 12px;
font-weight: 400;
line-height: 16px;
word-break: break-all;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.email-mini-hashtag-img-td {
width: 40px;
height: 20px;
white-space: nowrap;
text-indent: -2px;
font-size: 0;
& + td {
padding-left: 8px;
}
}
.email-mini-hashtag-img-span {
display: inline-block;
max-width: 12px;
font-size: 12px;
img {
width: 16px;
height: 16px;
border-radius: 50%;
max-width: none;
border: 2px solid #fff;
vertical-align: middle;
}
}
// Extra content on light purple background
.email-extra-wave {
height: 42px;
background-image: url('../images/mailer-new/welcome/purple-extra-soft-wave.png');
background-position: bottom center;
background-repeat: no-repeat;
}
.email-extra-td {
padding: 32px 32px 24px;
background-color: #f0f0ff;
background-image: url('../images/mailer-new/welcome/purple-extra-soft-spacer.png'); // Using an image to maintain the color even in forced dark modes
.email-column-td {
padding-top: 8px;
padding-bottom: 8px;
}
}
// Feature card
.email-feature-wrapper-td {
padding: 8px 0;
}
.email-feature-td {
padding: 24px;
background-color: #fff;
border: 1px solid #e8e6eb;
border-radius: 12px;
}
// Responsive
@@ -617,4 +945,21 @@ table + p {
.email-desktop-flex {
display: flex;
}
.email-header-left {
padding-right: 32px;
}
.email-header-right {
width: 240px;
margin-inline-start: auto;
}
.email-desktop-column {
max-width: 346px !important;
}
.email-desktop-text-right {
text-align: right;
}
}