0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Refined archive/unarchive prices

This commit is contained in:
Peter Zimon 2021-05-07 17:45:59 +02:00
parent ad41a44620
commit 8eee71f2d6
2 changed files with 14 additions and 7 deletions

View file

@ -209,12 +209,12 @@
} }
.gh-price-list-name span.archived { .gh-price-list-name span.archived {
background: var(--midgrey); background: var(--lightgrey-l2);
color: #fff; color: var(--midgrey);
font-size: 1.2rem; font-size: 1.2rem;
} }
.gh-price-list-archived .gh-price-list-name, .gh-price-list-archived .gh-price-list-name .name,
.gh-price-list-archived .gh-price-list-description, .gh-price-list-archived .gh-price-list-description,
.gh-price-list-archived .gh-price-list-price span, .gh-price-list-archived .gh-price-list-price span,
.gh-price-list-archived .gh-price-list-subscriptions span { .gh-price-list-archived .gh-price-list-subscriptions span {
@ -233,6 +233,10 @@
left: auto; left: auto;
} }
.gh-btn-archive-toggle {
width: 80px;
}
.product-actions-menu.fade-out { .product-actions-menu.fade-out {
animation-duration: 0.01s; animation-duration: 0.01s;
pointer-events: none; pointer-events: none;
@ -247,4 +251,4 @@
display: grid; display: grid;
grid-template-columns: 1fr 2fr; grid-template-columns: 1fr 2fr;
grid-gap: 20px; grid-gap: 20px;
} }

View file

@ -92,7 +92,10 @@
<li class="gh-list-row {{if price.active "" "gh-price-list-archived"}}"> <li class="gh-list-row {{if price.active "" "gh-price-list-archived"}}">
<div class="gh-list-data gh-price-list-title"> <div class="gh-list-data gh-price-list-title">
<h3 class="gh-price-list-name"> <h3 class="gh-price-list-name">
{{price.nickname}} <span class="name">{{price.nickname}}</span>
{{#unless price.active}}
<span class="gh-badge archived">Archived</span>
{{/unless}}
</h3> </h3>
<p class="ma0 pa0 f8 midgrey gh-price-list-description"> <p class="ma0 pa0 f8 midgrey gh-price-list-description">
{{price.description}} {{price.description}}
@ -109,11 +112,11 @@
<span>Edit</span> <span>Edit</span>
</button> </button>
{{#if price.active}} {{#if price.active}}
<button class="gh-btn gh-btn-link archived" {{action "archivePrice" price}}> <button class="gh-btn gh-btn-link gh-btn-archive-toggle archived" {{action "archivePrice" price}}>
<span>Archive</span> <span>Archive</span>
</button> </button>
{{else}} {{else}}
<button class="gh-btn gh-btn-link" {{action "activatePrice" price}}> <button class="gh-btn gh-btn-link gh-btn-archive-toggle" {{action "activatePrice" price}}>
<span>Activate</span> <span>Activate</span>
</button> </button>
{{/if}} {{/if}}