mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 22:59:57 +08: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:
@ -14,11 +14,11 @@ export default class Select extends Component {
|
||||
const {options, onchange, value} = this.props;
|
||||
|
||||
return (
|
||||
<span className="select">
|
||||
<select className="form-control" onchange={m.withAttr('value', onchange.bind(this))} value={value}>
|
||||
<span className="Select">
|
||||
<select className="Select-input FormControl" onchange={m.withAttr('value', onchange.bind(this))} value={value}>
|
||||
{Object.keys(options).map(key => <option value={key}>{options[key]}</option>)}
|
||||
</select>
|
||||
{icon('sort', {className: 'caret'})}
|
||||
{icon('sort', {className: 'Select-caret'})}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user