UX: update post background highlight (#25094)
This commit is contained in:
parent
c2dc2cd727
commit
f999cde159
|
@ -14,12 +14,11 @@
|
|||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.topic-body.topic-body.highlighted .cooked {
|
||||
animation: unset;
|
||||
}
|
||||
|
||||
.topic-body.highlighted .regular.contents {
|
||||
animation: background-fade-highlight 2.5s ease-out;
|
||||
.topic-body.highlighted {
|
||||
animation: none;
|
||||
.regular.contents {
|
||||
animation: background-fade-highlight 2.5s ease-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -155,25 +154,17 @@
|
|||
// special post type colors
|
||||
|
||||
.current-user-post {
|
||||
&:not(.moderator):not(.whisper.current-user-post) {
|
||||
.regular.contents {
|
||||
background: var(--tertiary-very-low);
|
||||
border-color: var(--tertiary-very-low);
|
||||
}
|
||||
.regular.contents {
|
||||
background: var(--tertiary-very-low);
|
||||
border-color: var(--tertiary-very-low);
|
||||
}
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.topic-body.highlighted {
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.cooked {
|
||||
animation: unset;
|
||||
}
|
||||
.regular.contents {
|
||||
animation: current-user-background-fade-highlight 2.5s ease-out;
|
||||
}
|
||||
.regular.contents {
|
||||
animation: current-user-background-fade-highlight 2.5s ease-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
.topic-body .cooked {
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.embedded-posts {
|
||||
.topic-body .cooked {
|
||||
background: transparent;
|
||||
|
@ -182,26 +173,18 @@
|
|||
}
|
||||
|
||||
.moderator {
|
||||
.topic-body.highlighted {
|
||||
.regular.contents {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
.regular.contents {
|
||||
background: var(--highlight-low);
|
||||
border-color: var(--highlight-low);
|
||||
}
|
||||
.regular.contents .cooked {
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.deleted {
|
||||
.regular.contents {
|
||||
background: var(--danger-low);
|
||||
border-color: var(--danger-low);
|
||||
}
|
||||
.topic-body .regular .cooked {
|
||||
background: transparent;
|
||||
}
|
||||
.topic-body.highlighted .regular.contents {
|
||||
animation: unset;
|
||||
.cooked {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -218,4 +201,19 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.deleted {
|
||||
.topic-body .regular.contents {
|
||||
background: var(--danger-low);
|
||||
border-color: transparent;
|
||||
.cooked {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
&.whisper {
|
||||
.topic-body .regular.contents {
|
||||
border-color: var(--danger-low-mid);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -945,12 +945,12 @@ aside.quote {
|
|||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.topic-body.highlighted .cooked,
|
||||
.topic-body.highlighted,
|
||||
.small-action-desc.highlighted {
|
||||
animation: background-fade-highlight 2.5s ease-out;
|
||||
}
|
||||
// Disable animation so deleted status is visible immediately
|
||||
.deleted .topic-body.highlighted .cooked {
|
||||
.deleted .topic-body.highlighted {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue