fix: update clamp-fade to use mask-image, add background to btn-link on Brite skin

This commit is contained in:
Julian Lam
2026-03-05 12:03:54 -05:00
parent cfb6145e4d
commit 9bc1b40078
2 changed files with 13 additions and 8 deletions

View File

@@ -116,14 +116,15 @@
position: relative;
cursor: pointer;
&.line-clamp-#{$lines}::before {
content: '';
position: absolute;
top: calc(1.5em * ($lines - 2));
display: block;
width: 100%;
height: 3em;
background: linear-gradient(180deg, transparent 0, $body-bg 100%);
&.line-clamp-#{$lines} {
// Fallback for older browsers
display: -webkit-box;
-webkit-line-clamp: $lines;
-webkit-box-orient: vertical;
overflow: hidden;
mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
-webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
}

View File

@@ -37,6 +37,10 @@
.text-secondary {
color: var(--bs-secondary-color) !important;
}
.btn-link {
background: $body-bg;
}
}
// fix minty buttons