Refined email status on post list

This commit is contained in:
Peter Zimon 2019-11-22 16:25:06 +01:00
parent c1039f929c
commit 8bf287d81e
2 changed files with 24 additions and 6 deletions

View File

@ -201,6 +201,17 @@
margin-right: 3px;
}
.gh-content-status-draft,
.gh-content-status-published,
.gh-content-status-scheduled,
.gh-content-status-emailed {
display: flex;
justify-content: center;
align-items: center;
height: 19px;
padding: 0 4px;
}
.gh-content-status-published {
color: var(--midgrey);
background: var(--lightgrey);
@ -231,14 +242,21 @@
fill: var(--blue);
}
.gh-content-emailed {
.gh-content-status-emailed {
display: inline-block;
margin: 2px 6px 0;
margin: 0px 6px;
background: var(--lightgrey);
padding-right: 5px;
border-radius: 3px;
}
.gh-content-emailed svg {
width: 13px;
height: 13px;
.gh-content-status-emailed svg {
width: 12px;
height: 12px;
}
.gh-content-status-emailed.error {
background: color-mod(var(--red) a(10%));
}
.gh-content-entry-author {

View File

@ -44,7 +44,7 @@
{{/if}}
{{#if (or this.post.email (and this.post.isScheduled this.post.sendEmailWhenPublished))}}
<span data-tooltip={{if (eq this.post.email.status "failed") "Sending failed" "Sent by email"}} class="gh-content-emailed">
<span data-tooltip={{if (eq this.post.email.status "failed") "Failed to send post by email" "Sent by email"}} class="gh-content-status-emailed {{if (eq this.post.email.status "failed") "error"}}">
{{svg-jar "send-email" class=(if (eq this.post.email.status "failed") "stroke-red" "stroke-midgrey")}}
</span>
{{/if}}