mirror of https://github.com/zulip/zulip.git
link_preview: Fix extraneous shadow.
Fix extraneous shadow at bottom of link preview in stream messages in dark theme, in private messages for both themes and in mentions, group mentions and direct mentions. This is done by applying the same color, used in the background, to the shadow. There are CSS variables that hold the values of the background color. Fixes #28853.
This commit is contained in:
parent
d21f5c9b75
commit
e217d35ccd
|
@ -346,14 +346,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.message_embed .data-container::after {
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
hsl(212deg 28% 18%),
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
|
||||
.stream_name_search_section,
|
||||
.group_name_search_section {
|
||||
border-color: hsl(0deg 0% 0% / 20%);
|
||||
|
|
|
@ -32,10 +32,26 @@ $time_column_min_width: 42px; /* + padding */
|
|||
|
||||
&.direct_mention {
|
||||
background-color: var(--color-background-direct-mention);
|
||||
|
||||
.message_embed .data-container::after {
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
var(--color-background-direct-mention),
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
&.group_mention {
|
||||
background-color: var(--color-background-group-mention);
|
||||
|
||||
.message_embed .data-container::after {
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
var(--color-background-group-mention),
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
.date_row {
|
||||
|
|
|
@ -629,7 +629,7 @@
|
|||
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
hsl(0deg 0% 100%),
|
||||
var(--color-background-stream-message-content),
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1367,6 +1367,14 @@ td.pointer {
|
|||
.date_row {
|
||||
background-color: var(--color-background-private-message-content);
|
||||
}
|
||||
|
||||
.data-container::after {
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
var(--color-background-private-message-content),
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
.selected_message {
|
||||
|
|
Loading…
Reference in New Issue