mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Added UI for highlighting published post revision
No ref
This commit is contained in:
parent
c21f136834
commit
ae04987d6f
2 changed files with 17 additions and 6 deletions
|
@ -41,7 +41,10 @@
|
|||
<div class="flex items-center">
|
||||
<span class="gh-post-history-version">{{gh-format-post-time revision.createdAt format="D MMM YYYY, HH:mm"}}{{this.timezone}}</span>
|
||||
{{#if revision.latest}}
|
||||
<span class="gh-post-history-version-current">Latest</span>
|
||||
<span class="gh-post-history-version-tag current">Latest</span>
|
||||
{{/if}}
|
||||
{{#if revision.published}}
|
||||
<span class="gh-post-history-version-tag published">Publised</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
<span class="gh-post-history-version-meta">{{revision.author.name}}</span>
|
||||
|
|
|
@ -36,19 +36,27 @@
|
|||
font-weight: 400;
|
||||
}
|
||||
|
||||
.nav-list-item .gh-post-history-version-current {
|
||||
.nav-list-item .gh-post-history-version-tag {
|
||||
margin-left: .8rem;
|
||||
padding: 0 4px;
|
||||
background: var(--lightgrey-l2);
|
||||
color: var(--darkgrey);
|
||||
padding: 0 5px;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
line-height: inherit;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .2px;
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.nav-list-item .gh-post-history-version-tag.current {
|
||||
background: var(--lightgrey-l2);
|
||||
color: var(--darkgrey);
|
||||
}
|
||||
|
||||
.nav-list-item .gh-post-history-version-tag.published {
|
||||
background: var(--green-d1);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.nav-list-item .gh-post-history-version-restore {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
|
|
Loading…
Add table
Reference in a new issue