mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +08:00
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:
parent
3223f65ce3
commit
c2883bc85e
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user