Skip to content

Commit 255bcc3

Browse files
committed
Styling viz. And.. this is ready for prime time.
1 parent 3f270bc commit 255bcc3

File tree

5 files changed

+46
-3
lines changed

5 files changed

+46
-3
lines changed

css/main.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ button.all {
4444
background: rgb(28, 184, 65); /* this is a green */
4545
}
4646

47-
button.none {
47+
button.none, button.vizit {
4848
background: rgb(223, 117, 20); /* this is an orange */
4949
}
5050

@@ -55,3 +55,7 @@ button:hover {
5555
button.small-button:hover {
5656
background-color: steelblue;
5757
}
58+
59+
.ribbon {
60+
position: fixed; top: 0; right: 0; border: 0;
61+
}

css/viz.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
/*
2+
vim: ts=2 expandtab:
3+
*/
4+
input.input-text {
5+
font-size: 120%;
6+
color: #5a5854;
7+
background-color: #f2f2f2;
8+
border: 1px solid #bdbdbd;
9+
border-radius: 5px;
10+
padding: 5px 5px 5px 30px;
11+
background-repeat: no-repeat;
12+
background-posit5ion: 8px 9px;
13+
margin-bottom: 10px;
14+
}
15+
16+
input:focus {
17+
background-color: #ffffff;
18+
border: 1px solid #b1e1e4;
19+
}
20+
21+
.region {
22+
margin-top: 10px;
23+
}
24+
25+
.current-region {
26+
font-size: 100%;
27+
font-style: italic;
28+
text-align: center;
29+
margin-top: 10px;
30+
margin-bottom: 10px;
31+
}
32+
133
.group {
234
margin-bottom: 1em;
335
}

imgs/ribbon.png

7.74 KB
Loading

index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
<div id="plots"></div>
1616
</body>
1717

18+
<a id="github_link" href="https://github.com/drio/bedbrowser">
19+
<img class="ribbon" src="/imgs/ribbon.png" alt="Fork me on GitHub">
20+
</a>
21+
22+
1823
<script src="js/browser.js"></script>
1924
<script src="js/viz.js"></script>
2025
<script>

js/viz.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,20 @@ bb.viz = function(data) {
8484

8585
var p = main.append("p").attr("class", "region");
8686

87-
p.text("Region (Ex. Chr17:1100000-1200000)");
88-
8987
p.append("input")
9088
.attr("type", "text")
89+
.attr("size", "45")
9190
.attr("id", "region")
91+
.attr("placeholder", "Region (Ex. Chr17:1100000-1200000)")
9292
.attr("class", "input-text");
9393

9494
p.append("button")
9595
.text("Viz it!")
96+
.attr("class", "vizit")
9697
.on("click", function() {
9798
var c = getRegion();
9899
clean();
100+
console.log("here");
99101
if (c)
100102
horizon(c["start"], c["stop"], c["chrm"]);
101103
else

0 commit comments

Comments
 (0)