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

49 lines
905 B
SCSS
Raw Normal View History

2018-11-07 23:44:38 +01:00
.expandable {
border-bottom: 1px solid $lbry-gray-1;
margin-bottom: var(--spacing-vertical-medium);
padding-bottom: var(--spacing-vertical-medium);
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
border-color: rgba($lbry-gray-5, 0.2);
}
}
.expandable__button {
font-size: 1.25rem;
2018-11-07 23:44:38 +01:00
}
.expandable--closed,
2018-11-07 23:44:38 +01:00
.expandable--open {
margin-bottom: var(--spacing-vertical-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;
background-image: linear-gradient(
to bottom,
transparent 0%,
mix($lbry-white, $lbry-gray-1, 70%) 90%
);
content: '';
position: absolute;
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
background-image: linear-gradient(to bottom, transparent 0%, $lbry-black 90%);
}
}
2018-11-07 23:44:38 +01:00
}
.expandable--open {
max-height: 100%;
2018-11-07 23:44:38 +01:00
}