From 660ed2c79db8456ad7f80472fbeac3efb1cb0a38 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Wed, 10 Feb 2021 21:05:54 +0100 Subject: [PATCH] Updated account menu --- .../components/gh-member-activity-feed.hbs | 4 +- .../components/gh-member-settings-form.hbs | 6 +- .../app/components/gh-nav-menu/footer.hbs | 27 ++++-- ghost/admin/app/styles/layouts/main.css | 97 +++++++++++++------ ghost/admin/app/styles/layouts/members.css | 1 + 5 files changed, 91 insertions(+), 44 deletions(-) diff --git a/ghost/admin/app/components/gh-member-activity-feed.hbs b/ghost/admin/app/components/gh-member-activity-feed.hbs index 5a879806ec..12be3e2b1a 100644 --- a/ghost/admin/app/components/gh-member-activity-feed.hbs +++ b/ghost/admin/app/components/gh-member-activity-feed.hbs @@ -1,5 +1,5 @@
-
+
{{#if this.activities}} {{#each this.firstActivities as |activity|}} @@ -23,7 +23,7 @@ {{/if}} {{else}} -

No member activity yet

+

No member activity yet

{{/if}}
diff --git a/ghost/admin/app/components/gh-member-settings-form.hbs b/ghost/admin/app/components/gh-member-settings-form.hbs index b21474bf5c..e484f1a6b1 100644 --- a/ghost/admin/app/components/gh-member-settings-form.hbs +++ b/ghost/admin/app/components/gh-member-settings-form.hbs @@ -123,16 +123,16 @@
-
+

Member activity

-
+
{{#if this.canShowStripeInfo}}

Stripe info

-
+
{{#if this.isLoading}}
diff --git a/ghost/admin/app/components/gh-nav-menu/footer.hbs b/ghost/admin/app/components/gh-nav-menu/footer.hbs index 7c8e41829a..ae0f0df90e 100644 --- a/ghost/admin/app/components/gh-nav-menu/footer.hbs +++ b/ghost/admin/app/components/gh-nav-menu/footer.hbs @@ -13,14 +13,23 @@ diff --git a/ghost/admin/app/styles/layouts/main.css b/ghost/admin/app/styles/layouts/main.css index 899db122f7..88b5602336 100644 --- a/ghost/admin/app/styles/layouts/main.css +++ b/ghost/admin/app/styles/layouts/main.css @@ -81,32 +81,6 @@ border: 1px solid color-mod(var(--main-bg-color) l(-8%)); } -.gh-user-name { - margin: -2px 8px 2px 0; - padding: 0 0 3px 0; - word-break: break-all; - font-weight: 600; - line-height: 1.1em; - max-width: 160px; - text-overflow: ellipsis; - overflow-x: hidden; - white-space: nowrap; -} - -.gh-user-email { - margin: -1px 8px -3px 0; - padding: 0 0 3px 0; - word-break: break-all; - font-size: 1.25rem; - font-weight: 400; - line-height: 1.1em; - color: var(--middarkgrey); - max-width: 160px; - text-overflow: ellipsis; - overflow-x: hidden; - white-space: nowrap; -} - /* Global Nav /* ---------------------------------------------------------- */ @@ -131,12 +105,12 @@ } .gh-nav-menu-dropdown .dropdown-menu { - top: -344px; + top: -440px; left: 20px; margin: 10px 0 0; box-shadow: var(--box-shadow-m); - min-width: 280px; - padding: 6px 0; + min-width: 290px; + padding: 6px 0 12px; } .gh-nav-menu-dropdown .dropdown-menu>li>a, @@ -144,7 +118,7 @@ font-size: 1.4rem; margin: 0; width: unset; - padding: 10px 24px 11px; + padding: 8px 24px 9px; } .gh-nav-menu-dropdown .dropdown-menu>li>button { @@ -216,6 +190,54 @@ padding: 0; } +.gh-account-menu-header { + position: relative; + display: flex; + flex-direction: column; + align-items: center; + padding: 32px 24px 24px; +} + +.gh-account-menu-header .gh-user-avatar { + width: 56px; + height: 56px; + margin: 0; + padding: 0; +} + +.gh-account-menu-header .user-menu-signout { + position: absolute; + top: 16px; + right: 12px; +} + +.gh-user-name { + margin: 8px 0 0; + padding: 0; + word-break: break-all; + font-size: 1.5rem; + font-weight: 600; + line-height: 1.2em; + max-width: 160px; + text-overflow: ellipsis; + overflow-x: hidden; + white-space: nowrap; +} + +.gh-user-email { + margin: 4px 0 0; + padding: 0; + word-break: break-all; + font-size: 1.3rem; + font-weight: 400; + line-height: 1.2em; + color: var(--middarkgrey); + max-width: 160px; + text-overflow: ellipsis; + overflow-x: hidden; + white-space: nowrap; +} + /* Global search /* ---------------------------------------------------------- */ @@ -1042,10 +1064,15 @@ padding: 0; } +.gh-main-section-block.with-margin, .gh-main-section-block:not(:last-of-type) { margin-bottom: 32px; } +.gh-main-section-block.no-margin { + margin-bottom: 0; +} + .gh-main-section-block.bt { border-top: 1px solid var(--whitegrey); } .gh-main-section-block.br { border-right: 1px solid var(--whitegrey); } .gh-main-section-block.bb { border-bottom: 1px solid var(--whitegrey); } @@ -1082,6 +1109,16 @@ padding-top: 16px; } +.gh-main-section-block.stretch-height { + height: 100%; + display: flex; + flex-direction: column; +} + +.gh-main-section-block.stretch-height .gh-main-section-content { + flex-grow: 1; +} + /* Expandable options */ .gh-expandable { background: var(--main-color-content-greybg); diff --git a/ghost/admin/app/styles/layouts/members.css b/ghost/admin/app/styles/layouts/members.css index 2b2b51efe5..5f577b25a8 100644 --- a/ghost/admin/app/styles/layouts/members.css +++ b/ghost/admin/app/styles/layouts/members.css @@ -534,6 +534,7 @@ textarea.gh-member-details-textarea { align-items: center; justify-content: flex-start; min-height: 24px; + margin-top: -8px; } .gh-member-stripe-info {