0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Implemented table based NFT email styles

This commit is contained in:
Peter Zimon 2021-11-17 14:05:34 +01:00
parent 0692ddf57d
commit bbceace31c
2 changed files with 13 additions and 55 deletions

View file

@ -544,60 +544,17 @@ figure blockquote p {
border-width: 0.8em 0 0.8em 1.5em;
}
a.kg-nft-card {
display: flex;
flex-direction: column;
color: #15212A;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-size: 15px;
text-decoration: none;
border-radius: 3px;
border: 1px solid #e5eff5;
width: 100%;
max-width: 512px;
color: #222;
background: #fff;
margin: 0 auto;
}
.kg-nft-metadata {
padding: 20px;
}
.kg-nft-image {
border-radius: 2px 2px 0 0;
}
.kg-nft-header {
display: flex;
justify-content: space-between;
gap: 20px;
}
.kg-nft-title {
font-family: inherit;
font-size: 19px;
font-weight: 700;
margin: 0;
color: #222;
}
.kg-nft-creator {
font-family: inherit;
margin: 4px 0 0;
color: #ababab;
}
.kg-nft-creator-name {
font-weight: 500;
color: #222;
}
.kg-nft-description {
font-family: inherit;
line-height: 1.4em;
margin: 12px 0 0;
color: #222;
.kg-nft-link {
display: block;
text-decoration: none !important;
color: #15212A !important;
font-family: inherit !important;
font-size: 14px;
line-height: 1.3em;
padding-top: 4px;
padding-right: 20px;
padding-left: 20px;
padding-bottom: 4px;
}
.kg-card-callout {

View file

@ -48,7 +48,8 @@ class NFTOEmbedProvider {
provider_url: 'https://opensea.io',
image_url: result.body.image_url,
creator_name: result.body.creator.user.username,
description: result.body.description
description: result.body.description,
collection_name: result.body.collection.name
};
}
}