Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factor out stylesheet #56

Merged
merged 1 commit into from
Mar 20, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 3 additions & 39 deletions playground.html
Original file line number Diff line number Diff line change
@@ -1,46 +1,10 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="style/pileup.css" />
<style>
/* track dimensions */
.reference {
#root {
width: 1200px;
height: 50px;
}

/* reference track */
.background {
fill: white;
}
.basepair.a { fill: #188712; }
.basepair.g { fill: #C45C16; }
.basepair.c { fill: #0600F9; }
.basepair.t { fill: #F70016; }
.basepair.u { fill: #F70016; }
text.basepair {
font-size: 36;
font-weight: bold;
}

/* gene track */
.genes {
width: 1200px;
height: 50px;
}
.gene {
stroke-width: 1;
stroke: blue;
}
.gene text {
font-size: 16px;
text-anchor: middle;
stroke: black;
alignment-baseline: hanging;
}
#sense, #antisense {
stroke: blue;
}
.exon {
fill: blue;
height: 200px;
}
</style>
</head>
Expand Down
46 changes: 46 additions & 0 deletions style/pileup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* This is the default stylesheet for pileup.js.
* In general, it attempts to look like IGV.
* You are encouraged to override anything you like.
*/

/* controls */

/* reference track */
.reference {
height: 50px;
}

.background {
fill: white;
}
.basepair.a { fill: #188712; }
.basepair.g { fill: #C45C16; }
.basepair.c { fill: #0600F9; }
.basepair.t { fill: #F70016; }
.basepair.u { fill: #F70016; }
text.basepair {
font-size: 36;
font-weight: bold;
}

/* gene track */
.genes {
height: 50px;
}
.gene {
stroke-width: 1;
stroke: blue;
}
.gene text {
font-size: 16px;
text-anchor: middle;
stroke: black;
alignment-baseline: hanging;
}
#sense, #antisense {
stroke: blue;
}
.exon {
fill: blue;
}
1 change: 1 addition & 0 deletions test/coverage.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<meta charset="utf-8">
<title>pileup.js Tests</title>
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
<link rel="stylesheet" href="../style/pileup.css" />
</head>
<body>
<div id="testdiv"></div>
Expand Down
1 change: 1 addition & 0 deletions test/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<meta charset="utf-8">
<title>pileup.js Tests</title>
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
<link rel="stylesheet" href="../style/pileup.css" />
</head>
<body>
<div id="testdiv"></div>
Expand Down