Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Improve the css of icon-based tab picker used in topic popover.
Prakhar Pratyush5e3b8f539379
diff --git a/web/styles/app_components.css b/web/styles/app_components.cssindex 8ac75e9a757..2b17168be67 100644--- a/web/styles/app_components.css+++ b/web/styles/app_components.css@@ -1206,21 +1206,22 @@ div.overlay {justify-content: center;align-items: center;box-sizing: border-box;- width: 100%;- height: 27px;+ padding: 1px;+ height: 33px;+ gap: 2px;background-color: var(--color-background-tab-picker-container);- position: relative;border-radius: 5px;& i {z-index: 2;color: var(--color-tab-picker-icon);- font-size: 17px;+ font-size: 16px;}.selected-tab {- background-color: var(--color-background-tab-picker-tab-option);+ background-color: var(--color-background-tab-picker-selected-tab);outline: 1px solid var(--color-outline-tab-picker-tab-option);+ outline-offset: -1px;z-index: 1;}@@ -1230,14 +1231,19 @@ div.overlay {align-items: center;box-sizing: border-box;width: 100%;- height: 100%;- margin: 1px;+ height: 31px;cursor: pointer;border-radius: 5px;&:hover:not(.selected-tab) {- background-color: var(--color-background-tab-picker-tab-option);+ background-color: var(+ --color-background-tab-picker-tab-option-hover+ );+ }++ &:active:not(.selected-tab) {outline: 1px solid var(--color-outline-tab-picker-tab-option);+ outline-offset: -1px;}}}diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex 6994bef9c42..bd6607f183c 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -231,7 +231,7 @@ ul {margin-right: 3px;}- &.zulip-icon {+ &.zulip-icon:not(.tab-option > .zulip-icon) {/* These icons are different from font awesome icons,so they need to be aligned separately. */line-height: 14px;diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 15ecc8f2ef2..ad56463c0f8 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -208,8 +208,9 @@ body {--color-background-unread-counter: hsl(105deg 2% 50%);--color-background-unread-counter-popover-menu: hsl(200deg 100% 40%);--color-background-tab-picker-container: hsl(0deg 0% 0% / 7%);- --color-background-tab-picker-tab-option: hsl(0deg 0% 100%);+ --color-background-tab-picker-selected-tab: hsl(0deg 0% 100%);--color-outline-tab-picker-tab-option: hsl(0deg 0% 0% / 30%);+ --color-background-tab-picker-tab-option-hover: hsl(0deg 0% 100% / 60%);/* Compose box colors */--color-compose-collapsed-reply-button-area-background: hsl(0deg 0% 100%);@@ -338,8 +339,9 @@ body {--color-background-unread-counter: hsl(105deg 2% 50% / 50%);--color-background-unread-counter-popover-menu: hsl(105deg 2% 50% / 50%);--color-background-tab-picker-container: hsl(0deg 0% 0% / 30%);- --color-background-tab-picker-tab-option: hsl(0deg 0% 17% / 50%);+ --color-background-tab-picker-selected-tab: hsl(0deg 0% 100% / 7%);--color-outline-tab-picker-tab-option: hsl(0deg 0% 100% / 12%);+ --color-background-tab-picker-tab-option-hover: hsl(0deg 0% 100% / 5%);/* Compose box colors */--color-compose-collapsed-reply-button-area-background: hsl(