mirror of
https://github.com/flarum/core.git
synced 2025-10-11 15:04:25 +02:00
Major CSS revamp
- Get rid of Bootstrap (except we still rely on some JS) - Use BEM class names - Rework variables/theme config - Fix various bugs, including some on mobile The CSS is still not ideal – it needs to be cleaned up some more. But that can be a focus for after beta.
This commit is contained in:
@@ -19,12 +19,12 @@ export default class PostPreview extends Component {
|
||||
const excerpt = highlight(post.contentPlain(), this.props.highlight, 200);
|
||||
|
||||
return (
|
||||
<a className="post-preview" href={app.route.post(post)} config={m.route} onclick={this.props.onclick}>
|
||||
<span className="post-preview-content">
|
||||
<a className="PostPreview" href={app.route.post(post)} config={m.route} onclick={this.props.onclick}>
|
||||
<span className="PostPreview-content">
|
||||
{avatar(user)}
|
||||
{username(user)}
|
||||
{humanTime(post.time())}
|
||||
<span className="excerpt">{excerpt}</span>
|
||||
<span className="PostPreview-excerpt">{excerpt}</span>
|
||||
</span>
|
||||
</a>
|
||||
);
|
||||
|
Reference in New Issue
Block a user