1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 07:24:27 +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:
Toby Zerner
2015-07-17 14:47:49 +09:30
parent 76678f72f2
commit a9ded36b57
206 changed files with 4337 additions and 8830 deletions

View File

@@ -16,7 +16,7 @@ import icon from 'flarum/helpers/icon';
export default class EventPost extends Post {
attrs() {
return {
className: 'event-post ' + this.props.post.contentType() + '-post'
className: 'EventPost EventPost--' + this.props.post.contentType()
};
}
@@ -25,9 +25,9 @@ export default class EventPost extends Post {
const username = usernameHelper(user);
return [
icon(this.icon(), {className: 'event-post-icon'}),
<div class="event-post-info">
{user ? <a className="post-user" href={app.route.user(user)} config={m.route}>{username}</a> : username}
icon(this.icon(), {className: 'EventPost-icon'}),
<div class="EventPost-info">
{user ? <a className="EventPost-user" href={app.route.user(user)} config={m.route}>{username}</a> : username}{' '}
{this.description()}
</div>
];