Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Restyle log-in link to match browse channels.
Harsh Bansal30a59e877e2a
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex 26bf7eb48fa..b07513f85ff 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -396,7 +396,8 @@}}-#subscribe-to-more-streams {+#subscribe-to-more-streams,+#login-to-more-streams {/* --left-sidebar-bottom-scrolling-buffer is to prevent the row frombeing cut off, and --sidebar-bottom-spacing is extra padding. */margin: 5px var(--left-sidebar-right-margin)@@ -417,13 +418,16 @@.subscribe-more-link {display: grid;grid-template:- "plus-icon . row-text" var(--line-height-sidebar-row-prominent)+ "plus-icon . row-text" minmax(+ var(--line-height-sidebar-row-prominent),+ auto+ )/ var(--left-sidebar-icon-column-width) var(--left-sidebar-icon-content-gap)minmax(0, 1fr);align-items: center;- line-height: var(--line-height-sidebar-row-prominent);+ line-height: 1;color: var(--color-text-sidebar-action-heading);text-decoration: none;}@@ -442,6 +446,7 @@because mathematical centering and the perception of center don'talways match. */margin-top: -0.12em;+ padding: 3px 0;font-size: var(--font-size-sidebar-action-heading);font-weight: var(--font-weight-sidebar-action-heading);font-variant: var(--font-variant-sidebar-action-heading);@@ -458,29 +463,11 @@}}-#login-link-container,-#subscribe-to-more-streams {+#subscribe-to-more-streams,+#login-to-mmore-streams {text-decoration: none;}-#login-link-container {- 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;- color: var(--color-text-url-hover);-- &.login_button .login-text {- color: var(--color-text-url-hover);- text-decoration: underline;- }- }-}-ul.filters {list-style-type: none;margin-left: 0;@@ -1831,6 +1818,7 @@ li.topic-list-item {#streams_header,#subscribe-to-more-streams,+ #login-to-more-streams,.show-more-topics {display: none;}diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbsindex 2995858f022..d6263b83452 100644--- a/web/templates/left_sidebar.hbs+++ b/web/templates/left_sidebar.hbs@@ -207,14 +207,11 @@{{#unless is_guest }}<div id="subscribe-to-more-streams"></div>{{/unless}}- <div class="only-visible-for-spectators">- <div id="login-link-container" class="login_button">- <i class="zulip-icon zulip-icon-log-in" aria-hidden="true"></i>- {{~!-- squash whitespace --~}}- <a class="login-text">- {{t 'Log in to browse more channels'}}- </a>- </div>+ <div id="login-to-more-streams" class="only-visible-for-spectators login_button">+ <a class="subscribe-more-link">+ <i class="subscribe-more-icon zulip-icon zulip-icon-log-in" aria-hidden="true" ></i>+ <span class="subscribe-more-label">{{~t "LOG IN TO BROWSE MORE" ~}}</span>+ </a></div></div></div>