Add light horizontal rule between posts. closes flarum/core#133

Also remove time information from event posts (it’s not useful)
This commit is contained in:
Toby Zerner 2015-06-23 10:36:36 +09:30
parent 3223f65ce3
commit c2883bc85e
3 changed files with 23 additions and 27 deletions

View File

@ -17,8 +17,7 @@ export default class EventPost extends Post {
m('div.event-post-info', [
user ? m('a.post-user', {href: app.route.user(user), config: m.route}, username(user)) : username(user), ' ',
content
]),
m('div.event-post-time', humanTime(post.time()))
])
], attrs);
}
}

View File

@ -67,10 +67,14 @@
// Stream
.discussion-posts {
margin-top: 40px;
margin-top: 10px;
& .item {
margin-bottom: 40px;
padding: 30px 0;
&:not(:last-child) {
border-bottom: 1px solid @fl-body-secondary-color;
}
}
}
@keyframes blink {
@ -117,7 +121,7 @@
& .contextual-controls {
float: right;
margin-top: -3px;
margin-top: -8px;
margin-left: 10px;
}
}
@ -316,7 +320,6 @@
}
.event-post-info {
font-size: 15px;
margin-bottom: 5px;
}
.discussion-renamed-post {
& .old-title, & .new-title {
@ -373,19 +376,11 @@
text-transform: uppercase;
font-weight: bold;
color: @fl-body-muted-color;
margin-top: 60px;
margin-bottom: 60px;
padding-left: 90px;
border-top: 1px solid @fl-body-secondary-color;
margin-top: -30px;
margin-bottom: 30px;
padding: 20px 20px 20px 90px;
background: @fl-body-secondary-color;
font-size: 12px;
& span {
float: left;
background: #fff;
margin-top: -9px;
margin-left: -10px;
padding: 0 10px;
}
}
.post-preview {
@ -445,16 +440,18 @@
}
@media @tablet, @desktop, @desktop-hd {
.post {
padding-left: 90px;
.item {
& .contextual-controls {
visibility: hidden;
opacity: 0;
transition: opacity 0.2s;
}
&:hover .contextual-controls, & .contextual-controls.open {
visibility: visible;
opacity: 1;
}
}
.post {
padding-left: 90px;
}
.post-header {
& .avatar {
margin-left: -90px;

View File

@ -60,11 +60,11 @@
// Little round icon buttons
.btn-icon.btn-sm {
border-radius: 14px;
height: 28px;
width: 28px;
border-radius: 16px;
height: 32px;
width: 32px;
text-align: center;
padding: 5px 0;
padding: 7px 0;
& .label, & .icon-caret {
display: none;