Commit b4c4aed5 authored by Randall Leeds's avatar Randall Leeds

better fix for #405 that doesn't break animation

parent af61c833
...@@ -687,17 +687,9 @@ blockquote { ...@@ -687,17 +687,9 @@ blockquote {
position: relative; position: relative;
& > ul { & > ul {
@include single-transition(max-height, .4s, cubic-bezier(1, 0, 1, 0));
max-height: 65536px;
#overflow: hidden;
padding-left: $thread-padding; padding-left: $thread-padding;
margin-left: -$thread-padding; margin-left: -$thread-padding;
&:hover {
overflow: visible;
}
& > * { & > * {
border-left: 1px dotted $grayLight; border-left: 1px dotted $grayLight;
position: relative; position: relative;
...@@ -731,6 +723,13 @@ blockquote { ...@@ -731,6 +723,13 @@ blockquote {
//These are all the changes needed to collapse thread objects. //These are all the changes needed to collapse thread objects.
.collapsed { .collapsed {
display: block !important;
& > ul {
max-height: 0;
overflow: hidden;
}
& > .annotation { & > .annotation {
.body * { .body * {
overflow: hidden; overflow: hidden;
...@@ -748,15 +747,38 @@ blockquote { ...@@ -748,15 +747,38 @@ blockquote {
} }
} }
& > .threadexp {
background-image: url("../images/plus_1.png");
}
}
&.collapse-hide-setup, &.collapse-show-setup {
@include transition-duration(.4s);
& > ul { & > ul {
@include single-transition(max-height, .4s, cubic-bezier(0, 1, 0, 1)); @include transition-duration(.4s);
@include transition-property(max-height);
}
}
&.collapse-hide-setup > ul {
@include transition-timing-function(cubic-bezier(0, 1, 0, 1));
max-height: 65536px;
overflow: hidden;
}
&.collapse-hide-start > ul {
max-height: 0; max-height: 0;
display: none;
} }
& > .threadexp { &.collapse-show-setup > ul {
background-image: url("../images/plus_1.png"); @include transition-timing-function(cubic-bezier(1, 0, 1, 0));
max-height: 0;
overflow: hidden;
} }
&.collapse-show-start > ul {
max-height: 65536px;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment