Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

spectator sign in buttons: Use media queries instead of hide-xl.

evykassirere158877365a2
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index b2b3b61ee50..fb163093440 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1013,6 +1013,10 @@ body.has-overlay-scrollbar {
/* width of right column - width of gear icon - right margin of column-right (250px - 40px - 40px -7px) */
width: 163px;
+ @media (width < $xl_min) {
+ display: none;
+ }
+
& a {
font-size: calc(16em / 14);
font-weight: 600;
@@ -1043,6 +1047,10 @@ body.has-overlay-scrollbar {
width: var(--header-height);
border-left: 1px solid hsl(0deg 0% 88%);
+ @media (width >= $xl_min) {
+ display: none;
+ }
+
.login_button {
display: flex;
justify-content: center;
diff --git a/web/templates/navbar.hbs b/web/templates/navbar.hbs
index a0cd02fe149..4882724e20d 100644
--- a/web/templates/navbar.hbs
+++ b/web/templates/navbar.hbs
@@ -30,7 +30,7 @@
</div>
<div class="column-right">
<div class="only-visible-for-spectators">
- <div class="spectator_login_buttons hide-xl">
+ <div class="spectator_login_buttons">
<a href="/register/" class="signup_button">
<span>{{t 'Sign up' }}</span>
</a>
@@ -39,7 +39,7 @@
<span>{{t 'Log in' }}</span>
</a>
</div>
- <div class="spectator_narrow_login_button hide show-xl" data-tippy-content="{{t 'Log in' }}" data-tippy-placement="bottom">
+ <div class="spectator_narrow_login_button" data-tippy-content="{{t 'Log in' }}" data-tippy-placement="bottom">
<a class="header-button login_button">
<i class="fa fa-sign-in"></i>
</a>