Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
header-button: Add background effects to different states.
Aman Agrawal51797809c49c
diff --git a/web/styles/search.css b/web/styles/search.cssindex 5d5b14e9115..75cd044e7ef 100644--- a/web/styles/search.css+++ b/web/styles/search.css@@ -185,6 +185,14 @@height: var(--search-box-height);}+ @media ($md_min <= width < $xl_min) {+ /* Add some space between the search input and the userlist toggle+ in this width range so that hover state of userlist-toggle looks good. */+ .navbar-search:not(.expanded) {+ right: 2px;+ }+ }+@media (width >= $md_min) {.navbar-search {background: var(--color-background-search);diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 61320cd4439..c0901edcd61 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -325,6 +325,8 @@ body {--color-navbar-icon: hsl(240deg 20% 50%);--color-gear-menu-lighter-text: hsl(0deg 0% 40%);--color-gear-menu-blue-text: hsl(217deg 100% 50%);+ --color-header-button-hover: hsl(0deg 0% 0% / 5%);+ --color-header-button-focus: hsl(0deg 0% 0% / 8%);}%dark-theme {@@ -476,6 +478,8 @@ body {--color-navbar-icon: hsl(240deg 35% 60%);--color-gear-menu-lighter-text: hsl(0deg 0% 50%);--color-gear-menu-blue-text: hsl(217deg 100% 65%);+ --color-header-button-hover: hsl(0deg 0% 100% / 4%);+ --color-header-button-focus: hsl(0deg 0% 100% / 7%);}@media screen {@@ -3404,6 +3408,19 @@ select.invite-as {text-decoration: none;}+ &:hover {+ background-color: var(--color-header-button-hover);+ }++ &:active {+ background-color: var(--color-header-button-focus);+ }++ &:focus-visible {+ outline: none;+ background-color: var(--color-header-button-focus);+ }+.zulip-icon {color: var(--color-navbar-icon);}