1
0
mirror of https://github.com/flarum/core.git synced 2025-07-28 04:00:40 +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

@@ -19,15 +19,15 @@ export default class NotificationsDropdown extends Component {
const unread = user.unreadNotificationsCount();
return (
<div className="dropdown btn-group notifications-dropdown">
<div className="Dropdown NotificationsDropdown">
<a href="javascript:;"
className={'dropdown-toggle btn btn-default btn-rounded btn-naked btn-icon' + (unread ? ' unread' : '')}
className={'Dropdown-toggle Button Button--flat NotificationsDropdown-button' + (unread ? ' unread' : '')}
data-toggle="dropdown"
onclick={this.onclick.bind(this)}>
<span className="notifications-icon">{unread || icon('bell')}</span>
<span className="label">Notifications</span>
<span className="Button-icon">{unread || icon('bell')}</span>
<span className="Button-label">Notifications</span>
</a>
<div className="dropdown-menu dropdown-menu-right">
<div className="Dropdown-menu Dropdown-menu--right">
{this.showing ? NotificationList.component() : ''}
</div>
</div>