Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Change mention text and background colors.
Aman Agrawal67ff42119495
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex a7bc71e1e8e..ca70f1a6e7b 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -934,21 +934,6 @@background-color: hsl(22deg 70% 35%);}- .user-mention,- .user-group-mention {- background: linear-gradient(- to bottom,- hsl(0deg 0% 0% / 20%) 0%,- hsl(0deg 0% 0% / 10%) 100%- );- box-shadow: 0 0 0 1px hsl(0deg 0% 0% / 40%);- }-- .user-mention-me :not(.silent) {- background-color: hsl(355deg 37% 31%);- box-shadow: 0 0 0 1px hsl(330deg 40% 20%);- }-.codehilite code,.codehilite pre {color: hsl(212deg 98% 82%);diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex a0729fa7d1c..a7735fbcbb0 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -162,19 +162,12 @@.user-group-mention,.user-mention {+ font-size: 14px;+ line-height: 17px;+ padding: 0 3px;border-radius: 3px;- padding: 0 0.2em;- box-shadow: 0 0 0 1px hsl(0deg 0% 80%);- margin-right: 2px;- margin-left: 2px;white-space: nowrap;- background: linear-gradient(- to bottom,- hsl(0deg 0% 0% / 10%) 0%,- hsl(0deg 0% 0% / 0%) 100%- );display: inline-block;- margin-bottom: 1px;}.alert-word {diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 2e26fcefa15..865d7329bc6 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -83,16 +83,22 @@ body {--color-navbar-bottom-border: hsl(0deg 0% 80%);--color-unread-marker: hsl(217deg 64% 59%);--color-failed-message-send-icon: hsl(3.88deg 98.84% 66.27%);-+/* Text colors */--color-text-default: hsl(0deg 0% 20%);--color-text-message-view-header: hsl(0deg 0% 20% / 100%);--color-text-message-header: hsl(0deg 0% 15%);--color-text-dropdown-input: hsl(0deg 0% 13.33%);+ --color-text-self-direct-mention: hsl(240deg 52% 45% / 100%);+ --color-text-self-group-mention: hsl(183deg 52% 26% / 100%);/* Mention pill colors */--color-background-direct-mention: hsl(240deg 52% 95%);--color-background-group-mention: hsl(180deg 40% 94%);+ --color-background-text-direct-mention: hsl(240deg 70% 70% / 20%);+ --color-background-text-hover-direct-mention: hsl(240deg 70% 70% / 30%);+ --color-background-text-group-mention: hsl(183deg 60% 45% / 18%);+ --color-background-text-hover-group-mention: hsl(183deg 60% 45% / 30%);}%dark-theme {@@ -121,10 +127,17 @@ body {--color-text-message-header: hsl(0deg 0% 100% / 80%);--color-text-sender-name: hsl(0deg 0% 100% / 85%);--color-text-dropdown-input: hsl(0deg 0% 95%);+ --color-text-other-mention: hsl(0deg 0% 100% / 80%);+ --color-text-self-direct-mention: hsl(240deg 100% 88% / 100%);+ --color-text-self-group-mention: hsl(184deg 52% 63% / 100%);/* Mention pill colors */--color-background-direct-mention: hsl(240deg 13% 20%);--color-background-group-mention: hsl(180deg 13% 15%);+ --color-background-text-direct-mention: hsl(240deg 52% 60% / 25%);+ --color-background-text-hover-direct-mention: hsl(240deg 52% 60% / 45%);+ --color-background-text-group-mention: hsl(183deg 52% 40% / 20%);+ --color-background-text-hover-group-mention: hsl(183deg 52% 40% / 30%);}:root.dark-theme {@@ -1727,12 +1740,40 @@ div.message_table {border-right: 1px solid var(--color-message-list-border);background-color: var(--color-background-stream-message-content);+ &.direct_mention {+ background-color: var(--color-background-direct-mention);+ }++ .user-mention {+ color: var(--color-text-other-mention);+ background-color: var(--color-background-text-direct-mention);++ &.user-mention-me {+ color: var(--color-text-self-direct-mention);+ font-weight: 600;+ }++ &:hover {+ background-color: var(--color-background-text-hover-direct-mention);+ }+ }+&.group_mention {background-color: var(--color-background-group-mention);}- &.direct_mention {- background-color: var(--color-background-direct-mention);+ .user-group-mention {+ color: var(--color-text-other-mention);+ background-color: var(--color-background-text-group-mention);++ &.user-mention-me {+ color: var(--color-text-self-group-mention);+ font-weight: 600;+ }++ &:hover {+ background-color: var(--color-background-text-hover-group-mention);+ }}.date_row {