mirror of https://github.com/zulip/zulip.git
css: Update css of landing page images to show fading effect.
This commit adds the css class - "message-screenshot" and "message-starred" to the "landing_page" to exhibit fading effect.
This commit is contained in:
parent
00d127965e
commit
90c44d63b7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue