1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 13:10:24 +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

@@ -52,20 +52,16 @@ export default class DiscussionList extends Component {
if (this.loading) {
loading = LoadingIndicator.component();
} else if (this.moreResults) {
loading = (
<div className="load-more">
{Button.component({
children: 'Load More',
className: 'btn btn-default',
onclick: this.loadMore.bind(this)
})}
</div>
);
loading = Button.component({
children: 'Load More',
className: 'Button',
onclick: this.loadMore.bind(this)
});
}
return (
<div className="discussion-list">
<ul>
<div className="DiscussionList">
<ul className="DiscussionList-discussions">
{this.discussions.map(discussion => {
return (
<li key={discussion.id()} data-id={discussion.id()}>
@@ -74,7 +70,9 @@ export default class DiscussionList extends Component {
);
})}
</ul>
{loading}
<div className="DiscussionList-loadMore">
{loading}
</div>
</div>
);
}