Switch to mask-image for fade-off effect in tabs

This commit is contained in:
Tom Najdek 2024-01-30 00:45:16 +01:00
parent 83491c14bb
commit b3cf2ac67e
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77

View file

@ -197,18 +197,13 @@
}
.tab-name {
background: linear-gradient(to left, transparent 0px, var(--fill-primary) 20px) text;
flex: 1 1 100%;
line-height: 1.38461538em;
margin-inline-start: 4px;
overflow: hidden;
text-align: left;
-webkit-text-fill-color: transparent;
white-space: nowrap;
@include state('.tab:first-child') {
background: linear-gradient(to left, transparent 0px, var(--fill-primary) 10px) text;
}
mask-image: linear-gradient(to left, transparent 0px, var(--fill-primary) 20px);
}
.tab-icon {