Skip to content

Commit

Permalink
Merge pull request #152 from ipfs/styles
Browse files Browse the repository at this point in the history
refactor: Improve style setup
  • Loading branch information
dignifiedquire committed Jan 1, 2016
2 parents 9cd87b3 + 179d9f2 commit 485a978
Show file tree
Hide file tree
Showing 10 changed files with 1,332 additions and 413 deletions.
2 changes: 2 additions & 0 deletions app/scripts/main.js → app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import ReactDOM from 'react-dom'
import Router from 'react-router'
import routes from './routes'

require('../styles/app.less')

if (process.env.NODE_ENV !== 'production') {
window.uiDebug = require('debug')
}
Expand Down
2 changes: 0 additions & 2 deletions app/scripts/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import ConfigPage from './pages/config'
import LogPage from './pages/logs'
import NotFoundPage from './pages/notfound'

require('../styles/bundle.less')

export default (
<Route handler={Page} path='/'>
<DefaultRoute name='home' handler={HomePage} />
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/views/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default React.createClass({

getInitialState: function () {
return {
body: JSON.stringify(this.props.config, null, '\t'),
body: JSON.stringify(this.props.config, null, ' '),
error: null,
saving: false,
saved: false
Expand All @@ -20,7 +20,7 @@ export default React.createClass({

reset: function () {
this.setState({
body: JSON.stringify(this.props.config, null, '\t'),
body: JSON.stringify(this.props.config, null, ' '),
error: null
})
},
Expand Down
6 changes: 6 additions & 0 deletions app/styles/app.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@import "./variables";
@import "./bootstrap";
@import "../../node_modules/font-awesome/less/font-awesome";

@import "./base";
@import "./typography";
Loading

0 comments on commit 485a978

Please sign in to comment.