Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
navbar: Scale navbar with app font size, using em.
evykassirer753edc4b1a9e
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 2c50968ac12..854dcd98490 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -167,24 +167,24 @@/*This is the header, aka the navbar.*/- --header-height: 40px;+ --header-height: 2.5em; /* 40px at 16px em *//*At 600px, the header starts taking up more than 5%of the screen. We make it shorter to leave more spaceto see the rest of the app. */@media (height < $short_navbar_cutoff_height) {- --header-height: 30px;+ --header-height: 1.875em; /* 30px at 16px em */}/*Height of the search box, which appears in the header.*/- --search-box-height: 32px;- --search-box-width: 150px;+ --search-box-height: 2em; /* 32px at 16px em */+ --search-box-width: 9.375em; /* 150px at 16px em */@media (width < $md_min) {- --search-box-width: 40px;+ --search-box-width: 2.5em; /* 40px at 16px em */}/*@@ -192,7 +192,7 @@is reduced to fit the available space.*/@media (height < $short_navbar_cutoff_height) {- --search-box-height: 28px;+ --search-box-height: 1.75em; /* 28px at 16px em */}/*diff --git a/web/styles/search.css b/web/styles/search.cssindex a02e47bbd3d..078be849cb3 100644--- a/web/styles/search.css+++ b/web/styles/search.css@@ -3,7 +3,7 @@height: var(--header-height);.navbar-search {- margin: 3.5px 0;+ margin: 0.2187em 0; /* 3.5px at 16px em */border-radius: 5px;position: absolute;overflow: hidden;@@ -13,8 +13,8 @@grid-area: search-icon;align-self: center;text-decoration: none;- padding: 0 7px;- font-size: 17px;+ padding: 0 0.4117em; /* 7px at 17px em */+ font-size: 1.0625em; /* 17px at 16px em */border: none;background-color: transparent;color: var(--color-search-icons);@@ -33,7 +33,7 @@.search_close_button {grid-area: search-close;- width: 28px;+ width: 1.75em; /* 28px at 16px em */height: 100%;background: none;border: none;@@ -64,7 +64,7 @@display: flex;padding: 0;flex-wrap: wrap;- gap: 2px;+ gap: 0.125em; /* 2px at 16px em */align-self: center;}@@ -206,7 +206,8 @@border: none;grid-template:"search-icon search-pills search-close" var(--search-box-height)- ". search-pills ." auto / auto minmax(0, 1fr) 28px;+ ". search-pills ." auto / auto minmax(0, 1fr)+ 1.75em; /* 28px at 16px em */align-content: center;cursor: pointer;@@ -216,7 +217,7 @@color as the search typeahead. */background-color: var(--color-background-search);/* Maintain only a column gap. */- gap: 0 5px;+ gap: 0 0.3125em; /* 5px at 16px em *//* Override padding. */padding: 0;}diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 53fdc33e38f..415fbe48c1a 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -1058,11 +1058,11 @@ nav {.nav-logo {display: inline-block;- height: 20px;- max-width: 200px;+ height: 1.25em; /* 20px at 16px em */+ max-width: 12.5em; /* 200px at 16px em */@media (height < $short_navbar_cutoff_height) {- height: 15px;+ height: 0.9375em; /* 15px at 16px em */}}@@ -1747,8 +1747,8 @@ body:not(.hide-left-sidebar) {}#top_navbar .column-right #personal-menu .header-button-avatar {- width: 20px;- height: 20px;+ width: 1.25em; /* 20px at 16px em */+ height: 1.25em; /* 20px at 16px em */}}@@ -2018,12 +2018,12 @@ body:not(.hide-left-sidebar) {}.zulip-icon-gear {- font-size: 18px;+ font-size: 1.125em; /* 18px at 16px em */}.zulip-icon-help-bigger,.zulip-icon-user-list {- font-size: 20px;+ font-size: 1.25em; /* 20px at 16px em */}.zulip-icon-help {@@ -2035,8 +2035,8 @@ body:not(.hide-left-sidebar) {#personal-menu {.header-button-avatar {- width: 24px;- height: 24px;+ width: 1.5em; /* 24px at 16px em */+ height: 1.5em; /* 24px at 16px em */background-size: cover;border-radius: 4px;background-color: var(--color-background-image-loader);