0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed design issue DES-4 (#19662)

Fixed inconsistencies in typography for footer and featured images, on desktop and mobile.
This commit is contained in:
Daniël van der Winden 2024-03-25 12:08:34 +01:00 committed by GitHub
parent 97c63e1735
commit 3fa363f944
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 12 deletions

View file

@ -423,7 +423,7 @@ table.body h2 span {
\\" style=\\"font-family: -apple-system, BlinkMacSystemFont, &#39;Segoe UI&#39;, Roboto, Helvetica, Arial, sans-serif, &#39;Apple Color Emoji&#39;, &#39;Segoe UI Emoji&#39;, &#39;Segoe UI Symbol&#39;; font-size: 18px; vertical-align: top; color: #000000; width: 100%; padding-bottom: 10px;\\" width=\\"100%\\" valign=\\"top\\"><img src=\\"https://example.com/image.jpg\\" alt=\\"Testing sending\\" style=\\"border: none; -ms-interpolation-mode: bicubic; max-width: 100%;\\"></td>
</tr>
<tr>
<td class=\\"feature-image-caption\\" align=\\"center\\" style=\\"font-family: -apple-system, BlinkMacSystemFont, &#39;Segoe UI&#39;, Roboto, Helvetica, Arial, sans-serif, &#39;Apple Color Emoji&#39;, &#39;Segoe UI Emoji&#39;, &#39;Segoe UI Symbol&#39;; vertical-align: top; width: 100%; padding-bottom: 30px; text-align: center; font-size: 13px; color: #000000; color: rgba(0, 0, 0, 0.5);\\" width=\\"100%\\" valign=\\"top\\">Testing <b>feature image caption</b></td>
<td class=\\"feature-image-caption\\" align=\\"center\\" style=\\"font-family: -apple-system, BlinkMacSystemFont, &#39;Segoe UI&#39;, Roboto, Helvetica, Arial, sans-serif, &#39;Apple Color Emoji&#39;, &#39;Segoe UI Emoji&#39;, &#39;Segoe UI Symbol&#39;; vertical-align: top; width: 100%; padding: 10px 0 30px 0; text-align: center; color: rgba(0, 0, 0, 0.5); font-size: 13px;\\" width=\\"100%\\" valign=\\"top\\">Testing <b>feature image caption</b></td>
</tr>
<tr class=\\"post-content-row\\">
<td class=\\"post-content\\" style=\\"vertical-align: top; font-family: Georgia, serif; font-size: 18px; line-height: 1.5em; color: #000000; padding-bottom: 20px; border-bottom: 1px solid #e5eff5; border-bottom: 1px solid rgba(0, 0, 0, 0.12); max-width: 600px;\\" valign=\\"top\\">

View file

@ -269,8 +269,14 @@ figcaption {
text-align: center;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-size: 13px;
padding-top: 5px;
padding-top: 10px;
padding-bottom: 10px;
line-height: 1.5em;
color: {{secondaryTextColor}};
}
figcaption a {
text-decoration: none!important;
}
code {
@ -424,15 +430,19 @@ figure blockquote p {
}
.feature-image-with-caption {
padding-bottom: 10px;
width: 100%;
padding: 0;
font-size: 13px!important;
}
.feature-image-caption {
width: 100%;
padding-top: 5px;
padding-bottom: 30px;
text-align: center;
font-size: 13px;
color: #738a94;
font-size: 13px!important;
color: {{secondaryTextColor}};
line-height: 1.5em;
}
/* -------------------------------------
@ -618,6 +628,10 @@ a[data-flickr-embed] img {
width: auto;
}
.kg-image-card span {
text-align: center;
}
.kg-bookmark-container {
display: flex;
min-height: 148px;
@ -1123,7 +1137,7 @@ a[data-flickr-embed] img {
color: #738a94;
margin-top: 20px;
text-align: center;
font-size: 13px;
font-size: 13px!important;
padding-bottom: 10px;
padding-top: 10px;
padding-left: 30px;
@ -1134,6 +1148,7 @@ a[data-flickr-embed] img {
.footer a {
color: #738a94;
text-decoration: underline;
font-size: 13px;
}
/* -------------------------------------
@ -1373,6 +1388,10 @@ a[data-flickr-embed] img {
}
table.body .footer p {
font-size: 12px !important;
}
table.body .view-online-link,
table.body .footer,
table.body .footer a {
@ -1537,6 +1556,10 @@ a[data-flickr-embed] img {
line-height: 1.3em !important;
}
.feature-image-caption {
font-size: 13px!important;
}
}
/* -------------------------------------

View file

@ -462,10 +462,9 @@ figure blockquote p {
.feature-image-caption {
width: 100%;
padding-bottom: 30px;
text-align: center;
font-size: 13px;
color: {{textColor}};
padding: 10px 0 30px 0;
font-size: 13px !important;
text-align: center;
color: {{secondaryTextColor}};
}

View file

@ -116,9 +116,14 @@
{{/if}}
></td>
</tr>
{{#if post.feature_image_caption }}
{{#if post.feature_image_caption }}
<tr>
<td class="feature-image-caption" align="center">{{{post.feature_image_caption}}}</td>
<td align="center">
<div class="feature-image-caption">
{{{post.feature_image_caption}}}
</div>
</td>
</tr>
{{/if}}
{{/if}}