UX: remove short topic timeline transition (#22161)

This commit is contained in:
Kris 2023-06-16 12:21:04 -04:00 committed by GitHub
parent 84bbf0fdd7
commit e8f91a0a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 11 deletions

View File

@ -5,13 +5,8 @@
.timeline-container {
box-sizing: border-box;
z-index: z("timeline");
transform: translateZ(0);
&.timeline-docked-bottom {
margin-bottom: -4em;
@media screen and (prefers-reduced-motion: no-preference) {
transition: margin-bottom 0.5s ease-in;
}
.timeline-footer-controls {
opacity: 0;
pointer-events: none;
@ -184,6 +179,7 @@
.topic-timeline {
transition: opacity 0.2s ease-in;
touch-action: none;
min-width: 6em;
.timeline-controls {
margin-bottom: 1em;
@ -195,17 +191,17 @@
}
.timeline-footer-controls {
margin-top: 1.5em;
// this is absolutely positioned to avoid
// adding extra height below short topics
// above the topic-footer-controls
position: absolute;
margin-top: 1em;
@media (prefers-reduced-motion: no-preference) {
transition: opacity 0.2s ease-in;
}
display: flex;
gap: 0.5em;
flex-wrap: wrap;
max-width: 9em;
.reply-to-post {
margin-right: 0.5em;
}
button:last-child {
margin-right: 0;