44 lines
848 B
SCSS
44 lines
848 B
SCSS
.expandable {
|
|
border-bottom: 1px solid $lbry-gray-1;
|
|
margin-bottom: var(--spacing-medium);
|
|
padding-bottom: var(--spacing-medium);
|
|
|
|
[data-mode='dark'] & {
|
|
border-color: var(--dm-color-04);
|
|
}
|
|
}
|
|
|
|
.expandable__button {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.expandable--closed,
|
|
.expandable--open {
|
|
margin-bottom: var(--spacing-small);
|
|
}
|
|
|
|
.expandable--closed {
|
|
max-height: 10rem;
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
&::after {
|
|
width: 100%;
|
|
height: 40%;
|
|
bottom: 0;
|
|
left: 0;
|
|
pointer-events: none;
|
|
|
|
background-image: linear-gradient(to bottom, transparent 0%, mix($lbry-white, $lbry-gray-1, 70%) 90%);
|
|
content: '';
|
|
position: absolute;
|
|
|
|
[data-mode='dark'] & {
|
|
background-image: linear-gradient(to bottom, transparent 0%, var(--dm-color-08) 90%);
|
|
}
|
|
}
|
|
}
|
|
|
|
.expandable--open {
|
|
max-height: 100%;
|
|
}
|