Skip to content

Commit

Permalink
change default track selection styles to be a plainer gray, and make …
Browse files Browse the repository at this point in the history
…displayed tracks be transparent until moused over on browsers that support rgba() colors
  • Loading branch information
rbuels committed Mar 1, 2012
1 parent d82d8f3 commit 056af12
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
36 changes: 24 additions & 12 deletions genome.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,26 +159,38 @@ div.plus-feature:before {
}
*/

div.track-label {
font-family: sans-serif;
div.track-label, div.tracklist-label {
font-weight: bold;
z-index: 20;
background-color: #BDD7FF;
border: 2px #2b434c solid;
color: #2b434c;
padding: 5px;
background-color: #bcbcbc;
background-color: rgba( 160, 160, 160, 0.7 );
border: 1px #2b434c solid;
color: #111;
cursor: pointer;
font-size: 10px;
padding: 5px;
border-radius: 3px;
overflow: hidden;
}
/* NOTE: browsers that don't support rgba colors will fall back to all
track labels being #bcbcbc */

div.track-label {
margin-left: 5px;
border-color: rgba( 0,0,0,0);
background-color: rgba( 160, 160, 160, 0 );
}
div.track-label:hover {
border-color: rgba( 0,0,0,1);
background-color: rgba( 160, 160, 160, 0.7 );
}
div.tracklist-label {
font-family: sans-serif;
z-index: 20;
background-color: #BDD7FF;
border: 2px #2b434c solid;
color: #2b434c;
cursor: pointer;
padding: 3px;
}

#trackPane {
border-right: 1px solid #444;
}
/* commented for now, multi-select too confusing?
.tracklist-container.dojoDndItemSelected {
background: #ddf;
Expand Down
1 change: 1 addition & 0 deletions js/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ Browser.prototype.onFineMove = function(startbp, endbp) {
*/
Browser.prototype.createTrackList = function(parent, params) {
var leftPane = document.createElement("div");
leftPane.id = "trackPane";
leftPane.style.cssText="width: 10em";
parent.appendChild(leftPane);
var leftWidget = new dijit.layout.ContentPane({region: "left", splitter: true}, leftPane);
Expand Down

0 comments on commit 056af12

Please sign in to comment.