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}
onBlur={() => this.props.hideFileOptions(this.props.file.id)}
tabIndex={this.props.fileIndex}
onClick={() => this.props.setSelectedFile(this.props.file.id)}
>
<a
className="sidebar__file-item-name"
onClick={() => this.props.setSelectedFile(this.props.file.id)}
>{this.props.file.name}</a>
<input
type="text"

View file

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

View file

@ -15,7 +15,9 @@ const defaultHTML =
`<!DOCTYPE html>
<html>
<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">
</head>
<body>