lbry-desktop/ui/scss/component/_expandable.scss

18 lines
384 B
SCSS
Raw Normal View History

$COLLAPSED_HEIGHT: 120px;
.expandable--closed,
2018-11-07 23:44:38 +01:00
.expandable--open {
2020-06-01 19:03:19 +02:00
margin-bottom: var(--spacing-s);
2018-11-07 23:44:38 +01:00
}
.expandable--closed {
2022-03-23 21:00:57 +01:00
max-height: calc(#{$COLLAPSED_HEIGHT} * 3 / 4);
overflow-y: hidden;
position: relative;
-webkit-mask-image: -webkit-gradient(linear, left 30%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
2018-11-07 23:44:38 +01:00
}
.expandable--open {
max-height: 100%;
2018-11-07 23:44:38 +01:00
}