From 9cca07ff70a12ee163e6c113f0616f5232860cf1 Mon Sep 17 00:00:00 2001 From: Sanne de Vries Date: Sat, 17 Sep 2022 12:26:39 +0100 Subject: [PATCH] Replaced all classnames referencing stats with analytics Refs https://github.com/TryGhost/Team/issues/1893 --- ghost/admin/app/styles/layouts/content.css | 34 +++++++++---------- ghost/admin/app/templates/posts/analytics.hbs | 24 ++++++------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/ghost/admin/app/styles/layouts/content.css b/ghost/admin/app/styles/layouts/content.css index 53d62c9673..4680c72ff5 100644 --- a/ghost/admin/app/styles/layouts/content.css +++ b/ghost/admin/app/styles/layouts/content.css @@ -701,10 +701,10 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho } -/* Post stats +/* Post analytics /* --------------------------------------------------------- */ -.gh-post-stats-header { +.gh-post-analytics-header { position: relative; margin: 0 0 2.4rem; padding: 0 0 1.6rem; @@ -719,13 +719,13 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho white-space: inherit; } -.gh-post-stats-meta { +.gh-post-analytics-meta { margin: 0; color: var(--midlightgrey-d2); font-size: 1.35rem; } -.gh-post-stats-box { +.gh-post-analytics-box { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; @@ -735,17 +735,17 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho border-radius: var(--border-radius); } -.gh-post-stats-box.column { +.gh-post-analytics-box.column { display: flex; flex-direction: column; } -.gh-post-stats-box.resources { +.gh-post-analytics-box.resources { grid-template-columns: 1fr 1fr; grid-gap: 24px; } -.gh-post-stats-resource { +.gh-post-analytics-resource { padding: 2.4rem; background: var(--white); border-radius: var(--border-radius); @@ -753,7 +753,7 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho transition: all .3s ease-in-out; } -.gh-post-stats-resource:hover { +.gh-post-analytics-resource:hover { transform: translateY(-4px); transition: all .3s ease-in-out; box-shadow: @@ -765,13 +765,13 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho ; } -.gh-post-stats-resource { +.gh-post-analytics-resource { display: grid; grid-template-columns: 2fr 3fr; grid-gap: 24px; } -.gh-post-stats-resource .thumbnail { +.gh-post-analytics-resource .thumbnail { border-radius: var(--border-radius); width: 100%; height: auto; @@ -783,7 +783,7 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho filter: brightness(1.08); } -.gh-post-stats-resource p { +.gh-post-analytics-resource p { font-size: 1.5rem; letter-spacing: 0; line-height: 1.55; @@ -791,7 +791,7 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho margin: 0 0 1rem; } -.gh-post-stats-title { +.gh-post-analytics-title { margin: 0; padding: 0 0 2px; color: var(--black); @@ -799,17 +799,17 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho font-weight: 600; } -.gh-post-stats-item { +.gh-post-analytics-item { border-left: 1px solid var(--whitegrey-d2); padding-left: 2rem; } -.gh-post-stats-item:first-child { +.gh-post-analytics-item:first-child { border-left: none; padding-left: 0; } -.gh-post-stats-item h3 { +.gh-post-analytics-item h3 { margin: 0 0 10px; color: var(--black); font-size: 2.2rem; @@ -819,7 +819,7 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho white-space: nowrap; } -.gh-post-stats-item p { +.gh-post-analytics-item p { margin: 0; color: var(--midgrey); font-size: 1.3rem; @@ -827,7 +827,7 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho letter-spacing: 0; } -.gh-post-stats-item p.strong { +.gh-post-analytics-item p.strong { font-weight: 600; } diff --git a/ghost/admin/app/templates/posts/analytics.hbs b/ghost/admin/app/templates/posts/analytics.hbs index f4bac39563..54076be27c 100644 --- a/ghost/admin/app/templates/posts/analytics.hbs +++ b/ghost/admin/app/templates/posts/analytics.hbs @@ -1,6 +1,6 @@
- +
Posts @@ -10,30 +10,30 @@

{{this.post.title}}

-

Published and sent on 12 Feb 2022 at 11:57 to free subscribers

+

Published and sent on 12 Feb 2022 at 11:57 to free subscribers

Engagement

-
-
+
+

20.251

Sent

-
+

60%

12.200 opened

-
+

15%

3.038 clicked

-
+

16

Free signups

-
+

10

Paid conversions

@@ -42,7 +42,7 @@

Link clicks

-
+