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.

dark_theme: Clean up rendered timestamp colors.

Evy Kassirer370f7b66fca1
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 55eb1d45300..0433e9453f7 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -1811,6 +1811,14 @@
hsl(0deg 0% 80%),
hsl(0deg 0% 33%)
);
+ --color-background-rendered-markdown-time: light-dark(
+ hsl(0deg 0% 93%),
+ hsl(0deg 0% 0% / 20%)
+ );
+ --color-box-shadow-rendered-markdown-time: light-dark(
+ hsl(0deg 0% 80%),
+ hsl(0deg 0% 0% / 40%)
+ );
/* Tab-switcher colors */
/* The non-selected colors here are shared with numerous other
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index 8258bd4cdaf..c7da623f683 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -123,11 +123,6 @@
color: inherit;
}
- & time {
- background: hsl(0deg 0% 0% / 20%);
- box-shadow: 0 0 0 1px hsl(0deg 0% 0% / 40%);
- }
-
.tip {
color: inherit;
}
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.css
index be273784978..44c0725e696 100644
--- a/web/styles/rendered_markdown.css
+++ b/web/styles/rendered_markdown.css
@@ -354,9 +354,9 @@
/* Timestamps */
& time {
- background: hsl(0deg 0% 93%);
+ background: var(--color-background-rendered-markdown-time);
border-radius: 3px;
- box-shadow: 0 0 0 1px hsl(0deg 0% 80%);
+ box-shadow: 0 0 0 1px var(--color-box-shadow-rendered-markdown-time);
white-space: nowrap;
margin: 0 2px;
/* Reduce the font-size to reduce the