Skip to content

Commit 689d83f

Browse files
committed
fix components styles
1 parent 7a62c68 commit 689d83f

File tree

9 files changed

+12
-16
lines changed

9 files changed

+12
-16
lines changed

lib/components/Page/Hints/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ var HintButton_1 = require('./HintButton');
66
var help_1 = require('material-ui/svg-icons/action/help');
77
var styles = {
88
position: 'relative',
9-
margin: '0 20px -8px 20px',
9+
margin: '5px auto 10px',
1010
width: '360px',
1111
textAlign: 'center',
12-
zIndex: '0',
1312
};
1413
var Hints = function (_a) {
1514
var task = _a.task, hintPosition = _a.hintPosition;

lib/components/Page/PageToolbar/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ var ToggleLog_1 = require('./ToggleLog');
55
var Save_1 = require('./Save');
66
var Continue_1 = require('./Continue');
77
var styles = {
8-
zIndex: '1000',
9-
position: 'fixed',
8+
zIndex: '5',
9+
position: 'relative',
1010
bottom: '0px',
1111
right: '0px',
1212
height: '60px',

lib/components/Page/ProgressBar/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ var React = require('react');
33
var LinearProgress_1 = require('material-ui/LinearProgress');
44
var style = {
55
height: '10px',
6-
zIndex: '10',
6+
position: 'relative',
7+
margin: '0',
78
};
89
var ProgressBar = function (_a) {
910
var taskPosition = _a.taskPosition, taskLength = _a.taskLength, completed = _a.completed;

lib/components/Tutorials/LoadTutorials/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
1616
var React = require('react');
1717
var react_redux_1 = require('react-redux');
1818
var actions_1 = require('../../../actions');
19-
var FlatButton_1 = require('material-ui/FlatButton');
19+
var RaisedButton_1 = require('material-ui/RaisedButton');
2020
var LoadTutorials = (function (_super) {
2121
__extends(LoadTutorials, _super);
2222
function LoadTutorials() {
2323
_super.apply(this, arguments);
2424
}
2525
LoadTutorials.prototype.render = function () {
26-
return (React.createElement(FlatButton_1.default, {label: 'Check for Tutorials', secondary: true, onTouchTap: this.props.tutorialsFind}));
26+
return (React.createElement(RaisedButton_1.default, {label: 'Check for Tutorials', secondary: true, onTouchTap: this.props.tutorialsFind}));
2727
};
2828
LoadTutorials = __decorate([
2929
react_redux_1.connect(null, function (dispatch) {

lib/components/Tutorials/SelectTutorial/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ var SelectTutorial = (function (_super) {
4141
return {
4242
selectTutorial: function (name) {
4343
dispatch(actions_1.tutorialSet(name));
44-
dispatch(actions_1.progressLoad());
45-
dispatch(actions_1.routeSet('progress'));
4644
},
4745
};
4846
}),

src/components/Page/Hints/index.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import Help from 'material-ui/svg-icons/action/help';
66

77
const styles = {
88
position: 'relative',
9-
margin: '0 20px -8px 20px',
9+
margin: '5px auto 10px',
1010
width: '360px',
1111
textAlign: 'center',
12-
zIndex: '0',
1312
};
1413

1514
const Hints: React.StatelessComponent<{

src/components/Page/PageToolbar/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import Save from './Save';
55
import Continue from './Continue';
66

77
const styles = {
8-
zIndex: '1000',
9-
position: 'fixed',
8+
zIndex: '5',
9+
position: 'relative',
1010
bottom: '0px',
1111
right: '0px',
1212
height: '60px',

src/components/Page/ProgressBar/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import LinearProgress from 'material-ui/LinearProgress';
33

44
const style = {
55
height: '10px',
6-
zIndex: '10',
6+
position: 'relative',
7+
margin: '0',
78
};
89

910
const ProgressBar: React.StatelessComponent<{

src/components/Tutorials/SelectTutorial/index.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ function displayName(name: string): string {
1818
return {
1919
selectTutorial: (name: string) => {
2020
dispatch(tutorialSet(name));
21-
dispatch(progressLoad());
22-
dispatch(routeSet('progress'));
2321
},
2422
};
2523
})

0 commit comments

Comments
 (0)