diff --git a/web/sidebar/community-drawer-item.css b/web/sidebar/community-drawer-item.css --- a/web/sidebar/community-drawer-item.css +++ b/web/sidebar/community-drawer-item.css @@ -6,7 +6,7 @@ } .active { - background-color: var(--active-drawer-item); + background-color: var(--active-drawer-item-bg); border-top-right-radius: 4px; border-bottom-right-radius: 4px; } @@ -26,18 +26,13 @@ white-space: nowrap; overflow: hidden; color: var(--drawer-item-color); - line-height: 24px; -} - -.titleLevel0 { - font-size: var(--l-font-18); + font-size: var(--s-font-14); font-weight: var(--semi-bold); + line-height: 22px; } -.titleLevel1, -.titleLevel2 { - font-size: var(--m-font-16); - font-weight: var(--semi-bold); +.activeTitle { + color: var(--drawer-active-item-color); } .buttonContainer { diff --git a/web/sidebar/community-drawer-item.react.js b/web/sidebar/community-drawer-item.react.js --- a/web/sidebar/community-drawer-item.react.js +++ b/web/sidebar/community-drawer-item.react.js @@ -105,7 +105,10 @@ }); const { uiName } = useResolvedThreadInfo(threadInfo); - const titleLabel = classnames(css.title, css[labelStyle]); + const titleLabel = classnames({ + [css[labelStyle]]: true, + [css.activeTitle]: handler.isActive, + }); const style = React.useMemo(() => ({ paddingLeft }), [paddingLeft]); const threadEntry = classnames({ diff --git a/web/sidebar/community-drawer.css b/web/sidebar/community-drawer.css --- a/web/sidebar/community-drawer.css +++ b/web/sidebar/community-drawer.css @@ -1,9 +1,7 @@ .container { - background-color: var(--drawer-bg); display: flex; overflow-y: auto; flex-direction: column; - padding-right: 8px; padding-top: 8px; padding-bottom: 8px; align-self: flex-start; diff --git a/web/sidebar/community-drawer.react.js b/web/sidebar/community-drawer.react.js --- a/web/sidebar/community-drawer.react.js +++ b/web/sidebar/community-drawer.react.js @@ -19,7 +19,7 @@ import css from './community-drawer.css'; const maxDepth = 2; -const labelStyles = ['titleLevel0', 'titleLevel1', 'titleLevel2']; +const labelStyles = ['title']; function CommunityDrawer(): React.Node { const tab = useSelector(state => state.navInfo.tab); diff --git a/web/sidebar/community-picker.css b/web/sidebar/community-picker.css --- a/web/sidebar/community-picker.css +++ b/web/sidebar/community-picker.css @@ -2,37 +2,54 @@ display: flex; flex-direction: column; background: var(--community-bg); - padding: 24px 0 32px 0; border-right: 1px solid var(--border-color); flex-grow: 1; overflow: auto; - width: 400px; + padding-right: 16px; } .spacer { flex-grow: 1; } -.activeContainer { +.header { + border-bottom: 1px solid var(--community-drawer-lines); + padding: 10px 0 10px 0; + align-items: center; display: flex; - width: 100%; - box-sizing: border-box; - border-left: 8px solid var(--community-settings-selected); - border-right: 8px solid transparent; - padding-left: 12px; - height: 40px; +} + +.footer { + border-top: 1px solid var(--community-drawer-lines); + padding: 12px 0 12px 0; align-items: center; + display: flex; } -.inactiveContainer { +.sideLine { + width: 3px; + height: 24px; + border-radius: 0 4px 4px 0; + margin-right: 14px; +} + +.sideLineActive { + background-color: var(--community-settings-selected); +} + +.itemContainer { display: flex; - padding-left: 20px; height: 40px; align-items: center; + width: 100%; + border-radius: 0px 8px 8px 0px; +} + +.activeItemContainer { + background-color: var(--drawer-open-community-bg); } -.inactiveContainer svg, -.activeContainer svg { +.itemContainer svg { color: var(--fg); padding: 0; } @@ -52,9 +69,9 @@ width: 100%; } -.inboxButtonTitle { +.buttonTitle { font-weight: 500; - font-size: var(--l-font-18); + font-size: var(--s-font-14); line-height: 22px; padding-left: 12px; color: var(--fg); diff --git a/web/sidebar/community-picker.react.js b/web/sidebar/community-picker.react.js --- a/web/sidebar/community-picker.react.js +++ b/web/sidebar/community-picker.react.js @@ -29,8 +29,8 @@ ); const isSettingsOpen = useSelector(state => state.navInfo.tab === 'settings'); const settingsButtonContainerClass = classNames({ - [css.activeContainer]: isSettingsOpen, - [css.inactiveContainer]: !isSettingsOpen, + [css.activeItemContainer]: isSettingsOpen, + [css.itemContainer]: true, }); const tab = useSelector(state => state.navInfo.tab); @@ -58,25 +58,43 @@ state.navInfo.tab === 'calendar', ); const inboxButtonContainerClass = classNames({ - [css.activeContainer]: isInboxOpen, - [css.inactiveContainer]: !isInboxOpen, + [css.activeItemContainer]: isInboxOpen, + [css.itemContainer]: true, }); const inboxButtonTitle = tab === 'calendar' ? 'All communities' : 'Inbox'; + const sideLineInbox = classNames({ + [css.sideLine]: true, + [css.sideLineActive]: isInboxOpen, + }); + const sideLineSettings = classNames({ + [css.sideLine]: true, + [css.sideLineActive]: isSettingsOpen, + }); return (