view utils/markup_to_html.html @ 1168:b556c96c6719
blocks3d/www Makefile: never check certificates of github, they are too confusing for wget
author |
Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
date |
Mon, 26 May 2014 17:20:29 +0400 |
parents |
|
children |
|
line source
3 <title>Alignment with markup
</title>
5 * { font-family: fixed; font-size: 8pt; }
6 .code1 { display: block; font-size: 12pt; width: 2em; }
7 .code3 { display: none; }
8 .number { display: none; }
9 .popup { display: none; background: #ffc; padding: .2em; border: solid thin black; white-space: nowrap; }
10 span.code1:hover { background: #fcc; }
11 span.code1:hover .popup { display: block; position: absolute; margin-left: 1em; }
18 {% for monomer in row %}
21 <span class='code1'>{{ monomer.code1 }}
22 <div class='popup'>{{ monomer.description.replace("\n", "<br>") }}</div>
24 <span class='code3'>{{ monomer.code3 }}</span>
25 {% for name, markup in row.sequence.markups.items() %}
26 <span class='{{ name }}'>{{ markup.get(monomer, "") }}</span>
29 <span class='code1'>-
</span>