lbry-desktop/ui/scss/component/_expandable.scss
2022-07-06 08:36:14 -04:00

20 lines
377 B
SCSS

$COLLAPSED_HEIGHT: 120px;
.expandable {
max-height: 120px;
position: relative;
overflow-y: hidden;
}
.expandable--closed,
.expandable--open {
margin-bottom: var(--spacing-s);
}
.expandable--closed-fade {
-webkit-mask-image: -webkit-gradient(linear, left 30%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
}
.expandable--open {
max-height: 100%;
}