0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Fixed video embed card fallback display in Outlook

refs https://github.com/TryGhost/Ghost/issues/11756

- updates `@tryghost/kg-default-cards` which includes a VML version of video embed card fallbacks
- fixes play button styling for Yahoo Mail
- adds a minimum height to video embeds so they appear more reasonable when images are not loaded
This commit is contained in:
Kevin Ansfield 2020-04-30 12:07:49 +01:00
parent f8cecee05d
commit 81bf1667fa
3 changed files with 7 additions and 5 deletions

View file

@ -475,6 +475,7 @@ figure blockquote p {
}
.kg-video-preview table {
background-size: cover;
min-height: 200px; /* for when images aren't loaded */
}
.kg-video-play-button {
height: 2em;
@ -486,6 +487,7 @@ figure blockquote p {
background-color: rgba(0,0,0,0.85);
}
.kg-video-play-button div {
line-height: 0px; /* fix for Yahoo Mail */
border-color: transparent transparent transparent white;
border-style: solid;
border-width: 0.8em 0 0.8em 1.5em;

View file

@ -47,7 +47,7 @@
"@tryghost/image-transform": "0.2.1",
"@tryghost/kg-card-factory": "1.0.3",
"@tryghost/kg-default-atoms": "1.0.0",
"@tryghost/kg-default-cards": "1.2.0",
"@tryghost/kg-default-cards": "1.2.1",
"@tryghost/kg-markdown-html-renderer": "1.0.4",
"@tryghost/kg-mobiledoc-html-renderer": "2.0.1",
"@tryghost/members-api": "0.18.2",

View file

@ -403,10 +403,10 @@
resolved "https://registry.yarnpkg.com/@tryghost/kg-default-atoms/-/kg-default-atoms-1.0.0.tgz#d423a0f19a6989051bd6bbc9c8f104c88bd5c738"
integrity sha512-f6a8zIoL2w7aeZbeBj+0UPvFzE1Dd/zf3RGO+L4j/Kb4Z/yqOtoBWQun6I2H37XXoaqiiQc6Z3eW+L4iYSw1Ow==
"@tryghost/kg-default-cards@1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@tryghost/kg-default-cards/-/kg-default-cards-1.2.0.tgz#6b919b4e5bf4d59c71a74bce429f7f41a0e89898"
integrity sha512-Xz/xszMs0ulPAb+NCxjtYDYJx/6woYfhJ2DcBM56YugTBAc2T50hflH4SRwHgln7tllWpdmpyMQVUvTCyHcdOg==
"@tryghost/kg-default-cards@1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@tryghost/kg-default-cards/-/kg-default-cards-1.2.1.tgz#336b11d2021f8327d636c706cbc707f4b55db21f"
integrity sha512-vxdSY6webAHiy99oDlxxglc+2tXl84/qu6S1Yl1yXn3AYTTsKO1EtTrdHEGf6cRqAxiPNyKaosVc8iP1w3phJQ==
dependencies:
"@tryghost/kg-markdown-html-renderer" "^1.0.4"
"@tryghost/url-utils" "^0.6.14"