UX: switch webkit to pseudoelement for fadeout (#19587)
This commit is contained in:
parent
3c0a4b37d0
commit
b756866334
|
@ -45,16 +45,27 @@ a.hashtag-cooked {
|
||||||
height: inherit;
|
height: inherit;
|
||||||
max-height: inherit;
|
max-height: inherit;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
-webkit-mask: linear-gradient(
|
|
||||||
180deg,
|
&:after {
|
||||||
rgba(255, 255, 255, 1) calc(100% - 1.5em),
|
content: "";
|
||||||
rgba(255, 255, 255, 0) 100%
|
position: absolute;
|
||||||
);
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 1.5em;
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(var(--secondary-rgb), 0),
|
||||||
|
rgba(var(--secondary-rgb), 100%)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__option {
|
&__option {
|
||||||
&:last-of-type {
|
&:last-of-type {
|
||||||
margin-bottom: 0.75em; //used to the fadeout doesn't overlap the last item
|
.hashtag-autocomplete__link {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue