css: Refactor theme color for kbd.

This commit is contained in:
sanchi-t 2024-10-20 10:43:15 +05:30 committed by Tim Abbott
parent 327647f4f8
commit 9b5accdb43
3 changed files with 3 additions and 8 deletions

View File

@ -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%);

View File

@ -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 {

View File

@ -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;