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: Update css of landing page images to show fading effect.

roanster00790c44d63b7a0
diff --git a/web/styles/portico/landing_page.css b/web/styles/portico/landing_page.css
index f339ab179b3..f48f0883a5e 100644
--- a/web/styles/portico/landing_page.css
+++ b/web/styles/portico/landing_page.css
@@ -2265,7 +2265,8 @@ button {
}
}
- .feature-image {
+ .feature-image,
+ .message-screenshot {
& img,
div.quote {
width: 400px;
@@ -2284,6 +2285,34 @@ button {
}
}
+ .message-screenshot {
+ position: relative;
+
+ img {
+ display: block;
+ mask-image: linear-gradient(
+ to right,
+ hsl(0deg 0% 0%) 75%,
+ transparent 100%
+ );
+ }
+ margin-bottom: 10px;
+ }
+
+ /* message-starred is used when the message screenshot captured using
+ the script "generate-user-message-screenshot" contains starred message.
+ This is done to reduce the fading effect on the image caused by
+ ".message-screenshot" class so that the star is visible. */
+ .message-starred {
+ img {
+ mask-image: linear-gradient(
+ to right,
+ hsl(0deg 0% 0%) 95%,
+ transparent 100%
+ );
+ }
+ }
+
.feature-icon {
& img,
div.quote {