UX: smoother timeline footer animation, padding fix (#12743)

This commit is contained in:
Kris 2021-04-19 13:00:12 -04:00 committed by GitHub
parent 42f8f6b4a2
commit 28d5a3f21f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -1103,7 +1103,7 @@ a.mention-group {
}
#topic-footer-buttons {
padding: 0.75em 0;
padding: 1.5em 0 0.75em 0;
.topic-footer-main-buttons {
display: flex;

View File

@ -6,13 +6,15 @@
box-sizing: border-box;
z-index: z("timeline");
-webkit-transform: translate3d(0, 0, 0);
transition: margin-bottom 0.25s ease-in;
&.timeline-docked-bottom {
@media screen and (prefers-reduced-motion: no-preference) {
margin-bottom: -1.75em; // animate out footer button height
}
.timeline-footer-controls {
opacity: 0;
pointer-events: none;
cursor: default;
height: 0px;
}
}

View File

@ -62,6 +62,9 @@
.topic-timer-info {
border-top: 1px solid var(--primary-low);
padding: 10px 0;
&:empty {
padding: 0;
}
max-width: 758px;
.topic-timer-heading,
.slow-mode-heading {