mirror of
https://github.com/flarum/core.git
synced 2025-07-31 05:30:38 +02:00
Hide post footer when empty (#2926)
* Add `Post-footer--empty` class if the post footer contains no items * Hide post footer when it has class `Post-footer--empty` * Swap to `:empty` pseudoselector * Prefer ternary operator * Fix typo
This commit is contained in:
@@ -247,9 +247,6 @@
|
||||
a {
|
||||
font-weight: bold;
|
||||
}
|
||||
.Post-footer {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.EventPost-info {
|
||||
font-size: 14px;
|
||||
@@ -287,6 +284,10 @@
|
||||
font-size: 14px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.Post-actions {
|
||||
margin-top: -5px;
|
||||
|
Reference in New Issue
Block a user