mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 09:37:20 +02:00
fix: update clamp-fade to use mask-image, add background to btn-link on Brite skin
This commit is contained in:
@@ -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%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user