From 3c4edf355471cba2a684c0f5d4e845e95160a0eb Mon Sep 17 00:00:00 2001 From: Hel Nershing Thapa Date: Thu, 28 Jul 2022 14:46:06 +0545 Subject: [PATCH] Style notifications mini popover --- frontend/src/assets/styles/_extra.scss | 11 ++++ frontend/src/assets/styles/_typography.scss | 7 ++- .../src/components/notifications/inboxNav.js | 53 +++++++++---------- .../src/components/notifications/messages.js | 2 +- .../notifications/notificationCard.js | 25 +++++---- .../notifications/notificationResults.js | 2 +- frontend/src/locales/en.json | 4 +- frontend/src/views/notifications.js | 2 +- 8 files changed, 64 insertions(+), 42 deletions(-) diff --git a/frontend/src/assets/styles/_extra.scss b/frontend/src/assets/styles/_extra.scss index 97795f363b..5953629f65 100644 --- a/frontend/src/assets/styles/_extra.scss +++ b/frontend/src/assets/styles/_extra.scss @@ -390,4 +390,15 @@ a[href="https://www.mapbox.com/map-feedback/"] { .sticky-top { position: sticky !important; top: 0; +} + +.notifications-header { + h3 { + letter-spacing: -0.110252px; + line-height: 20px; + } +} + +.notifications-header>div { + padding: 1.5rem; } \ No newline at end of file diff --git a/frontend/src/assets/styles/_typography.scss b/frontend/src/assets/styles/_typography.scss index b680d7787a..93273cb1d6 100644 --- a/frontend/src/assets/styles/_typography.scss +++ b/frontend/src/assets/styles/_typography.scss @@ -3,8 +3,13 @@ ========================================================================== */ .barlow-condensed { - font-family: 'Barlow Condensed', sans-serif;; + font-family: 'Barlow Condensed', sans-serif; } + .base-font { font-family: "Archivo", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; } + +.f125 { + font-size: 1.25rem; +} \ No newline at end of file diff --git a/frontend/src/components/notifications/inboxNav.js b/frontend/src/components/notifications/inboxNav.js index 73bb1562df..3acef93198 100644 --- a/frontend/src/components/notifications/inboxNav.js +++ b/frontend/src/components/notifications/inboxNav.js @@ -24,32 +24,30 @@ const isActiveButton = (buttonName, projectQuery) => { export const InboxNavMini = (props) => { return ( /* mb1 mb2-ns (removed for map, but now small gap for more-filters) */ -
-
-
-

- -

- {props.newMsgCount > 0 && ( - { - props.setPopoutFocus(false); - }} - > -
- {props.newMsgCount === 1 ? ( - - ) : ( - - )} -
- - )} -
+
+
+

+ +

+ {props.newMsgCount > 0 && ( + { + props.setPopoutFocus(false); + }} + > +
+ {props.newMsgCount === 1 ? ( + + ) : ( + + )} +
+ + )}
); @@ -59,11 +57,12 @@ export const InboxNavMiniBottom = (props) => { /* mb1 mb2-ns (removed for map, but now small gap for more-filters) */