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

40 lines
760 B
SCSS
Raw Normal View History

2018-11-07 23:44:38 +01:00
.expandable {
2019-06-11 20:10:58 +02:00
margin-bottom: var(--spacing-medium);
padding-bottom: var(--spacing-medium);
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
2019-07-01 20:42:32 +02:00
border-color: var(--dm-color-04);
}
}
.expandable--closed,
2018-11-07 23:44:38 +01:00
.expandable--open {
2019-06-11 20:10:58 +02:00
margin-bottom: var(--spacing-small);
2018-11-07 23:44:38 +01:00
}
.expandable--closed {
max-height: 10rem;
2018-11-07 23:44:38 +01:00
overflow: hidden;
position: relative;
&::after {
width: 100%;
2019-01-08 21:31:22 +01:00
height: 40%;
bottom: 0;
left: 0;
2019-01-08 21:31:22 +01:00
pointer-events: none;
2019-06-11 20:10:58 +02:00
background-image: linear-gradient(to bottom, transparent 0%, mix($lbry-white, $lbry-gray-1, 70%) 90%);
content: '';
position: absolute;
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
2019-07-01 20:42:32 +02:00
background-image: linear-gradient(to bottom, transparent 0%, var(--dm-color-08) 90%);
}
}
2018-11-07 23:44:38 +01:00
}
.expandable--open {
max-height: 100%;
2018-11-07 23:44:38 +01:00
}