mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Tweak reply placeholder appearance
This commit is contained in:
parent
5d28fc2713
commit
8638e9c9ca
|
@ -3,7 +3,7 @@ import avatar from 'flarum/helpers/avatar';
|
|||
|
||||
export default class ReplyPlaceholder extends Component {
|
||||
view() {
|
||||
return m('article.post.reply-post', {onclick: () => this.props.discussion.replyAction(true)}, [
|
||||
return m('article.post.reply-post', {onmousedown: () => this.props.discussion.replyAction(true)}, [
|
||||
m('header.post-header', avatar(app.session.user()), 'Write a Reply...'),
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -463,17 +463,23 @@
|
|||
font-size: 15px;
|
||||
cursor: text;
|
||||
overflow: hidden;
|
||||
margin: -15px;
|
||||
padding: 15px 15px 15px 90px + 15px;
|
||||
margin: 50px -20px 0;
|
||||
border: 2px dashed @fl-body-secondary-color;
|
||||
color: @fl-body-muted-color;
|
||||
border-radius: 10px;
|
||||
padding: 20px 20px 20px 110px;
|
||||
transition: color 0.2s, border-color 0.2s;
|
||||
|
||||
& .avatar {
|
||||
opacity: 0.25;
|
||||
& .post-header {
|
||||
padding-top: 18px;
|
||||
color: inherit;
|
||||
}
|
||||
& .avatar {
|
||||
margin-top: -18px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border: 1px dashed @fl-body-secondary-color;
|
||||
border-radius: 64px;
|
||||
margin: -16px;
|
||||
color: @fl-secondary-color;
|
||||
border-color: @fl-body-muted-color;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user