0
0
Fork 0

Make .column-collapse animation simple (#3086)

* Always set `overflow: auto` to allow scroll just after opening
* Remove bounce animation which may cause unintended behavior due to max-height
* Use CSS transition instead of react-motion
* Some CSS refactoring including className changing
This commit is contained in:
unarist 2017-05-17 07:24:46 +09:00 committed by Eugen Rochko
parent 9bddb946f0
commit 3722f90865
2 changed files with 31 additions and 26 deletions

View file

@ -48,6 +48,32 @@
.column-collapsable {
position: relative;
.column-collapsable__content {
overflow: auto;
transition: 300ms ease;
opacity: 1;
}
&.collapsed .column-collapsable__content {
height: 0 !important;
opacity: 0;
}
.column-collapsable__button {
color: $primary-text-color;
background: lighten($ui-base-color, 8%);
&:hover {
color: $primary-text-color;
background: lighten($ui-base-color, 8%);
}
}
&.collapsed .column-collapsable__button {
color: $ui-primary-color;
background: lighten($ui-base-color, 4%);
}
}
.column-icon {
@ -1984,21 +2010,6 @@ button.icon-button.active i.fa-retweet {
text-align: center;
}
.collapsable-collapsed {
color: $ui-primary-color;
background: lighten($ui-base-color, 4%);
}
.collapsable {
color: $primary-text-color;
background: lighten($ui-base-color, 8%);
&:hover {
color: $primary-text-color;
background: lighten($ui-base-color, 8%);
}
}
.video-error-cover {
align-items: center;
background: $base-overlay-background;