This commit is contained in:
MathuraMG 2016-08-11 11:21:18 -04:00
commit ea2ed435ba
3 changed files with 7 additions and 2 deletions

View file

@ -41,10 +41,10 @@ class SidebarItem extends React.Component {
className={itemClass} className={itemClass}
onBlur={() => this.props.hideFileOptions(this.props.file.id)} onBlur={() => this.props.hideFileOptions(this.props.file.id)}
tabIndex={this.props.fileIndex} tabIndex={this.props.fileIndex}
onClick={() => this.props.setSelectedFile(this.props.file.id)}
> >
<a <a
className="sidebar__file-item-name" className="sidebar__file-item-name"
onClick={() => this.props.setSelectedFile(this.props.file.id)}
>{this.props.file.name}</a> >{this.props.file.name}</a>
<input <input
type="text" type="text"

View file

@ -44,6 +44,9 @@
&--selected { &--selected {
background-color: $ide-border-color; background-color: $ide-border-color;
} }
&:hover .sidebar__file-item-name {
color: $light-primary-text-color;
}
} }
.sidebar__file-item-name { .sidebar__file-item-name {

View file

@ -15,7 +15,9 @@ const defaultHTML =
`<!DOCTYPE html> `<!DOCTYPE html>
<html> <html>
<head> <head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.0/p5.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css"> <link rel="stylesheet" type="text/css" href="style.css">
</head> </head>
<body> <body>