Adjust comment fade-out height
## Issue 6944 Comment expansion sometimes doesn't reveal extra text (already showing everything) ## Fix Reconcile some constants between JS and CSS.
This commit is contained in:
parent
3c0750a2a0
commit
78d0ff9793
1 changed files with 3 additions and 1 deletions
|
@ -1,10 +1,12 @@
|
||||||
|
$COLLAPSED_HEIGHT: 120px;
|
||||||
|
|
||||||
.expandable--closed,
|
.expandable--closed,
|
||||||
.expandable--open {
|
.expandable--open {
|
||||||
margin-bottom: var(--spacing-s);
|
margin-bottom: var(--spacing-s);
|
||||||
}
|
}
|
||||||
|
|
||||||
.expandable--closed {
|
.expandable--closed {
|
||||||
max-height: 10rem;
|
max-height: $COLLAPSED_HEIGHT * 3 / 4;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
-webkit-mask-image: -webkit-gradient(linear, left 30%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
|
-webkit-mask-image: -webkit-gradient(linear, left 30%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
|
||||||
|
|
Loading…
Reference in a new issue