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.

css: Extract realm logo max width as a variable.

Aman Agrawala3d591b337e9
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 167f45791f1..067a588079c 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -255,6 +255,7 @@
--left-sidebar-max-width: calc(
20.6429em - var(--left-sidebar-right-margin)
);
+ --realm-logo-max-width: 12.5em; /* 200px at 16px em */
/* Sidebar width is 1/3 of the screen at smaller
sizes, but gets held to the left sidebar's max width.
This is very useful for areas in the CSS codebase
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 37cf2d25041..5a3e2c8e64a 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1068,7 +1068,7 @@ nav {
.nav-logo {
display: inline-block;
height: 1.25em; /* 20px at 16px em */
- max-width: 12.5em; /* 200px at 16px em */
+ max-width: var(--realm-logo-max-width);
@media (height < $short_navbar_cutoff_height) {
height: 0.9375em; /* 15px at 16px em */