Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

css: Refactor theme color for kbd.

sanchi-t9b5accdb4300
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 18499cc0485..f12345f245c 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -761,6 +761,7 @@
--color-kbd-background: hsl(0deg 0% 98%);
--color-kbd-border: hsl(0deg 0% 80%);
--color-kbd-text: hsl(0deg 0% 20%);
+ --color-kbd-enter-sends: hsl(0deg 0% 40%);
/* Markdown colors */
--color-background-rendered-markdown-thead: hsl(0deg 0% 93%);
@@ -1276,6 +1277,7 @@
--color-kbd-background: hsl(211deg 29% 14%);
--color-kbd-border: hsl(211deg 29% 14%);
--color-kbd-text: hsl(236deg 33% 90%);
+ --color-kbd-enter-sends: hsl(236deg 33% 90%);
/* Markdown colors */
--color-background-rendered-markdown-thead: hsl(0deg 0% 0% / 50%);
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index 0a60bbf7fc6..c41aa2198ac 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -48,13 +48,6 @@
box-shadow: inset 0 1px 0 hsl(0deg 0% 0% / 20%);
}
- #user_enter_sends_label,
- #realm_enter_sends_label {
- & kbd {
- color: var(--color-kbd-text);
- }
- }
-
#message-formatting,
#keyboard-shortcuts {
& kbd {
diff --git a/web/styles/settings.css b/web/styles/settings.css
index df3d8a01f92..943bc438f8e 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -510,7 +510,7 @@ input[type="checkbox"] {
font-size: 0.9333em;
font-style: normal;
font-weight: 500;
- color: hsl(0deg 0% 40%);
+ color: var(--color-kbd-enter-sends);
position: relative;
bottom: 1px;
margin: 0 2px;