From be5ef010a5bd5026ea83458775d9ae10bc857ec4 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Fri, 15 Oct 2021 12:49:42 +0200 Subject: [PATCH] Offers archive/active refinements - added empty archive screen - added indication of archive offer on detail page - set default dropdown style to non-selected - removed archive button for new offers --- .../app/components/modals/archive-offer.hbs | 2 +- ghost/admin/app/styles/components/badges.css | 10 ++ ghost/admin/app/styles/layouts/content.css | 6 +- ghost/admin/app/styles/layouts/offers.css | 3 +- ghost/admin/app/templates/offer.hbs | 21 ++-- ghost/admin/app/templates/offers.hbs | 115 ++++++++++-------- 6 files changed, 98 insertions(+), 59 deletions(-) diff --git a/ghost/admin/app/components/modals/archive-offer.hbs b/ghost/admin/app/components/modals/archive-offer.hbs index 703d7d5be7..0d227010ea 100644 --- a/ghost/admin/app/components/modals/archive-offer.hbs +++ b/ghost/admin/app/components/modals/archive-offer.hbs @@ -17,7 +17,7 @@ @buttonText="Archive" @successText="Archived" @task={{this.archiveOfferTask}} - @class="gh-btn gh-btn-black gh-btn-icon" + @class="gh-btn gh-btn-red gh-btn-icon" /> diff --git a/ghost/admin/app/styles/components/badges.css b/ghost/admin/app/styles/components/badges.css index 6bd18ded05..7689b87661 100644 --- a/ghost/admin/app/styles/components/badges.css +++ b/ghost/admin/app/styles/components/badges.css @@ -45,3 +45,13 @@ box-shadow: none; text-shadow: none; } + +.gh-badge-title { + margin-left: 13px; + background: transparent; + font-weight: 400; + color: var(--midlightgrey-d2); + border: 1px solid var(--lightgrey-d1); + border-radius: 4px; + line-height: 25px; +} \ No newline at end of file diff --git a/ghost/admin/app/styles/layouts/content.css b/ghost/admin/app/styles/layouts/content.css index 21faecf0a6..9d0e68d782 100644 --- a/ghost/admin/app/styles/layouts/content.css +++ b/ghost/admin/app/styles/layouts/content.css @@ -70,11 +70,15 @@ .gh-contentfilter-selected .gh-contentfilter-menu-trigger, .gh-contentfilter-selected .gh-contentfilter-menu-trigger:hover { - color: var(--green); font-weight: 600; background: var(--whitegrey-l1); } +.gh-contentfilter-selected:not(.no-highlight) .gh-contentfilter-menu-trigger, +.gh-contentfilter-selected:not(.no-highlight) .gh-contentfilter-menu-trigger:hover { + color: var(--green) +} + .gh-canvas-header.grey .gh-contentfilter-menu-trigger, .gh-canvas-header.grey .gh-contentfilter-menu-trigger:focus, .gh-canvas-header.grey .gh-contentfilter-menu-trigger--active { diff --git a/ghost/admin/app/styles/layouts/offers.css b/ghost/admin/app/styles/layouts/offers.css index fedd019c07..f1341a2a86 100644 --- a/ghost/admin/app/styles/layouts/offers.css +++ b/ghost/admin/app/styles/layouts/offers.css @@ -234,6 +234,7 @@ transition: all 0.3s ease-in-out; } -.gh-offers-actions .gh-contentfilter { +.gh-offers-actions .gh-contentfilter-menu { margin-left: 0; + margin-right: 6px; } diff --git a/ghost/admin/app/templates/offer.hbs b/ghost/admin/app/templates/offer.hbs index 27bce8e4d8..4f90b40840 100644 --- a/ghost/admin/app/templates/offer.hbs +++ b/ghost/admin/app/templates/offer.hbs @@ -6,7 +6,10 @@ {{#if this.offer.isNew}} New Offer {{else}} - {{this.offer.name}} + {{this.offer.name}} + {{#if (eq this.offer.status "archived")}} + Archived + {{/if}} {{/if}}
@@ -206,13 +209,15 @@
{{#if (eq this.offer.status "active")}} - + {{#if (not this.offer.isNew)}} + + {{/if}} {{else}}