Skip to content

Commit b724335

Browse files
committed
Fixes css.
1 parent 49adc45 commit b724335

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/ui/Root.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ module.exports = React.createClass({
7575
return React.DOM.div({
7676
className: css.getClass('root')
7777
},
78-
7978
React.DOM.div({
8079
className: css.getClass('app')
8180
},

src/ui/Task.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var positiveC = function(){
99

1010

1111

12-
var css = new SmartCSS();
12+
var css = new SmartCSS({name: 'Task'});
1313

1414

1515

@@ -51,7 +51,7 @@ css.setClass('.warning', {
5151
marginTop : '5px',
5252
fontSize : '12px',
5353
})
54-
css.setClass('.warning:hover', {
54+
css.setClass('.root:hover .warning', {
5555
color : positiveC().darken(5),
5656
borderTopColor : positiveC().darken(5),
5757
})
@@ -63,7 +63,7 @@ css.setClass('.warningCompleted', {
6363
color : positiveC().lighten(20),
6464
borderTopColor : positiveC().lighten(20),
6565
})
66-
css.setClass('.warningCompleted:hover', {
66+
css.setClass('.root:hover .warningCompleted', {
6767
color : positiveC().lighten(35),
6868
borderTopColor : positiveC().lighten(35),
6969
})

0 commit comments

Comments
 (0)