Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Redesign create a channel link.
evykassirerd168ff2a0f08
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 7c2c5717955..04e56e508a2 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -274,6 +274,9 @@(var(--legacy-body-line-height-unitless) * 1em) + 0.3571em);--right-sidebar-left-spacing: 5px;+ /* Used in both left and right sidebar at the bottom, to allow+ the user to scroll past the bottom-most elements a little bit. */+ --sidebar-bottom-spacing: 1.4286em; /* 20px / 14px em *//* We base sidebar row heights on their line heights.Prominent rows include things like headers (e.g., VIEWS)diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex f2e9be13158..ba422914532 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -412,11 +412,43 @@}}+#subscribe-to-more-streams {+ /* --left-sidebar-bottom-scrolling-buffer is to prevent the row from+ being cut off, and --sidebar-bottom-spacing is extra padding. */+ margin: 5px var(--left-sidebar-right-margin)+ calc(+ var(--left-sidebar-bottom-scrolling-buffer) ++ var(--sidebar-bottom-spacing)+ )+ 0;+ padding-left: var(--left-sidebar-toggle-width-offset);+ border-radius: 4px;++ &:hover {+ background: var(--color-background-sidebar-action-heading-hover);+ box-shadow: inset 0 0 0 1px var(--color-shadow-sidebar-row-hover);+ color: var(--color-text-sidebar-action-heading-hover);+ }++ .subscribe-more-link {+ display: grid;+ grid-template:+ "plus-icon row-text" var(--line-height-sidebar-row-prominent)+ / auto 1fr;+ align-items: center;+ color: var(--color-text-sidebar-action-heading);+ text-decoration: none;++ &:active {+ transition: transform 80ms;+ transform: scale(0.96);+ }+ }+}+#login-link-container,#subscribe-to-more-streams {text-decoration: none;- margin: 5px auto var(--left-sidebar-bottom-scrolling-buffer)- var(--left-sidebar-toggle-width-offset);.subscribe-more-icon {min-width: 19px;@@ -432,6 +464,8 @@color: var(--color-text-url);display: flex;align-items: center;+ margin: 5px auto var(--left-sidebar-bottom-scrolling-buffer)+ var(--left-sidebar-toggle-width-offset);&:hover {cursor: pointer;diff --git a/web/templates/subscribe_to_more_streams.hbs b/web/templates/subscribe_to_more_streams.hbsindex 677158d2ba7..1c3acb2a54e 100644--- a/web/templates/subscribe_to_more_streams.hbs+++ b/web/templates/subscribe_to_more_streams.hbs@@ -1,16 +1,16 @@{{#if exactly_one_unsubscribed_stream}}- <a href="#channels/notsubscribed">- <i class="subscribe-more-icon fa fa-plus-circle" aria-hidden="true"></i>- {{~t "Browse 1 more channel" ~}}+ <a class="subscribe-more-link" href="#channels/notsubscribed">+ <i class="subscribe-more-icon zulip-icon zulip-icon-square-plus" aria-hidden="true" ></i>+ {{~t "BROWSE 1 MORE CHANNEL" ~}}</a>{{else if can_subscribe_stream_count}}- <a href="#channels/notsubscribed">- <i class="subscribe-more-icon fa fa-plus-circle" aria-hidden="true"></i>- {{~t "Browse {can_subscribe_stream_count} more channels" ~}}+ <a class="subscribe-more-link" href="#channels/notsubscribed">+ <i class="subscribe-more-icon zulip-icon zulip-icon-square-plus" aria-hidden="true" ></i>+ {{~t "BROWSE {can_subscribe_stream_count} MORE CHANNELS" ~}}</a>{{else if can_create_streams}}- <a href="#channels/new">- <i class="subscribe-more-icon fa fa-plus-circle" aria-hidden="true"></i>- {{~t "Create a channel" ~}}+ <a class="subscribe-more-link" href="#channels/new">+ <i class="subscribe-more-icon zulip-icon zulip-icon-square-plus" aria-hidden="true" ></i>+ {{~t "CREATE A CHANNEL" ~}}</a>{{/if}}