1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Clean up new post layout

This commit is contained in:
Toby Zerner
2015-09-15 12:42:03 +09:30
parent 5c98a08e0f
commit fa265152c7
3 changed files with 36 additions and 49 deletions

View File

@@ -15,11 +15,6 @@
opacity: 0.5;
}
}
.Post-controls {
float: right;
// margin-top: -8px;
// margin-left: 10px;
}
.Post-header {
margin-bottom: 15px;
@@ -148,6 +143,9 @@
.Post-header, .Post-header a, .PostUser h3, .PostUser h3 a {
color: @muted-more-color;
}
&:not(.revealContent) .Post-header {
margin-bottom: 0;
}
.Post-body, .Post-footer, h3 .Avatar, .PostUser-badges {
position: absolute;
visibility: hidden;
@@ -249,12 +247,16 @@
}
.Post-actions {
float: right;
margin-top: -3px;
margin-top: -10px;
.transition(opacity 0.2s);
.EventPost &, .Post--hidden & {
margin-top: -27px;
}
@media @tablet-up {
margin-bottom: -10px;
opacity: 0.5;
margin-bottom: -15px;
opacity: 0;
}
> ul {
@@ -262,6 +264,7 @@
margin-right: 0;
margin-left: -5px;
display: inline-block;
vertical-align: top;
}
}
.Post:hover & {
@@ -297,14 +300,6 @@
}
@media @phone {
.Post-controls {
margin-top: -6px;
margin-right: -8px;
.Dropdown-toggle {
opacity: 0.5;
}
}
.Post-header {
.Avatar {
.Avatar--size(32px);
@@ -338,14 +333,6 @@
@media @tablet-up {
.Post {
padding-left: 20px + @avatar-column-width;
// .Post-controls {
// opacity: 0.5;
// transition: opacity 0.2s;
// }
// &:hover .Post-controls, .Post-controls.open {
// opacity: 1;
// }
}
.PostUser-avatar {
margin-left: -@avatar-column-width;