# HG changeset patch # User Jan Kanis # Date 1399563221 -7200 # Node ID beb83da5a6b7335439a0ef8ffe35bf82bc871b06 # Parent 9e79276730897cf389e9f866bda60331c2155a09 div-ified graphics diff -r 9e7927673089 -r beb83da5a6b7 visualise.html.jinja --- a/visualise.html.jinja Thu May 08 16:51:52 2014 +0200 +++ b/visualise.html.jinja Thu May 08 17:33:41 2014 +0200 @@ -63,6 +63,15 @@ padding: 1em; } + .graphicrow { + clear: left; + width: 100%; + } + + .graphicitem { + float: left; + } + .graphic { background-color: white; border: 2px solid black; @@ -75,7 +84,7 @@ text-align: center; } - .centered, #defline, div.legendwrapper, table.legend, div.tablewrapper { + .centered, #defline, div.legend, div.tablewrapper { align: center; margin-left: auto; margin-right: auto; @@ -93,17 +102,16 @@ overflow-y: hidden; } - div.legendwrapper { + div.legend { max-width: 40em; } - - table.legend { + div.legend div { + width: 100%; color: white; font-weight: bold; - width: 100%; border-spacing: 0; } - table.legend td { + div.legend div .graphicitem { width: 20%; padding: 0; margin: 0; @@ -132,40 +140,28 @@ color: red; text-align: left; } - .scale table { - width: 100%; - height: 1.3em; - margin-top: 0; + .scale .graphicrow { + margin: .5em 0 .5em 0; color: white; - table-layout: fixed; - border-collapse: collapse; } - .scale td { - margin 0; - padding 0; - } - .scale td div { - margin: 1px 0; + .scale .graphicitem div { + margin: 0 1px; + padding: 0 2px; text-align: right; background-color: red; color: white; } - - table.matchresult { - width: 100%; - margin-top: 3px; - margin-bottom: 0; - border-collapse: collapse; + + a.matchresult { + display: block; + margin: 0; + padding: 0; } - table.matchresult, table.matchresult tr, table.matchresult td, a.matchlink { - height: 3px; - margin-left: 0; - margin-right: 0; - padding-left: 0; - padding-right: 0; + div.matchrow { + margin-top: 4px; } - a.matchlink { - display: block; + div.matchrow, div.matchitem { + height: 4px; } table.descriptiontable { @@ -211,35 +207,42 @@

Color key for alignment scores

-
- - - - - -
<4040-5050-8080-200200≤
+
+
<40
+
40-50
+
50-80
+
80-200
+
200≤
+
+
query:
- +
{% for s in queryscale %} -
+
+
{{s.label|safe}}
+
{% endfor %} -
{{s.label|safe}}
+
+
{% for line in match_colors %} - - +
{% for match in line.colors %} -
+
{% endfor %} -
+
{% endfor %}