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; position: relative;
cursor: pointer; cursor: pointer;
&.line-clamp-#{$lines}::before { &.line-clamp-#{$lines} {
content: ''; // Fallback for older browsers
position: absolute; display: -webkit-box;
top: calc(1.5em * ($lines - 2)); -webkit-line-clamp: $lines;
display: block; -webkit-box-orient: vertical;
width: 100%; overflow: hidden;
height: 3em;
background: linear-gradient(180deg, transparent 0, $body-bg 100%); 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 { .text-secondary {
color: var(--bs-secondary-color) !important; color: var(--bs-secondary-color) !important;
} }
.btn-link {
background: $body-bg;
}
} }
// fix minty buttons // fix minty buttons