mirror of
https://github.com/flarum/core.git
synced 2025-07-20 00:01:17 +02:00
Add animation when showing deleted post content
This commit is contained in:
@@ -134,6 +134,7 @@
|
|||||||
.post {
|
.post {
|
||||||
padding-bottom: 1px;
|
padding-bottom: 1px;
|
||||||
transition: 0.2s box-shadow;
|
transition: 0.2s box-shadow;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
& .contextual-controls {
|
& .contextual-controls {
|
||||||
float: right;
|
float: right;
|
||||||
@@ -205,20 +206,26 @@
|
|||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
}
|
}
|
||||||
.post.is-hidden {
|
.post.is-hidden {
|
||||||
& .post-user, & .post-header > ul, & .post-header > ul a:not(.btn) {
|
& .post-user h3, & .post-user h3 a, & .post-header, & .post-header > ul > li > a {
|
||||||
color: @fl-body-muted-more-color;
|
color: @fl-body-muted-more-color;
|
||||||
}
|
}
|
||||||
&:not(.reveal-content) {
|
& .post-body, & .post-footer, & h3 .avatar {
|
||||||
& .post-body, & .post-footer, & .avatar {
|
position: absolute;
|
||||||
display: none;
|
overflow: hidden;
|
||||||
}
|
height: 0;
|
||||||
|
opacity: 0;
|
||||||
|
margin-top: -5px;
|
||||||
|
.transition(~"margin-top 0.2s, opacity 0.2s");
|
||||||
}
|
}
|
||||||
&.reveal-content {
|
&.reveal-content {
|
||||||
& .post-body, & .post-footer, & .avatar {
|
& .post-body, & .post-footer, & h3 .avatar {
|
||||||
|
position: static;
|
||||||
|
height: auto;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
& .btn-more {
|
& .post-header .btn-more {
|
||||||
background: #eee;
|
background: #eee;
|
||||||
color: @fl-body-muted-more-color;
|
color: @fl-body-muted-more-color;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user