mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Simplify deleted post toggle CSS
(The animation was buggy anyway)
This commit is contained in:
parent
a9199ad9d9
commit
be08c32c96
|
@ -169,29 +169,19 @@
|
|||
.Post-header, .Post-header a, .PostUser h3, .PostUser h3 a {
|
||||
color: @muted-more-color;
|
||||
}
|
||||
&:not(.revealContent) .Post-header {
|
||||
&:not(.revealContent) {
|
||||
.Post-header {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.Post-body, .Post-footer, h3 .Avatar, .PostUser-badges {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
margin-top: -5px;
|
||||
.transition(~"margin-top 0.2s, opacity 0.2s");
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
&.revealContent {
|
||||
.Post-body, .Post-footer, h3 .Avatar, .PostUser-badges {
|
||||
visibility: visible;
|
||||
opacity: 0.5;
|
||||
margin-top: 0;
|
||||
}
|
||||
.Post-body, .Post-footer, .PostUser-badges {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
.Post-header .Button--more {
|
||||
background: fade(@muted-more-color, 30%);
|
||||
color: @muted-more-color;
|
||||
.Button--color(@muted-more-color, fade(@muted-more-color, 30%));
|
||||
}
|
||||
}
|
||||
.Post--loading {
|
||||
|
|
Loading…
Reference in New Issue
Block a user