Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
search css refactor: Move search-related selectors out of media queries.
evykassirer0a7fbc708557
diff --git a/web/styles/search.css b/web/styles/search.cssindex 1d8b2c0c683..36cea196b1f 100644--- a/web/styles/search.css+++ b/web/styles/search.css@@ -165,3 +165,37 @@}}}++@media (width < $xl_min) {+ #searchbox_legacy .navbar-search.expanded,+ #searchbox .navbar-search.expanded {+ width: calc(100% - 84px);+ }+}++@media (width < $md_min) {+ /* todo: Figure out why this has to be different+ from top-navbar-border at this width and resolve it */+ #searchbox_legacy .navbar-search.expanded,+ #searchbox .navbar-search.expanded {+ width: calc(100% - 123px);+ }+}++@media (width < $sm_min) {+ #search_query {+ height: var(--header-height) !important;+ vertical-align: text-bottom;+ }+}++.typeahead-menu li a {+ .search_list_item {+ display: flex;+ align-items: center;+ }++ .search_list_item .pill-container {+ margin-left: 5px;+ }+}diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 04d01cac5ec..b20af1128db 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -754,15 +754,6 @@ strong {);}- .search_list_item {- display: flex;- align-items: center;- }-- .search_list_item .pill-container {- margin-left: 5px;- }-/* styles defined for user_circle here only deal with positioning of user_presence_circlein typeahead list in order to ensure they are rendered correctly in in all screen sizes.Most of the style rules related to color, gradient etc. which are generally common throughout@@ -2657,9 +2648,7 @@ select.invite-as {margin-right: 7px;}- .top-navbar-container,- #searchbox_legacy .navbar-search.expanded,- #searchbox .navbar-search.expanded {+ .top-navbar-container {width: calc(100% - 84px);}@@ -2735,12 +2724,6 @@ select.invite-as {margin-left: 40px;width: calc(100% - 108px);}- /* todo: Figure out why this has to be different- from above at this width and resolve it */- #searchbox_legacy .navbar-search.expanded,- #searchbox .navbar-search.expanded {- width: calc(100% - 123px);- }.search_closed .fa-search {right: 115px;@@ -2786,11 +2769,6 @@ select.invite-as {height: var(--header-height) !important;}- #search_query {- height: var(--header-height) !important;- vertical-align: text-bottom;- }-#streamlist-toggle-button {height: var(--header-height);padding-top: 0;