2021-09-27 11:00:49 +08:00
|
|
|
$COLLAPSED_HEIGHT: 120px;
|
|
|
|
|
2018-12-19 00:44:53 -05:00
|
|
|
.expandable--closed,
|
2018-11-07 17:44:38 -05:00
|
|
|
.expandable--open {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-bottom: var(--spacing-s);
|
2018-11-07 17:44:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.expandable--closed {
|
2021-09-27 11:00:49 +08:00
|
|
|
max-height: $COLLAPSED_HEIGHT * 3 / 4;
|
2020-10-20 13:10:02 -04:00
|
|
|
overflow-y: hidden;
|
2018-12-19 00:44:53 -05:00
|
|
|
position: relative;
|
2020-09-11 23:42:20 +08:00
|
|
|
-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 17:44:38 -05:00
|
|
|
}
|
|
|
|
|
2018-12-19 00:44:53 -05:00
|
|
|
.expandable--open {
|
|
|
|
max-height: 100%;
|
2018-11-07 17:44:38 -05:00
|
|
|
}
|