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.

thumbnails: Use more muted background, high-contrast hover.

Karl Stolley6192341830eb
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 1e2e8bb0761..2673d27f345 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -1554,21 +1554,13 @@
);
--color-markdown-code-link-hover: var(--color-markdown-link-hover);
--color-background-image-thumbnail: light-dark(
- hsl(0deg 0% 0% / 8%),
- hsl(0deg 0% 100% / 13%)
+ hsl(0deg 0% 0% / 3%),
+ hsl(0deg 0% 100% / 3%)
);
--color-background-image-thumbnail-hover: light-dark(
hsl(0deg 0% 0% / 30%),
hsl(0deg 0% 100% / 45%)
);
- --color-background-image-thumbnail-dinky: light-dark(
- hsl(0deg 0% 0% / 3%),
- hsl(0deg 0% 100% / 3%)
- );
- --color-background-image-thumbnail-dinky-hover: light-dark(
- hsl(0deg 0% 0% / 15%),
- hsl(0deg 0% 100% / 15%)
- );
/* Icon colors */
--color-icon-bot: light-dark(
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.css
index 72afecd1b53..95323a43522 100644
--- a/web/styles/rendered_markdown.css
+++ b/web/styles/rendered_markdown.css
@@ -498,18 +498,6 @@
transition: background 0.3s ease;
background: var(--color-background-image-thumbnail);
- /* Inline videos also take the dinky color, as they
- currently display a larger clickable area than
- necessary. */
- &.message_inline_video,
- &:has(.dinky-thumbnail, .extreme-aspect-ratio) {
- background: var(--color-background-image-thumbnail-dinky);
-
- &:hover {
- background: var(--color-background-image-thumbnail-dinky-hover);
- }
- }
-
&:hover {
background: var(--color-background-image-thumbnail-hover);
}