Bladeren bron

Fix chain table spacing.

pull/24/head
Ben Kurtovic 9 jaren geleden
bovenliggende
commit
f7204b88d4
2 gewijzigde bestanden met toevoegingen van 21 en 7 verwijderingen
  1. +13
    -1
      static/style.css
  2. +8
    -6
      templates/index.mako

+ 13
- 1
static/style.css Bestand weergeven

@@ -76,6 +76,10 @@ div#cv-additional {
display: none; display: none;
} }


div#cv-chain-container {
margin: 0 4px;
}

table#heading { table#heading {
width: 100%; width: 100%;
} }
@@ -109,7 +113,7 @@ table#cv-result-sources tr:nth-child(even) {
table#cv-chain-table { table#cv-chain-table {
width: 100%; width: 100%;
margin-bottom: 10px; margin-bottom: 10px;
border-spacing: 10px 0;
border-spacing: 0;
} }


tr#source-row-selected { tr#source-row-selected {
@@ -208,6 +212,14 @@ td.cv-chain-cell {
vertical-align: top; vertical-align: top;
} }


td.cv-chain-cell:first-child {
padding-right: 5px;
}

td.cv-chain-cell:last-child {
padding-left: 5px;
}

input.cv-text { input.cv-text {
width: 100%; width: 100%;
} }


+ 8
- 6
templates/index.mako Bestand weergeven

@@ -224,11 +224,13 @@
<li>Results generated in <span class="mono">${round(result.time, 3)}</span> seconds using <span class="mono">${result.queries}</span> queries.</li> <li>Results generated in <span class="mono">${round(result.time, 3)}</span> seconds using <span class="mono">${result.queries}</span> queries.</li>
% endif % endif
</ul> </ul>
<table id="cv-chain-table">
<tr>
<td class="cv-chain-cell">Article: <div class="cv-chain-detail"><p>${highlight_delta(result.article_chain, result.best.chains[1] if result.best else None)}</p></div></td>
<td class="cv-chain-cell">Source: <div class="cv-chain-detail"><p>${highlight_delta(result.best.chains[0], result.best.chains[1]) if result.best else ""}</p></div></td>
</tr>
</table>
<div id="cv-chain-container">
<table id="cv-chain-table">
<tr>
<td class="cv-chain-cell">Article: <div class="cv-chain-detail"><p>${highlight_delta(result.article_chain, result.best.chains[1] if result.best else None)}</p></div></td>
<td class="cv-chain-cell">Source: <div class="cv-chain-detail"><p>${highlight_delta(result.best.chains[0], result.best.chains[1]) if result.best else ""}</p></div></td>
</tr>
</table>
</div>
% endif % endif
<%include file="/support/footer.mako"/> <%include file="/support/footer.mako"/>

Laden…
Annuleren
Opslaan